joyce8/EMBER2024-capa huggingface dataset:
Function at 0x57fca6
Capabilities:
Encode data using xor

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x30]
mov ebp, dword [esi + 0xd4]
test edi, edi
je 0x57fd4b
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
push ebx
shl ecx, 2
mov ebx, ebp
imul ebx, dword [esp + 0x20]
mov dword [esp + 0x28], ecx
mov edx, dword [esp + 0x1c]
imul edx, eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x24]
add edx, ecx
mov ecx, dword [esi + 0xcc]
add edx, dword [esp + 0x18]
imul ecx, eax
add ecx, dword [esi + 0xc8]
add ecx, ebx
cmp dword [esp + 0x30], 0
jle 0x57fd29
mov esi, dword [esp + 0x30]
mov al, byte [edx + 2]
xor byte [ecx + 2], al
mov al, byte [edx + 1]
xor byte [ecx + 1], al
mov al, byte [edx]
lea edx, [edx + 4]
xor byte [ecx], al
add ecx, ebp
sub esi, 1
jne 0x57fd07
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
inc eax
xor ecx, ecx
mov dword [esp + 0x24], eax
inc ecx
or eax, 0xffffffff
cmp dword [esi + 0xe8], 0
cmovne eax, ecx
add eax, dword [esp + 0x34]
sub edi, ecx
mov ecx, dword [esp + 0x28]
jne 0x57fcd6
pop ebx
pop edi
pop esi
pop ebp
ret 0x24
Function at 0x581929
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push closesocket
push dword [esp + 0x2c]
mov ebp, edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x5819ad
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
push edi
push dword [0x7e42f8]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x5819a5
push ebp
lea eax, [esp + 0x1c]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x581996
cmp dword [esp + 0x18], ebx
jne 0x581996
push ebx
push edi
push dword [esp + 0x1c]
call fcn.00581792
mov ebp, eax
push edi
push 0
push dword [0x7e42f8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
ret 0xc

Function at 0x581b9a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x50
push ebx
mov ebx, dword [esp + 0x5c]
push ebp
xor ebp, ebp
push esi
test ebx, ebx
je 0x581bae
mov esi, ebx
jmp 0x581bc0
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, eax
test esi, esi
je 0x581cae
lea eax, [esp + 0x18]
push eax
push 0x18
pop eax
push eax
push dword [esp + 0x68]
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x581ca3
mov ebp, dword [esp + 0x1c]
lea eax, [esp + 0x30]
push edi
mov edi, dword [esp + 0x24]
push 0x2c
push 0
push eax
mov dword [esp + 0x20], ebp
call fcn.0052bb00
add esp, 0xc
mov dword [esp + 0x34], 0x28
xor eax, eax
mov dword [esp + 0x38], ebp
inc eax
mov dword [esp + 0x3c], edi
mov word [esp + 0x40], ax
xor ecx, ecx
push 0x18
pop eax
push ecx
push ecx
mov word [esp + 0x4a], ax
lea eax, [esp + 0x18]
push eax
push ecx
lea eax, [esp + 0x44]
mov dword [esp + 0x54], ecx
push eax
push esi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov ebp, eax
mov dword [esp + 0x18], ebp
test ebp, ebp
je 0x581ca2
push 0
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x18]
push edi
push 0
push dword [esp + 0x78]
push esi
call dword [sym.imp.GDI32.dll_GetDIBits]
imul edi, dword [esp + 0x14]
test edi, edi
jle 0x581ca2
mov ebp, dword [esp + 0x10]
push 3
pop ebx
movzx ecx, byte [ebp + 1]
xor edx, edx
movzx eax, byte [ebp + 2]
add eax, ecx
movzx ecx, byte [ebp]
add eax, ecx
div ebx
mov byte [ebp], al
mov ecx, dword [esp + 0x10]
mov byte [ecx + 1], al
mov ecx, dword [esp + 0x10]
mov byte [ecx + 2], al
mov ebp, dword [esp + 0x10]
add ebp, ebx
mov dword [esp + 0x10], ebp
sub edi, 1
jne 0x581c66
mov ebx, dword [esp + 0x68]
mov ebp, dword [esp + 0x18]
pop edi
test ebx, ebx
jne 0x581cae
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x50
ret 8
Function at 0x581cb9
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x68
lea eax, [esp + 0x10]
push ebx
push esi
push eax
push dword [esp + 0x78]
xor esi, esi
mov ebx, esi
call dword [sym.imp.USER32.dll_GetIconInfo]
test eax, eax
je 0x581e50
push dword [esp + 0x28]
call fcn.00582dc2
test eax, eax
je 0x581cf9
push dword [esp + 0x24]
mov ebx, dword [esp + 0x2c]
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x581e50
push edi
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
test edi, edi
je 0x581e3d
push ebp
mov ebp, dword [sym.imp.GDI32.dll_GetObjectW]
lea eax, [esp + 0x34]
push eax
push 0x18
push dword [esp + 0x38]
call ebp
cmp eax, 0x18
jne 0x581e35
push 0x2c
lea eax, [esp + 0x50]
push esi
push eax
call fcn.0052bb00
mov eax, dword [esp + 0x44]
add esp, 0xc
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x54], eax
xor eax, eax
push 0x20
inc eax
mov dword [esp + 0x50], 0x28
mov word [esp + 0x5c], ax
pop eax
push esi
push esi
mov word [esp + 0x62], ax
lea eax, [esp + 0x1c]
push eax
push esi
lea eax, [esp + 0x5c]
mov dword [esp + 0x6c], esi
push eax
push edi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov ebx, eax
mov dword [esp + 0x1c], ebx
test ebx, ebx
je 0x581e35
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push ebx
push edi
call esi
push 2
xor eax, eax
push eax
push eax
push dword [esp + 0x48]
push dword [esp + 0x48]
push dword [esp + 0x90]
push eax
push eax
push edi
call dword [sym.imp.USER32.dll_DrawIconEx]
push dword [esp + 0x2c]
push edi
call esi
lea eax, [esp + 0x34]
push eax
push 0x18
push dword [esp + 0x38]
call ebp
cmp eax, 0x18
jne 0x581e35
mov ebp, dword [esp + 0x38]
xor esi, esi
mov edx, dword [esp + 0x3c]
mov eax, ebp
shl eax, 2
mov dword [esp + 0x10], eax
test edx, edx
jle 0x581e35
mov eax, dword [sym.imp.GDI32.dll_GetPixel]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
mov ecx, edx
sub ecx, esi
add eax, 3
dec ecx
xor ebx, ebx
imul ecx, dword [esp + 0x10]
add eax, ecx
mov dword [esp + 0x7c], eax
test ebp, ebp
jle 0x581e2c
push esi
push ebx
push edi
call dword [esp + 0x24]
mov ecx, dword [esp + 0x7c]
test eax, eax
setne al
dec al
mov byte [ecx], al
add ecx, 4
mov ebp, dword [esp + 0x38]
inc ebx
mov dword [esp + 0x7c], ecx
cmp ebx, ebp
jl 0x581e04
mov edx, dword [esp + 0x3c]
inc esi
cmp esi, edx
jl 0x581de7
mov ebx, dword [esp + 0x1c]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
pop ebp
push dword [esp + 0x28]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
push dword [esp + 0x2c]
call esi
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x68
ret 4
Function at 0x582a23
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x50
push ebp
xor ebp, ebp
cmp dword [0x7e9438], ebp
je 0x582c09
push ebx
mov ebx, dword [esp + 0x60]
push edi
test ebx, ebx
je 0x582a43
mov edi, ebx
jmp 0x582a55
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
test edi, edi
je 0x582c07
lea eax, [esp + 0x18]
push eax
push 0x18
push dword [esp + 0x68]
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x582bfc
mov ebp, dword [esp + 0x1c]
lea eax, [esp + 0x30]
push esi
mov esi, dword [esp + 0x24]
push 0x2c
push 0
push eax
mov dword [esp + 0x20], ebp
call fcn.0052bb00
add esp, 0xc
mov dword [esp + 0x34], 0x28
xor eax, eax
mov dword [esp + 0x38], ebp
inc eax
mov dword [esp + 0x3c], esi
mov word [esp + 0x40], ax
xor ecx, ecx
push 0x20
pop eax
push ecx
push ecx
mov word [esp + 0x4a], ax
lea eax, [esp + 0x18]
push eax
push ecx
lea eax, [esp + 0x44]
mov dword [esp + 0x54], ecx
push eax
push edi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov ebp, eax
mov dword [esp + 0x18], ebp
test ebp, ebp
je 0x582bfb
push 0
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x18]
push esi
push 0
push dword [esp + 0x78]
push edi
call dword [sym.imp.GDI32.dll_GetDIBits]
imul esi, dword [esp + 0x14]
test esi, esi
jle 0x582bfb
cmp dword [esp + 0x6c], 0
je 0x582ba8
mov ebp, dword [esp + 0x10]
push 0xa
pop ebx
movzx ecx, byte [ebp + 1]
xor edx, edx
movzx eax, byte [ebp + 2]
lea eax, [eax + ecx*2]
movzx ecx, byte [ebp]
imul eax, eax, 3
add eax, ecx
div ebx
mov cl, al
cmp cl, 0x40
jae 0x582b3c
movzx eax, cl
sub eax, 0x40
imul eax, eax, 7
cdq
idiv ebx
lea ecx, [eax + 0x40]
jmp 0x582b52
cmp cl, 0xc0
jbe 0x582b52
movzx eax, cl
sub eax, 0xc0
imul eax, eax, 7
cdq
idiv ebx
lea ecx, [eax - 0x40]
movzx eax, byte [ebp + 3]
movd xmm1, eax
cvtdq2ps xmm1, xmm1
movzx eax, cl
movd xmm0, eax
divss xmm1, dword [0x6b5810]
cvtdq2ps xmm0, xmm0
mulss xmm1, xmm0
cvttss2si ecx, xmm1
mov byte [ebp], cl
mov eax, dword [esp + 0x10]
mov byte [eax + 1], cl
mov ecx, dword [esp + 0x10]
mov al, byte [ecx]
mov byte [ecx + 2], al
mov ebp, dword [esp + 0x10]
add ebp, 4
mov dword [esp + 0x10], ebp
sub esi, 1
jne 0x582b0c
mov ebx, dword [esp + 0x68]
mov ebp, dword [esp + 0x18]
jmp 0x582bfb
mov edx, dword [esp + 0x10]
mov al, byte [edx + 3]
cmp al, 0xff
jae 0x582bef
movzx ecx, al
movzx eax, byte [edx]
imul ecx, eax
shr ecx, 8
mov byte [edx], cl
mov edx, dword [esp + 0x10]
movzx eax, byte [edx + 1]
movzx ecx, byte [edx + 3]
imul ecx, eax
shr ecx, 8
mov byte [edx + 1], cl
mov edx, dword [esp + 0x10]
movzx ecx, byte [edx + 3]
movzx eax, byte [edx + 2]
imul ecx, eax
shr ecx, 8
mov byte [edx + 2], cl
mov edx, dword [esp + 0x10]
add edx, 4
mov dword [esp + 0x10], edx
sub esi, 1
jne 0x582bac
pop esi
test ebx, ebx
jne 0x582c07
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
pop edi
pop ebx
mov eax, ebp
pop ebp
add esp, 0x50
ret 0xc
Function at 0x583da0
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x583dd8
push 0
lea ecx, [esp + 0x10]
push ecx
push esi
push dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x583dd3
xor eax, eax
cmp dword [esp + 0xc], esi
pop edi
sete al
pop esi
ret
pop edi
xor eax, eax
pop esi
ret
mov eax, dword [edi + 4]
add eax, dword [edi + 8]
push esi
push dword [esp + 0x14]
push eax
call fcn.0052d690
add dword [edi + 8], esi
add esp, 0xc
mov eax, 1
pop edi
pop esi
ret
Function at 0x594900
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
cmp dword [esp + 0x1c], 0
jle 0x5949f3
mov eax, dword [esp + 0x18]
push ebx
push ebp
push esi
push edi
mov ecx, dword [eax + 8]
mov ebx, ecx
add ebx, dword [eax]
mov edx, dword [eax + 0xc]
mov esi, edx
mov edi, dword [eax + 4]
adc edi, edx
mov dword [esp + 0x18], ebx
shld edx, ecx, 0xd
shr esi, 0x13
xor ebp, ebp
shl ecx, 0xd
or ebp, edx
mov edx, dword [eax + 0x1c]
or esi, ecx
mov ecx, dword [eax + 0x18]
xor esi, ebx
xor ebp, edi
mov dword [esp + 0x14], esi
mov esi, ecx
mov dword [esp + 0x20], ebp
add esi, dword [eax + 0x10]
mov ebp, edx
mov ebx, edx
mov dword [esp + 0x10], edi
adc ebp, dword [eax + 0x14]
xor edi, edi
shld edx, ecx, 0x10
shr ebx, 0x10
shl ecx, 0x10
or edi, edx
or ebx, ecx
mov dword [esp + 0x1c], esi
mov ecx, dword [esp + 0x10]
xor ebx, esi
xor edi, ebp
xor esi, esi
or esi, dword [esp + 0x18]
mov edx, edi
add ecx, ebx
mov dword [esp + 0x10], ecx
adc esi, edi
mov dword [eax], ecx
shld edi, ebx, 0x15
xor ecx, ecx
shr edx, 0xb
or ecx, edi
shl ebx, 0x15
mov edi, dword [esp + 0x14]
or edx, ebx
xor edx, dword [esp + 0x10]
xor ecx, esi
add edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
mov dword [eax + 4], esi
mov esi, ebx
adc esi, ebp
mov dword [eax + 0x18], edx
mov ebp, dword [esp + 0x14]
mov edx, ebx
mov dword [eax + 0x1c], ecx
xor ecx, ecx
shld ebx, ebp, 0x11
shr edx, 0xf
or ecx, ebx
shl ebp, 0x11
xor ecx, esi
mov dword [eax + 0x10], esi
mov dword [eax + 0xc], ecx
or edx, ebp
xor ecx, ecx
xor edx, edi
or ecx, edi
mov dword [eax + 8], edx
sub dword [esp + 0x2c], 1
mov dword [eax + 0x14], ecx
jne 0x594916
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret

Function at 0x594a00
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
sub esp, 8
push edi
mov edi, dword [esp + 0x10]
cmp dword [edi + 0x1ec], 0
jne 0x594a9c
push esi
xor esi, esi
nop dword [eax + eax]
push 4
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x594a66
mov edx, dword [esp + 0x14]
xor ecx, ecx
nop
cmp esi, 4
jae 0x594a5b
mov eax, edx
shr eax, cl
add ecx, 8
mov byte [esp + esi + 8], al
inc esi
cmp ecx, 0x20
jb 0x594a40
cmp esi, 4
jb 0x594a20
push dword [esp + 8]
push str.rand_s
jmp 0x594a8d
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov esi, dword [esp + 8]
xor esi, dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor eax, esi
imul eax, eax, 0x7fffffff
push eax
push str.fallback_4_
call fcn.0058d6e0
add esp, 8
mov dword [edi + 0x1ec], eax
pop esi
cmp byte [edi + 0xe8], 0
je 0x594ab8
push str.xmlhttp:__www.w3.org_XML_1998_namespace
push edi
call fcn.00594300
add esp, 8
pop edi
add esp, 8
ret
mov al, 1
pop edi
add esp, 8
ret
Function at 0x5a4309
Capabilities:
Write clipboard data

Disassembly:
push ecx
push ecx
push edi
mov edi, ecx
push dword [edi + 0x2b8]
call fcn.005a7890
pop ecx
test al, al
je 0x5a43d4
push ebx
push ebp
push esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov ebp, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push ebp
xor esi, esi
mov ecx, edi
push eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
call fcn.005a43da
mov ebx, dword [sym.imp.USER32.dll_SetClipboardData]
cmp dword [esp + 0x14], esi
je 0x5a4364
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [esp + 0x10]
push 0xd
call ebx
cmp byte [ebp + 0x18], 0
je 0x5a43af
movzx eax, word [edi + 0x866]
push esi
push eax
call ebx
push 1
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x5a43af
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x5a43af
push dword [esp + 0x1c]
mov byte [eax], 2
movzx esi, word [edi + 0x868]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [esp + 0x1c]
push esi
call ebx
xor esi, esi
cmp byte [ebp + 0x19], 0
je 0x5a43cb
movzx eax, word [edi + 0x86a]
push esi
push eax
call ebx
movzx eax, word [edi + 0x86c]
push esi
push eax
call ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
pop ebp
pop ebx
pop edi
pop ecx
pop ecx
ret 4

Function at 0x5a593b
Capabilities:
Log keystrokes via input method manager

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor esi, esi
mov edi, ecx
push esi
push esi
push dword [ebp + 0xc]
push dword [edi + 4]
call sub.IMM32.dll_ImmGetCompositionStringW
mov ebx, eax
cdq
sub eax, edx
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
sar eax, 1
push eax
call fcn.005a3124
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x5a5970
mov eax, dword [esi]
push ebx
push eax
push dword [ebp + 0xc]
push dword [edi + 4]
call sub.IMM32.dll_ImmGetCompositionStringW
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x5a6564
Capabilities:
Log keystrokes via input method manager

Disassembly:
mov eax, 0x696970
call fcn.006783e4
sub esp, 0x60
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
call fcn.005d20c0
mov ecx, dword [edi + 0x2ac]
push eax
mov dword [ebp - 0x1c], eax
call fcn.005c3041
mov edx, dword [edi + 0x2ac]
mov esi, eax
add edx, 4
push esi
push edx
mov ecx, dword [edx]
call dword [ecx + 0x18]
mov edx, dword [edi + 0x2ac]
add edx, 4
mov dword [ebp - 0x14], eax
push esi
push edx
mov ecx, dword [edx]
call dword [ecx + 0x54]
mov ecx, edi
mov esi, eax
call fcn.005a416f
push esi
push dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov ecx, edi
lea eax, [ebp - 0x54]
push eax
call fcn.005d9cbd
and dword [ebp - 4], 0
mov ecx, eax
cmp dword [eax + 0x14], 0x10
jb 0x5a65da
mov ecx, dword [eax]
push dword [ebp - 0x18]
push dword [eax + 0x10]
lea eax, [ebp - 0x3c]
push ecx
push eax
call fcn.005a8874
add esp, 0x10
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 2
call fcn.005a97b4
mov eax, dword [ebp - 0x2c]
mov edi, dword [ebp + 8]
lea edx, [eax + eax]
mov dword [ebp - 0x18], edx
lea esi, [edx + 0x22]
test edi, edi
je 0x5a66ce
cmp dword [ebp - 0x28], 8
lea eax, [ebp - 0x3c]
push edx
cmovae eax, dword [ebp - 0x3c]
lea ecx, [edi + 0x20]
push eax
push ecx
call fcn.0052d690
mov eax, dword [ebp - 0x10]
add esp, 0xc
mov eax, dword [eax + 0x2b8]
push eax
mov dword [ebp - 0x24], eax
call sub.IMM32.dll_ImmGetContext
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 3
test eax, eax
jne 0x5a664d
xor esi, esi
jmp 0x5a66ce
push 8
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x24]
call fcn.005a593b
lea ecx, [ebp - 0x6c]
mov esi, dword [eax + 0x10]
call fcn.005a97da
push 0
push 0
push 0x80
push dword [ebp - 0x20]
call sub.IMM32.dll_ImmGetCompositionStringW
neg eax
push eax
mov eax, dword [ebp - 0x10]
push dword [ebp - 0x1c]
mov ecx, dword [eax + 0x2ac]
call fcn.005c16e2
push eax
mov eax, dword [ebp - 0x10]
push dword [ebp - 0x14]
mov ecx, dword [eax + 0x2ac]
call fcn.005bf974
mov ecx, dword [ebp - 0x2c]
push dword [ebp - 0x20]
and dword [edi + 4], 0
push dword [ebp - 0x24]
mov dword [edi + 0x10], esi
mov dword [edi + 0x18], esi
mov esi, dword [ebp - 0x18]
mov dword [edi + 8], ecx
add esi, 0x22
lea ecx, [eax + eax]
mov dword [edi + 0xc], 0x20
mov dword [edi + 0x14], ecx
mov dword [edi + 0x1c], ecx
call sub.IMM32.dll_ImmReleaseContext
lea ecx, [ebp - 0x3c]
call fcn.005a97da
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x5a6cb4
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
push ecx
mov eax, dword [esp + 0xc]
push ebx
push ebp
push esi
push edi
mov edi, ecx
sub eax, 0x100
je 0x5a6dc7
sub eax, 1
je 0x5a6db8
sub eax, 1
je 0x5a6d2b
dec eax
sub eax, 1
je 0x5a6dc7
sub eax, 5
jne 0x5a6e56
cmp dword [esp + 0x20], 0xffff
je 0x5a6d23
cmp byte [edi + 0x818], al
jne 0x5a6d23
lea esi, [esp + 0x10]
xor ebx, ebx
mov eax, esi
mov dword [esp + 0x10], ebx
push eax
push dword [esp + 0x24]
mov word [esp + 0x1c], bx
call fcn.005cb56e
pop ecx
pop ecx
push ebx
push eax
push esi
jmp 0x5a6dac
xor eax, eax
inc eax
jmp 0x5a6e58
mov esi, dword [esp + 0x20]
cmp esi, 0x80
jae 0x5a6d4f
push esi
call fcn.0067fca0
pop ecx
test eax, eax
je 0x5a6d4f
cmp byte [edi + 0x818], 0
jne 0x5a6e56
xor ebx, ebx
mov word [esp + 0x10], si
mov dword [esp + 0x12], ebx
xor ecx, ecx
mov edx, dword [esp + 0x10]
mov ebp, 0x3ff
inc ecx
lea eax, [edx + 0x2800]
cmp ax, bp
ja 0x5a6d7d
mov word [edi + 0x81a], si
jmp 0x5a6e56
lea eax, [edx + 0x2400]
cmp ax, bp
ja 0x5a6da5
mov ax, word [edi + 0x81a]
mov word [esp + 0x10], ax
xor eax, eax
push 2
mov word [esp + 0x16], si
mov word [edi + 0x81a], ax
pop ecx
push ebx
lea eax, [esp + 0x14]
push ecx
push eax
mov ecx, edi
call fcn.005a37cc
jmp 0x5a6e56
push dword [esp + 0x24]
push dword [esp + 0x24]
push 0x101
jmp 0x5a6e05
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
lea ebp, [edi + 0x818]
push 0x12
mov byte [ebp], 0
call esi
mov ebx, dword [esp + 0x20]
cwde
shr eax, 0x1f
mov dword [esp + 0x10], eax
test al, al
je 0x5a6e13
push dword [esp + 0x24]
push ebx
call fcn.005a6f8b
add esp, 8
test al, al
je 0x5a6e13
push dword [esp + 0x24]
push ebx
push dword [esp + 0x24]
push dword [edi + 0x2b8]
call dword [sym.imp.USER32.dll_DefWindowProcW]
jmp 0x5a6e58
push 0x11
call esi
movsx esi, ax
push 0x10
shr esi, 0x1f
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
mov eax, dword [esp + 0x10]
movzx eax, al
shr ecx, 0x1f
shl eax, 2
or ecx, eax
lea eax, [esi + esi]
or ecx, eax
push ebp
push ecx
push ebx
call fcn.005a6e61
pop ecx
push eax
mov ecx, edi
call fcn.005d5f2a
test eax, eax
jne 0x5a6e56
cmp byte [ebp], al
je 0x5a6dfc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 0xc

Function at 0x5a7600
Capabilities:
Log keystrokes via polling

Disassembly:
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
mov edx, dword [esp + 4]
mov ecx, edx
cwde
shr eax, 0x1f
add eax, eax
shr ecx, 3
and ecx, 1
shr edx, 2
or eax, ecx
and edx, 1
add eax, eax
or eax, edx
ret

Function at 0x5a7890
Capabilities:
Open clipboard

Disassembly:
push esi
xor esi, esi
test esi, esi
jle 0x5a78a6
xor eax, eax
lea ecx, [esi - 1]
inc eax
shl eax, cl
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [esp + 8]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x5a78be
inc esi
cmp esi, 8
jl 0x5a7893
xor al, al
pop esi
ret
mov al, 1
pop esi
ret
Function at 0x5a7a55
Capabilities:
Read clipboard data

Disassembly:
mov eax, 0x696a85
call fcn.006783e4
sub esp, 0x30
push ebx
push esi
mov esi, ecx
push edi
push dword [esi + 0x2b8]
call fcn.005a7890
pop ecx
test al, al
je 0x5a7bdf
mov eax, dword [esi + 0x2ac]
xor ecx, ecx
inc ecx
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x20], cl
mov dword [ebp - 0x24], eax
lea ecx, [eax + 0x10]
call fcn.005b38d3
xor ebx, ebx
mov ecx, esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
call fcn.005daac0
mov edi, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test al, al
je 0x5a7acd
movzx eax, word [esi + 0x86a]
push eax
call edi
test eax, eax
jne 0x5a7aca
movzx eax, word [esi + 0x86c]
push eax
call edi
test eax, eax
je 0x5a7acd
push 2
pop ebx
cmp dword [esi + 0x53c], 1
mov ecx, esi
sete al
movzx eax, al
push eax
call fcn.005d190d
movzx eax, word [esi + 0x866]
push eax
call edi
test eax, eax
setne byte [ebp - 0xd]
test eax, eax
jne 0x5a7b3f
movzx eax, word [esi + 0x868]
push eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
test edi, edi
je 0x5a7b3f
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x5a7b3f
push edi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
xor ecx, ecx
inc ecx
cmp eax, ecx
jne 0x5a7b33
mov eax, dword [ebp - 0x14]
cmp byte [eax], 2
jne 0x5a7b33
mov byte [ebp - 0xd], cl
jmp 0x5a7b38
xor eax, eax
mov byte [ebp - 0xd], al
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp byte [ebp - 0xd], 0
push 1
pop eax
push 0xd
cmovne ebx, eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
test edi, edi
je 0x5a7bc0
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, eax
test ecx, ecx
je 0x5a7bc0
push ecx
push ecx
mov edx, esp
lea eax, [ecx + 2]
mov dword [ebp - 0x14], eax
mov dword [edx], ecx
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x18]
jne 0x5a7b70
sub ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x3c]
sar ecx, 1
mov dword [edx + 4], ecx
mov ecx, esi
push eax
call fcn.005a4f82
xor eax, eax
mov ecx, esi
inc eax
cmp dword [ebp - 0x28], 0x10
mov byte [ebp - 4], al
lea eax, [ebp - 0x3c]
cmovae eax, dword [ebp - 0x3c]
push ebx
push dword [ebp - 0x2c]
push eax
call fcn.005d5411
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
xor eax, eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], al
call fcn.005a97b4
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x30]
mov ecx, dword [ebp - 0x1c]
add ecx, 0x10
mov dword [ebp - 4], 2
call fcn.005b3d19
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret