joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46f9aa
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
push dword [0x1662398]
call fcn.004ad9c4
mov ebp, eax
or ebx, 0xffffffff
xor eax, eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, dword [esp + 0x1c]
movzx edx, word [eax]
test dx, dx
je 0x46faaa
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0x20
mov dword [esp + 0x14], 0x22
cmp dx, word [esp + 0x10]
jne 0x46fa00
push 0x20
pop edx
add eax, 2
cmp word [eax], dx
je 0x46f9f8
movzx edx, word [eax]
mov dword [esp + 0x1c], 1
cmp dx, word [esp + 0x14]
jne 0x46fa40
add eax, 2
mov esi, eax
movzx ecx, word [eax]
test cx, cx
je 0x46fa82
push 0x22
pop edx
cmp cx, dx
je 0x46fa32
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x46fa22
xor ecx, ecx
cmp word [eax], cx
je 0x46fa82
mov ecx, eax
add eax, 2
jmp 0x46fa84
test dx, dx
je 0x46fa8a
push 0x20
mov esi, eax
pop ecx
cmp dx, cx
je 0x46fa32
add eax, 2
push 0x22
pop edx
cmp word [eax], dx
jne 0x46fa78
add eax, 2
movzx ecx, word [eax]
test cx, cx
je 0x46fa82
cmp cx, dx
je 0x46fa75
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x46fa65
push 0x20
pop ecx
movzx edx, word [eax]
test dx, dx
jne 0x46fa4a
jmp 0x46fa32
mov ecx, eax
mov edx, dword [esp + 0x1c]
jmp 0x46fa8c
xor edx, edx
cmp dword [ebp], ebx
jne 0x46fa95
test edi, edi
jne 0x46fab2
test edx, edx
je 0x46fa9a
inc ebx
xor edx, edx
mov esi, edx
movzx edx, word [eax]
test dx, dx
jne 0x46f9ee
test edi, edi
jne 0x46fac3
mov eax, ebx
jmp 0x46fac7
test esi, esi
je 0x46fac3
sub ecx, esi
mov eax, esi
sar ecx, 1
mov dword [edi], ecx
inc dword [ebp]
jmp 0x46fac7
xor ecx, ecx
mov dword [edi], ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret

Function at 0x46fc2c
Capabilities:
Read file on windows

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 0x10], esi
jle 0x46fc80
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x14]
and dword [esp + 0x10], 0
lea eax, [esp + 0x10]
push 0
push eax
mov eax, dword [esp + 0x20]
sub eax, esi
push eax
lea eax, [esi + ebp]
push eax
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x46fc6e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x46fc7a
add esi, dword [esp + 0x10]
cmp esi, dword [esp + 0x18]
jl 0x46fc3f
jmp 0x46fc7e
add esi, dword [esp + 0x10]
pop ebp
pop ebx
mov eax, esi
pop esi
ret 0xc
Function at 0x46fcbd
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, 0x1000
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebp, ebp
cmp dword [esp + 0x24], 0x18
mov ebx, eax
je 0x46fd7c
cmp dword [esp + 0x24], 2
je 0x46fd7c
push 0x2000
push ebp
push dword [0x15e8870]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
jmp 0x46fd4b
cmp dword [esp + 0x18], 2
jne 0x46fd67
cmp dword [esp + 0x28], 0xffffffff
je 0x46fd0f
cmp ebp, dword [esp + 0x28]
jae 0x46fd67
add ebp, 2
test ebx, ebx
jne 0x46fd34
lea eax, [edi*2 + 0x2000]
push eax
push esi
push 8
push dword [0x15e8870]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov ax, word [esp + 0x14]
cmp ax, 0xa
je 0x46fd67
cmp ax, 0xd
je 0x46fd4b
mov word [esi + edi*2], ax
inc edi
dec ebx
push 0
lea eax, [esp + 0x1c]
push eax
push 2
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x46fcfb
push dword [esp + 0x2c]
xor eax, eax
push esi
mov word [esi + edi*2], ax
call fcn.004fb660
jmp 0x46fe0e
push eax
push 0
push dword [0x15e8870]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp dword [esp + 0x28], 0xffffffff
je 0x46fd9a
cmp ebp, dword [esp + 0x28]
jae 0x46fdf2
push 0
lea eax, [esp + 0x1c]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46fdf2
cmp dword [esp + 0x18], 1
jne 0x46fdf2
inc ebp
test ebx, ebx
jne 0x46fddf
lea eax, [edi + 0x1000]
push eax
push esi
push 8
push dword [0x15e8870]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov al, byte [esp + 0x13]
cmp al, 0xa
je 0x46fdf2
cmp al, 0xd
je 0x46fd8d
mov byte [esi + edi], al
inc edi
dec ebx
jmp 0x46fd8d
cmp dword [esp + 0x24], 0x18
push dword [esp + 0x2c]
mov byte [esi + edi], 0
push esi
jne 0x46fe09
call fcn.004fb6b0
jmp 0x46fe0e
call fcn.004fb600
push esi
push 0
push dword [0x15e8870]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x10
Function at 0x47007d
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x34
mov eax, dword [esp + 0x38]
push ebp
xor ebp, ebp
push edi
cmp dword [eax + 8], 1
mov edi, ebp
mov dword [esp + 0x10], edi
mov dword [esp + 8], ebp
jne 0x47021c
push esi
mov esi, dword [esp + 0x48]
test esi, esi
je 0x47021b
push ebx
push ebp
push pe_nt_image_headers32
push 3
push ebp
push 7
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x47021a
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0x200000
push ebp
push dword [0x15e8870]
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test ebp, ebp
je 0x470213
call fcn.004c07b0
mov edi, eax
mov dword [esp + 0x1c], edi
test edi, edi
je 0x470200
lea eax, [esp + 0x20]
push eax
push esi
call sub.MSVCRT.dll__wstat
push 0x1a4
push edi
call fcn.004c0c80
lea eax, [esp + 0x30]
push eax
push edi
call fcn.004c0e00
mov esi, dword [esp + 0x60]
add esp, 0x18
mov eax, dword [esi + 0x20]
cmp dword [eax + 8], 1
je 0x47014c
cmp dword [eax + 8], 3
je 0x47014c
push dword [esp + 0x50]
push edi
call fcn.004c0550
pop ecx
pop ecx
jmp 0x47016a
push dword [esp + 0x50]
call fcn.004fb570
mov esi, eax
push esi
push edi
call fcn.004c0c70
pop ecx
pop ecx
push esi
call fcn.004fb560
mov esi, dword [esp + 0x48]
mov eax, dword [esp + 0x14]
cdq
push edx
push eax
push edi
call fcn.004c0cd0
push 0x8000
push edi
call fcn.004c0b20
push edi
push dword [esi]
call fcn.004c0f70
add esp, 0x1c
lea eax, [esp + 0x4c]
push 0
push eax
push 0x200000
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x4c]
test eax, eax
jle 0x4701e7
mov edi, dword [esp + 0x10]
push eax
push ebp
push dword [esi]
call fcn.004c0f30
add esp, 0xc
cmp eax, dword [esp + 0x4c]
jne 0x4701df
add edi, dword [esp + 0x4c]
lea eax, [esp + 0x4c]
push 0
push eax
push 0x200000
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x4c]
test eax, eax
jg 0x4701ad
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x10], eax
jne 0x4701f9
mov dword [esp + 0x18], 1
push edi
call fcn.004c06e0
pop ecx
push ebp
push 0
push dword [0x15e8870]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [esp + 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop esi
mov eax, edi
pop edi
pop ebp
add esp, 0x34
ret 0xc

Function at 0x4702d6
Capabilities:
Delete file

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
xor edi, edi
test esi, esi
je 0x470338
cmp word [esi], di
je 0x470338
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.004c1980
push dword [esp + 0x1c]
mov ebx, eax
push ebx
call dword [esp + 0x20]
push esi
push ebx
call fcn.004c1b90
add esp, 0x10
test eax, eax
jne 0x470337
push 0x24
push 8
push dword [0x15e8870]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
mov eax, dword [esp + 0x10]
mov dword [ecx + 0x14], edi
mov edi, ecx
mov dword [ecx], ebx
mov dword [ecx + 8], 1
mov dword [ecx + 0x20], eax
mov dword [eax + 4], ecx
pop ebx
mov eax, edi
pop edi
pop esi
ret 0x10
Function at 0x47094b
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
push edi
xor edi, edi
mov ebp, edi
cmp dword [esp + 0x10], edi
je 0x4709d1
push esi
push edi
push pe_nt_image_headers32
push 3
push edi
push 1
push 0x80000000
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
je 0x4709d0
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
push edi
push dword [0x15e8870]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x4709c8
push ebp
lea eax, [esp + 0x1c]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x18], ebx
jne 0x4709b9
push ebx
push edi
push dword [esp + 0x1c]
call fcn.00470df2
mov ebp, eax
push edi
push 0
push dword [0x15e8870]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop esi
pop edi
mov eax, ebp
pop ebp
ret 8

Function at 0x4709d8
Capabilities:
Create thread

Disassembly:
push ecx
push ecx
push ebx
push ebp
push edi
push dword [esp + 0x18]
xor ebp, ebp
push dword [0x16623f0]
mov ebx, ebp
call fcn.004adc00
mov edi, eax
test edi, edi
je 0x470a97
push esi
push dword [esp + 0x1c]
call fcn.00470b78
mov esi, dword [edi + 8]
lea eax, [esp + 0x14]
push ebp
push ebp
push ebp
push eax
lea eax, [esp + 0x20]
mov dword [edi + 4], 1
mov ecx, dword [esi]
push eax
mov eax, dword [edi + 0xc]
cdq
sub eax, edx
sar eax, 1
push eax
push ebp
push esi
call dword [ecx + 0x2c]
pop esi
test eax, eax
jne 0x470a5a
mov eax, dword [edi + 0xc]
cdq
sub eax, edx
sar eax, 1
push eax
push dword [esp + 0x10]
push dword [edi]
call fcn.00470d70
mov eax, dword [edi + 8]
add esp, 0xc
mov ecx, dword [eax]
push ebp
push ebp
push dword [esp + 0x18]
push dword [esp + 0x18]
push eax
call dword [ecx + 0x4c]
lea eax, [esp + 0x18]
push eax
push ebp
push edi
push 0x470aa1
push 0x2000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x470a80
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
inc ebx
mov eax, dword [edi + 8]
push ebp
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov ecx, dword [edi + 8]
push 1
push ebp
push ebp
mov edx, dword [ecx]
push ecx
call dword [edx + 0x30]
pop edi
pop ebp
mov eax, ebx
pop ebx
pop ecx
pop ecx
ret 4
Function at 0x4901a0
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x1661048], 0
jne 0x4901ae
call fcn.00490120
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x166104c]
call esi
test eax, eax
jne 0x4901d1
call fcn.00490120
push dword [0x166104c]
call esi
mov edx, dword [esp + 0x14]
lea esi, [eax + 8]
mov edi, 0x11
lea ecx, [ecx]
imul ecx, edx, 0x53a9b4fb
lea esi, [esi + 4]
mov edx, 1
sub edx, ecx
imul ecx, edx, 0x53a9b4fb
mov dword [esi + 0x40], edx
mov edx, 1
sub edx, ecx
mov dword [esi - 4], edx
dec edi
jne 0x4901e0
mov dword [eax], edi
lea ebp, [edi + 0x1f]
mov dword [eax + 4], 0xa
mov ebx, dword [eax]
mov edi, dword [eax + 4]
mov edx, dword [eax + ebx*4 + 8]
mov ecx, dword [eax + ebx*4 + 0x4c]
mov esi, dword [eax + edi*4 + 8]
ror ecx, 0xd
add ecx, dword [eax + edi*4 + 0x4c]
dec edi
ror edx, 5
add edx, esi
mov dword [eax + ebx*4 + 8], ecx
mov dword [eax + ebx*4 + 0x4c], edx
dec ebx
jns 0x490240
mov ebx, 0x10
test edi, edi
jns 0x490249
mov edi, 0x10
mov dword [eax], ebx
mov dword [eax + 4], edi
dec ebp
jne 0x490212
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x490260
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x1661048], 0
jne 0x49026e
call fcn.00490120
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x166104c]
call esi
mov edx, eax
test edx, edx
jne 0x490295
call fcn.00490120
push dword [0x166104c]
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
dec ebx
jns 0x4902c8
mov ebx, 0x10
test esi, esi
jns 0x4902d1
mov esi, 0x10
mov dword [edx], ebx
mov eax, edi
mov dword [edx + 4], esi
test ebp, ebp
je 0x4902e0
mul ebp
mov eax, edx
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x492b44
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x1662364]
call fcn.004adc00
mov ebx, eax
test ebx, ebx
je 0x492ba8
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x492b6d
push dword [esp + 0xc]
push ebx
call eax
jmp 0x492ba8
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.004ae750
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.004ae830
pop edi
pop esi
pop ebx
ret 8
Function at 0x493670
Capabilities:
Check os version

Disassembly:
sub esp, 0x114
push ebx
push ebp
push esi
push edi
push dword [0x1662734]
call fcn.004ad9c4
xor ebp, ebp
mov esi, eax
cmp dword [0x16613f0], ebp
jne 0x49374c
xor ebx, ebx
inc ebx
mov dword [0x16613f0], ebx
call fcn.0049851d
mov edi, 0xa4
push edi
push ebp
push 0x16613f8
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x16613f8], 0x13
lea eax, [esp + 0x10]
mov dword [0x16613fc], edi
mov dword [0x1661408], 0x4935bb
mov dword [0x166140c], 0x4938e6
push eax
mov dword [0x1661460], 0x493596
mov dword [0x1661464], 0x493831
mov dword [0x1661404], 0x493571
mov dword [0x1661488], 0x4935d6
mov dword [0x166149c], ebx
mov dword [esp + 0x14], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x49374c
cmp dword [esp + 0x20], ebx
je 0x493734
cmp dword [esp + 0x20], 2
jne 0x49374c
cmp dword [esp + 0x14], 5
jae 0x49373c
mov dword [0x166149c], ebp
jmp 0x49374c
jne 0x49374c
mov eax, dword [esp + 0x18]
neg eax
sbb eax, eax
and dword [0x166149c], eax
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.0049da03
mov eax, dword [esp + 0x140]
push ebp
push dword [0x15e8874]
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 ebp
push str.BUTTON
push ebp
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ebx, eax
test ebx, ebx
je 0x493822
push dword [esp + 0x128]
push dword [0x1662364]
call fcn.004adc3f
mov edi, dword [esp + 0x13c]
mov esi, eax
mov dword [esi + 0x10], edi
test edi, edi
je 0x4937f1
push edi
call fcn.004a8b66
test eax, eax
je 0x4937f1
push ebp
push ebp
push edi
call fcn.004a8724
mov dword [esi + 0x18], eax
jmp 0x4937f4
mov dword [esi + 0x18], ebp
push 0x4932c0
push 0xfffffffffffffffc
push ebx
mov dword [esi + 0x14], ebp
mov dword [esi + 0x1c], ebp
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x16613f8
push ebx
push esi
push dword [esp + 0x134]
mov dword [0x16613f4], eax
call fcn.00497baa
mov ebx, eax
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x114
ret 0x1c

Function at 0x49552c
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push 0
push 0
push 0x1304
push dword [ebp]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jle 0x49559e
push ebx
mov ebx, dword [esp + 0x10]
push esi
push edi
cmp ebx, 0xffffffff
jne 0x495555
mov ebx, eax
push dword [ebp]
call fcn.00494cae
push ebx
push dword [ebp]
mov edi, eax
call fcn.00494c85
add esp, 0xc
mov esi, eax
push 0
push ebx
push 0x130c
push dword [ebp]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
push esi
push dword [ebp]
call fcn.004955be
pop ecx
pop ecx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x497468
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
push dword [0x1662734]
call fcn.004ad9c4
xor ebx, ebx
mov ebp, eax
cmp dword [0x16619a0], ebx
jne 0x4974fc
mov esi, 0xa4
push esi
push ebx
push 0x16619a8
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x16619ac], esi
mov esi, dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [0x16619a8], 0xa
mov dword [0x16619b0], 0x496ffd
push 0x7f89
push ebx
mov dword [0x1661a20], 0x497ce3
mov dword [0x1661a24], 0x497cbd
mov dword [0x16619b4], 0x49701c
mov dword [0x1661a38], 0x49703c
call esi
mov dword [0x16619a0], eax
test eax, eax
jne 0x4974fc
push 0x7f00
push ebx
call esi
mov dword [0x16619a0], eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.0049da03
push ebx
push dword [0x15e8874]
push 0xffffffffffffffff
push dword [ebp]
push dword [esp + 0x30]
push dword [esp + 0x30]
push dword [esp + 0x30]
push dword [esp + 0x30]
push 0x40000000
push dword [esp + 0x48]
push str.STATIC
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ebx, eax
test ebx, ebx
je 0x4975c8
push edi
push dword [esp + 0x14]
push dword [0x1662364]
call fcn.004adc3f
mov edi, eax
push 8
or dword [edi + 0x10], 0xffffffff
call dword [sym.imp.USER32.dll_GetSysColor]
push 0x14
push 0
mov dword [edi + 0x14], eax
push dword [0x15e8870]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov esi, eax
push 0x16619a8
push ebx
push edi
push dword [esp + 0x20]
mov dword [esi], ecx
mov ecx, dword [esp + 0x40]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esi + 0xc], ecx
mov byte [esi + 0x10], 0
mov dword [edi + 0x1c], esi
call fcn.00497baa
push 0x497122
push 0xfffffffffffffffc
push dword [edi]
mov ebx, eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 1
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret 0x20
Function at 0x498c6b
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 0x498de1
mov eax, dword [esp + 0x24]
dec eax
je 0x498dc4
dec eax
jne 0x498de1
lea eax, [esp + 0x128]
xor ebp, ebp
push eax
call fcn.00498c24
pop ecx
test eax, eax
je 0x498d22
mov ebx, dword [esp + 0x12c]
mov edi, dword [esp + 0x130]
mov eax, dword [esp + 0x134]
cmp byte [esp + 0x242], 1
jne 0x498ce5
xor ebp, ebp
inc ebp
sub ebx, 3
je 0x498dc0
dec ebx
je 0x498dbc
dec ebx
je 0x498d9b
dec ebx
je 0x498d55
sub ebx, 4
jne 0x498de1
test edi, edi
jne 0x498de1
cmp eax, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x498de1
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 0x498ce5
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
cmp byte [esp + 0x35e], 1
jmp 0x498ce0
sub edi, 0
je 0x498d8d
dec edi
je 0x498d7f
dec edi
je 0x498d71
dec edi
jne 0x498de1
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x498de1
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x498de1
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x498de1
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x498de1
sub edi, 0
je 0x498db8
dec edi
je 0x498db4
dec edi
jne 0x498de1
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x498de1
push 0x3c
jmp 0x498de0
push 0x32
jmp 0x498de0
push 0x14
jmp 0x498de0
push 5
jmp 0x498de0
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x498dde
cmp eax, 0xa
je 0x498dda
cmp eax, 0x5a
jne 0x498de1
push 0x28
jmp 0x498de0
push 0x1e
jmp 0x498de0
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret
Function at 0x498f4d
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push dword [0x1662360]
call fcn.004adc00
mov esi, eax
test esi, esi
je 0x499027
cmp dword [ebp + 0xc], 0
je 0x498f99
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x498f8a
cmp dword [esi + 0x1c], 0
jne 0x498f8a
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x499027
test byte [ebp + 0x10], 3
je 0x498fb4
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
push eax
push dword [ebp + 0x10]
push dword [esi]
call fcn.0049a1d5
cmp dword [esi + 0x3c], 0xffffffff
push ebx
je 0x498fd9
xor ebx, ebx
cmp dword [esi + 0x3c], 0x1000000
sete bl
xor ecx, ecx
cmp dword [esi + 0x3c], 0x20000000
sete cl
or dword [esi + 0x3c], 0xffffffff
jmp 0x498fed
push dword [esi]
call dword [sym.imp.USER32.dll_IsZoomed]
push dword [esi]
mov ebx, eax
call dword [sym.imp.USER32.dll_IsIconic]
mov ecx, eax
test dword [ebp + 0x10], 0x2000000
je 0x49900a
test ebx, ebx
je 0x498ffe
push 8
jmp 0x499010
neg ecx
sbb ecx, ecx
and ecx, 3
add ecx, 4
jmp 0x49901d
test ebx, ebx
je 0x499013
push 3
pop ecx
jmp 0x49901d
xor eax, eax
test ecx, ecx
setne al
lea ecx, [eax + 1]
push ecx
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebx
pop esi
pop ebp
ret 0xc
Function at 0x49a584
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 0x49a61c
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x49a619
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x49a619
lea eax, [esi - 1]
push eax
push dword [0x1662360]
call fcn.004adc00
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x49a61b
mov edx, dword [edi + 4]
xor ecx, ecx
pop esi
cmp word [ecx + edx + 2], si
jne 0x49a610
mov esi, 0xfa01
push 9
cmp word [ecx + edx + 4], si
je 0x49a703
pop esi
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x49a5f6
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x49a6c2
push eax
call esi
test al, al
jns 0x49a6c2
push 0x11
call esi
test al, al
js 0x49a6c2
push 0x10
call esi
test al, al
js 0x49a6c2
push 0x12
call esi
test al, al
js 0x49a6c2
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x49a6c2
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
je 0x49a696
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x49a6ad
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x49a70d
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x49a70d
test ebp, ebp
je 0x49a6e6
push 0x11
call esi
test al, al
js 0x49a6de
push 0x10
call esi
test al, al
js 0x49a6de
push 0x12
call esi
test al, al
jns 0x49a6e6
push 1
push ebp
call fcn.0049a719
test ebx, ebx
je 0x49a6fa
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x49a70d
test edi, edi
je 0x49a70d
mov eax, dword [edi + 8]
jmp 0x49a70f
and dword [esp + 0x14], 0
jmp 0x49a61b
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4