joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40fee7
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x40ff84
push ebx
push esi
call fcn.0040feb0
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0040fe44
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40ff31
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40ff83
push edi
push eax
call fcn.0040d1d3
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40ff51
call fcn.0040d199
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40ff82
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040fe44
add esp, 0x20
test eax, eax
jne 0x40ff70
push edi
call fcn.0040d199
jmp 0x40ff78
push ebx
call fcn.0040d199
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x412ccd
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0040dc52
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x412d3c
cmp esi, dword [ebp - 4]
je 0x412d37
cmp dword [ebp + 0xc], 0
je 0x412d37
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x412d14
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0041281f
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x412d3e
xor eax, eax
inc eax
jmp 0x412d3e
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x412da3
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x72fd34]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0040dc52
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0040dc52
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x412e1a
cmp word [ecx], dx
je 0x412e1a
mov eax, dword [0x45c31c]
push edi
dec eax
push eax
push 0x45c208
call fcn.00412d42
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x412e8d
cmp word [eax], dx
je 0x412e8d
mov eax, dword [edi]
test eax, eax
je 0x412e3e
cmp word [eax], dx
je 0x412e3e
lea eax, [ebp - 0x10]
push eax
call fcn.00412725
jmp 0x412e47
lea eax, [ebp - 0x10]
push eax
call fcn.004127c0
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x412eb7
mov eax, dword [0x45c204]
push dword [ebp - 0x14]
dec eax
push eax
push 0x45bef8
call fcn.00412d42
add esp, 0xc
test al, al
je 0x412eb7
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x412e82
cmp word [eax], di
je 0x412e82
lea eax, [ebp - 0x10]
push eax
call fcn.00412725
pop ecx
jmp 0x412eb9
lea eax, [ebp - 0x10]
push eax
call fcn.004127c0
jmp 0x412e7f
mov eax, dword [edi]
test eax, eax
je 0x412ea4
cmp word [eax], dx
je 0x412ea4
lea eax, [ebp - 0x10]
push eax
call fcn.004126da
pop ecx
jmp 0x412eb7
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x412f82
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00412bc7
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x412f82
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x412f82
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x412f82
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x412f0f
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0040e5b7
test ebx, ebx
je 0x412f7d
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0040e5b7
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x412f82
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x412f82
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00414ea8
add esp, 0x10
xor eax, eax
inc eax
jmp 0x412f84
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a1a5
leave
ret
Function at 0x416f93
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x730fa0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x416fd3
cmp byte [ebx], 0xa
jne 0x416fd3
or byte [edi + eax + 0x28], 4
jmp 0x416fd8
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x4170d7
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4170ba
inc eax
cmp dl, 0xd
je 0x417004
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x41702a
cmp eax, ecx
jae 0x417038
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x416fec
jmp 0x4170d7
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4170b5
cmp dword [ebp - 0x10], 0
je 0x4170b5
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x730fa0]
test byte [eax + edi + 0x28], 0x48
je 0x41708f
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41707a
mov byte [esi], dl
jmp 0x41708b
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x730fa0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4170d7
cmp byte [ebp - 1], 0xa
jne 0x41709e
cmp esi, ebx
jne 0x41709e
mov byte [esi], 0xa
jmp 0x4170d6
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00416dd0
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4170d7
mov byte [esi], 0xd
jmp 0x4170d6
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x730fa0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4170d4
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4170d7
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4170e0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x730fa0]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x417126
cmp word [ebx], dx
jne 0x417126
or byte [eax + edi + 0x28], 4
jmp 0x41712b
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x41728e
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x41726e
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x41716c
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4171a2
cmp eax, edx
jae 0x4171b0
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x417147
jmp 0x41728e
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x417269
cmp dword [ebp - 0x18], 0
je 0x417269
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x730fa0]
test byte [eax + edi + 0x28], 0x48
je 0x41723f
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x417203
mov word [esi], cx
jmp 0x41723a
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x730fa0]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x730fa0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x730fa0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x41728e
pop eax
cmp word [ebp - 4], ax
jne 0x41724f
cmp esi, ebx
jne 0x41724f
mov word [esi], ax
jmp 0x41728b
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00416dd0
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x41728e
push 0xd
pop eax
jmp 0x41724a
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x730fa0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x417288
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x41728e
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41bb26
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push esi
lea eax, [esp + 8]
xor esi, esi
push eax
push esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
test ebx, ebx
je 0x41bbc1
push edi
push 0x731960
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x7312a4]
test edi, edi
je 0x41bb94
push ebp
push esi
lea ebp, [edi + 8]
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x41bb8d
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
push ebp
push 0x7312a4
call fcn.00436b75
pop ecx
pop ecx
jmp 0x41bb8f
mov edi, dword [edi]
test edi, edi
jne 0x41bb62
pop ebp
mov esi, dword [0x7305d0]
push 0x10
push 0x7312a4
lea eax, [esi + 1]
mov dword [0x7305d0], eax
call fcn.00436bb5
pop ecx
pop ecx
push 0x731960
mov dword [eax], ebx
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
pop ecx
ret 8

Function at 0x41bd04
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x41bd59
push dword [esp + 0x10]
push 0x41bc83
call dword [sym.imp.USER32.dll_EnumWindows]
mov edi, dword [0x7312ac]
test edi, edi
je 0x41bdb2
xor esi, esi
mov ebx, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi + 8], eax
jne 0x41bd51
cmp byte [edi + 0x10], 0
je 0x41bd51
push 3
push esi
push esi
push esi
push esi
push 0xfffffffffffffffe
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edi, ebx
test ebx, ebx
jne 0x41bd2d
jmp 0x41bdb2
mov edi, dword [0x7312ac]
test edi, edi
je 0x41bdb2
xor esi, esi
push ebp
mov ebp, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi + 8], eax
jne 0x41bdab
cmp byte [edi + 0x11], 0
je 0x41bd84
push 1
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [edi + 0x10], 0
je 0x41bd9b
push 3
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
lea eax, [edi + 8]
push eax
push 0x7312ac
call fcn.00436b75
pop ecx
pop ecx
mov edi, ebp
test ebp, ebp
jne 0x41bd66
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x41c450
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x7312bc], 0
jne 0x41c46e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x7312b8], eax
mov dword [0x7312bc], 1
push ebx
push ebp
push esi
push edi
push 0x90
push 0
push dword [0x730840]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push dword [0x7312b8]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, eax
cmp dword [0x7312bc], 0
jne 0x41c4b0
call fcn.0041c450
push dword [0x7312b8]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call ebx
mov edi, eax
test edi, edi
jne 0x41c4d3
call fcn.0041c450
push dword [0x7312b8]
call ebx
mov edi, eax
lea edx, [edi + 8]
mov ebx, 0x11
jmp 0x41c4e0
imul eax, esi, 0x53a9b4fb
lea edx, [edx + 4]
mov ecx, 1
mov esi, 1
sub ecx, eax
imul eax, ecx, 0x53a9b4fb
mov dword [edx + 0x40], ecx
sub esi, eax
mov dword [edx - 4], esi
sub ebx, 1
jne 0x41c4e0
mov dword [edi], ebx
lea ebp, [ebx + 0x1f]
mov dword [edi + 4], 0xa
mov esi, 0xa
lea esp, [esp]
mov ecx, dword [edi + ebx*4 + 8]
mov eax, dword [edi + ebx*4 + 0x4c]
mov edx, dword [edi + esi*4 + 8]
ror eax, 0xd
add eax, dword [edi + esi*4 + 0x4c]
dec esi
ror ecx, 5
add ecx, edx
mov dword [edi + ebx*4 + 8], eax
mov dword [edi + ebx*4 + 0x4c], ecx
add ebx, 0xffffffff
jns 0x41c54b
mov ebx, 0x10
test esi, esi
jns 0x41c554
mov esi, 0x10
mov dword [edi], ebx
mov dword [edi + 4], esi
sub ebp, 1
jne 0x41c520
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x41c570
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x7312bc], 0
jne 0x41c57e
call fcn.0041c450
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x7312b8]
call esi
mov edx, eax
test edx, edx
jne 0x41c5a5
call fcn.0041c450
push dword [0x7312b8]
call esi
mov edx, eax
mov ebx, dword [edx]
mov esi, dword [edx + 4]
mov ebp, dword [esp + 0x14]
inc ebp
mov edi, dword [edx + ebx*4 + 0x4c]
mov eax, dword [edx + ebx*4 + 8]
mov ecx, dword [edx + esi*4 + 8]
ror edi, 0xd
add edi, dword [edx + esi*4 + 0x4c]
dec esi
ror eax, 5
add eax, ecx
mov dword [edx + ebx*4 + 8], edi
mov dword [edx + ebx*4 + 0x4c], eax
sub ebx, 1
jns 0x41c5da
mov ebx, 0x10
test esi, esi
jns 0x41c5e3
mov esi, 0x10
mov dword [edx], ebx
mov eax, edi
mov dword [edx + 4], esi
test ebp, ebp
je 0x41c5f2
mul ebp
mov eax, edx
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x41d11f
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
push ebp
push esi
push edi
push 1
call ebx
movzx esi, ax
push 2
shr esi, 0xf
call ebx
mov edi, esi
or edi, 2
bt ax, 0xf
push 4
cmovae edi, esi
call ebx
mov cx, ax
mov eax, edi
or eax, 4
bt cx, 0xf
cmovae eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x41d6dc
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x2c]
lea eax, [esp + 0x18]
push eax
xor ebx, ebx
mov dword [esp + 0x14], ebx
push dword [edi]
call dword [sym.imp.USER32.dll_GetClientRect]
mov esi, dword [esp + 0x30]
test esi, esi
jne 0x41d714
push dword [edi]
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
mov dword [esp + 0x10], 1
push dword [edi]
push esi
call fcn.00421797
test byte [edi + 0x14], 8
mov dword [esp + 0x14], eax
je 0x41d805
call dword [sym.imp.USER32.dll_GetFocus]
cmp dword [edi], eax
jne 0x41d805
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x24]
sub ebp, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
test eax, eax
jle 0x41d833
test ebp, ebp
jle 0x41d833
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, eax
test ebx, ebx
je 0x41d833
push ebp
push dword [esp + 0x30]
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [esp + 0x30], eax
test eax, eax
je 0x41d7fc
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [edi + 0x10], 0
je 0x41d7a6
push 4
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push dword [edi + 0x10]
push eax
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawStateW]
jmp 0x41d7bb
push 0
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_FillRect]
push 2
pop eax
add dword [esp + 0x18], eax
add dword [esp + 0x1c], eax
sub dword [esp + 0x20], eax
sub dword [esp + 0x24], eax
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawFocusRect]
push 0xcc0020
xor eax, eax
push eax
push eax
push ebx
push ebp
push dword [esp + 0x40]
push eax
push eax
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [esp + 0x30]
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
jmp 0x41d833
cmp dword [edi + 0x10], ebx
je 0x41d81f
push 4
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [edi + 0x10]
push ebx
push ebx
push esi
call dword [sym.imp.USER32.dll_DrawStateW]
jmp 0x41d833
push ebx
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.USER32.dll_FillRect]
push dword [esp + 0x14]
push esi
call fcn.00421775
cmp dword [esp + 0x10], 0
je 0x41d84d
push esi
push dword [edi]
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x41d855
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.USER32.dll_GetMessagePos]
mov edi, dword [esp + 0x20]
mov esi, eax
push 0xfffffffffffffff4
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [edi]
mov dword [esp + 0x14], eax
call fcn.0042167c
push eax
call fcn.00422b16
push dword [0x7312f4]
mov dword [esp + 0x24], eax
call fcn.004365d8
mov ebp, eax
movsx ecx, si
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ecx
push eax
push dword [edi]
shr esi, 0x10
movsx ecx, si
mov dword [esp + 0x20], ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
call edi
movzx esi, ax
push 0x12
shr esi, 0xf
call edi
mov ebx, esi
or ebx, 2
bt ax, 0xf
push 0x11
cmovae ebx, esi
call edi
mov ecx, 0x8000
and ax, cx
movzx esi, ax
mov eax, dword [esp + 0x14]
mov dword [ebp], eax
mov eax, dword [esp + 0x18]
mov dword [ebp + 4], eax
call fcn.0041d11f
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x28]
mov dword [ebp + 0xc], eax
mov eax, ebx
push 0x41d940
push ebp
push dword [esp + 0x2c]
or eax, 4
test si, si
push dword [esp + 0x2c]
cmove eax, ebx
push dword [esp + 0x20]
mov dword [ebp + 0x10], eax
mov eax, dword [esp + 0x40]
mov dword [ebp + 0x14], eax
movzx eax, word [esp + 0x44]
push 0x332c
mov dword [ebp + 0x18], eax
call fcn.00424ed9
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x420fcf
Capabilities:
Check os version

Disassembly:
sub esp, 0x114
push ebx
push ebp
push esi
push edi
push dword [0x7319e0]
call fcn.00436340
xor ebx, ebx
mov esi, eax
cmp dword [0x7316ac], ebx
jne 0x4210a1
xor ebp, ebp
inc ebp
mov dword [0x7316ac], ebp
call fcn.004219aa
mov edi, 0xa8
push edi
push ebx
push 0x731600
call fcn.00418220
add esp, 0xc
mov dword [0x731600], 0x13
lea eax, [esp + 0x10]
mov dword [0x731604], edi
mov dword [0x731610], 0x420f1a
mov dword [0x731614], 0x42125f
push eax
mov dword [0x731668], 0x420ef2
mov dword [0x73166c], 0x4211a4
mov dword [0x73160c], 0x420ecd
mov dword [0x731690], 0x420f37
mov dword [0x7316b0], ebp
mov dword [esp + 0x14], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4210a1
cmp dword [esp + 0x20], ebp
je 0x42109b
cmp dword [esp + 0x20], 2
jne 0x4210a1
cmp dword [esp + 0x14], 5
jb 0x42109b
jne 0x4210a1
cmp dword [esp + 0x18], ebx
jne 0x4210a1
mov dword [0x7316b0], ebx
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x138]
push eax
call fcn.00425b58
mov eax, dword [esp + 0x140]
push ebx
push dword [0x73083c]
or eax, 0x50010000
push 0xffffffffffffffff
push dword [esi]
push dword [esp + 0x148]
push dword [esp + 0x148]
push dword [esp + 0x148]
push dword [esp + 0x148]
push eax
push ebx
push str.BUTTON
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edi, eax
test edi, edi
je 0x421175
mov ebp, dword [esp + 0x128]
push ebp
push dword [0x7319e4]
call fcn.004364f1
mov esi, dword [esp + 0x13c]
mov ebx, eax
mov dword [ebx + 0x10], esi
test esi, esi
je 0x421146
push esi
call fcn.0042fb7c
test eax, eax
je 0x421146
push 0
push 0
push esi
call fcn.0042f7dd
jmp 0x421148
xor eax, eax
push 0x420c24
push 0xfffffffffffffffc
mov dword [ebx + 0x18], eax
and dword [ebx + 0x14], 0
and dword [ebx + 0x1c], 0
push edi
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x731600
push edi
push ebx
push ebp
mov dword [0x7316a8], eax
call fcn.004216ab
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret 0x1c
Function at 0x423c08
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
xor edi, edi
call dword [sym.imp.USER32.dll_GetFocus]
mov ebp, dword [esp + 0x3c]
mov ebx, eax
and dword [esp + 0x10], edi
push str.PB_WindowID
push ebp
call dword [sym.imp.USER32.dll_GetPropW]
mov esi, eax
push 9
pop eax
test esi, esi
je 0x423c9e
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x423c9b
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x423c9b
lea eax, [esi - 1]
push eax
push dword [0x731a00]
call fcn.004364b2
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x423c9d
mov ecx, dword [edi + 4]
add ecx, 4
pop esi
cmp word [ecx - 2], si
jne 0x423c8b
mov edx, 0xfa01
cmp word [ecx], dx
je 0x423c96
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x423c7b
jmp 0x423c9b
and dword [esp + 0x10], 0
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x423d44
push eax
call esi
test al, al
jns 0x423d44
push 0x11
call esi
test al, al
js 0x423d44
push 0x10
call esi
test al, al
js 0x423d44
push 0x12
call esi
test al, al
js 0x423d44
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x423d44
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call fcn.004117f4
add esp, 0xc
test eax, eax
je 0x423d18
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call fcn.004117f4
add esp, 0xc
test eax, eax
jne 0x423d2f
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x423d85
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call fcn.0044aed8
pop ecx
pop ecx
test eax, eax
je 0x423d85
test ebp, ebp
je 0x423d68
push 0x11
call esi
test al, al
js 0x423d60
push 0x10
call esi
test al, al
js 0x423d60
push 0x12
call esi
test al, al
jns 0x423d68
push 1
push ebp
call fcn.00423d91
test ebx, ebx
je 0x423d7c
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x423d85
test edi, edi
je 0x423d85
mov eax, dword [edi + 8]
jmp 0x423d87
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4