joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417f6e
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 0x418006
push edi
push 0x93548c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x934668]
test edi, edi
je 0x417fda
push ebx
push esi
lea ebx, [edi + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x417fd3
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
push ebx
push 0x934668
call fcn.00430fcc
pop ecx
pop ecx
jmp 0x417fd5
mov edi, dword [edi]
test edi, edi
jne 0x417faa
pop ebx
mov eax, dword [0x92f87c]
mov esi, eax
inc eax
push 0x10
push 0x934668
mov dword [0x92f87c], eax
call fcn.0043100c
pop ecx
pop ecx
push 0x93548c
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 0x418e12
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x418e67
push dword [esp + 0x10]
push 0x418d91
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [0x9346b4]
test esi, esi
je 0x418ec0
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x418e5f
cmp byte [esi + 0x10], 0
je 0x418e5f
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 0x418e3b
jmp 0x418ec0
mov esi, dword [0x9346b4]
test esi, esi
je 0x418ec0
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 0x418eb9
cmp byte [esi + 0x11], 0
je 0x418e95
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x418eac
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 0x9346b4
call fcn.00430fcc
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x418e74
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x418f63
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
push dword [0x9357e0]
call fcn.004305eb
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 0x419063
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0x20
mov dword [esp + 0x14], 0x22
cmp dx, word [esp + 0x10]
jne 0x418fb9
push 0x20
pop edx
add eax, 2
cmp word [eax], dx
je 0x418fb1
movzx edx, word [eax]
mov dword [esp + 0x1c], 1
cmp dx, word [esp + 0x14]
jne 0x418ff9
add eax, 2
mov esi, eax
movzx ecx, word [eax]
test cx, cx
je 0x41903b
push 0x22
pop edx
cmp cx, dx
je 0x418feb
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x418fdb
xor ecx, ecx
cmp word [eax], cx
je 0x41903b
mov ecx, eax
add eax, 2
jmp 0x41903d
test dx, dx
je 0x419043
push 0x20
mov esi, eax
pop ecx
cmp dx, cx
je 0x418feb
add eax, 2
push 0x22
pop edx
cmp word [eax], dx
jne 0x419031
add eax, 2
movzx ecx, word [eax]
test cx, cx
je 0x41903b
cmp cx, dx
je 0x41902e
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x41901e
push 0x20
pop ecx
movzx edx, word [eax]
test dx, dx
jne 0x419003
jmp 0x418feb
mov ecx, eax
mov edx, dword [esp + 0x1c]
jmp 0x419045
xor edx, edx
cmp dword [ebp], ebx
jne 0x41904e
test edi, edi
jne 0x41906b
test edx, edx
je 0x419053
inc ebx
xor edx, edx
mov esi, edx
movzx edx, word [eax]
test dx, dx
jne 0x418fa7
test edi, edi
jne 0x41907c
mov eax, ebx
jmp 0x419080
test esi, esi
je 0x41907c
sub ecx, esi
mov eax, esi
sar ecx, 1
mov dword [edi], ecx
inc dword [ebp]
jmp 0x419080
xor ecx, ecx
mov dword [edi], ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x419711
Capabilities:
Read file on windows

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 0x10], esi
jle 0x419765
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 0x419753
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x41975f
add esi, dword [esp + 0x10]
cmp esi, dword [esp + 0x18]
jl 0x419724
jmp 0x419763
add esi, dword [esp + 0x10]
pop ebp
pop ebx
mov eax, esi
pop esi
ret 0xc
Function at 0x41a5c9
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 0x41a768
push esi
mov esi, dword [esp + 0x48]
test esi, esi
je 0x41a767
push ebx
push ebp
push pe_nt_image_headers32
push 3
push ebp
push 7
push closesocket
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41a766
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0x200000
push ebp
push dword [0x933fe4]
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test ebp, ebp
je 0x41a75f
call fcn.00446380
mov edi, eax
mov dword [esp + 0x1c], edi
test edi, edi
je 0x41a74c
lea eax, [esp + 0x20]
push eax
push esi
call sub.MSVCRT.dll__wstat
push 0x1a4
push edi
call fcn.00446850
lea eax, [esp + 0x30]
push eax
push edi
call fcn.004469d0
mov esi, dword [esp + 0x60]
add esp, 0x18
mov eax, dword [esi + 0x20]
cmp dword [eax + 8], 1
je 0x41a698
cmp dword [eax + 8], 3
je 0x41a698
push dword [esp + 0x50]
push edi
call fcn.00446120
pop ecx
pop ecx
jmp 0x41a6b6
push dword [esp + 0x50]
call fcn.00498ee0
mov esi, eax
push esi
push edi
call fcn.00446840
pop ecx
pop ecx
push esi
call fcn.00498ed0
mov esi, dword [esp + 0x48]
mov eax, dword [esp + 0x14]
cdq
push edx
push eax
push edi
call fcn.004468a0
push 0x8000
push edi
call fcn.004466f0
push edi
push dword [esi]
call fcn.00446b40
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 0x41a733
mov edi, dword [esp + 0x10]
push eax
push ebp
push dword [esi]
call fcn.00446b00
add esp, 0xc
cmp eax, dword [esp + 0x4c]
jne 0x41a72b
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 0x41a6f9
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x10], eax
jne 0x41a745
mov dword [esp + 0x18], 1
push edi
call fcn.004462b0
pop ecx
push ebp
push 0
push dword [0x933fe4]
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 0x41aeb0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push esi
push 0x41adff
push 0x10
push 0x2c
call fcn.0043096a
xor esi, esi
mov dword [0x9348d0], eax
push esi
push esi
push 8
call fcn.00430656
mov dword [0x935844], eax
cmp word [0x9348c8], si
jne 0x41af99
push edi
lea eax, [esp + 8]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor edi, edi
inc edi
test eax, eax
jne 0x41af08
mov word [0x9348c8], di
jmp 0x41af10
xor eax, eax
mov word [0x9348c8], ax
push 0x800
push esi
push str.ws2_32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [0x9348e4], eax
test eax, eax
je 0x41af98
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.getaddrinfo
push eax
call esi
push str.freeaddrinfo
push dword [0x9348e4]
mov dword [0x9348d4], eax
call esi
push str.getnameinfo
push dword [0x9348e4]
mov dword [0x9348d8], eax
call esi
push str.WSAStringToAddressA
push dword [0x9348e4]
mov dword [0x9348dc], eax
call esi
cmp dword [0x9348d4], 0
mov dword [0x9348e0], eax
je 0x41af98
cmp dword [0x9348d8], 0
je 0x41af98
cmp dword [0x9348dc], 0
je 0x41af98
test eax, eax
je 0x41af98
mov dword [0x9348cc], edi
pop edi
pop esi
add esp, 0x190
ret

Function at 0x41b7b0
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x9348e8], 0
jne 0x41b7be
call fcn.0041b730
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x9348ec]
call esi
test eax, eax
jne 0x41b7e1
call fcn.0041b730
push dword [0x9348ec]
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 0x41b7f0
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 0x41b850
mov ebx, 0x10
test edi, edi
jns 0x41b859
mov edi, 0x10
mov dword [eax], ebx
mov dword [eax + 4], edi
dec ebp
jne 0x41b822
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x41c9c4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x935480]
call fcn.00430897
mov ebx, eax
test ebx, ebx
je 0x41ca28
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x41c9ed
push dword [esp + 0xc]
push ebx
call eax
jmp 0x41ca28
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.00431540
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.00431620
pop edi
pop esi
pop ebx
ret 8

Function at 0x41dcef
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
push dword [0x935858]
call fcn.004305eb
xor ebx, ebx
mov ebp, eax
cmp dword [0x934b50], ebx
jne 0x41dd83
mov esi, 0xa4
push esi
push ebx
push 0x934b58
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x934b5c], esi
mov esi, dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [0x934b58], 0xa
mov dword [0x934b60], 0x41d884
push 0x7f89
push ebx
mov dword [0x934bd0], 0x420030
mov dword [0x934bd4], 0x42000a
mov dword [0x934b64], 0x41d8a3
mov dword [0x934be8], 0x41d8c3
call esi
mov dword [0x934b50], eax
test eax, eax
jne 0x41dd83
push 0x7f00
push ebx
call esi
mov dword [0x934b50], 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.00424d6c
push ebx
push dword [0x933fe8]
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 0x41de4f
push edi
push dword [esp + 0x14]
push dword [0x935480]
call fcn.004308d6
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 [0x933fe4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov esi, eax
push 0x934b58
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.0041ff79
push 0x41d9a9
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 0x4207b8
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 0x42092e
mov eax, dword [esp + 0x24]
dec eax
je 0x420911
dec eax
jne 0x42092e
lea eax, [esp + 0x128]
xor ebp, ebp
push eax
call fcn.00420771
pop ecx
test eax, eax
je 0x42086f
mov ebx, dword [esp + 0x12c]
mov edi, dword [esp + 0x130]
mov eax, dword [esp + 0x134]
cmp byte [esp + 0x242], 1
jne 0x420832
xor ebp, ebp
inc ebp
sub ebx, 3
je 0x42090d
dec ebx
je 0x420909
dec ebx
je 0x4208e8
dec ebx
je 0x4208a2
sub ebx, 4
jne 0x42092e
test edi, edi
jne 0x42092e
cmp eax, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x42092e
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 0x420832
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
cmp byte [esp + 0x35e], 1
jmp 0x42082d
sub edi, 0
je 0x4208da
dec edi
je 0x4208cc
dec edi
je 0x4208be
dec edi
jne 0x42092e
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x42092e
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x42092e
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x42092e
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x42092e
sub edi, 0
je 0x420905
dec edi
je 0x420901
dec edi
jne 0x42092e
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x42092e
push 0x3c
jmp 0x42092d
push 0x32
jmp 0x42092d
push 0x14
jmp 0x42092d
push 5
jmp 0x42092d
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x42092b
cmp eax, 0xa
je 0x420927
cmp eax, 0x5a
jne 0x42092e
push 0x28
jmp 0x42092d
push 0x1e
jmp 0x42092d
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret
Function at 0x420c51
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push dword [0x935484]
call fcn.00430897
mov esi, eax
test esi, esi
je 0x420d2b
cmp dword [ebp + 0xc], 0
je 0x420c9d
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x420c8e
cmp dword [esi + 0x1c], 0
jne 0x420c8e
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x420d2b
test byte [ebp + 0x10], 3
je 0x420cb8
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
push eax
push dword [ebp + 0x10]
push dword [esi]
call fcn.004213ec
cmp dword [esi + 0x3c], 0xffffffff
push ebx
je 0x420cdd
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 0x420cf1
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 0x420d0e
test ebx, ebx
je 0x420d02
push 8
jmp 0x420d14
neg ecx
sbb ecx, ecx
and ecx, 3
add ecx, 4
jmp 0x420d21
test ebx, ebx
je 0x420d17
push 3
pop ecx
jmp 0x420d21
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 0x421de8
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 0x421e80
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x421e7d
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x421e7d
lea eax, [esi - 1]
push eax
push dword [0x935484]
call fcn.00430897
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x421e7f
mov edx, dword [edi + 4]
xor ecx, ecx
pop esi
cmp word [ecx + edx + 2], si
jne 0x421e74
mov esi, 0xfa01
push 9
cmp word [ecx + edx + 4], si
je 0x421f67
pop esi
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x421e5a
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x421f26
push eax
call esi
test al, al
jns 0x421f26
push 0x11
call esi
test al, al
js 0x421f26
push 0x10
call esi
test al, al
js 0x421f26
push 0x12
call esi
test al, al
js 0x421f26
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x421f26
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
je 0x421efa
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x421f11
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x421f71
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x421f71
test ebp, ebp
je 0x421f4a
push 0x11
call esi
test al, al
js 0x421f42
push 0x10
call esi
test al, al
js 0x421f42
push 0x12
call esi
test al, al
jns 0x421f4a
push 1
push ebp
call fcn.00421f7d
test ebx, ebx
je 0x421f5e
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x421f71
test edi, edi
je 0x421f71
mov eax, dword [edi + 8]
jmp 0x421f73
and dword [esp + 0x14], 0
jmp 0x421e7f
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
Function at 0x4220dc
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 0x422224
xor ecx, ecx
cmp word [eax], cx
je 0x422224
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 0x422135
cmp eax, 3
jne 0x42216f
cmp word [esp + 0xa], 0x3a
jne 0x42216f
cmp eax, 2
jne 0x422153
lea eax, [esp + 8]
push 0x4a75d8
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 0x422224
push 0xfffffffffffffffe
pop edi
jmp 0x422224
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x422184
cmp ax, bx
jne 0x42218e
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x422177
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x4221cd
test byte [esp + 0x21c], 0x10
je 0x4221b4
push 0xfffffffffffffffe
pop edi
jmp 0x4221c4
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x422222
cmp word [esp + 0x10], bp
jne 0x4221db
cmp word [esp + 0x12], bp
je 0x4221fa
cmp word [esp + 0x10], bx
jne 0x4221e9
cmp word [esp + 0x12], bx
je 0x4221fa
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x422222
cmp word [esp + 0x12], ax
jne 0x422222
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x42220f
test al, 0x10
je 0x422222
jmp 0x42221f
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x422222
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 0x422324
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x42239c
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 0x42237d
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x42237a
cmp ecx, 0x5c
je 0x42237a
cmp ecx, 0x2f
jne 0x422387
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x422367
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x42239e
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x42268b
Capabilities:
Set file attributes

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

Function at 0x42269c
Capabilities:
Delete file
Set file attributes

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

Function at 0x422757
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x42282c
push ebx
push edi
push pe_nt_image_headers32
push 3
push edi
push 3
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x42282b
push esi
mov esi, dword [ebp + 0x10]
push esi
call fcn.00424e00
push esi
mov word [ebp - 0x20], ax
call fcn.00424e26
push esi
mov word [ebp - 0x1e], ax
call fcn.00424e48
push esi
mov word [ebp - 0x1c], ax
call fcn.00424e69
push esi
mov word [ebp - 0x1a], ax
call fcn.00424e8a
push esi
mov word [ebp - 0x18], ax
call fcn.00424eab
push esi
mov word [ebp - 0x16], ax
call fcn.00424ecc
mov word [ebp - 0x14], ax
xor eax, eax
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
cmp dword [ebp + 0xc], 1
mov eax, edi
mov ecx, edi
pop esi
jne 0x42280a
lea eax, [ebp - 8]
jmp 0x422818
cmp dword [ebp + 0xc], 2
jne 0x422815
lea ecx, [ebp - 8]
jmp 0x422818
lea edi, [ebp - 8]
push ecx
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x422c00
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 0x422c3c
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

Function at 0x4230d0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 4], 0
test esi, esi
je 0x423135
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x42312d
push dword [esp + 0x10]
push dword [0x93588c]
call fcn.00430897
test eax, eax
je 0x423123
cmp dword [eax + 4], 0
je 0x423112
push edi
push esi
push eax
call fcn.00423630
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea ecx, [esp + 0xc]
push ecx
push edi
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
pop edi
xor eax, eax
pop esi
pop ecx
ret 0xc
xor eax, eax
pop esi
pop ecx
ret 0xc