joyce8/EMBER2024-capa huggingface dataset:
Function at 0x275bb85e
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov eax, dword [ebx + 4]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
je 0x275d5fa1
push 0
push eax
mov eax, dword [ebp + 8]
push 0x150
push dword [eax + 0x18]
call edi
mov esi, eax
mov dword [ebp + 0xc], esi
test esi, esi
je 0x275d6083
cmp esi, 0xffffffff
je 0x275d6083
and dword [ebp - 0x24], 0
test byte [ebx], 1
je 0x275bb8cc
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x275d5fb1
cmp dword [ebx + 4], 0xffffffff
je 0x275d5fbd
push dword [ebx + 0xc]
push dword [ebx + 8]
push eax
call fcn.275abb3a
mov ecx, dword [ebx]
test cl, 2
jne 0x275bb8fc
test cl, 4
jne 0x275bb90e
test cl, 8
jne 0x275bb920
test cl, 0x10
jne 0x275bb932
test cl, 0x20
jne 0x275bb943
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x275d5ffa
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 8
cmp dword [esi + 4], 0xffffffff
je 0x275d5fd2
mov eax, dword [esi + 4]
mov dword [ebx + 0x10], eax
jmp 0x275bb8d3
cmp dword [esi + 8], 0xffffffff
je 0x275d5fdb
mov eax, dword [esi + 8]
mov dword [ebx + 0x14], eax
jmp 0x275bb8d8
cmp dword [esi + 0xc], 0xffffffff
je 0x275d5fe4
mov eax, dword [esi + 0xc]
mov dword [ebx + 0x18], eax
jmp 0x275bb8dd
mov eax, dword [esi + 0x10]
cmp eax, 0xffffffff
je 0x275d5fed
mov dword [ebx + 0x1c], eax
jmp 0x275bb8e2
mov eax, dword [esi + 0x14]
mov dword [ebx + 0x20], eax
jmp 0x275bb8e7
mov eax, dword [ebp + 8]
add eax, 0x34
mov dword [ebp + 0xc], eax
mov esi, eax
jmp 0x275bb891
mov dword [ebp - 0x24], 1
jmp 0x275bb8cc
push dword [ebx + 8]
mov eax, dword [ebp + 8]
push dword [ebx + 0xc]
push 0xd
push dword [eax + 0x1c]
call edi
jmp 0x275bb8cc
or dword [ebp - 0x24], 2
jmp 0x275bb906
or dword [ebp - 0x24], 4
jmp 0x275bb918
or dword [ebp - 0x24], 8
jmp 0x275bb92a
or dword [ebp - 0x24], 0x10
and dword [ebx + 0x1c], 0
jmp 0x275bb8e2
push 9
mov esi, ebx
pop ecx
lea edi, [ebp - 0x24]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0xc]
test al, 1
mov ecx, dword [esi + 0x14]
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], ecx
je 0x275d6020
cmp dword [ebp - 0x18], 0
je 0x275d6020
mov eax, dword [ebp - 0x1c]
and byte [eax], 0
lea eax, [ebp - 0x30]
push eax
push 0xfffffce0
push dword [ebp + 8]
call fcn.27582d58
mov eax, dword [ebp - 0x24]
test al, 0x10
je 0x275d603e
mov ecx, dword [ebp - 8]
mov dword [ebx + 0x1c], ecx
test al, 2
je 0x275d6048
mov ecx, dword [ebp - 0x14]
mov dword [ebx + 0x10], ecx
test al, 4
je 0x275d6052
mov ecx, dword [ebp - 0x10]
mov dword [ebx + 0x14], ecx
test al, 8
je 0x275d605c
mov ecx, dword [ebp - 0xc]
mov dword [ebx + 0x18], ecx
test al, 1
je 0x275d6066
mov ecx, dword [ebp - 0x1c]
mov dword [ebx + 8], ecx
test eax, 0x10000000
je 0x275bb8f2
lea eax, [ebp - 0x24]
push eax
push esi
push dword [ebp + 8]
call fcn.275bb252
jmp 0x275bb8f2
xor eax, eax
jmp 0x275bb8f5
Function at 0x275c46c9
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
movzx eax, word [ebp + 8]
and dword [ebp - 4], 0
and dword [ebp - 8], 0
push ebx
mov ebx, ecx
push 2
push eax
mov dword [ebp - 0x18], ebx
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov byte [ebp - 0x1c], al
mov eax, dword [ebx + 0x208]
cmp eax, 1
mov dword [ebp + 8], eax
jle 0x275cd1d4
mov eax, dword [ebx + 0x1c4]
add ebx, 0x1c4
push edi
lea ecx, [ebp - 4]
push esi
push ecx
push ebx
call dword [eax + 0xac]
mov esi, eax
test esi, esi
jl 0x275c47a9
mov eax, dword [ebp - 4]
test eax, eax
je 0x275cd1dc
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x2758aea8
push eax
call dword [ecx]
mov esi, eax
test esi, esi
jl 0x275c47a9
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x14]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov esi, eax
test esi, esi
jl 0x275c47a9
mov eax, dword [ebp - 0x14]
mov edi, dword [eax + 0x4c]
lea esi, [edi + 1]
and dword [ebp - 0x10], 0
jmp 0x275c478a
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x18]
push esi
lea ecx, [eax + 0x1cc]
call fcn.2758afef
push dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
call fcn.275c47da
test eax, eax
jne 0x275cd1e7
inc esi
cmp esi, edi
je 0x275c47a7
cmp esi, dword [ebp + 8]
jle 0x275c4763
cmp edi, 1
je 0x275c47a7
cmp edi, 0xffffffff
je 0x275c47a7
cmp esi, dword [ebp + 8]
jle 0x275c4763
push 1
pop esi
jmp 0x275c4763
xor esi, esi
mov eax, dword [ebp - 4]
test eax, eax
je 0x275c47b6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 8]
test eax, eax
je 0x275c47c3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
test esi, esi
jl 0x275cd215
xor eax, eax
cmp dword [ebp - 0x10], eax
sete al
pop esi
pop edi
pop ebx
leave
ret 4
push 1
pop eax
jmp 0x275c47d5
push 1
or edi, 0xffffffff
pop esi
jmp 0x275c475d
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebx]
mov edx, eax
add eax, 0x58
neg edx
sbb edx, edx
and edx, eax
push edx
push ebx
call dword [ecx + 0xb0]
mov esi, eax
test esi, esi
jl 0x275c47a9
mov dword [ebp - 0x10], 1
jmp 0x275c47a7
mov eax, esi
jmp 0x275c47d3
Function at 0x275fe686
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
push ebx
push esi
push edi
xor esi, esi
push dword [ebp + 0x10]
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call fcn.275ff613
test eax, eax
pop ecx
jne 0x275fe6b2
push esi
push dword [ebp + 0x10]
call fcn.275ff071
pop ecx
pop ecx
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 0x10]
call fcn.275fe63b
pop ecx
test eax, eax
pop ecx
je 0x275fe7cc
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x138]
push 0x27633128
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0xc]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push eax
lea eax, [ebp - 8]
push eax
push esi
push 0x2001f
push esi
push 0x2763394c
lea eax, [ebp - 0x138]
push esi
push eax
push SysReAllocStringLen
call ebx
cmp eax, esi
jne 0x275fe7cc
cmp dword [ebp + 0xc], esi
jne 0x275fe7ed
push dword [ebp + 8]
lea eax, [ebp - 0x138]
push 0x27633134
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push eax
lea eax, [ebp - 0x138]
push eax
push 1
push esi
push esi
push dword [ebp - 8]
call edi
cmp eax, esi
jne 0x275fe7cc
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x2001f
push esi
push 0x27633950
push esi
push 0x27633140
push dword [ebp - 8]
call ebx
cmp eax, esi
jne 0x275fe7cc
lea eax, [ebp - 0x138]
push 0x104
push eax
push dword [0x2762de40]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp eax, esi
je 0x275fe7cc
inc eax
push eax
lea eax, [ebp - 0x138]
push eax
push 1
push esi
push esi
push dword [ebp - 4]
call edi
cmp eax, esi
jne 0x275fe7cc
cmp dword [ebp + 0x14], esi
je 0x275fe802
push 0xa
push str.Apartment
push 1
push esi
push 0x2763315c
push dword [ebp - 4]
call edi
cmp eax, esi
je 0x275fe810
cmp dword [ebp - 8], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x275fe7dc
push dword [ebp - 8]
call edi
cmp dword [ebp - 4], esi
je 0x275fe7e6
push dword [ebp - 4]
call edi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
push dword [ebp + 0xc]
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x275fe731
push str.ThreadingModel
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 8]
call esi
push 1
pop eax
jmp 0x275fe7e8
Function at 0x275ff10f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push esi
lea eax, [ebp - 0xc]
push edi
push eax
push dword [ebp + 0x14]
call fcn.275ff071
pop ecx
test eax, eax
pop ecx
je 0x275ff1c4
cmp dword [ebp - 0xc], 0
je 0x275ff27b
push dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x114]
push ebx
push dword [ebp + 8]
push 0x27633270
push eax
call esi
add esp, 0x14
lea eax, [ebp - 0x114]
mov edi, SysReAllocStringLen
push eax
push edi
call fcn.275ff283
pop ecx
test eax, eax
pop ecx
je 0x275ff1c4
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call fcn.275ff307
add esp, 0x14
test eax, eax
jne 0x275ff1cb
cmp dword [ebp - 8], eax
jne 0x275ff27b
push ebx
lea eax, [ebp - 0x114]
push dword [ebp + 8]
push 0x2763327c
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x114]
push eax
push edi
call fcn.275ff283
pop ecx
test eax, eax
pop ecx
jne 0x275ff27b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
push dword [ebp - 4]
push ebx
push dword [ebp + 8]
call fcn.275ff3c9
add esp, 0xc
lea eax, [ebp - 0x114]
push ebx
push dword [ebp + 8]
push str._s._sCurVer
push eax
call esi
add esp, 0x10
lea eax, [ebp + 0x14]
push eax
push 0xf003f
lea eax, [ebp - 0x114]
push 0
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
xor ecx, ecx
cmp eax, ecx
je 0x275ff272
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0x14]
push eax
push ecx
push 0x2001f
push ecx
push 0x2763398c
lea eax, [ebp - 0x114]
push ecx
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x275ff27b
push dword [ebp - 4]
lea eax, [ebp - 0x114]
push ebx
push dword [ebp + 8]
push 0x27633294
push eax
call esi
add esp, 0x14
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x114]
push eax
push 1
push 0
push 0
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
jmp 0x275ff1c6

Function at 0x275ff283
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
lea eax, [ebp - 4]
push esi
push eax
xor esi, esi
push 0xf003f
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
je 0x275ff2ae
xor eax, eax
pop esi
leave
ret
push esi
push esi
push esi
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0x10c]
mov dword [ebp - 8], 0x104
push eax
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, esi
jne 0x275ff2e7
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 4]
call fcn.275ff283
pop ecx
cmp eax, esi
pop ecx
jne 0x275ff2ae
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
xor ecx, ecx
cmp eax, esi
sete cl
mov eax, ecx
jmp 0x275ff2ab
Function at 0x275ff4a0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x18]
xor esi, esi
push eax
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, esi
jne 0x275ff4f2
push dword [ebp - 4]
lea eax, [ebp - 0x128]
push eax
push dword [ebp - 0x18]
push esi
push esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp eax, esi
mov dword [ebp - 0x10], eax
je 0x275ff4f9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
lea eax, [ebp - 0x24]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
push esi
push esi
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp - 0x128]
mov dword [ebp - 8], esi
push eax
push esi
push dword [ebp + 8]
call ebx
test eax, eax
jne 0x275ff5b1
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0xc]
push eax
push 0xf003f
lea eax, [ebp - 0x128]
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
mov dword [ebp - 0x10], eax
jne 0x275ff5b1
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push 0x2001f
push esi
push 0x27633998
lea eax, [ebp - 0x128]
push esi
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
mov dword [ebp - 0x10], eax
jne 0x275ff5be
push dword [ebp - 0x14]
push dword [ebp - 0xc]
call fcn.275ff4a0
pop ecx
pop ecx
push dword [ebp - 0xc]
call edi
push dword [ebp - 0x14]
call edi
lea eax, [ebp - 0x24]
inc dword [ebp - 8]
push eax
push esi
push esi
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp - 0x128]
push eax
push dword [ebp - 8]
push dword [ebp + 8]
call ebx
test eax, eax
je 0x275ff528
xor eax, eax
cmp dword [ebp - 0x10], esi
sete al
jmp 0x275ff4f4
push dword [ebp - 0xc]
call edi
jmp 0x275ff5b1

Function at 0x275ff5c5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
cmp dword [ebp + 0xc], 0
push edi
mov esi, str.HELP
lea edi, [ebp - 8]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
jne 0x275ff5e3
xor eax, eax
pop edi
pop esi
leave
ret
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov esi, eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add esi, eax
cmp esi, dword [ebp + 0xc]
jae 0x275ff60f
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, esi
jmp 0x275ff5df
Function at 0x27601fd2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push 0x275c91b0
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x2760202d
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x275e49fc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x2760201d
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 4
xor eax, eax
jmp 0x27602028

Function at 0x27603958
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
xor ebx, ebx
cmp edi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
je 0x27603a53
cmp dword [ebp + 0xc], esi
mov dword [ebp + 8], esi
jle 0x276039b8
mov esi, pe_nt_image_headers32
cmp ebx, esi
jge 0x276039b6
lea eax, [ebp - 0xc]
push eax
mov eax, esi
sub eax, ebx
push eax
lea eax, [ebp + ebx - 0x8c]
push eax
push dword [edi]
call fcn.275c2a10
add ebx, dword [ebp - 0xc]
add esp, 0x10
inc dword [ebp + 8]
add edi, 4
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0xc]
jl 0x27603986
xor esi, esi
cmp ebx, esi
jle 0x27603a53
lea eax, [ebx + ebx*2]
shl eax, 2
push eax
push esi
push dword [0x2762de00]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, esi
mov dword [ebp - 8], eax
je 0x27603a53
cmp ebx, esi
mov dword [ebp + 0xc], esi
mov dword [ebp - 4], esi
jle 0x27603a44
mov edi, dword [sym.imp.USER32.dll_VkKeyScanA]
mov esi, eax
mov eax, dword [ebp - 4]
mov al, byte [ebp + eax - 0x8c]
cmp al, 0x41
mov byte [ebp + 8], al
jl 0x27603a7c
cmp al, 0x5a
jg 0x27603a7c
push dword [ebp + 8]
mov byte [esi], 0x11
call edi
and ax, 0xff
inc dword [ebp + 0xc]
mov word [esi + 2], ax
mov word [esi + 4], 1
add esi, 6
mov byte [esi], 0x15
push dword [ebp + 8]
call edi
and ax, 0xff
inc dword [ebp + 0xc]
mov word [esi + 2], ax
mov word [esi + 4], 1
add esi, 6
inc dword [ebp - 4]
cmp dword [ebp - 4], ebx
jl 0x276039ed
xor esi, esi
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_CreateAcceleratorTableA]
mov dword [ebp - 4], eax
cmp dword [ebp - 8], esi
je 0x27603a68
push dword [ebp - 8]
push esi
push dword [0x2762de00]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp + 0x10]
cmp eax, esi
je 0x27603a74
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
push dword [ebp + 8]
mov byte [esi], 0x11
call edi
test ah, 1
je 0x27603a21
or byte [esi], 4
jmp 0x27603a21
Function at 0x2760444a
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
mov eax, dword [ebp + 0xc]
push edi
push ebx
push 0x8000000
push 3
push ebx
push 1
push SysReAllocStringLen
mov dword [eax], ebx
push dword [ebp + 8]
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x27604488
mov eax, 0x80070005
pop edi
pop esi
pop ebx
leave
ret
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
push 2
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov esi, eax
cmp esi, ebx
jne 0x276044d0
mov dword [ebp + 0xc], 0x8007000e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], ebx
je 0x276044c0
push esi
call edi
cmp esi, ebx
je 0x276044cb
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp + 0xc]
jmp 0x27604483
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
lea ecx, [ebp - 0xc]
push ebx
push ecx
mov dword [ebp - 8], eax
push dword [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x276044f8
mov eax, dword [ebp - 4]
cmp dword [ebp - 0xc], eax
je 0x27604501
mov dword [ebp + 0xc], 0x80004005
jmp 0x276044af
push esi
call edi
push dword [ebp + 0xc]
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
cmp eax, ebx
mov dword [ebp + 0xc], eax
jl 0x276044af
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x27604483
Function at 0x27608ae8
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x27630228]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x27608b56
push 0x74
push 1
call fcn.2758d5b0
mov esi, eax
add esp, 8
test esi, esi
je 0x27608b4c
mov ecx, dword [0x27630228]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x27608b4c
push esi
call fcn.2758d641
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
push 0x10
call fcn.2760891f
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
Function at 0x27608cd3
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x27633ef8
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x27608cf7
add eax, 8
inc ebp
cmp eax, 0x27633f88
jb 0x27608ce8
cmp ecx, dword [ebp*8 + 0x27633ef8]
jne 0x27608e9e
mov eax, dword [0x276342e4]
cmp eax, 1
je 0x27608e60
test eax, eax
jne 0x27608d23
cmp dword [0x2762e1cc], 1
je 0x27608e60
cmp ecx, 0xfc
je 0x27608e9e
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x27608d5e
mov ecx, 5
mov esi, 0x275e5f90
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x27608da7
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x275e5f8c
add ebx, ecx
push ebx
call fcn.276090cc
add esp, 0xc
mov ecx, 6
mov esi, 0x275e5f70
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x275e5f6a
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x275e5f44
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x27633efc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.2760903d
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x27630380]
test eax, eax
je 0x27608e71
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x27608e7b
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x27633efc]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x2760bd2c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
push esi
xor esi, esi
test byte [ebx + eax*4 + 0x48], 2
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
jne 0x2760be24
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call edi
test ax, ax
jge 0x2760bd5f
push 2
pop esi
push 0x10
call edi
test ax, ax
jge 0x2760bd6b
or esi, 1
push 0x12
call edi
test ax, ax
jge 0x2760bd77
or esi, 4
push dword [ebp + 8]
mov ecx, ebx
call fcn.2760bd09
mov dword [ebp + 8], eax
lea eax, [ebp - 0x18]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
mov word [ebp - 0x3c], si
lea esi, [ebp - 0x18]
lea edi, [ebp - 0x3a]
mov eax, dword [ebx + 0x20]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
test byte [ebx + 0xc], 1
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x26], eax
mov eax, dword [ebx + 0x24]
mov dword [ebp - 0x2a], edi
mov dword [ebp - 0x22], eax
je 0x2760be2a
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
mov dword [ebp - 0x1e], eax
lea eax, [ebp - 0x48]
push eax
lea esi, [ebx + 4]
push 0xfffffc7b
push esi
call fcn.27582d58
cmp edi, 2
jne 0x2760be32
mov eax, dword [ebp - 0x1e]
add dword [ebx + 0x24], eax
neg eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push dword [ebx + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x18]
push 2
push eax
push dword [esi]
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
push dword [ebp - 4]
lea eax, [ebp - 0x18]
push dword [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
push dword [esi]
call fcn.27622c77
lea eax, [ebp - 0x18]
push 0
push eax
mov ecx, ebx
call fcn.2760bc10
pop edi
pop esi
pop ebx
leave
ret 4
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
jmp 0x2760bdbd
cmp edi, 1
jne 0x2760be3f
mov eax, dword [ebp - 0x1e]
sub dword [ebx + 0x24], eax
jmp 0x2760bddf
cmp edi, 8
jne 0x2760be51
mov eax, dword [ebp - 0x1e]
add dword [ebx + 0x20], eax
neg eax
mov dword [ebp - 8], eax
jmp 0x2760bde2
cmp edi, 4
jne 0x2760bde2
mov eax, dword [ebp - 0x1e]
sub dword [ebx + 0x20], eax
jmp 0x2760be4c