joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401118
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x436004]
jne 0x401122
repz ret
jmp fcn.00401388

Function at 0x403ccb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x436004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004024f0
and dword [ebp - 0x14], 0
cmp dword [0x4389ec], 0
mov dword [ebp - 0x18], eax
jne 0x403d7e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x403e26
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x403e26
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4389ec], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4389f0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4389f4], eax
call edi
push eax
call esi
mov dword [0x4389fc], eax
test eax, eax
je 0x403d7e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4389f8], eax
mov eax, dword [0x4389f8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x403dd7
cmp dword [0x4389fc], ecx
je 0x403dd7
push eax
call esi
push dword [0x4389fc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x403dd7
test ebx, ebx
je 0x403dd7
call edi
test eax, eax
je 0x403dce
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x403dce
test byte [ebp - 8], 1
jne 0x403dd7
or dword [ebp + 0x10], 0x200000
jmp 0x403e0a
mov eax, dword [0x4389f0]
cmp eax, dword [ebp - 0x18]
je 0x403e0a
push eax
call esi
test eax, eax
je 0x403e0a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x403e0a
mov eax, dword [0x4389f4]
cmp eax, dword [ebp - 0x18]
je 0x403e0a
push eax
call esi
test eax, eax
je 0x403e0a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4389ec]
call esi
test eax, eax
je 0x403e26
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x403e28
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401118
leave
ret
Function at 0x424ac0
Capabilities:
Create pipe

Disassembly:
mov eax, dword [0x436b30]
sub esp, 0x14
push ebx
mov ebx, dword [0x2bdbfbc]
push edi
mov edi, dword [0x2bde43c]
call fcn.00424a30
cmp dword [0x2bde43c], 0x2f
jne 0x424b22
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
call fcn.00424a60
pop edi
pop ebx
add esp, 0x14
ret
Function at 0x424e20
Capabilities:
Get disk information
Manipulate console buffer
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
mov eax, dword [0x436004]
xor eax, ebp
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
jmp 0x424e45
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x1519a5
jge 0x424e8e
mov dword [0x2bde0a4], 0x8e46a6f0
cmp dword [0x2bde43c], 0x3dc
jne 0x424e8c
xor ecx, ecx
mov word [ebp - 8], cx
xor edx, edx
mov word [ebp - 6], dx
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterW]
push 0
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
jmp 0x424e3c
mov dword [ebp - 0x10], 0
jmp 0x424ea0
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0x12cad2a
jge 0x424f3b
cmp dword [0x2bde43c], 0xa5f
jne 0x424ef2
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x14]
push eax
push 0
lea ecx, [ebp - 0x820]
push ecx
push str.xonatoyuhejigoriramadiguyo
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
cmp dword [ebp - 0x10], 0x84620b
jne 0x424f16
mov edx, dword [0x437950]
mov dword [0x2bde43c], edx
mov eax, dword [0x2bde43c]
add eax, 0xa231
mov dword [0x2bde43c], eax
cmp dword [0x2bde43c], 0x141
jne 0x424f36
mov dword [0x438f28], 0xec58acac
mov dword [0x438f2c], 0xffffffff
jmp 0x424e97
call fcn.00424b30
jmp dword [0x2bdbfbc]
Function at 0xa439c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x48b000]
push edi
or ebp, 0xffffffff
jmp 0xa439e2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xa439e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xa439d8
mov eax, 1
add ebx, ebx
jne 0xa439fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xa43a0c
jne 0xa43a2b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xa43a2b
dec eax
add ebx, ebx
jne 0xa43a18
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xa439f0
add ebx, ebx
jne 0xa43a27
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xa43a7d
xor ecx, ecx
sub eax, 3
jb 0xa43a43
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xa43ab2
sar eax, 1
mov ebp, eax
jmp 0xa43a4e
add ebx, ebx
jne 0xa43a4e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xa43a1c
inc ecx
add ebx, ebx
jne 0xa43a5c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xa43a1c
add ebx, ebx
jne 0xa43a69
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xa43a5e
jne 0xa43a7a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xa43a5e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xa43a9c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xa43a8e
jmp 0xa439de
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xa43a9c
add edi, ecx
jmp 0xa439de
pop esi
mov edi, esi
mov ecx, 0x12faf
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xa43aba
cmp byte [edi], 0x9d
jne 0xa43aba
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0xa43abf
lea edi, [esi + 0x61a000]
mov eax, dword [edi]
or eax, eax
je 0xa43b2e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x65e844]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x65e9a4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xa43aec
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x65e9ac]
or eax, eax
je 0xa43b28
mov dword [ebx], eax
add ebx, 4
jmp 0xa43b09
call dword [esi + 0x65e9a8]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0xa43b5f
cmp al, 0xef
ja 0xa43b52
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0xa43b34
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0xa43b41
mov ebp, dword [esi + 0x65e9b0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0xa43b93
sub esp, 0xffffff80
jmp 0x7846ec
Function at 0x404de0
Capabilities:
Get file system object information

Disassembly:
push edi
sub esp, 0x2e8
call fcn.00418e00
mov eax, dword [esp + 0x2f0]
mov dword [esp + 4], eax
lea eax, [esp + 0x2f0]
mov dword [esp], eax
call fcn.00418e60
sub esp, 8
lea edi, [esp + 0x2c]
mov ecx, 0xad
xor eax, eax
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0x110
mov dword [esp + 0xc], 0x2b4
lea eax, [esp + 0x2c]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [esp + 0x2f0]
mov dword [esp], eax
call sub.SHELL32.dll_SHGetFileInfoW
sub esp, 0x14
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x2f0]
mov dword [esp], eax
call fcn.00418eb0
sub esp, 4
mov eax, edi
add esp, 0x2e8
pop edi
ret 4
Function at 0x404f90
Capabilities:
Get file system object information

Disassembly:
push edi
push esi
push ebx
sub esp, 0x2f0
call fcn.00418e00
mov eax, dword [esp + 0x300]
mov dword [esp + 4], eax
lea eax, [esp + 0x300]
mov dword [esp], eax
call fcn.00418e60
sub esp, 8
mov dword [esp + 0x2c], 0
lea ebx, [esp + 0x3c]
mov ecx, 0xad
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov eax, dword [esp + 0x300]
mov dword [esp], eax
call fcn.0041188f
sub esp, 4
test edx, edx
js 0x405080
mov dword [esp + 0x10], 0x4000
mov dword [esp + 0xc], 0x2b4
mov dword [esp + 8], ebx
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [esp + 0x300]
mov dword [esp], eax
call sub.SHELL32.dll_SHGetFileInfoW
sub esp, 0x14
mov dword [esp + 4], str.shell32.dll
mov dword [esp], 0xffffffff
call fcn.0040c024
push edx
push edx
mov ebx, eax
test eax, eax
jne 0x4050a2
mov eax, dword [esp + 0x30]
mov edx, dword [eax]
mov edx, dword [edx + 0x28]
mov ecx, dword [esp + 0x40]
lea ebx, [esp + 0x34]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 1
mov dword [esp + 4], ecx
mov dword [esp], eax
call edx
sub esp, 0x10
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x4050df
lea esi, [esi]
xor ebx, ebx
mov eax, dword [esp + 0x300]
mov dword [esp], eax
call fcn.00418eb0
sub esp, 4
mov eax, ebx
add esp, 0x2f0
pop ebx
pop esi
pop edi
ret 0xc
lea eax, [esp + 0x30]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x4cfca0
xor edi, edi
mov dword [esp + 8], edi
mov dword [esp + 4], str.SHGetImageList
mov dword [esp], ebx
call fcn.0040c07e
sub esp, 0x14
mov edi, eax
mov dword [esp], ebx
call fcn.0040c0a3
push eax
test edi, edi
jne 0x405080
jmp 0x40504c
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0xc], 0x20
mov dword [esp + 8], 0x20
mov dword [esp + 4], 0x20
mov dword [esp], 0xffffffff
call fcn.004135f5
sub esp, 0x14
mov ebx, eax
test eax, eax
je 0x405080
mov dword [esp], eax
call fcn.0041379d
push ecx
mov dword [esp], eax
call fcn.00413476
push esi
test eax, eax
je 0x405082
mov eax, dword [esp + 0x30]
mov edx, dword [eax]
mov edx, dword [edx + 0x40]
lea ecx, [esp + 0x2c]
mov dword [esp + 8], ecx
lea ecx, [esp + 0x38]
mov dword [esp + 4], ecx
mov dword [esp], eax
call edx
sub esp, 0xc
mov eax, dword [esp + 0x38]
cmp eax, 0x20
jg 0x405165
mov eax, dword [esp + 0x2c]
cmp eax, 0x20
jle 0x4051a5
mov eax, dword [esp + 0x34]
mov dword [esp + 0x10], 0x20
mov dword [esp + 0xc], 0x20
xor edx, edx
mov dword [esp + 8], edx
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004134db
sub esp, 0x14
mov eax, dword [esp + 0x34]
mov dword [esp], eax
call sub.USER32.dll_DestroyIcon
push eax
call fcn.00413545
jmp 0x405082
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x34]
mov esi, 2
cdq
idiv esi
neg eax
add eax, 0x10
mov dword [esp + 8], eax
mov eax, ecx
cdq
idiv esi
neg eax
add eax, 0x10
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.0041358d
sub esp, 0xc
jmp 0x40518e
Function at 0x4086a2
Capabilities:
Create thread

Disassembly:
push ecx
push ebp
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 ebp, eax
test ebp, ebp
je 0x40873a
push edi
push 0x4d228c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x4d1ad4]
test edi, edi
je 0x40870e
push ebx
push esi
lea ebx, [edi + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x408707
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
push ebx
push 0x4d1ad4
call fcn.004189bf
pop ecx
pop ecx
jmp 0x408709
mov edi, dword [edi]
test edi, edi
jne 0x4086de
pop ebx
mov eax, dword [0x4cfce4]
mov esi, eax
inc eax
push 0x10
push 0x4d1ad4
mov dword [0x4cfce4], eax
call fcn.004189ff
pop ecx
pop ecx
push 0x4d228c
mov dword [eax], ebp
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret 8

Function at 0x40aee1
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x40af36
push dword [esp + 0x10]
push 0x40ae60
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [0x4d1ad8]
test esi, esi
je 0x40af8f
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x40af2e
cmp byte [esi + 0x10], 0
je 0x40af2e
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 0x40af0a
jmp 0x40af8f
mov esi, dword [0x4d1ad8]
test esi, esi
je 0x40af8f
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 0x40af88
cmp byte [esi + 0x11], 0
je 0x40af64
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x40af7b
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 0x4d1ad8
call fcn.004189bf
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x40af43
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x40c2b8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0xc], 0
jle 0x40c2d6
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi + 4]
call sub.MSVCRT.dll_memmove
add esp, 0xc
push 0
lea eax, [ebp + 8]
push eax
mov eax, 0x1000
sub eax, dword [esi + 0xc]
push eax
mov eax, dword [esi + 4]
add eax, dword [esi + 0xc]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 8]
test ecx, ecx
jne 0x40c302
mov dword [esi + 0x10], 1
mov eax, dword [esi + 4]
add dword [esi + 0xc], ecx
mov dword [esi + 8], eax
pop esi
pop ebp
ret

Function at 0x40e6f2
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x4d22f0]
call fcn.00418290
mov ebx, eax
test ebx, ebx
je 0x40e756
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x40e71b
push dword [esp + 0xc]
push ebx
call eax
jmp 0x40e756
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.00419350
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.00419430
pop edi
pop esi
pop ebx
ret 8
Function at 0x41039f
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 0x410515
mov eax, dword [esp + 0x24]
dec eax
je 0x4104f8
dec eax
jne 0x410515
lea eax, [esp + 0x128]
xor ebp, ebp
push eax
call fcn.00410358
pop ecx
test eax, eax
je 0x410456
mov ebx, dword [esp + 0x12c]
mov edi, dword [esp + 0x130]
mov eax, dword [esp + 0x134]
cmp byte [esp + 0x242], 1
jne 0x410419
xor ebp, ebp
inc ebp
sub ebx, 3
je 0x4104f4
dec ebx
je 0x4104f0
dec ebx
je 0x4104cf
dec ebx
je 0x410489
sub ebx, 4
jne 0x410515
test edi, edi
jne 0x410515
cmp eax, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x410515
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 0x410419
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
cmp byte [esp + 0x35e], 1
jmp 0x410414
sub edi, 0
je 0x4104c1
dec edi
je 0x4104b3
dec edi
je 0x4104a5
dec edi
jne 0x410515
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x410515
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x410515
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x410515
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x410515
sub edi, 0
je 0x4104ec
dec edi
je 0x4104e8
dec edi
jne 0x410515
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x410515
push 0x3c
jmp 0x410514
push 0x32
jmp 0x410514
push 0x14
jmp 0x410514
push 5
jmp 0x410514
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x410512
cmp eax, 0xa
je 0x41050e
cmp eax, 0x5a
jne 0x410515
push 0x28
jmp 0x410514
push 0x1e
jmp 0x410514
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret
Function at 0x410a20
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push dword [0x4d2320]
call fcn.00418290
mov esi, eax
test esi, esi
je 0x410afa
cmp dword [ebp + 0xc], 0
je 0x410a6c
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x410a5d
cmp dword [esi + 0x1c], 0
jne 0x410a5d
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x410afa
test byte [ebp + 0x10], 3
je 0x410a87
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
push eax
push dword [ebp + 0x10]
push dword [esi]
call fcn.00411408
cmp dword [esi + 0x3c], 0xffffffff
push ebx
je 0x410aac
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 0x410ac0
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 0x410add
test ebx, ebx
je 0x410ad1
push 8
jmp 0x410ae3
neg ecx
sbb ecx, ecx
and ecx, 3
add ecx, 4
jmp 0x410af0
test ebx, ebx
je 0x410ae6
push 3
pop ecx
jmp 0x410af0
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 0x41159b
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 0x411633
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x411630
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x411630
lea eax, [esi - 1]
push eax
push dword [0x4d2320]
call fcn.00418290
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x411632
mov edx, dword [edi + 4]
xor ecx, ecx
pop esi
cmp word [ecx + edx + 2], si
jne 0x411627
mov esi, 0xfa01
push 9
cmp word [ecx + edx + 4], si
je 0x41171a
pop esi
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x41160d
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x4116d9
push eax
call esi
test al, al
jns 0x4116d9
push 0x11
call esi
test al, al
js 0x4116d9
push 0x10
call esi
test al, al
js 0x4116d9
push 0x12
call esi
test al, al
js 0x4116d9
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x4116d9
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
je 0x4116ad
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x4116c4
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x411724
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x411724
test ebp, ebp
je 0x4116fd
push 0x11
call esi
test al, al
js 0x4116f5
push 0x10
call esi
test al, al
js 0x4116f5
push 0x12
call esi
test al, al
jns 0x4116fd
push 1
push ebp
call fcn.00411730
test ebx, ebx
je 0x411711
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x411724
test edi, edi
je 0x411724
mov eax, dword [edi + 8]
jmp 0x411726
and dword [esp + 0x14], 0
jmp 0x411632
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
Function at 0x41188f
Capabilities:
Get disk information
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x45c
push esi
or esi, 0xffffffff
push edi
mov edi, esi
test eax, eax
je 0x4119d7
xor ecx, ecx
cmp word [eax], cx
je 0x4119d7
push 0x104
push eax
lea eax, [esp + 0x10]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [esp + 0x21c], ax
lea eax, [esp + 0x14]
push eax
call sub.MSVCRT.dll_wcslen
add esp, 0x10
lea ecx, [esp + eax*2 + 6]
cmp eax, 2
je 0x4118e8
cmp eax, 3
jne 0x411922
cmp word [esp + 0xa], 0x3a
jne 0x411922
cmp eax, 2
jne 0x411906
lea eax, [esp + 8]
push 0x4a03b4
push eax
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x4119d7
push 0xfffffffffffffffe
pop edi
jmp 0x4119d7
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x411937
cmp ax, bx
jne 0x411941
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x41192a
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x411980
test byte [esp + 0x21c], 0x10
je 0x411967
push 0xfffffffffffffffe
pop edi
jmp 0x411977
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4119d5
cmp word [esp + 0x10], bp
jne 0x41198e
cmp word [esp + 0x12], bp
je 0x4119ad
cmp word [esp + 0x10], bx
jne 0x41199c
cmp word [esp + 0x12], bx
je 0x4119ad
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x4119d5
cmp word [esp + 0x12], ax
jne 0x4119d5
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x4119c2
test al, 0x10
je 0x4119d5
jmp 0x4119d2
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x4119d5
push 0xfffffffffffffffe
pop edi
pop ebp
pop ebx
mov eax, edi
mov edx, esi
pop edi
pop esi
add esp, 0x45c
ret 4

Function at 0x4119e6
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x411a0f
test byte [esp + 8], 2
je 0x411a03
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 0x411a11
xor eax, eax
ret 8

Function at 0x411fe0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [esi + 0x14], 0
jne 0x41201c
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 4
xor eax, eax
pop esi
pop ecx
ret 4