joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b9d2
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 0x40ba6a
push edi
push 0x47cdac
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x47abb8]
test edi, edi
je 0x40ba3e
push ebx
push esi
lea ebx, [edi + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40ba37
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
push ebx
push 0x47abb8
call fcn.0041f125
pop ecx
pop ecx
jmp 0x40ba39
mov edi, dword [edi]
test edi, edi
jne 0x40ba0e
pop ebx
mov eax, dword [0x47881c]
mov esi, eax
inc eax
push 0x10
push 0x47abb8
mov dword [0x47881c], eax
call fcn.0041f165
pop ecx
pop ecx
push 0x47cdac
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 0x40c713
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
push ebx
push esi
push edi
xor esi, esi
push esi
push pe_nt_image_headers32
push 3
push esi
push 1
push 0x80000000
push dword [esp + 0x30]
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40c7f3
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test byte [esp + 0x20], 1
mov ebp, eax
je 0x40c7ab
push esi
push esi
push esi
push dword [esp + 0x28]
call fcn.0040d2fe
mov esi, eax
test esi, esi
je 0x40c7eb
push dword [esp + 0x18]
push dword [0x47ac0c]
call fcn.0041e991
mov ebp, eax
mov eax, 0x10000
push eax
push esi
mov dword [ebp + 0x18], eax
call fcn.0040d2c9
push eax
push esi
call fcn.0040d2af
push eax
call fcn.0040d014
mov dword [ebp], eax
test eax, eax
je 0x40c7a3
mov dword [ebp + 0x14], esi
mov ebx, ebp
jmp 0x40c7eb
push esi
call fcn.0040d2a2
jmp 0x40c7eb
push ebp
push esi
push dword [0x47a9f0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x40c7eb
push 0
lea eax, [esp + 0x14]
push eax
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
push esi
push dword [esp + 0x20]
call fcn.0040c37b
push esi
push 0
push dword [0x47a9f0]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop edi
pop esi
mov eax, ebx
pop ebx
pop ecx
ret 0xc
Function at 0x40c883
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
push edi
push ebx
push dword [0x47ac0c]
xor ebp, ebp
mov edi, ebp
mov dword [esp + 0x18], ebp
call fcn.0041e952
mov esi, eax
test esi, esi
je 0x40ca18
mov ecx, dword [esi]
mov dword [esp + 0x18], ecx
cmp dword [esi + 0x14], ebp
je 0x40c92d
push ebx
call fcn.0040cf37
jmp 0x40c8c5
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [esi + 0x1d], 0
jne 0x40c8bd
push dword [esi + 0x14]
call fcn.0040d2f1
mov eax, dword [esp + 0x1c]
push ebp
push esi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x20], eax
call fcn.0040c80e
pop ecx
pop ecx
lea eax, [esp + 0x1c]
push eax
push ebp
push esi
push 0x40ca32
push 0x2000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x40c90a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x20], 0xffffffff
je 0x40c91b
push dword [esp + 0x20]
push ebx
call fcn.0040cda5
mov eax, dword [esi]
push ebp
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [esi]
push 1
jmp 0x40c9cd
test byte [esp + 0x1c], 1
je 0x40c93c
mov dword [esp + 0x10], 1
test byte [esp + 0x1c], 2
je 0x40c9d7
push esi
call fcn.0040c6aa
lea eax, [esi + 4]
push 0x10
push eax
call fcn.0041f165
pop ecx
pop ecx
mov ecx, dword [0x47ac28]
mov edi, eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x1c]
mov edx, dword [ecx]
push ecx
call dword [edx + 0x14]
test eax, eax
jne 0x40ca18
mov eax, dword [esp + 0x18]
mov dword [edi], eax
mov eax, dword [esp + 0x10]
mov byte [edi + 5], al
mov byte [edi + 4], 1
mov eax, dword [esp + 0x18]
push dword [esi + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [esp + 0x18]
push dword [esi + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x40]
cmp dword [esp + 0x20], 0xffffffff
je 0x40c9b8
push edi
push dword [esp + 0x24]
push ebx
call fcn.0040cd05
jmp 0x40c9c5
mov eax, dword [esp + 0x18]
push dword [esi + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [esp + 0x18]
push dword [esp + 0x10]
mov ecx, dword [eax]
push ebp
push ebp
push eax
call dword [ecx + 0x30]
jmp 0x40ca18
mov eax, dword [ecx]
push ecx
call dword [eax + 0x48]
mov eax, dword [esp + 0x18]
push ebp
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
cmp dword [esp + 0x20], 0xffffffff
je 0x40c9f9
push dword [esp + 0x20]
push ebx
call fcn.0040cda5
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
push ebx
push ebp
mov ecx, dword [eax]
push ebp
push eax
call dword [ecx + 0x30]
test eax, eax
jne 0x40ca18
xor edi, edi
mov byte [esi + 0x1c], 1
inc edi
mov byte [esi + 0x1e], bl
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
Function at 0x40e00f
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x40e064
push dword [esp + 0x10]
push 0x40df8e
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [0x47ae8c]
test esi, esi
je 0x40e0bd
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x40e05c
cmp byte [esi + 0x10], 0
je 0x40e05c
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 0x40e038
jmp 0x40e0bd
mov esi, dword [0x47ae8c]
test esi, esi
je 0x40e0bd
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 0x40e0b6
cmp byte [esi + 0x11], 0
je 0x40e092
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x40e0a9
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 0x47ae8c
call fcn.0041f125
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x40e071
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x40f4a0
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x47ae98], 0
jne 0x40f4ae
call fcn.0040f420
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x47ae9c]
call esi
test eax, eax
jne 0x40f4d1
call fcn.0040f420
push dword [0x47ae9c]
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 0x40f4e0
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 0x40f540
mov ebx, 0x10
test edi, edi
jns 0x40f549
mov edi, 0x10
mov dword [eax], ebx
mov dword [eax + 4], edi
dec ebp
jne 0x40f512
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x40f560
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x47ae98], 0
jne 0x40f56e
call fcn.0040f420
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x47ae9c]
call esi
mov edx, eax
test edx, edx
jne 0x40f595
call fcn.0040f420
push dword [0x47ae9c]
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 0x40f5c8
mov ebx, 0x10
test esi, esi
jns 0x40f5d1
mov esi, 0x10
mov dword [edx], ebx
mov eax, edi
mov dword [edx + 4], esi
test ebp, ebp
je 0x40f5e0
mul ebp
mov eax, edx
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x40fe2a
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x47d14c]
call fcn.0041e952
mov ebx, eax
test ebx, ebx
je 0x40fe8e
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x40fe53
push dword [esp + 0xc]
push ebx
call eax
jmp 0x40fe8e
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.0041f590
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.0041f670
pop edi
pop esi
pop ebx
ret 8
Function at 0x416990
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4bc
lea eax, [ebp - 0x208]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov eax, dword [ebp + 8]
or eax, 0x4000
push eax
push 0x2b4
lea eax, [ebp - 0x4bc]
push eax
push 0
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov esp, ebp
pop ebp
ret 4

Function at 0x4169d5
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x416a51
cmp dword [0x47cc58], 1
je 0x416a51
push ebx
mov ebx, 0x47cc60
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [0x47cc7c]
and dword [0x47cc84], 0
mov dword [0x47cc80], esi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [0x47cc78]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x1388
push dword [0x47cc7c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x416a49
push 0
push dword [0x47cc5c]
mov dword [0x47cc58], 1
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
pop esi
ret 4
Function at 0x416d12
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [0x47c780], 0
jne 0x416de3
push ebx
push ebp
push esi
xor ebp, ebp
inc ebp
push 0x47d154
mov dword [0x47c780], ebp
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov eax, 0x640
push eax
push 8
push dword [0x47a9f0]
mov dword [0x47cc44], eax
mov dword [0x47c784], 0x1f4
call esi
mov dword [0x47cc54], eax
mov eax, dword [0x47c784]
add eax, eax
push eax
push 8
push dword [0x47a9f0]
call esi
xor ebx, ebx
mov dword [0x47cc50], eax
push 0x47cc60
mov dword [0x47cc48], ebx
mov dword [0x47cc4c], ebp
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
push ebx
push ebp
push ebx
call esi
push ebx
push ebx
push ebp
push ebx
mov dword [0x47cc78], eax
call esi
mov dword [0x47cc7c], eax
cmp dword [0x47cc78], ebx
je 0x416dda
test eax, eax
je 0x416dda
lea eax, [esp + 0xc]
mov dword [0x47cc58], ebx
push eax
push ebx
push ebx
push 0x416795
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x47cc5c], eax
jmp 0x416de0
mov dword [0x47cc58], ebp
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x416de5
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x416e8a
cmp dword [esp + 0xc], 0
je 0x416e8a
cmp dword [0x47cc58], 1
je 0x416e8a
push edi
push 0x1f
push 0
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
mov edi, eax
cmp edi, 0xffffffff
je 0x416e89
push ebp
mov ebp, 0x47cc60
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [0x47cc7c]
mov dword [0x47cc80], esi
mov dword [0x47cc84], edi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [0x47cc78]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x1388
push dword [0x47cc7c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x416e81
push 0
push dword [0x47cc5c]
mov dword [0x47cc58], 1
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebp
pop edi
pop esi
ret 8
Function at 0x41706b
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 0x4171e1
mov eax, dword [esp + 0x24]
dec eax
je 0x4171c4
dec eax
jne 0x4171e1
lea eax, [esp + 0x128]
xor ebp, ebp
push eax
call fcn.00417024
pop ecx
test eax, eax
je 0x417122
mov ebx, dword [esp + 0x12c]
mov edi, dword [esp + 0x130]
mov eax, dword [esp + 0x134]
cmp byte [esp + 0x242], 1
jne 0x4170e5
xor ebp, ebp
inc ebp
sub ebx, 3
je 0x4171c0
dec ebx
je 0x4171bc
dec ebx
je 0x41719b
dec ebx
je 0x417155
sub ebx, 4
jne 0x4171e1
test edi, edi
jne 0x4171e1
cmp eax, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x4171e1
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 0x4170e5
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
cmp byte [esp + 0x35e], 1
jmp 0x4170e0
sub edi, 0
je 0x41718d
dec edi
je 0x41717f
dec edi
je 0x417171
dec edi
jne 0x4171e1
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x4171e1
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x4171e1
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x4171e1
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x4171e1
sub edi, 0
je 0x4171b8
dec edi
je 0x4171b4
dec edi
jne 0x4171e1
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x4171e1
push 0x3c
jmp 0x4171e0
push 0x32
jmp 0x4171e0
push 0x14
jmp 0x4171e0
push 5
jmp 0x4171e0
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4171de
cmp eax, 0xa
je 0x4171da
cmp eax, 0x5a
jne 0x4171e1
push 0x28
jmp 0x4171e0
push 0x1e
jmp 0x4171e0
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret
Function at 0x41742e
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push dword [0x47d174]
call fcn.0041e952
mov esi, eax
test esi, esi
je 0x417508
cmp dword [ebp + 0xc], 0
je 0x41747a
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x41746b
cmp dword [esi + 0x1c], 0
jne 0x41746b
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x417508
test byte [ebp + 0x10], 3
je 0x417495
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
push eax
push dword [ebp + 0x10]
push dword [esi]
call fcn.00417a59
cmp dword [esi + 0x3c], 0xffffffff
push ebx
je 0x4174ba
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 0x4174ce
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 0x4174eb
test ebx, ebx
je 0x4174df
push 8
jmp 0x4174f1
neg ecx
sbb ecx, ecx
and ecx, 3
add ecx, 4
jmp 0x4174fe
test ebx, ebx
je 0x4174f4
push 3
pop ecx
jmp 0x4174fe
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 0x417bec
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 0x417c84
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x417c81
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x417c81
lea eax, [esi - 1]
push eax
push dword [0x47d174]
call fcn.0041e952
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x417c83
mov edx, dword [edi + 4]
xor ecx, ecx
pop esi
cmp word [ecx + edx + 2], si
jne 0x417c78
mov esi, 0xfa01
push 9
cmp word [ecx + edx + 4], si
je 0x417d6b
pop esi
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x417c5e
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x417d2a
push eax
call esi
test al, al
jns 0x417d2a
push 0x11
call esi
test al, al
js 0x417d2a
push 0x10
call esi
test al, al
js 0x417d2a
push 0x12
call esi
test al, al
js 0x417d2a
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x417d2a
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
je 0x417cfe
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x417d15
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x417d75
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x417d75
test ebp, ebp
je 0x417d4e
push 0x11
call esi
test al, al
js 0x417d46
push 0x10
call esi
test al, al
js 0x417d46
push 0x12
call esi
test al, al
jns 0x417d4e
push 1
push ebp
call fcn.00417d81
test ebx, ebx
je 0x417d62
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x417d75
test edi, edi
je 0x417d75
mov eax, dword [edi + 8]
jmp 0x417d77
and dword [esp + 0x14], 0
jmp 0x417c83
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
Function at 0x418740
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 0x418888
xor ecx, ecx
cmp word [eax], cx
je 0x418888
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 0x418799
cmp eax, 3
jne 0x4187d3
cmp word [esp + 0xa], 0x3a
jne 0x4187d3
cmp eax, 2
jne 0x4187b7
lea eax, [esp + 8]
push 0x45c294
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 0x418888
push 0xfffffffffffffffe
pop edi
jmp 0x418888
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x4187e8
cmp ax, bx
jne 0x4187f2
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x4187db
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x418831
test byte [esp + 0x21c], 0x10
je 0x418818
push 0xfffffffffffffffe
pop edi
jmp 0x418828
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x418886
cmp word [esp + 0x10], bp
jne 0x41883f
cmp word [esp + 0x12], bp
je 0x41885e
cmp word [esp + 0x10], bx
jne 0x41884d
cmp word [esp + 0x12], bx
je 0x41885e
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x418886
cmp word [esp + 0x12], ax
jne 0x418886
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x418873
test al, 0x10
je 0x418886
jmp 0x418883
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x418886
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 0x418897
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x41890f
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 0x4188f0
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x4188ed
cmp ecx, 0x5c
je 0x4188ed
cmp ecx, 0x2f
jne 0x4188fa
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x4188da
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x418911
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x418b5a
Capabilities:
Check if file exists

Disassembly:
xor eax, eax
push ebp
mov ebp, eax
mov eax, dword [0x47cca0]
push esi
test eax, eax
jne 0x418b7f
push fcn.00418c87
push 0x10
push 0x258
call fcn.0041ea25
mov dword [0x47cca0], eax
push dword [esp + 0xc]
push eax
call fcn.0041e991
mov esi, eax
test esi, esi
je 0x418c80
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x418ba1
mov edi, 0x45c074
push ebx
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x418bb1
xor eax, eax
cmp word [ebx], ax
jne 0x418bb6
mov ebx, 0x45c278
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 [0x47a9f0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x418c67
push edi
push eax
call sub.MSVCRT.dll_wcscpy
mov eax, dword [esp + 0x24]
pop ecx
pop ecx
test eax, eax
je 0x418c17
cmp word [edi + eax*2 - 2], 0x5c
mov edi, dword [esp + 0x18]
je 0x418c1b
push 0x45c294
push edi
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
jmp 0x418c1b
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 0x418c3f
xor eax, eax
mov ebp, esi
mov dword [esi + 4], eax
jmp 0x418c55
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x418c53
mov dword [esi + 4], 1
mov ebp, esi
xor eax, eax
push edi
push eax
push dword [0x47a9f0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebp, ebp
jne 0x418c7e
cmp dword [esp + 0x14], 0xffffffff
je 0x418c72
mov esi, dword [esp + 0x14]
push esi
push dword [0x47cca0]
call fcn.0041e903
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
ret 0xc

Function at 0x41bbf0
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x41bc22
push 0
lea ecx, [esp + 0x10]
push ecx
push esi
push dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41bc1d
cmp dword [esp + 0xc], esi
je 0x41bc39
pop edi
xor eax, eax
pop esi
ret
mov eax, dword [edi + 4]
add eax, dword [edi + 8]
push esi
push dword [esp + 0x14]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
add dword [edi + 8], esi
pop edi
mov eax, 1
pop esi
ret

Function at 0x41e7e1
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push dword [0x47cd08]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x41e842
push esi
push dword [0x47cd04]
push 8
push dword [0x47a9f0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
push edi
push dword [0x47cd08]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esi, dword [0x47cd00]
jmp 0x41e832
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x41e830
mov eax, dword [esi + 8]
add eax, edi
push eax
call ecx
pop ecx
mov esi, dword [esi]
test esi, esi
jne 0x41e820
push edi
push 0x41e77f
call fcn.0045404e
pop esi
mov eax, dword [esp + 8]
add eax, edi
pop edi
ret 4