joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4041c0
Capabilities:
Check os version
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xec
push esi
push edi
lea eax, [ebp - 4]
xor edi, edi
push eax
push 0xa
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4042b4
push 0x90
lea ecx, [ebp - 0xe8]
push edi
push ecx
mov dword [ebp - 0xec], 0x94
call sub.ntdll.dll_memset
add esp, 0xc
lea edx, [ebp - 0xec]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4042b4
cmp dword [ebp - 0xe8], 6
jb 0x404269
mov edx, dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0xc]
push eax
push 4
lea ecx, [ebp - 0x14]
push ecx
push 0x12
push edx
call esi
test eax, eax
je 0x4042b4
cmp dword [ebp - 0x14], 3
jne 0x404269
mov edx, dword [ebp - 4]
lea eax, [ebp - 0xc]
push eax
push 4
lea ecx, [ebp - 8]
push ecx
push 0x13
push edx
call esi
test eax, eax
je 0x4042b4
cmp dword [ebp - 8], edi
jne 0x404282
mov ecx, dword [ebp - 4]
lea eax, [ebp - 8]
push eax
push 1
push ecx
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
test eax, eax
je 0x4042b4
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x58]
push eax
push edi
push 0x1a
mov dword [ebp - 0xc], 0x44
call dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
je 0x4042b4
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x58]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x4042ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, edi
je 0x4042cd
push eax
call esi
mov dword [ebp - 4], edi
mov eax, dword [ebp - 8]
cmp eax, edi
je 0x4042d7
push eax
call esi
cmp dword [ebp - 0x10], edi
pop edi
setne al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x404350
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
push esi
mov esi, dword [ecx]
push edi
mov edi, dword [ecx + 4]
jbe 0x4043aa
sub eax, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
push ebx
lea ecx, [ecx]
inc esi
and esi, 0xff
movzx eax, byte [ecx + esi + 8]
add edi, eax
and edi, 0xff
movzx ebx, byte [ecx + edi + 8]
mov byte [ecx + esi + 8], bl
mov byte [ecx + edi + 8], al
add al, bl
mov ebx, dword [ebp - 4]
movzx eax, al
mov al, byte [eax + ecx + 8]
xor al, byte [ebx + edx]
inc edx
dec dword [ebp + 8]
mov byte [edx - 1], al
jne 0x404370
pop ebx
mov dword [ecx + 4], edi
pop edi
mov dword [ecx], esi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4046d0
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 8]
lea eax, [ebp + 8]
push eax
push ecx
push 0
push 0
push 2
mov dword [ebp - 4], 0x4000
mov dword [ebp - 8], 0xffffffff
call dword [sym.imp.MPR.dll_WNetOpenEnumW]
test eax, eax
je 0x404704
xor al, al
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp - 4]
push esi
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
mov dword [ebp - 0xc], esi
test esi, esi
jne 0x404723
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 0xc
push ebx
mov ebx, dword [ebp + 0x10]
push edi
mov eax, dword [ebp - 4]
push eax
push 0
push esi
call sub.ntdll.dll_memset
mov eax, dword [ebp + 8]
add esp, 0xc
lea ecx, [ebp - 4]
push ecx
push esi
lea edx, [ebp - 8]
push edx
push eax
call dword [sym.imp.MPR.dll_WNetEnumResourceW]
test eax, eax
jne 0x404781
xor edi, edi
cmp dword [ebp - 8], edi
jbe 0x404728
push ebx
push esi
call dword [ebp + 0xc]
mov ecx, dword [esi + 0xc]
and ecx, 2
add esp, 8
cmp cl, 2
jne 0x404773
mov edx, dword [ebp + 0xc]
push ebx
push edx
push esi
call fcn.004046d0
inc edi
add esi, 0x20
cmp edi, dword [ebp - 8]
jb 0x404755
mov esi, dword [ebp - 0xc]
jmp 0x404728
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MPR.dll_WNetCloseEnum]
pop edi
test eax, eax
pop ebx
sete al
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40306c
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x830
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [eax]
mov eax, dword [eax + 4]
push esi
xor esi, esi
cmp dword [0xc28088], 0x594
push edi
mov dword [ebp - 8], eax
jne 0x4030a2
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomW]
mov eax, dword [0x808ef8]
mov dword [ebp - 0x2c], eax
mov eax, dword [0x808efc]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
call fcn.00403065
mov eax, dword [0x808f00]
add dword [ebp - 0x10], 0x23f
mov dword [ebp - 0x20], eax
mov eax, dword [0x808f04]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], 0x20
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov eax, ebx
shl eax, 4
cmp dword [0xc28088], 0xc
mov dword [ebp - 4], eax
jne 0x403130
push esi
lea eax, [ebp - 0x830]
push eax
push 0x4024f0
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
xor eax, eax
mov word [ebp - 0x1c], ax
lea edi, [ebp - 0x1a]
stosw word es:[edi], ax
push dword [ebp - 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateJobObject]
mov eax, dword [ebp - 0x20]
add dword [ebp - 4], eax
mov eax, dword [0xc28088]
cmp eax, 0xfa9
jne 0x40314c
mov dword [0xc27624], 0xedeb2e40
cmp eax, 0x3eb
jne 0x403159
mov dword [0xc26fd4], esi
mov ecx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov edx, ebx
shr edx, cl
lea eax, [edi + ebx]
mov dword [ebp - 0x14], eax
mov dword [0xc27620], 0xf4ea3dee
add edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
add dword [ebp - 8], 0x64
sub dword [ebp - 8], eax
sub dword [ebp - 8], 0x64
cmp dword [0xc28088], 0xc
jne 0x4031af
lea eax, [ebp - 0x14]
push eax
push esi
push esi
lea eax, [ebp - 0x30]
push eax
push esi
push esi
push esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_BackupRead]
mov eax, dword [ebp - 8]
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 4], eax
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov eax, edx
shr eax, cl
add edi, edx
add eax, dword [ebp - 0x24]
xor eax, edi
xor dword [ebp - 4], eax
sub ebx, dword [ebp - 4]
lea eax, [ebp - 0x10]
call fcn.0040305e
dec dword [ebp - 0x18]
jne 0x4030db
cmp dword [0xc28088], 0xa6d
mov edi, dword [ebp + 8]
mov dword [edi], ebx
jne 0x403206
push esi
push 0x402588
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
mov edx, dword [ebp - 8]
mov dword [edi + 4], edx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x403210
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0xc28088]
mov ecx, dword [0xc26fd8]
sub esp, 0x400
push esi
shr eax, 3
xor esi, esi
cmp eax, esi
jbe 0x4032b3
push ebx
push edi
mov edi, ecx
mov ebx, eax
cmp dword [0xc28088], 0x959
jne 0x4032a5
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SleepEx]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateJobObjectA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsExA]
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileShortNameA]
push esi
lea eax, [ebp - 0x400]
push eax
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_LCMapStringA]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
call dword [sym.imp.KERNEL32.dll_HeapLock]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push edi
call fcn.0040306c
add edi, 8
dec ebx
jne 0x403238
pop edi
pop ebx
pop esi
leave
ret
Function at 0x404370
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x8080c8]
jne 0x40437a
repz ret
jmp fcn.00406ade

Function at 0x4066ff
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004043f1
and dword [ebp - 4], 0
cmp dword [0x809a10], 0
mov ebx, eax
jne 0x4067b0
push 0x4019c8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x406861
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4019bc
push edi
call esi
test eax, eax
je 0x406861
push eax
call fcn.0040437f
mov dword [esp], 0x4019ac
push edi
mov dword [0x809a10], eax
call esi
push eax
call fcn.0040437f
mov dword [esp], 0x401998
push edi
mov dword [0x809a14], eax
call esi
push eax
call fcn.0040437f
mov dword [esp], 0x40197c
push edi
mov dword [0x809a18], eax
call esi
push eax
call fcn.0040437f
pop ecx
mov dword [0x809a20], eax
test eax, eax
je 0x4067b0
push 0x401964
push edi
call esi
push eax
call fcn.0040437f
pop ecx
mov dword [0x809a1c], eax
mov eax, dword [0x809a1c]
cmp eax, ebx
je 0x406808
cmp dword [0x809a20], ebx
je 0x406808
push eax
call fcn.004043fa
push dword [0x809a20]
mov esi, eax
call fcn.004043fa
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x406808
test edi, edi
je 0x406808
call esi
test eax, eax
je 0x4067ff
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4067ff
test byte [ebp - 0xc], 1
jne 0x406808
or dword [ebp + 0x10], 0x200000
jmp 0x406841
mov eax, dword [0x809a14]
cmp eax, ebx
je 0x406841
push eax
call fcn.004043fa
pop ecx
test eax, eax
je 0x406841
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x406841
mov eax, dword [0x809a18]
cmp eax, ebx
je 0x406841
push eax
call fcn.004043fa
pop ecx
test eax, eax
je 0x406841
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x809a10]
call fcn.004043fa
pop ecx
test eax, eax
je 0x406861
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x406863
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
je 0x432072
nop
nop
nop
nop
mov ebx, 0x40c7d0
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x65bc5c15
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x432060
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4320d2
nop
nop
nop
nop
mov ebx, 0x42f314
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x6af14842
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4320c0
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219

Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x433072
mov ebx, 0x40de38
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x5d6f24e8
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x433060
nop
nop
nop
mov eax, str._aYe
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4330d2
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x59e62507
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
jmp fcn.00401219
Function at 0x401000
Capabilities:
Allocate thread local storage

Disassembly:
push 0x44
push 0
push 0x4318d8
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0
call sub.KERNEL32.dll_GetModuleHandleW
mov dword [0x4318dc], eax
push 0
push 0x1000
push 0
call sub.KERNEL32.dll_HeapCreate
mov dword [0x4318d8], eax
mov eax, 0x42f7b0
mov dword [0x4318e4], eax
call fcn.0040424f
call fcn.0040fbb0
call fcn.0040f375
call fcn.0040f300
call fcn.0040e610
call fcn.0040c744
call fcn.0040bed0
call fcn.0040b704
call fcn.0040ae41
call fcn.0040a818
call fcn.004091c3
call fcn.00408bfe
call fcn.004085dd
call fcn.00407810
call fcn.004072fd
call fcn.00406041
call fcn.00404eda
call fcn.004047f3
call fcn.0040426b
call fcn.00404c60
mov edx, str.KONTUR
lea ecx, [0x4318f0]
call fcn.00404008
mov byte [0x4318f8], 1
call fcn.0040151f
call fcn.0040337c
call fcn.0040138c
jmp 0x4010d5
push 0
call 0x4010f4
call fcn.0040fc00
push dword [0x4318d8]
call sub.KERNEL32.dll_HeapDestroy
call sub.KERNEL32.dll_ExitProcess
call fcn.00404e84
call fcn.0040601e
call fcn.004072ec
call fcn.0040744a
call fcn.00407800
call fcn.004085bf
call fcn.0040a80c
call fcn.0040b6f7
call fcn.0040e630
call fcn.0040f403
call fcn.0040f40f
call fcn.0040f2f0
ret
Function at 0x404712
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x404767
push dword [esp + 0x10]
push 0x404691
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [0x431b38]
test esi, esi
je 0x4047c0
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x40475f
cmp byte [esi + 0x10], 0
je 0x40475f
push 3
push edi
push edi
push edi
push edi
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov esi, ebx
test ebx, ebx
jne 0x40473b
jmp 0x4047c0
mov esi, dword [0x431b38]
test esi, esi
je 0x4047c0
xor edi, edi
push ebp
mov ebx, dword [esi]
lea ebp, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp], eax
jne 0x4047b9
cmp byte [esi + 0x11], 0
je 0x404795
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x4047ac
push 3
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
push ebp
push 0x431b38
call fcn.0040fb70
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x404774
pop ebp
pop edi
pop esi
pop ebx
ret 4

Function at 0x405952
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x431ee4]
call fcn.0040f479
mov ebx, eax
test ebx, ebx
je 0x4059b6
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x40597b
push dword [esp + 0xc]
push ebx
call eax
jmp 0x4059b6
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.0040fe40
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 sub.MSVCRT.dll_wcslen
pop ecx
sub edi, eax
push edi
call fcn.0040ff10
pop edi
pop esi
pop ebx
ret 8
Function at 0x405e21
Capabilities:
Check os version

Disassembly:
sub esp, 0x350
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x114
xor ebx, ebx
mov esi, 0xc8
and dword [esp + 0x10], ebx
xor edi, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x405f97
mov eax, dword [esp + 0x24]
dec eax
je 0x405f7a
dec eax
jne 0x405f97
lea eax, [esp + 0x128]
xor ebp, ebp
push eax
call fcn.00405dda
pop ecx
test eax, eax
je 0x405ed8
mov ebx, dword [esp + 0x12c]
mov edi, dword [esp + 0x130]
mov eax, dword [esp + 0x134]
cmp byte [esp + 0x242], 1
jne 0x405e9b
xor ebp, ebp
inc ebp
sub ebx, 3
je 0x405f76
dec ebx
je 0x405f72
dec ebx
je 0x405f51
dec ebx
je 0x405f0b
sub ebx, 4
jne 0x405f97
test edi, edi
jne 0x405f97
cmp eax, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x405f97
lea eax, [esp + 0x244]
mov dword [esp + 0x244], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, dword [esp + 0x10]
je 0x405e9b
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
cmp byte [esp + 0x35e], 1
jmp 0x405e96
sub edi, 0
je 0x405f43
dec edi
je 0x405f35
dec edi
je 0x405f27
dec edi
jne 0x405f97
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x405f97
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x405f97
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x405f97
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x405f97
sub edi, 0
je 0x405f6e
dec edi
je 0x405f6a
dec edi
jne 0x405f97
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x405f97
push 0x3c
jmp 0x405f96
push 0x32
jmp 0x405f96
push 0x14
jmp 0x405f96
push 5
jmp 0x405f96
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x405f94
cmp eax, 0xa
je 0x405f90
cmp eax, 0x5a
jne 0x405f97
push 0x28
jmp 0x405f96
push 0x1e
jmp 0x405f96
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret
Function at 0x406ff8
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 0x407090
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x40708d
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x40708d
lea eax, [esi - 1]
push eax
push dword [0x431ef0]
call fcn.0040f479
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x40708f
mov edx, dword [edi + 4]
xor ecx, ecx
pop esi
cmp word [ecx + edx + 2], si
jne 0x407084
mov esi, 0xfa01
push 9
cmp word [ecx + edx + 4], si
je 0x407177
pop esi
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x40706a
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x407136
push eax
call esi
test al, al
jns 0x407136
push 0x11
call esi
test al, al
js 0x407136
push 0x10
call esi
test al, al
js 0x407136
push 0x12
call esi
test al, al
js 0x407136
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x407136
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
je 0x40710a
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x407121
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x407181
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x407181
test ebp, ebp
je 0x40715a
push 0x11
call esi
test al, al
js 0x407152
push 0x10
call esi
test al, al
js 0x407152
push 0x12
call esi
test al, al
jns 0x40715a
push 1
push ebp
call fcn.0040718d
test ebx, ebx
je 0x40716e
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x407181
test edi, edi
je 0x407181
mov eax, dword [edi + 8]
jmp 0x407183
and dword [esp + 0x14], 0
jmp 0x40708f
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4