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

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
push dword [0x16309c4]
call fcn.004accf4
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 0x46ec8a
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0x20
mov dword [esp + 0x14], 0x22
cmp dx, word [esp + 0x10]
jne 0x46ebe0
push 0x20
pop edx
add eax, 2
cmp word [eax], dx
je 0x46ebd8
movzx edx, word [eax]
mov dword [esp + 0x1c], 1
cmp dx, word [esp + 0x14]
jne 0x46ec20
add eax, 2
mov esi, eax
movzx ecx, word [eax]
test cx, cx
je 0x46ec62
push 0x22
pop edx
cmp cx, dx
je 0x46ec12
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x46ec02
xor ecx, ecx
cmp word [eax], cx
je 0x46ec62
mov ecx, eax
add eax, 2
jmp 0x46ec64
test dx, dx
je 0x46ec6a
push 0x20
mov esi, eax
pop ecx
cmp dx, cx
je 0x46ec12
add eax, 2
push 0x22
pop edx
cmp word [eax], dx
jne 0x46ec58
add eax, 2
movzx ecx, word [eax]
test cx, cx
je 0x46ec62
cmp cx, dx
je 0x46ec55
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x46ec45
push 0x20
pop ecx
movzx edx, word [eax]
test dx, dx
jne 0x46ec2a
jmp 0x46ec12
mov ecx, eax
mov edx, dword [esp + 0x1c]
jmp 0x46ec6c
xor edx, edx
cmp dword [ebp], ebx
jne 0x46ec75
test edi, edi
jne 0x46ec92
test edx, edx
je 0x46ec7a
inc ebx
xor edx, edx
mov esi, edx
movzx edx, word [eax]
test dx, dx
jne 0x46ebce
test edi, edi
jne 0x46eca3
mov eax, ebx
jmp 0x46eca7
test esi, esi
je 0x46eca3
sub ecx, esi
mov eax, esi
sar ecx, 1
mov dword [edi], ecx
inc dword [ebp]
jmp 0x46eca7
xor ecx, ecx
mov dword [edi], ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret

Function at 0x46ee0c
Capabilities:
Read file on windows

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 0x10], esi
jle 0x46ee60
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 0x46ee4e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x46ee5a
add esi, dword [esp + 0x10]
cmp esi, dword [esp + 0x18]
jl 0x46ee1f
jmp 0x46ee5e
add esi, dword [esp + 0x10]
pop ebp
pop ebx
mov eax, esi
pop esi
ret 0xc
Function at 0x46ee66
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 0x46ef25
cmp dword [esp + 0x24], 2
je 0x46ef25
push 0x2000
push ebp
push dword [0x15b6e78]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
jmp 0x46eef4
cmp dword [esp + 0x18], 2
jne 0x46ef10
cmp dword [esp + 0x28], 0xffffffff
je 0x46eeb8
cmp ebp, dword [esp + 0x28]
jae 0x46ef10
add ebp, 2
test ebx, ebx
jne 0x46eedd
lea eax, [edi*2 + 0x2000]
push eax
push esi
push 8
push dword [0x15b6e78]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov ax, word [esp + 0x14]
cmp ax, 0xa
je 0x46ef10
cmp ax, 0xd
je 0x46eef4
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 0x46eea4
push dword [esp + 0x2c]
xor eax, eax
push esi
mov word [esi + edi*2], ax
call fcn.004fa980
jmp 0x46efb7
push eax
push 0
push dword [0x15b6e78]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp dword [esp + 0x28], 0xffffffff
je 0x46ef43
cmp ebp, dword [esp + 0x28]
jae 0x46ef9b
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 0x46ef9b
cmp dword [esp + 0x18], 1
jne 0x46ef9b
inc ebp
test ebx, ebx
jne 0x46ef88
lea eax, [edi + 0x1000]
push eax
push esi
push 8
push dword [0x15b6e78]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov al, byte [esp + 0x13]
cmp al, 0xa
je 0x46ef9b
cmp al, 0xd
je 0x46ef36
mov byte [esi + edi], al
inc edi
dec ebx
jmp 0x46ef36
cmp dword [esp + 0x24], 0x18
push dword [esp + 0x2c]
mov byte [esi + edi], 0
push esi
jne 0x46efb2
call fcn.004fa9d0
jmp 0x46efb7
call fcn.004fa920
push esi
push 0
push dword [0x15b6e78]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x10
Function at 0x46f226
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 0x46f3c5
push esi
mov esi, dword [esp + 0x48]
test esi, esi
je 0x46f3c4
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 0x46f3c3
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0x200000
push ebp
push dword [0x15b6e78]
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test ebp, ebp
je 0x46f3bc
call fcn.004bfad0
mov edi, eax
mov dword [esp + 0x1c], edi
test edi, edi
je 0x46f3a9
lea eax, [esp + 0x20]
push eax
push esi
call sub.MSVCRT.dll__wstat
push 0x1a4
push edi
call fcn.004bffa0
lea eax, [esp + 0x30]
push eax
push edi
call fcn.004c0120
mov esi, dword [esp + 0x60]
add esp, 0x18
mov eax, dword [esi + 0x20]
cmp dword [eax + 8], 1
je 0x46f2f5
cmp dword [eax + 8], 3
je 0x46f2f5
push dword [esp + 0x50]
push edi
call fcn.004bf870
pop ecx
pop ecx
jmp 0x46f313
push dword [esp + 0x50]
call fcn.004fa890
mov esi, eax
push esi
push edi
call fcn.004bff90
pop ecx
pop ecx
push esi
call fcn.004fa880
mov esi, dword [esp + 0x48]
mov eax, dword [esp + 0x14]
cdq
push edx
push eax
push edi
call fcn.004bfff0
push 0x8000
push edi
call fcn.004bfe40
push edi
push dword [esi]
call fcn.004c0290
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 0x46f390
mov edi, dword [esp + 0x10]
push eax
push ebp
push dword [esi]
call fcn.004c0250
add esp, 0xc
cmp eax, dword [esp + 0x4c]
jne 0x46f388
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 0x46f356
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x10], eax
jne 0x46f3a2
mov dword [esp + 0x18], 1
push edi
call fcn.004bfa00
pop ecx
push ebp
push 0
push dword [0x15b6e78]
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 0x46f47f
Capabilities:
Delete file

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
xor edi, edi
test esi, esi
je 0x46f4e1
cmp word [esi], di
je 0x46f4e1
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.004c0ca0
push dword [esp + 0x1c]
mov ebx, eax
push ebx
call dword [esp + 0x20]
push esi
push ebx
call fcn.004c0eb0
add esp, 0x10
test eax, eax
jne 0x46f4e0
push 0x24
push 8
push dword [0x15b6e78]
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 0x46faf4
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebx
push edi
xor edi, edi
mov ebx, edi
cmp dword [esp + 0x10], ebx
je 0x46fb74
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 0x46fb73
push ebp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
push ebp
push edi
push dword [0x15b6e78]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x46fb6b
push ebx
lea eax, [esp + 0x1c]
push eax
push ebp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
push edi
push dword [esp + 0x1c]
call fcn.0046ff92
push edi
push 0
push dword [0x15b6e78]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop esi
pop edi
mov eax, ebx
pop ebx
ret 8

Function at 0x46fb7b
Capabilities:
Create thread

Disassembly:
push ecx
push ecx
push ebx
push ebp
push edi
push dword [esp + 0x18]
xor ebp, ebp
push dword [0x1630a1c]
mov ebx, ebp
call fcn.004acf30
mov edi, eax
test edi, edi
je 0x46fc3a
push esi
push dword [esp + 0x1c]
call fcn.0046fd1b
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 0x46fbfd
mov eax, dword [edi + 0xc]
cdq
sub eax, edx
sar eax, 1
push eax
push dword [esp + 0x10]
push dword [edi]
call fcn.0046ff10
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 0x46fc44
push 0x2000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x46fc23
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 0x48f340
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x162f650], 0
jne 0x48f34e
call fcn.0048f2c0
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x162f654]
call esi
test eax, eax
jne 0x48f371
call fcn.0048f2c0
push dword [0x162f654]
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 0x48f380
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 0x48f3e0
mov ebx, 0x10
test edi, edi
jns 0x48f3e9
mov edi, 0x10
mov dword [eax], ebx
mov dword [eax + 4], edi
dec ebp
jne 0x48f3b2
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x48f400
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x162f650], 0
jne 0x48f40e
call fcn.0048f2c0
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x162f654]
call esi
mov edx, eax
test edx, edx
jne 0x48f435
call fcn.0048f2c0
push dword [0x162f654]
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 0x48f468
mov ebx, 0x10
test esi, esi
jns 0x48f471
mov esi, 0x10
mov dword [edx], ebx
mov eax, edi
mov dword [edx + 4], esi
test ebp, ebp
je 0x48f480
mul ebp
mov eax, edx
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x491ce4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x163098c]
call fcn.004acf30
mov ebx, eax
test ebx, ebx
je 0x491d48
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x491d0d
push dword [esp + 0xc]
push ebx
call eax
jmp 0x491d48
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.004ada70
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.004adb50
pop edi
pop esi
pop ebx
ret 8
Function at 0x492810
Capabilities:
Check os version

Disassembly:
sub esp, 0x114
push ebx
push ebp
push esi
push edi
push dword [0x1630d60]
call fcn.004accf4
xor ebp, ebp
mov esi, eax
cmp dword [0x162f9f8], ebp
jne 0x4928ec
xor ebx, ebx
inc ebx
mov dword [0x162f9f8], ebx
call fcn.004976b2
mov edi, 0xa4
push edi
push ebp
push 0x162fa00
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x162fa00], 0x13
lea eax, [esp + 0x10]
mov dword [0x162fa04], edi
mov dword [0x162fa10], 0x49275b
mov dword [0x162fa14], 0x492a86
push eax
mov dword [0x162fa68], 0x492736
mov dword [0x162fa6c], 0x4929d1
mov dword [0x162fa0c], 0x492711
mov dword [0x162fa90], 0x492776
mov dword [0x162faa4], ebx
mov dword [esp + 0x14], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4928ec
cmp dword [esp + 0x20], ebx
je 0x4928d4
cmp dword [esp + 0x20], 2
jne 0x4928ec
cmp dword [esp + 0x14], 5
jae 0x4928dc
mov dword [0x162faa4], ebp
jmp 0x4928ec
jne 0x4928ec
mov eax, dword [esp + 0x18]
neg eax
sbb eax, eax
and dword [0x162faa4], 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.0049cc99
mov eax, dword [esp + 0x140]
push ebp
push dword [0x15b6e7c]
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 0x4929c2
push dword [esp + 0x128]
push dword [0x163098c]
call fcn.004acf6f
mov edi, dword [esp + 0x13c]
mov esi, eax
mov dword [esi + 0x10], edi
test edi, edi
je 0x492991
push edi
call fcn.004a7e4f
test eax, eax
je 0x492991
push ebp
push ebp
push edi
call fcn.004a79c4
mov dword [esi + 0x18], eax
jmp 0x492994
mov dword [esi + 0x18], ebp
push 0x492460
push 0xfffffffffffffffc
push ebx
mov dword [esi + 0x14], ebp
mov dword [esi + 0x1c], ebp
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x162fa00
push ebx
push esi
push dword [esp + 0x134]
mov dword [0x162f9fc], eax
call fcn.00496d3f
mov ebx, eax
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x114
ret 0x1c

Function at 0x4946cc
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 0x49473e
push ebx
mov ebx, dword [esp + 0x10]
push esi
push edi
cmp ebx, 0xffffffff
jne 0x4946f5
mov ebx, eax
push dword [ebp]
call fcn.00493e4e
push ebx
push dword [ebp]
mov edi, eax
call fcn.00493e25
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.0049475e
pop ecx
pop ecx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4965fd
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
push dword [0x1630d60]
call fcn.004accf4
xor ebx, ebx
mov ebp, eax
cmp dword [0x162ffa8], ebx
jne 0x496691
mov esi, 0xa4
push esi
push ebx
push 0x162ffb0
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x162ffb4], esi
mov esi, dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [0x162ffb0], 0xa
mov dword [0x162ffb8], 0x496192
push 0x7f89
push ebx
mov dword [0x1630028], 0x496e78
mov dword [0x163002c], 0x496e52
mov dword [0x162ffbc], 0x4961b1
mov dword [0x1630040], 0x4961d1
call esi
mov dword [0x162ffa8], eax
test eax, eax
jne 0x496691
push 0x7f00
push ebx
call esi
mov dword [0x162ffa8], 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.0049cc99
push ebx
push dword [0x15b6e7c]
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 0x49675d
push edi
push dword [esp + 0x14]
push dword [0x163098c]
call fcn.004acf6f
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 [0x15b6e78]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov esi, eax
push 0x162ffb0
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.00496d3f
push 0x4962b7
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 0x497df3
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 0x497f69
mov eax, dword [esp + 0x24]
dec eax
je 0x497f4c
dec eax
jne 0x497f69
lea eax, [esp + 0x128]
xor ebp, ebp
push eax
call fcn.00497dac
pop ecx
test eax, eax
je 0x497eaa
mov ebx, dword [esp + 0x12c]
mov edi, dword [esp + 0x130]
mov eax, dword [esp + 0x134]
cmp byte [esp + 0x242], 1
jne 0x497e6d
xor ebp, ebp
inc ebp
sub ebx, 3
je 0x497f48
dec ebx
je 0x497f44
dec ebx
je 0x497f23
dec ebx
je 0x497edd
sub ebx, 4
jne 0x497f69
test edi, edi
jne 0x497f69
cmp eax, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x497f69
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 0x497e6d
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
cmp byte [esp + 0x35e], 1
jmp 0x497e68
sub edi, 0
je 0x497f15
dec edi
je 0x497f07
dec edi
je 0x497ef9
dec edi
jne 0x497f69
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x497f69
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x497f69
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x497f69
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x497f69
sub edi, 0
je 0x497f40
dec edi
je 0x497f3c
dec edi
jne 0x497f69
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x497f69
push 0x3c
jmp 0x497f68
push 0x32
jmp 0x497f68
push 0x14
jmp 0x497f68
push 5
jmp 0x497f68
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x497f66
cmp eax, 0xa
je 0x497f62
cmp eax, 0x5a
jne 0x497f69
push 0x28
jmp 0x497f68
push 0x1e
jmp 0x497f68
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret
Function at 0x4980d5
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push dword [0x1630980]
call fcn.004acf30
mov esi, eax
test esi, esi
je 0x4981af
cmp dword [ebp + 0xc], 0
je 0x498121
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x498112
cmp dword [esi + 0x1c], 0
jne 0x498112
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4981af
test byte [ebp + 0x10], 3
je 0x49813c
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
push eax
push dword [ebp + 0x10]
push dword [esi]
call fcn.0049935d
cmp dword [esi + 0x3c], 0xffffffff
push ebx
je 0x498161
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 0x498175
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 0x498192
test ebx, ebx
je 0x498186
push 8
jmp 0x498198
neg ecx
sbb ecx, ecx
and ecx, 3
add ecx, 4
jmp 0x4981a5
test ebx, ebx
je 0x49819b
push 3
pop ecx
jmp 0x4981a5
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 0x499705
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 0x49979d
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x49979a
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x49979a
lea eax, [esi - 1]
push eax
push dword [0x1630980]
call fcn.004acf30
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x49979c
mov edx, dword [edi + 4]
xor ecx, ecx
pop esi
cmp word [ecx + edx + 2], si
jne 0x499791
mov esi, 0xfa01
push 9
cmp word [ecx + edx + 4], si
je 0x499884
pop esi
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x499777
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x499843
push eax
call esi
test al, al
jns 0x499843
push 0x11
call esi
test al, al
js 0x499843
push 0x10
call esi
test al, al
js 0x499843
push 0x12
call esi
test al, al
js 0x499843
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x499843
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
je 0x499817
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x49982e
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x49988e
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x49988e
test ebp, ebp
je 0x499867
push 0x11
call esi
test al, al
js 0x49985f
push 0x10
call esi
test al, al
js 0x49985f
push 0x12
call esi
test al, al
jns 0x499867
push 1
push ebp
call fcn.0049989a
test ebx, ebx
je 0x49987b
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x49988e
test edi, edi
je 0x49988e
mov eax, dword [edi + 8]
jmp 0x499890
and dword [esp + 0x14], 0
jmp 0x49979c
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4

Function at 0x499a78
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x499aa1
test byte [esp + 8], 2
je 0x499a95
push pe_nt_image_headers32
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x499aa3
xor eax, eax
ret 8