joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41dc89
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 + 0x52ab88]
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 0x41dcc9
cmp byte [ebx], 0xa
jne 0x41dcc9
or byte [edi + eax + 0x28], 4
jmp 0x41dcce
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 0x41ddcd
mov dl, byte [eax]
cmp dl, 0x1a
je 0x41ddb0
inc eax
cmp dl, 0xd
je 0x41dcfa
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x41dd20
cmp eax, ecx
jae 0x41dd2e
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 0x41dce2
jmp 0x41ddcd
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 0x41ddab
cmp dword [ebp - 0x10], 0
je 0x41ddab
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x52ab88]
test byte [eax + edi + 0x28], 0x48
je 0x41dd85
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41dd70
mov byte [esi], dl
jmp 0x41dd81
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x52ab88]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41ddcd
cmp byte [ebp - 1], 0xa
jne 0x41dd94
cmp esi, ebx
jne 0x41dd94
mov byte [esi], 0xa
jmp 0x41ddcc
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041ed82
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41ddcd
mov byte [esi], 0xd
jmp 0x41ddcc
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x52ab88]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41ddca
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41ddcd
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41ddd6
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 + 0x52ab88]
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 0x41de1c
cmp word [ebx], dx
jne 0x41de1c
or byte [eax + edi + 0x28], 4
jmp 0x41de21
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 0x41df84
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 0x41df64
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x41de62
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41de98
cmp eax, edx
jae 0x41dea6
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 0x41de3d
jmp 0x41df84
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 0x41df5f
cmp dword [ebp - 0x18], 0
je 0x41df5f
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x52ab88]
test byte [eax + edi + 0x28], 0x48
je 0x41df35
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 0x41def9
mov word [esi], cx
jmp 0x41df30
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x52ab88]
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 + 0x52ab88]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x52ab88]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x41df84
pop eax
cmp word [ebp - 4], ax
jne 0x41df45
cmp esi, ebx
jne 0x41df45
mov word [esi], ax
jmp 0x41df81
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041ed82
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x41df84
push 0xd
pop eax
jmp 0x41df40
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x52ab88]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x41df7e
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x41df84
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 0x42c5e0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [0x52b320], 0
jne 0x42c68d
push 0x52af40
push 0
mov dword [0x52b320], 1
mov dword [0x52d74c], 0x40
call fcn.0047ad60
add esp, 8
test eax, eax
jne 0x42c68d
push fcn.0042c540
push 0x40
push 0x68
call fcn.0043ee53
mov dword [0x52af38], eax
imul eax, dword [0x52d74c], 0x368
push eax
push 8
push dword [0x529ae8]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0x52af40
mov dword [0x52d750], eax
call fcn.0047ad50
push eax
mov dword [0x52d748], eax
call fcn.00479250
add esp, 8
lea eax, [esp]
push eax
push 0
push 0
push 0x42c930
push 0x2000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x42c683
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x52af3c], 1
mov eax, dword [0x52af38]
pop ecx
ret

Function at 0x42cea0
Capabilities:
Get file size
Read file on windows

Disassembly:
push esi
xor esi, esi
cmp dword [0x52af3c], esi
je 0x42cf38
push edi
push esi
push pe_nt_image_headers32
push 3
push esi
push 1
push 0x80000000
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
test edi, edi
je 0x42cf31
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
push ebp
push esi
push dword [0x529ae8]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x42cf21
push esi
lea eax, [esp + 0x1c]
push eax
push ebp
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x18], ebp
jne 0x42cf12
push ebp
push ebx
push dword [esp + 0x1c]
call fcn.0042d2d0
mov esi, eax
push ebx
push 0
push dword [0x529ae8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop ebx
pop edi
mov eax, esi
pop esi
ret 8
pop edi
mov eax, esi
pop esi
ret 8
mov eax, esi
pop esi
ret 8

Function at 0x42d1a0
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
call fcn.0046f590
mov ebx, dword [esp + 0xc]
lea eax, [esp + 4]
push ebx
push eax
mov dword [esp + 0xc], 0x526bb0
call fcn.0046f640
add esp, 8
test eax, eax
jne 0x42d26a
push esi
push edi
push 0x20000
mov dword [ebx + 0x4c], eax
mov dword [ebx + 0x48], eax
call fcn.004b05b0
push 0x20000
mov dword [ebx + 0x38], eax
call fcn.004b05b0
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
mov dword [ebx + 0x3c], eax
mov eax, dword [esp + 0x20]
push esi
mov dword [ebx + 0x54], eax
mov eax, dword [esp + 0x28]
push 0x20000
push dword [ebx + 0x38]
mov dword [ebx + 0x58], eax
mov eax, dword [esp + 0x34]
mov dword [ebx + 0x50], 1
mov dword [ebx + 0x5c], eax
mov dword [ebx + 0x64], edi
mov dword [ebx + 0x68], esi
call edi
push esi
push 0x20000
push dword [ebx + 0x3c]
mov dword [ebx + 0x40], eax
call edi
add esp, 0x20
mov dword [ebx + 0x44], eax
lea eax, [esp + 0x14]
push eax
push 0
push ebx
push 0x42d270
push 0x2000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop esi
test eax, eax
je 0x42d26a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x60], 1
mov eax, 1
pop ebx
pop ecx
ret
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x42daf0
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x42db45
push dword [esp + 0x10]
push 0x42da6f
call dword [sym.imp.USER32.dll_EnumWindows]
mov edi, dword [0x52b540]
test edi, edi
je 0x42db9e
xor esi, esi
mov ebx, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi + 8], eax
jne 0x42db3d
cmp byte [edi + 0x10], 0
je 0x42db3d
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 0x42db19
jmp 0x42db9e
mov edi, dword [0x52b540]
test edi, edi
je 0x42db9e
xor esi, esi
push ebp
mov ebp, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi + 8], eax
jne 0x42db97
cmp byte [edi + 0x11], 0
je 0x42db70
push 1
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [edi + 0x10], 0
je 0x42db87
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 0x52b540
call fcn.0043f541
pop ecx
pop ecx
mov edi, ebp
test ebp, ebp
jne 0x42db52
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x42eaa0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x52b548], 0
jne 0x42eabe
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x52b544], eax
mov dword [0x52b548], 1
push ebx
push ebp
push esi
push edi
push 0x90
push 0
push dword [0x529ae8]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push dword [0x52b544]
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 [0x52b548], 0
jne 0x42eb00
call fcn.0042eaa0
push dword [0x52b544]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call ebx
mov edi, eax
test edi, edi
jne 0x42eb23
call fcn.0042eaa0
push dword [0x52b544]
call ebx
mov edi, eax
lea edx, [edi + 8]
mov ebx, 0x11
nop dword [eax + eax]
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 0x42eb30
xor esi, esi
mov dword [edi], ebx
mov dword [edi + 4], 0xa
mov ebx, 0xa
lea ebp, [esi + 0x1f]
nop dword [eax + eax]
mov ecx, dword [edi + esi*4 + 8]
mov eax, dword [edi + esi*4 + 0x4c]
mov edx, dword [edi + ebx*4 + 8]
ror eax, 0xd
add eax, dword [edi + ebx*4 + 0x4c]
ror ecx, 5
add ecx, edx
mov dword [edi + esi*4 + 8], eax
mov dword [edi + esi*4 + 0x4c], ecx
mov eax, 0x10
add esi, 0xffffffff
cmovs esi, eax
add ebx, 0xffffffff
mov dword [edi], esi
cmovs ebx, eax
mov dword [edi + 4], ebx
sub ebp, 1
jne 0x42eb70
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x42ebb0
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
mov ebx, edi
cmp dword [esp + 0x10], edi
cmovbe ebx, dword [esp + 0x10]
sub edi, ebx
mov dword [esp + 0x10], ebx
cmp dword [0x52b548], 0
jne 0x42ebd5
call fcn.0042eaa0
push ebp
push esi
push dword [0x52b544]
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call esi
mov ebp, eax
test ebp, ebp
jne 0x42ebfa
call fcn.0042eaa0
push dword [0x52b544]
call esi
mov ebp, eax
mov esi, dword [ebp]
mov edx, dword [ebp + 4]
mov eax, dword [ebp + esi*4 + 0x4c]
mov ecx, dword [ebp + edx*4 + 8]
ror eax, 0xd
add eax, dword [ebp + edx*4 + 0x4c]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + esi*4 + 8]
mov ebx, dword [esp + 0x14]
ror eax, 5
add eax, ecx
mov dword [ebp + esi*4 + 8], ebx
mov ebx, dword [esp + 0x18]
mov dword [ebp + esi*4 + 0x4c], eax
sub esi, 1
mov eax, 0x10
cmovs esi, eax
sub edx, 1
mov dword [ebp], esi
cmovs edx, eax
mov eax, dword [esp + 0x14]
mov dword [ebp + 4], edx
pop esi
pop ebp
add edi, 1
je 0x42ec58
mul edi
pop edi
lea eax, [ebx + edx]
pop ebx
ret 8
pop edi
add eax, ebx
pop ebx
ret 8
Function at 0x42ec60
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x52b548], 0
jne 0x42ec6e
call fcn.0042eaa0
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x52b544]
call esi
mov edi, eax
test edi, edi
jne 0x42ec95
call fcn.0042eaa0
push dword [0x52b544]
call esi
mov edi, eax
mov esi, dword [edi]
mov edx, dword [edi + 4]
mov ebp, dword [esp + 0x14]
mov ebx, dword [edi + esi*4 + 0x4c]
mov eax, dword [edi + esi*4 + 8]
mov ecx, dword [edi + edx*4 + 8]
ror eax, 5
ror ebx, 0xd
add eax, ecx
add ebx, dword [edi + edx*4 + 0x4c]
mov dword [edi + esi*4 + 0x4c], eax
mov eax, 0x10
mov dword [edi + esi*4 + 8], ebx
sub esi, 1
cmovs esi, eax
sub edx, 1
mov dword [edi], esi
cmovs edx, eax
mov eax, ebx
mov dword [edi + 4], edx
add ebp, 1
je 0x42ecdf
mul ebp
mov eax, edx
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x42f51c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x52d920]
call fcn.0043ed81
mov ebx, eax
test ebx, ebx
je 0x42f580
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x42f545
push dword [esp + 0xc]
push ebx
call eax
jmp 0x42f580
push esi
push edi
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
push dword [esp + 0x14]
mov edi, eax
push edi
call fcn.0043f8c0
mov esi, eax
lea ecx, [edi + 1]
push ecx
xor eax, eax
push esi
mov word [esi], ax
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push esi
call fcn.004146fc
pop ecx
sub edi, eax
push edi
call fcn.0043f950
pop edi
pop esi
pop ebx
ret 8

Function at 0x431570
Capabilities:
Get graphical window text

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push edi
xor edi, edi
push edi
push edi
push 0x147
push dword [ebp]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, eax
or eax, 0xffffffff
cmp ebx, eax
je 0x4315ff
push 0xfffffffffffffff0
push dword [ebp]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test al, 1
jne 0x4315ff
push esi
push dword [ebp]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
lea ecx, [esi*2 + 2]
push ecx
push edi
push dword [0x529ae8]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
lea ecx, [esi + 1]
push ecx
xor eax, eax
push edi
mov word [edi], ax
push dword [ebp]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push edi
or esi, 0xffffffff
push esi
push 0x158
push dword [ebp]
call dword [sym.imp.USER32.dll_SendMessageW]
push edi
push 0
push dword [0x529ae8]
cmp eax, esi
cmove ebx, esi
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop edi
mov eax, ebx
pop ebp
cdq
pop ebx
ret 4
Function at 0x4367bd
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4bc
lea eax, [ebp - 0x208]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov eax, dword [ebp + 8]
or eax, 0x4000
push eax
push 0x2b4
lea eax, [ebp - 0x4bc]
push eax
push 0
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
leave
ret 4

Function at 0x436800
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x43687c
cmp dword [0x52d3b8], 1
je 0x43687c
push ebx
mov ebx, 0x52d3c0
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [0x52d3dc]
and dword [0x52d3e4], 0
mov dword [0x52d3e0], esi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [0x52d3d8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x1388
push dword [0x52d3dc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x436874
push 0
push dword [0x52d3bc]
mov dword [0x52d3b8], 1
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
pop esi
ret 4
Function at 0x436b48
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [0x52cee0], 0
jne 0x436c19
push ebx
push ebp
push esi
xor ebp, ebp
inc ebp
push 0x52d928
mov dword [0x52cee0], ebp
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov eax, 0x640
push eax
push 8
push dword [0x529ae8]
mov dword [0x52d3a4], eax
mov dword [0x52cee4], 0x1f4
call esi
mov dword [0x52d3b4], eax
mov eax, dword [0x52cee4]
add eax, eax
push eax
push 8
push dword [0x529ae8]
call esi
xor ebx, ebx
mov dword [0x52d3b0], eax
push 0x52d3c0
mov dword [0x52d3a8], ebx
mov dword [0x52d3ac], ebp
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
push ebx
push ebp
push ebx
call esi
push ebx
push ebx
push ebp
push ebx
mov dword [0x52d3d8], eax
call esi
mov dword [0x52d3dc], eax
cmp dword [0x52d3d8], ebx
je 0x436c10
test eax, eax
je 0x436c10
lea eax, [esp + 0xc]
mov dword [0x52d3b8], ebx
push eax
push ebx
push ebx
push 0x4365a6
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x52d3bc], eax
jmp 0x436c16
mov dword [0x52d3b8], ebp
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x436c1b
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x436cc0
cmp dword [esp + 0xc], 0
je 0x436cc0
cmp dword [0x52d3b8], 1
je 0x436cc0
push edi
push 0x1f
push 0
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
mov edi, eax
cmp edi, 0xffffffff
je 0x436cbf
push ebp
mov ebp, 0x52d3c0
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [0x52d3dc]
mov dword [0x52d3e0], esi
mov dword [0x52d3e4], edi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [0x52d3d8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x1388
push dword [0x52d3dc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x436cb7
push 0
push dword [0x52d3bc]
mov dword [0x52d3b8], 1
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebp
pop edi
pop esi
ret 8
Function at 0x43711a
Capabilities:
Check os version

Disassembly:
sub esp, 0x34c
push ebp
push esi
push edi
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x114
push eax
mov esi, 0xc8
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x437283
mov eax, dword [esp + 0x1c]
sub eax, 1
je 0x437266
sub eax, 1
jne 0x437283
lea eax, [esp + 0x120]
xor edi, edi
push eax
call fcn.004370d3
pop ecx
test eax, eax
je 0x437191
cmp byte [esp + 0x23a], 1
mov ecx, dword [esp + 0x124]
mov eax, dword [esp + 0x128]
mov ebp, dword [esp + 0x12c]
jne 0x4371c7
inc edi
jmp 0x4371c7
lea eax, [esp + 0x23c]
mov dword [esp + 0x23c], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x437283
mov ecx, dword [esp + 0x10]
xor edx, edx
mov eax, dword [esp + 0x14]
inc edx
cmp byte [esp + 0x356], dl
cmove edi, edx
sub ecx, 3
je 0x437262
sub ecx, 1
je 0x43725e
sub ecx, 1
je 0x437240
sub ecx, 1
je 0x437204
sub ecx, 4
jne 0x437283
test eax, eax
jne 0x437283
cmp ebp, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x437283
sub eax, 0
je 0x437233
sub eax, 1
je 0x437226
sub eax, 1
je 0x43721f
sub eax, 1
jne 0x437283
push 0x69
pop esi
push 0x64
jmp 0x437238
push 0x5a
pop esi
push 0x5f
jmp 0x43722b
push 0x50
pop esi
push 0x55
test edi, edi
pop eax
cmove esi, eax
jmp 0x437283
push 0x4b
pop esi
push 0x46
test edi, edi
pop eax
cmovne esi, eax
jmp 0x437283
sub eax, 0
je 0x43725a
sub eax, 1
je 0x437256
sub eax, 1
jne 0x437283
push 0x41
pop esi
push 0x3c
jmp 0x437238
push 0x3c
jmp 0x437282
push 0x32
jmp 0x437282
push 0x14
jmp 0x437282
push 5
jmp 0x437282
mov eax, dword [esp + 0x14]
test eax, eax
je 0x437280
cmp eax, 0xa
je 0x43727c
cmp eax, 0x5a
jne 0x437283
push 0x28
jmp 0x437282
push 0x1e
jmp 0x437282
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x34c
ret
Function at 0x437ab4
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 0x437b4a
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x437b47
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x437b47
lea eax, [esi - 1]
push eax
push dword [0x52d94c]
call fcn.0043ed81
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x437b49
mov ecx, dword [edi + 4]
add ecx, 4
pop esi
cmp word [ecx - 2], si
jne 0x437b37
mov edx, 0xfa01
cmp word [ecx], dx
je 0x437b42
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x437b27
jmp 0x437b47
and dword [esp + 0x10], 0
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x437bf0
push eax
call esi
test al, al
jns 0x437bf0
push 0x11
call esi
test al, al
js 0x437bf0
push 0x10
call esi
test al, al
js 0x437bf0
push 0x12
call esi
test al, al
js 0x437bf0
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x437bf0
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call fcn.00415e00
add esp, 0xc
test eax, eax
je 0x437bc4
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call fcn.00415e00
add esp, 0xc
test eax, eax
jne 0x437bdb
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x437c31
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call fcn.004d3e0c
pop ecx
pop ecx
test eax, eax
je 0x437c31
test ebp, ebp
je 0x437c14
push 0x11
call esi
test al, al
js 0x437c0c
push 0x10
call esi
test al, al
js 0x437c0c
push 0x12
call esi
test al, al
jns 0x437c14
push 1
push ebp
call fcn.00437c3d
test ebx, ebx
je 0x437c28
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x437c31
test edi, edi
je 0x437c31
mov eax, dword [edi + 8]
jmp 0x437c33
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4