joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4702c0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push 0x1000
push 0
push dword [0x8f9978]
mov dword [esp + 0x10], 0x1000
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 0xc], edx
test edx, edx
je 0x470410
mov eax, dword [esp + 0x1c]
mov cl, byte [esp + 3]
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, edx
cmp edi, 0xffffffff
je 0x47030c
test edi, edi
je 0x47037d
dec edi
push esi
push ebp
call fcn.00470490
mov dword [esp + 0x20], eax
test eax, eax
jne 0x47031f
xor cl, cl
jmp 0x470321
mov cl, byte [esi]
mov edx, dword [esp + 0x1c]
add esi, eax
mov eax, dword [esp + 0x14]
mov ebx, esi
sub ebx, edx
mov byte [esp + 0x13], cl
add eax, 0xfffffffb
cmp ebx, eax
jle 0x470364
mov eax, dword [esp + 0x14]
add eax, 0x1000
push eax
push edx
push 8
push dword [0x8f9978]
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov cl, byte [esp + 0x13]
mov edx, eax
mov dword [esp + 0x1c], edx
lea esi, [ebx + edx]
mov eax, dword [esp + 0x2c]
test cl, cl
je 0x47037d
test eax, eax
jne 0x470302
cmp cl, 0xd
je 0x470381
cmp cl, 0xa
jne 0x470302
dec esi
jmp 0x4703f3
test eax, eax
jne 0x4703f3
cmp cl, 0xa
jne 0x470389
dec esi
jmp 0x4703f3
cmp cl, 0xd
jne 0x4703f3
dec esi
cmp dword [ebp + 4], 0
je 0x4703a8
push 1
lea eax, [esp + 0x17]
push eax
push ebp
call fcn.0046fe50
mov dword [esp + 0x20], eax
jmp 0x4703bf
push 0
lea eax, [esp + 0x24]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x13], 0xa
je 0x4703f3
cmp dword [ebp + 4], 0
je 0x4703d1
inc dword [ebp + 0xc]
jmp 0x4703f3
push 1
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 0xffffffff
push eax
push 0xffffffffffffffff
push dword [ebp]
mov dword [esp + 0x28], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x34]
mov ecx, esi
sub ecx, dword [esp + 0x1c]
pop edi
mov dword [eax], ecx
mov eax, dword [esp + 0x18]
mov byte [esi], 0
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
xor eax, eax
add esp, 0x14
ret 0x10
Function at 0x470490
Capabilities:
Read file on windows

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [edi + 4], 0
je 0x4704b7
push 1
lea eax, [esp + 0x10]
push eax
push edi
call fcn.0046fe50
mov dword [esp + 4], eax
jmp 0x4704d1
push 0
lea eax, [esp + 8]
push eax
push 1
lea eax, [esp + 0x18]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 4]
cmp eax, 1
je 0x4704dd
xor eax, eax
pop edi
pop ecx
ret 8
mov cl, byte [esp + 0xc]
test cl, cl
js 0x4704f9
mov eax, dword [esp + 0x10]
pop edi
mov byte [eax], cl
mov byte [eax + 1], 0
mov eax, 1
pop ecx
ret 8
mov al, cl
and al, 0xe0
push esi
cmp al, 0xc0
jne 0x470509
mov esi, 2
jmp 0x470525
mov al, cl
and al, 0xf0
cmp al, 0xe0
jne 0x470518
mov esi, 3
jmp 0x470525
mov al, cl
and al, 0xf8
cmp al, 0xf0
jne 0x470582
mov esi, 4
mov edx, dword [esp + 0x14]
mov byte [edx], cl
cmp dword [edi + 4], 0
je 0x470554
lea eax, [esi - 1]
push eax
lea eax, [edx + 1]
push eax
push edi
call fcn.0046fe50
mov edx, eax
lea ecx, [esi - 1]
xor eax, eax
cmp edx, ecx
setne al
dec eax
and eax, esi
pop esi
pop edi
pop ecx
ret 8
push 0
lea eax, [esp + 0xc]
push eax
lea eax, [esi - 1]
push eax
lea eax, [edx + 1]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [esp + 8]
lea ecx, [esi - 1]
xor eax, eax
cmp edx, ecx
setne al
dec eax
and eax, esi
pop esi
pop edi
pop ecx
ret 8
mov eax, dword [esp + 0x14]
pop esi
pop edi
mov word [eax], 0x3f
mov eax, 1
pop ecx
ret 8
Function at 0x4712ba
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
xor esi, esi
push edi
mov ebx, esi
call fcn.0047c2b4
mov edi, eax
test edi, edi
je 0x4713b0
cmp dword [edi + 0x14], esi
je 0x4713b0
cmp dword [edi], 0xf
jne 0x4713b0
push dword [edi + 0x18]
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
je 0x4713b0
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4713a5
push dword [edi + 0x18]
push dword [edi + 0x14]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push esi
push 0xffffffffffffffff
push ebp
call dword [sym.imp.SHELL32.dll_DragQueryFileW]
mov edi, eax
mov dword [esp + 0x14], edi
test edi, edi
jle 0x4713a5
lea ebx, [edi - 1]
mov eax, esi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], eax
push esi
push esi
push eax
push ebp
call dword [sym.imp.SHELL32.dll_DragQueryFileW]
add ebx, eax
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
cmp eax, edi
jl 0x471342
push dword [esp + 0x20]
mov dword [esp + 0x1c], ebx
push ebx
call fcn.0048d990
mov edi, eax
cmp dword [esp + 0x14], esi
jle 0x47139f
lea eax, [ebx + 1]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x10], eax
push eax
push edi
push esi
push ebp
call dword [sym.imp.SHELL32.dll_DragQueryFileW]
push 0xa
lea edi, [edi + eax*2]
pop eax
mov word [edi], ax
add edi, 2
mov eax, dword [esp + 0x10]
inc esi
cmp esi, ebx
jl 0x47137c
mov ebx, dword [esp + 0x18]
xor eax, eax
mov word [edi - 2], ax
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test ebx, ebx
jne 0x4713bc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
jmp fcn.0048dd10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4

Function at 0x473529
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x973f40]
call fcn.0048d184
mov ebx, eax
test ebx, ebx
je 0x47358d
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x473552
push dword [esp + 0xc]
push ebx
call eax
jmp 0x47358d
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.0048d990
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.0048da70
pop edi
pop esi
pop ebx
ret 8
Function at 0x4765d9
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
push ebx
push ebp
push esi
push edi
push dword [0x974310]
call fcn.0048caa6
cmp dword [0x972b10], 0
mov edi, eax
mov esi, 0x50010000
jne 0x476741
mov ebx, 0xa4
push ebx
push 0
push 0x972b18
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x972b18], 0x1b
mov dword [0x972b1c], ebx
mov dword [0x972b20], 0x475f49
mov dword [0x972b24], 0x47628e
mov dword [0x972b3c], 0x475cc6
mov dword [0x972b4c], 0x476284
mov dword [0x972b44], 0x47622f
mov dword [0x972b40], 0x4768c0
mov dword [0x972b2c], 0x476da7
mov dword [0x972b28], 0x4764d5
mov dword [0x972b30], 0x47651f
mov dword [0x972b34], 0x476dd8
mov dword [0x972b58], 0x47644c
mov dword [0x972b5c], 0x476d60
mov dword [0x972b50], 0x4763bb
mov dword [0x972b54], 0x476c0d
mov dword [0x972b90], 0x476a5a
mov dword [0x972b94], 0x4762d3
mov dword [0x972b98], 0x476aad
mov dword [0x972b9c], 0x47635f
mov dword [0x972ba0], 0x476b1f
mov dword [0x972ba4], 0x476399
mov dword [0x972b88], 0x47632e
mov dword [0x972bb8], 0x476b41
call fcn.00479ed7
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x476737
cmp dword [esp + 0x24], 2
jne 0x476737
cmp dword [esp + 0x18], 6
jb 0x476737
mov eax, dword [0x972608]
mov dword [0x972b14], eax
mov dword [0x972b10], 1
test byte [esp + 0x140], 2
jne 0x476750
mov esi, 0x50010002
test byte [esp + 0x140], 1
jne 0x47675d
or esi, 5
test byte [esp + 0x140], 0x20
je 0x47676a
or esi, 0x20
push 0x1f4
push 0
push dword [0x8f9978]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
lea eax, [esp + 0x13c]
push eax
lea eax, [esp + 0x13c]
push eax
lea eax, [esp + 0x13c]
push eax
lea eax, [esp + 0x13c]
push eax
call fcn.0047ce8d
test ebp, ebp
je 0x4768ad
push 0
push dword [0x8f997c]
push 0xffffffffffffffff
push dword [edi]
push dword [esp + 0x14c]
push dword [esp + 0x14c]
push dword [esp + 0x14c]
push dword [esp + 0x14c]
push esi
push 0
push str.SysTreeView32
push 0x200
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ebx, eax
test ebx, ebx
je 0x4768b1
push dword [esp + 0x12c]
push dword [0x973f40]
call fcn.0048d1c3
push 0x476e21
push 0xfffffffffffffffc
push ebx
mov edi, eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 4
push 4
push 0x112c
push ebx
mov dword [0x972bbc], eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x972b18
push ebx
push edi
push dword [esp + 0x138]
mov dword [edi + 0x14], ebp
mov dword [edi + 0x18], 0x19
call fcn.00479244
mov ebx, eax
mov eax, 0x100
test dword [esp + 0x140], eax
je 0x4768b1
or esi, eax
push esi
push 0xfffffffffffffff0
push dword [edi]
call dword [sym.imp.USER32.dll_SetWindowLongW]
test dword [esp + 0x140], 0x10000
je 0x4768b1
call fcn.0047a2f1
cmp eax, 0x3c
jg 0x476880
push edi
call fcn.0047616b
pop ecx
push 0
push 2
push 0x1108
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x47689d
push eax
push dword [edi]
call fcn.00479fbb
push edi
push str.PB_3State
push dword [edi]
call dword [sym.imp.USER32.dll_SetPropW]
jmp 0x4768b1
mov ebx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x118
ret 0x18
Function at 0x477beb
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
push dword [0x974310]
call fcn.0048caa6
xor ebx, ebx
mov ebp, eax
cmp dword [0x972dd0], ebx
jne 0x477c7f
mov esi, 0xa4
push esi
push ebx
push 0x972dd8
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x972ddc], esi
mov esi, dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [0x972dd8], 0xa
mov dword [0x972de0], 0x477780
push 0x7f89
push ebx
mov dword [0x972e50], 0x47932d
mov dword [0x972e54], 0x479307
mov dword [0x972de4], 0x47779f
mov dword [0x972e68], 0x4777bf
call esi
mov dword [0x972dd0], eax
test eax, eax
jne 0x477c7f
push 0x7f00
push ebx
call esi
mov dword [0x972dd0], 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.0047ce8d
push ebx
push dword [0x8f997c]
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 0x477d4b
push edi
push dword [esp + 0x14]
push dword [0x973f40]
call fcn.0048d1c3
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 [0x8f9978]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov esi, eax
push 0x972dd8
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.00479244
push 0x4778a5
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 0x478e1e
Capabilities:
Check os version

Disassembly:
sub esp, 0x114
push ebx
push ebp
push esi
push edi
push dword [0x974310]
call fcn.0048caa6
xor ebp, ebp
mov esi, eax
cmp dword [0x972f30], ebp
jne 0x478efa
xor ebx, ebx
inc ebx
mov dword [0x972f30], ebx
call fcn.00479ed7
mov edi, 0xa4
push edi
push ebp
push 0x972f38
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x972f38], 0x13
lea eax, [esp + 0x10]
mov dword [0x972f3c], edi
mov dword [0x972f48], 0x478d69
mov dword [0x972f4c], 0x4790b4
push eax
mov dword [0x972fa0], 0x478d44
mov dword [0x972fa4], 0x478fff
mov dword [0x972f44], 0x478d1f
mov dword [0x972fc8], 0x478d84
mov dword [0x972fdc], ebx
mov dword [esp + 0x14], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x478efa
cmp dword [esp + 0x20], ebx
je 0x478ee2
cmp dword [esp + 0x20], 2
jne 0x478efa
cmp dword [esp + 0x14], 5
jae 0x478eea
mov dword [0x972fdc], ebp
jmp 0x478efa
jne 0x478efa
mov eax, dword [esp + 0x18]
neg eax
sbb eax, eax
and dword [0x972fdc], 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.0047ce8d
mov eax, dword [esp + 0x140]
push ebp
push dword [0x8f997c]
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 0x478fd0
push dword [esp + 0x128]
push dword [0x973f40]
call fcn.0048d1c3
mov edi, dword [esp + 0x13c]
mov esi, eax
mov dword [esi + 0x10], edi
test edi, edi
je 0x478f9f
push edi
call fcn.0048757e
test eax, eax
je 0x478f9f
push ebp
push ebp
push edi
call fcn.004871ed
mov dword [esi + 0x18], eax
jmp 0x478fa2
mov dword [esi + 0x18], ebp
push 0x478a6e
push 0xfffffffffffffffc
push ebx
mov dword [esi + 0x14], ebp
mov dword [esi + 0x1c], ebp
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x972f38
push ebx
push esi
push dword [esp + 0x134]
mov dword [0x972f34], eax
call fcn.00479244
mov ebx, eax
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x114
ret 0x1c
Function at 0x47a2f1
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 0x47a467
mov eax, dword [esp + 0x24]
dec eax
je 0x47a44a
dec eax
jne 0x47a467
lea eax, [esp + 0x128]
xor ebp, ebp
push eax
call fcn.0047a2aa
pop ecx
test eax, eax
je 0x47a3a8
mov ebx, dword [esp + 0x12c]
mov edi, dword [esp + 0x130]
mov eax, dword [esp + 0x134]
cmp byte [esp + 0x242], 1
jne 0x47a36b
xor ebp, ebp
inc ebp
sub ebx, 3
je 0x47a446
dec ebx
je 0x47a442
dec ebx
je 0x47a421
dec ebx
je 0x47a3db
sub ebx, 4
jne 0x47a467
test edi, edi
jne 0x47a467
cmp eax, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x47a467
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 0x47a36b
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
cmp byte [esp + 0x35e], 1
jmp 0x47a366
sub edi, 0
je 0x47a413
dec edi
je 0x47a405
dec edi
je 0x47a3f7
dec edi
jne 0x47a467
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x47a467
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x47a467
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x47a467
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x47a467
sub edi, 0
je 0x47a43e
dec edi
je 0x47a43a
dec edi
jne 0x47a467
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x47a467
push 0x3c
jmp 0x47a466
push 0x32
jmp 0x47a466
push 0x14
jmp 0x47a466
push 5
jmp 0x47a466
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x47a464
cmp eax, 0xa
je 0x47a460
cmp eax, 0x5a
jne 0x47a467
push 0x28
jmp 0x47a466
push 0x1e
jmp 0x47a466
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret
Function at 0x47a92a
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push dword [0x974304]
call fcn.0048d184
mov esi, eax
test esi, esi
je 0x47aa04
cmp dword [ebp + 0xc], 0
je 0x47a976
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x47a967
cmp dword [esi + 0x1c], 0
jne 0x47a967
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x47aa04
test byte [ebp + 0x10], 3
je 0x47a991
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
push eax
push dword [ebp + 0x10]
push dword [esi]
call fcn.0047b8bf
cmp dword [esi + 0x3c], 0xffffffff
push ebx
je 0x47a9b6
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 0x47a9ca
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 0x47a9e7
test ebx, ebx
je 0x47a9db
push 8
jmp 0x47a9ed
neg ecx
sbb ecx, ecx
and ecx, 3
add ecx, 4
jmp 0x47a9fa
test ebx, ebx
je 0x47a9f0
push 3
pop ecx
jmp 0x47a9fa
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 0x47bb39
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 0x47bbd1
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x47bbce
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x47bbce
lea eax, [esi - 1]
push eax
push dword [0x974304]
call fcn.0048d184
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x47bbd0
mov edx, dword [edi + 4]
xor ecx, ecx
pop esi
cmp word [ecx + edx + 2], si
jne 0x47bbc5
mov esi, 0xfa01
push 9
cmp word [ecx + edx + 4], si
je 0x47bcb8
pop esi
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x47bbab
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x47bc77
push eax
call esi
test al, al
jns 0x47bc77
push 0x11
call esi
test al, al
js 0x47bc77
push 0x10
call esi
test al, al
js 0x47bc77
push 0x12
call esi
test al, al
js 0x47bc77
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x47bc77
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
je 0x47bc4b
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x47bc62
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x47bcc2
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x47bcc2
test ebp, ebp
je 0x47bc9b
push 0x11
call esi
test al, al
js 0x47bc93
push 0x10
call esi
test al, al
js 0x47bc93
push 0x12
call esi
test al, al
jns 0x47bc9b
push 1
push ebp
call fcn.0047bcce
test ebx, ebx
je 0x47bcaf
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x47bcc2
test edi, edi
je 0x47bcc2
mov eax, dword [edi + 8]
jmp 0x47bcc4
and dword [esp + 0x14], 0
jmp 0x47bbd0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
Function at 0x47dba6
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 0x47dcee
xor ecx, ecx
cmp word [eax], cx
je 0x47dcee
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 0x47dbff
cmp eax, 3
jne 0x47dc39
cmp word [esp + 0xa], 0x3a
jne 0x47dc39
cmp eax, 2
jne 0x47dc1d
lea eax, [esp + 8]
push 0x5b3f84
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 0x47dcee
push 0xfffffffffffffffe
pop edi
jmp 0x47dcee
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x47dc4e
cmp ax, bx
jne 0x47dc58
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x47dc41
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x47dc97
test byte [esp + 0x21c], 0x10
je 0x47dc7e
push 0xfffffffffffffffe
pop edi
jmp 0x47dc8e
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x47dcec
cmp word [esp + 0x10], bp
jne 0x47dca5
cmp word [esp + 0x12], bp
je 0x47dcc4
cmp word [esp + 0x10], bx
jne 0x47dcb3
cmp word [esp + 0x12], bx
je 0x47dcc4
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x47dcec
cmp word [esp + 0x12], ax
jne 0x47dcec
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x47dcd9
test al, 0x10
je 0x47dcec
jmp 0x47dce9
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x47dcec
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 0x47dfd2
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x47e04a
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [ebp - 4], ax
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcslen
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea eax, [ecx + eax*2]
jmp 0x47e02b
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x47e028
cmp ecx, 0x5c
je 0x47e028
cmp ecx, 0x2f
jne 0x47e035
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x47e015
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x47e04c
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x47e0e8
Capabilities:
Check if file exists

Disassembly:
xor eax, eax
push ebp
mov ebp, eax
mov eax, dword [0x973040]
push esi
test eax, eax
jne 0x47e0f9
push fcn.0047e201
push 0x10
push 0x258
call fcn.0048d257
mov dword [0x973040], eax
push dword [esp + 0xc]
push eax
call fcn.0048d1c3
mov esi, eax
test esi, esi
je 0x47e1fa
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x47e11b
mov edi, 0x59c008
push ebx
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x47e12b
xor eax, eax
cmp word [ebx], ax
jne 0x47e130
mov ebx, 0x5b3f88
push edi
call sub.MSVCRT.dll_wcslen
push ebx
mov dword [esp + 0x24], eax
call sub.MSVCRT.dll_wcslen
add eax, dword [esp + 0x24]
pop ecx
pop ecx
lea eax, [eax*2 + 4]
push eax
xor eax, eax
push eax
push dword [0x8f9978]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x47e1e1
push edi
push eax
call sub.MSVCRT.dll_wcscpy
mov eax, dword [esp + 0x24]
pop ecx
pop ecx
test eax, eax
je 0x47e191
cmp word [edi + eax*2 - 2], 0x5c
mov edi, dword [esp + 0x18]
je 0x47e195
push 0x5b3f84
push edi
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
jmp 0x47e195
mov edi, dword [esp + 0x18]
push ebx
push edi
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esi + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x47e1b9
xor eax, eax
mov ebp, esi
mov dword [esi + 4], eax
jmp 0x47e1cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x47e1cd
mov dword [esi + 4], 1
mov ebp, esi
xor eax, eax
push edi
push eax
push dword [0x8f9978]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebp, ebp
jne 0x47e1f8
cmp dword [esp + 0x14], 0xffffffff
je 0x47e1ec
mov esi, dword [esp + 0x14]
push esi
push dword [0x973040]
call fcn.0048d135
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
ret 0xc

Function at 0x47e39d
Capabilities:
Set file attributes

Disassembly:
xor eax, eax
cmp dword [esp + 4], eax
je 0x47e3ab
jmp dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
ret 8

Function at 0x47e3ae
Capabilities:
Delete file
Set file attributes

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