joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10813a30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x1096fe7c
call fcn.1095080b
mov edi, ecx
mov dword [ebp - 0x24], edi
mov ebx, dword [edi + 0x8c]
mov esi, dword [edi + 0x88]
mov dword [ebp - 0x18], ebx
call fcn.10828c3c
cmp dword [edi + 0x84], 0
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x20], eax
je 0x10813a8f
call fcn.10828c3c
push 5
push dword [edi + 0x84]
mov ebx, dword [eax + 0xc]
push ebx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x10813aa3
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, dword [ebp - 0x18]
mov esi, eax
test esi, esi
je 0x10813a9f
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 0x18], eax
test ebx, ebx
jne 0x10813aab
or eax, 0xffffffff
jmp 0x10813bfd
mov ecx, edi
call fcn.1081403a
mov ebx, eax
mov dword [ebp - 0x2c], ebx
call fcn.10815428
xor esi, esi
and dword [ebp - 0x1c], esi
and dword [ebp - 0x28], esi
mov dword [ebp - 0x14], esi
test ebx, ebx
je 0x10813b37
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp ebx, eax
je 0x10813b37
push ebx
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x10813b37
push esi
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x14], 1
call fcn.10813568
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x10813b34
mov ecx, dword [esi]
mov esi, dword [ecx + 0x150]
mov ecx, esi
call dword [fcn.1097f954]
mov ecx, dword [ebp - 0x1c]
call esi
test eax, eax
je 0x10813b34
mov esi, dword [ebp - 0x1c]
mov ecx, esi
call fcn.1081c587
test eax, eax
je 0x10813b34
push 0
mov ecx, esi
call fcn.1081c35a
mov dword [ebp - 0x28], 1
mov esi, dword [ebp - 0x14]
and dword [ebp - 4], 0
push edi
call fcn.108150ab
push ebx
call fcn.1081684f
push dword [ebp - 0x20]
mov ecx, edi
push eax
push dword [ebp - 0x18]
call fcn.108139d3
test eax, eax
jne 0x10813b80
cmp dword [edi + 0x9c], eax
jne 0x10813b80
call fcn.10828c3c
push ebx
mov eax, dword [eax + 8]
mov dword [ebp - 0x20], eax
call fcn.1081684f
push dword [ebp - 0x20]
mov ecx, edi
push eax
push dword [ebp - 0x18]
call fcn.108139d3
and dword [edi + 0x9c], 0
jmp 0x10813bab
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x28], 0
je 0x10813bbf
mov ecx, dword [ebp - 0x1c]
push 1
call fcn.1081c35a
test esi, esi
je 0x10813bcc
push 1
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
test ebx, ebx
je 0x10813be2
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [edi + 0x20]
jne 0x10813be2
push ebx
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [edi]
mov esi, dword [eax + 0x60]
mov ecx, esi
call dword [fcn.1097f954]
mov ecx, edi
call esi
mov ecx, edi
call fcn.10813ff1
mov eax, dword [edi + 0x68]
call fcn.10950770
ret
Function at 0x108167e2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor esi, esi
mov ebx, ecx
push edi
cmp dword [ebp + 8], esi
je 0x10816821
call fcn.10828c3c
push 0xf0
push dword [ebp + 8]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x10816821
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10816829
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push esi
mov ecx, ebx
call fcn.10838c2d
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x108175e5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x10817671
cmp dword [esi + 0x20], 0
je 0x10817671
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x10817671
cmp dword [ebp + 8], 0
je 0x10817671
xor edi, edi
mov ebx, edi
call fcn.10828c3c
push 0x10980c20
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 8], eax
test eax, eax
je 0x10817655
mov ebx, dword [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 8]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10817671
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push edi
push ebx
push esi
call fcn.1083bc30
mov edi, eax
add esp, 0xc
test edi, edi
je 0x1081766d
mov ecx, esi
call fcn.10817383
mov eax, edi
jmp 0x10817673
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x1081c4bc
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x1097029c
call fcn.109507a2
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x1081c4e2
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x1081c53c
lea ecx, [ebp - 0x10]
call fcn.1080d400
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call dword [fcn.1097f954]
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.10958a14
push eax
call fcn.1080d530
add esp, 0x14
test esi, esi
je 0x1081c52f
push esi
call fcn.10958059
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.1080a000
mov eax, ebx
call fcn.10950770
ret 8
Function at 0x1081fa6b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 4], ebx
test byte [edi + 4], 1
mov esi, dword [edi + 0xc]
jne 0x1081fac1
push 5
push esi
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x1081fa9a
call fcn.1081d779
push esi
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x1081faaf
call fcn.1081d779
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x1081fac1
call fcn.1081d779
call fcn.10828c3c
cmp dword [eax + 0x3c], 0
je 0x1081fad6
push esi
mov ecx, ebx
call fcn.1081f191
mov esi, eax
push dword [ebp + 0xc]
push esi
call fcn.1081fcbc
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x1081faff
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x1081fb0b
mov esi, ebx
mov dword [eax + 0x88], ebx
or dword [edi + 4], 1
mov dword [edi + 0xc], esi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x10839ff5
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0x10
mov eax, 0x109718f4
call fcn.1095080b
mov ebx, ecx
mov dword [ebp - 0x18], ebx
lea eax, [ebx + 0x1c]
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [ebp + 8]
test edi, edi
jle 0x1083a0ec
cmp edi, dword [ebx + 0xc]
jge 0x1083a0ec
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x1083a04c
cmp edi, dword [esi + 8]
jl 0x1083a0da
cmp dword [ebp + 0xc], 0
je 0x1083a0da
xor edi, edi
jmp 0x1083a07e
xor edi, edi
push 0x10
mov dword [ebp - 4], edi
call fcn.10839bff
mov esi, eax
test esi, esi
je 0x1083a066
mov dword [esi], vtable.CThreadData.0
jmp 0x1083a068
mov esi, edi
or dword [ebp - 4], 0xffffffff
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x14]
mov dword [esi + eax], ecx
mov dword [ebx + 0x14], esi
push 4
push dword [ebx + 0xc]
call fcn.1082845a
cmp dword [esi + 0xc], 0
pop ecx
pop ecx
jne 0x1083a09a
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x1083a0a6
push 2
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov edx, eax
test edx, edx
je 0x1083a113
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], edx
mov eax, dword [ebx + 0xc]
sub eax, ecx
shl eax, 2
push eax
lea eax, [edx + ecx*4]
push edi
push eax
call fcn.10952270
mov eax, dword [ebx + 0xc]
add esp, 0xc
mov dword [esi + 8], eax
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edi, dword [ebp + 8]
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x1083a0ec
cmp edi, dword [esi + 8]
jge 0x1083a0ec
mov eax, dword [ebp + 0xc]
mov dword [ecx + edi*4], eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.10950770
ret 8
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.1081cbe5
int3
Function at 0x1083c656
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x109d3000]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x18], eax
mov eax, dword [0x109d9664]
mov dword [ebp - 0x20], ebx
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x1c], edi
test eax, eax
jne 0x1083c6af
push 0x109801ac
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1083c6d4
push 0x10986c74
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EncodePointer]
mov dword [0x109d9664], eax
jmp 0x1083c6b8
push eax
call dword [sym.imp.KERNEL32.dll_DecodePointer]
mov esi, eax
test esi, esi
je 0x1083c6d4
mov eax, dword [ebp - 0x18]
mov ecx, esi
push eax
push edi
push ebx
push dword [ebp + 8]
call dword [fcn.1097f954]
call esi
jmp 0x1083c816
and dword [ebx], 0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx ebx, ax
lea eax, [ebp - 0x14]
push 7
push eax
push ebx
call fcn.1083cacf
lea eax, [ebp - 0x14]
push eax
call fcn.10958059
mov esi, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push dword [eax]
push edi
call fcn.10958a44
mov eax, dword [ebp - 0x20]
lea edi, [esi + 1]
push 7
and ebx, 0x3ff
inc dword [eax]
lea eax, [ebp - 0x14]
push eax
push ebx
call fcn.1083cacf
lea eax, [ebp - 0x14]
push eax
call fcn.10958059
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
sub ecx, edi
push ecx
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx + edi*2]
push ecx
call fcn.10958a44
mov eax, dword [ebp - 0x20]
add esp, 0x38
add edi, esi
inc dword [eax]
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx ebx, ax
lea eax, [ebp - 0x14]
push 7
push eax
push ebx
call fcn.1083cacf
lea eax, [ebp - 0x14]
push eax
call fcn.10958059
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
sub ecx, edi
push ecx
lea ecx, [eax + edi*2]
push ecx
call fcn.10958a44
mov eax, dword [ebp - 0x20]
add edi, esi
push 7
and ebx, 0x3ff
inc dword [eax]
lea eax, [ebp - 0x14]
push eax
push ebx
call fcn.1083cacf
lea eax, [ebp - 0x14]
push eax
call fcn.10958059
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
sub ecx, edi
push ecx
lea ecx, [eax + edi*2]
push ecx
call fcn.10958a44
mov ebx, dword [ebp - 0x20]
lea eax, [ebp - 0x14]
push 7
push eax
add edi, esi
inc dword [ebx]
push 0x800
call fcn.1083cacf
add esp, 0x44
lea eax, [ebp - 0x14]
push eax
call fcn.10958059
mov esi, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
sub ecx, edi
push ecx
lea ecx, [eax + edi*2]
push ecx
call fcn.10958a44
mov ecx, dword [ebp - 0x1c]
lea eax, [edi + esi]
add esp, 0x10
xor edx, edx
inc dword [ebx]
mov word [ecx + eax*2 + 2], dx
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1094ffff
leave
ret
Function at 0x1083dac6
Capabilities:
Extract resource via kernel32 functions
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x1083dc0c
mov ecx, 0x109d2480
call fcn.10839e4e
mov esi, eax
test esi, esi
je 0x1083dc01
xor eax, eax
cmp word [esi + 8], ax
jne 0x1083dbcb
push 0x109869b4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
je 0x1083db87
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [ebp + 0x10]
mov ecx, 0x3ff
and ax, cx
cmp ax, 0x11
jne 0x1083db4d
push 0x10986fc8
call fcn.1083dc4a
pop ecx
test eax, eax
je 0x1083db4d
mov eax, edi
neg eax
push 0xfc11
sbb eax, eax
and eax, 0xe
add eax, 0x3ee
push eax
push 5
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
jne 0x1083db68
neg edi
push 5
sbb edi, edi
and edi, 0xe
add edi, 0x3ee
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1083db87
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
test eax, eax
je 0x1083db8d
push ebx
push edi
push eax
call fcn.10838ec1
add esp, 0xc
jmp 0x1083db8d
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov eax, dword [edi]
push 2
mov eax, dword [eax - 0xc]
inc eax
push eax
call fcn.1082845a
pop ecx
pop ecx
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, eax
mov dword [esi + 4], ecx
test ecx, ecx
je 0x1083dc06
mov eax, dword [edi]
push eax
mov eax, dword [eax - 0xc]
inc eax
push eax
push ecx
call fcn.1083dcdd
mov ax, word [ebx]
add esp, 0xc
mov word [esi + 8], ax
xor eax, eax
jmp 0x1083dbce
mov ebx, dword [ebp + 0xc]
mov edi, dword [esi + 4]
test edi, edi
je 0x1083dbdc
push edi
call fcn.10958059
pop ecx
mov ecx, dword [ebp + 8]
push eax
push edi
call fcn.1080d990
movzx ecx, word [esi + 8]
mov edx, 0xffff
xor eax, eax
mov word [ebx], cx
pop edi
cmp cx, dx
pop esi
setne al
pop ebx
pop ebp
ret 0xc
call fcn.1081cbcb
call fcn.1081cbe5
int3

Function at 0x1083f653
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.1095a342
pop ecx
test eax, eax
jne 0x1083f695
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x109880d4
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.10824d49
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1083f65b
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
leave
ret
Function at 0x10848ae5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
push edi
test esi, esi
jne 0x10848afe
call fcn.10828c3c
mov esi, dword [eax + 0xc]
push 0x10988448
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x10848b40
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10848b40
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x10848b40
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.10848b49
jmp 0x10848b42
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x10866983
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
mov ecx, dword [ebx + 0xe4]
test ecx, ecx
je 0x10866ae1
push esi
push edi
push 0x10996c50
call fcn.10829bb4
cmp dword [ebp + 8], 0
mov dword [ebp - 0x10], eax
je 0x10866a1c
mov edi, dword [ebx + 0x168]
jmp 0x10866a08
mov esi, dword [edi + 8]
mov edi, dword [edi]
push esi
mov dword [ebp - 8], esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x10866a08
push esi
call fcn.1081684f
push eax
push 0x109d25e8
call fcn.10829b15
mov dword [ebp - 0xc], eax
pop ecx
pop ecx
test eax, eax
je 0x10866a08
mov ecx, dword [eax]
mov esi, dword [ecx + 0x1a0]
mov ecx, esi
call dword [fcn.1097f954]
mov ecx, dword [ebp - 0xc]
call esi
test eax, eax
jle 0x10866a08
push 4
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_ShowWindow]
test edi, edi
jne 0x108669b7
lea ecx, [ebx + 0x164]
call fcn.108243d3
jmp 0x10866adf
mov eax, dword [ebx + 0xcc]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x10866adf
lea eax, [ebx + 0xc8]
lea ecx, [ebp - 0xc]
push ecx
mov ecx, eax
call fcn.10816dcc
mov edi, dword [eax]
test edi, edi
jne 0x10866a48
xor esi, esi
jmp 0x10866a4b
mov esi, dword [edi + 0x20]
push esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x10866acf
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x10866acf
cmp dword [ebp - 0x10], 0
jne 0x10866aa4
push edi
push 0x109d25e8
call fcn.10829b15
mov edi, eax
pop ecx
pop ecx
mov ecx, dword [edi]
mov esi, dword [ecx + 0x1a8]
mov ecx, esi
call dword [fcn.1097f954]
mov ecx, edi
call esi
push eax
push 0x1098b998
call fcn.10829b15
pop ecx
pop ecx
test eax, eax
je 0x10866acf
mov esi, dword [ebp - 4]
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
lea eax, [ebp - 8]
lea esi, [ebx + 0x164]
push eax
mov ecx, esi
call fcn.10865af4
test eax, eax
jne 0x10866acf
lea eax, [ebp - 8]
mov ecx, esi
push eax
call fcn.10863c2a
cmp dword [ebp - 0xc], 0
lea eax, [ebx + 0xc8]
jne 0x10866a33
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x108a6471
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 4], esi
push edi
test ebx, ebx
je 0x108a6510
mov eax, dword [esi + 0x34c]
test eax, eax
je 0x108a650c
mov eax, dword [eax + 0x20]
test eax, eax
je 0x108a650c
cmp dword [ebx], eax
jne 0x108a650c
mov eax, dword [ebx + 4]
sub eax, 1
je 0x108a64e6
sub eax, 1
je 0x108a64b6
sub eax, 1
jne 0x108a650c
mov edi, 0x428e
jmp 0x108a64eb
push 0x11
mov edi, 0x3ea1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x108a64eb
mov eax, dword [esi]
mov esi, dword [eax + 0x340]
mov ecx, esi
call dword [fcn.1097f954]
mov ecx, dword [ebp - 4]
call esi
test eax, eax
je 0x108a64eb
add edi, 3
jmp 0x108a64eb
mov edi, 0x3ea0
push edi
mov ecx, 0x109dae1c
call fcn.1080d5c0
test eax, eax
je 0x108a6510
mov eax, dword [0x109dae1c]
mov dword [ebx + 0xc], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
xor eax, eax
jmp 0x108a6505
call fcn.1081cbcb
int3

Function at 0x108ae300
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
lea eax, [ebp - 4]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x108ae32a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x108ae330
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
pop esi
leave
ret
lea ecx, [esi + 0xc]
call fcn.1080e0d0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.108bc931
int3

Function at 0x108ae60b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
push esi
mov esi, ecx
jne 0x108ae61c
xor eax, eax
jmp 0x108ae638
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x108ae63d
mov eax, dword [ebp - 4]
pop esi
leave
ret 8
lea ecx, [esi + 0xc]
call fcn.1080e0d0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.108bc931
int3

Function at 0x108ae6af
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
push 0
push dword [ebp + 0xc]
mov eax, dword [edi]
push dword [ebp + 8]
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [fcn.1097f954]
mov ecx, edi
call esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x108ae6e2
pop edi
pop esi
pop ebp
ret 8
lea ecx, [edi + 0xc]
call fcn.1080e0d0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.108bc931
int3
Function at 0x108ae7bb
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
test esi, esi
je 0x108ae7e6
push 0
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x108ae7ec
cmp dword [ebp - 4], esi
jne 0x108ae803
pop edi
pop esi
leave
ret 8
lea ecx, [edi + 0xc]
call fcn.1080e0d0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.108bc931
lea ecx, [edi + 0xc]
call fcn.1080e0d0
push eax
push 0xffffffffffffffff
push 0xd
call fcn.108bc587
int3

Function at 0x108b7539
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.1081c402
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x108b7575
call fcn.108b7756
mov dword [esi + 0xc], 1
jmp 0x108b757a
call fcn.108b7756
cmp dword [esi], 0
je 0x108b75c5
push edi
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
mov edi, eax
mov ecx, esi
test edi, edi
jle 0x108b75a0
push edi
call fcn.10816b9c
lea ecx, [edi + 1]
push ecx
jmp 0x108b75af
push 0xff
call fcn.1080dd70
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.10819357
pop edi
jmp 0x108b75e9
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x108b75e9
push dword [esi]
push dword [ebp - 4]
call fcn.10839403
pop esi
leave
ret 0xc

Function at 0x108b76ad
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.108b7756
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x108b76f5
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.10816b9c
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.10819357
jmp 0x108b7700
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.10839403
pop edi
pop esi
pop ebp
ret 0xc