joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5872c3
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
push ebx
push ebp
push esi
push edi
push dword [0x7c8c14]
call fcn.005b07a8
cmp dword [0x7c4590], 0
mov edi, eax
mov esi, 0x50010000
jne 0x58742b
mov ebx, 0xa4
push ebx
push 0
push 0x7c4598
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x7c4598], 0x1b
mov dword [0x7c459c], ebx
mov dword [0x7c45a0], 0x586bf7
mov dword [0x7c45a4], 0x586f3c
mov dword [0x7c45bc], 0x586974
mov dword [0x7c45cc], 0x586f32
mov dword [0x7c45c4], 0x586edd
mov dword [0x7c45c0], 0x5875c7
mov dword [0x7c45ac], 0x587aae
mov dword [0x7c45a8], 0x587183
mov dword [0x7c45b0], 0x5871cd
mov dword [0x7c45b4], 0x587adf
mov dword [0x7c45d8], 0x5870fa
mov dword [0x7c45dc], 0x587a67
mov dword [0x7c45d0], 0x587069
mov dword [0x7c45d4], 0x587914
mov dword [0x7c4610], 0x587761
mov dword [0x7c4614], 0x586f81
mov dword [0x7c4618], 0x5877b4
mov dword [0x7c461c], 0x58700d
mov dword [0x7c4620], 0x587826
mov dword [0x7c4624], 0x587047
mov dword [0x7c4608], 0x586fdc
mov dword [0x7c4638], 0x587848
call fcn.005917c5
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x587421
cmp dword [esp + 0x24], 2
jne 0x587421
cmp dword [esp + 0x18], 6
jb 0x587421
mov eax, dword [0x7c3cd8]
mov dword [0x7c4594], eax
mov dword [0x7c4590], 1
test byte [esp + 0x140], 2
jne 0x58743a
mov esi, 0x50010002
test byte [esp + 0x140], 1
jne 0x587447
or esi, 5
test byte [esp + 0x140], 0x20
je 0x587454
or esi, 0x20
push 0x1f4
push 0
push dword [0x7c1878]
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.0059bf49
test ebp, ebp
je 0x587597
push 0
push dword [0x7c187c]
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 0x58759b
push dword [esp + 0x12c]
push dword [0x7c8afc]
call fcn.005b0986
push 0x587b28
push 0xfffffffffffffffc
push ebx
mov edi, eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 4
push 4
push 0x112c
push ebx
mov dword [0x7c463c], eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x7c4598
push ebx
push edi
push dword [esp + 0x138]
mov dword [edi + 0x14], ebp
mov dword [edi + 0x18], 0x19
call fcn.00591993
mov ebx, eax
mov eax, 0x100
test dword [esp + 0x140], eax
je 0x58759b
or esi, eax
push esi
push 0xfffffffffffffff0
push dword [edi]
call dword [sym.imp.USER32.dll_SetWindowLongW]
test dword [esp + 0x140], 0x10000
je 0x58759b
call fcn.00595333
cmp eax, 0x3c
jg 0x58756a
push edi
call fcn.00586e19
pop ecx
push 0
push 2
push 0x1108
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x587587
push eax
push dword [edi]
call fcn.005943aa
push edi
push str.PB_3State
push dword [edi]
call dword [sym.imp.USER32.dll_SetPropW]
jmp 0x58759b
mov ebx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x118
ret 0x18
Function at 0x5887f0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push 0
push 0
push 0x1304
push dword [ebp]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jle 0x588862
push ebx
mov ebx, dword [esp + 0x10]
push esi
push edi
cmp ebx, 0xffffffff
jne 0x588819
mov ebx, eax
push dword [ebp]
call fcn.00587f72
push ebx
push dword [ebp]
mov edi, eax
call fcn.00587f49
add esp, 0xc
mov esi, eax
push 0
push ebx
push 0x130c
push dword [ebp]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
push esi
push dword [ebp]
call fcn.00588882
pop ecx
pop ecx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x58e4af
Capabilities:
Check os version

Disassembly:
sub esp, 0x114
push ebx
push ebp
push esi
push edi
push dword [0x7c8c14]
call fcn.005b07a8
xor ebp, ebp
mov esi, eax
cmp dword [0x7c63b8], ebp
jne 0x58e58b
xor ebx, ebx
inc ebx
mov dword [0x7c63b8], ebx
call fcn.005917c5
mov edi, 0xa4
push edi
push ebp
push 0x7c63c0
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x7c63c0], 0x13
lea eax, [esp + 0x10]
mov dword [0x7c63c4], edi
mov dword [0x7c63d0], 0x58e3fa
mov dword [0x7c63d4], 0x58e745
push eax
mov dword [0x7c6428], 0x58e3d5
mov dword [0x7c642c], 0x58e690
mov dword [0x7c63cc], 0x58e3b0
mov dword [0x7c6450], 0x58e415
mov dword [0x7c6464], ebx
mov dword [esp + 0x14], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x58e58b
cmp dword [esp + 0x20], ebx
je 0x58e573
cmp dword [esp + 0x20], 2
jne 0x58e58b
cmp dword [esp + 0x14], 5
jae 0x58e57b
mov dword [0x7c6464], ebp
jmp 0x58e58b
jne 0x58e58b
mov eax, dword [esp + 0x18]
neg eax
sbb eax, eax
and dword [0x7c6464], 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.0059bf49
mov eax, dword [esp + 0x140]
push ebp
push dword [0x7c187c]
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 0x58e661
push dword [esp + 0x128]
push dword [0x7c8afc]
call fcn.005b0986
mov edi, dword [esp + 0x13c]
mov esi, eax
mov dword [esi + 0x10], edi
test edi, edi
je 0x58e630
push edi
call fcn.005aa8f2
test eax, eax
je 0x58e630
push ebp
push ebp
push edi
call fcn.005aa53c
mov dword [esi + 0x18], eax
jmp 0x58e633
mov dword [esi + 0x18], ebp
push 0x58e0ff
push 0xfffffffffffffffc
push ebx
mov dword [esi + 0x14], ebp
mov dword [esi + 0x1c], ebp
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x7c63c0
push ebx
push esi
push dword [esp + 0x134]
mov dword [0x7c63bc], eax
call fcn.00591993
mov ebx, eax
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x114
ret 0x1c
Function at 0x58ea9d
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x458
push esi
mov esi, dword [sym.imp.USER32.dll_GetParent]
push edi
push dword [ebp + 8]
call esi
push eax
call esi
push eax
call fcn.00593911
mov esi, eax
lea eax, [ebp - 0x208]
push eax
push 0x104
push 0xd
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x208]
push eax
call sub.MSVCRT.dll_wcslen
pop ecx
cmp word [ebp + eax*2 - 0x20a], 0x5c
jne 0x58eaf7
xor ecx, ecx
mov word [ebp + eax*2 - 0x20a], cx
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x58eb3a
test byte [ebp - 0x458], 0x10
je 0x58eb31
lea eax, [ebp - 0x208]
push eax
push esi
call fcn.0058ee94
push 0
push dword [esi]
call fcn.005938d3
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x58eb58
push dword [esi + 0x14]
lea eax, [ebp - 0x208]
push eax
call sub.MSVCRT.dll_wcscpy
pop ecx
pop ecx
lea eax, [ebp - 0x208]
push eax
push esi
call fcn.0058ee94
lea eax, [ebp - 0x208]
push eax
call sub.MSVCRT.dll_wcslen
pop ecx
push eax
lea eax, [ebp - 0x208]
push eax
call sub.MSVCRT.dll_wcslen
pop ecx
push eax
push 0xb1
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x5900e3
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
push dword [0x7c8c14]
call fcn.005b07a8
xor ebx, ebx
mov ebp, eax
cmp dword [0x7c6ea8], ebx
jne 0x590177
mov esi, 0xa4
push esi
push ebx
push 0x7c6eb0
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x7c6eb4], esi
mov esi, dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [0x7c6eb0], 0xa
mov dword [0x7c6eb8], 0x58fc78
push 0x7f89
push ebx
mov dword [0x7c6f28], 0x593b70
mov dword [0x7c6f2c], 0x593b4a
mov dword [0x7c6ebc], 0x58fc97
mov dword [0x7c6f40], 0x58fcb7
call esi
mov dword [0x7c6ea8], eax
test eax, eax
jne 0x590177
push 0x7f00
push ebx
call esi
mov dword [0x7c6ea8], 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.0059bf49
push ebx
push dword [0x7c187c]
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 0x6ef150
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ebx, eax
test ebx, ebx
je 0x590243
push edi
push dword [esp + 0x14]
push dword [0x7c8afc]
call fcn.005b0986
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 [0x7c1878]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov esi, eax
push 0x7c6eb0
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.00591993
push 0x58fd9d
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 0x594885
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 0x5948ca
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x594946
cmp dword [0x7c7888], 1
je 0x594946
push ebx
mov ebx, 0x7c7890
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [0x7c78ac]
and dword [0x7c78b4], 0
mov dword [0x7c78b0], esi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [0x7c78a8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x1388
push dword [0x7c78ac]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x59493e
push 0
push dword [0x7c788c]
mov dword [0x7c7888], 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 0x594c07
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [0x7c73b0], 0
jne 0x594cd8
push ebx
push ebp
push esi
xor ebp, ebp
inc ebp
push 0x7c8c40
mov dword [0x7c73b0], 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 [0x7c1878]
mov dword [0x7c7874], eax
mov dword [0x7c73b4], 0x1f4
call esi
mov dword [0x7c7884], eax
mov eax, dword [0x7c73b4]
add eax, eax
push eax
push 8
push dword [0x7c1878]
call esi
xor ebx, ebx
mov dword [0x7c7880], eax
push 0x7c7890
mov dword [0x7c7878], ebx
mov dword [0x7c787c], 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 [0x7c78a8], eax
call esi
mov dword [0x7c78ac], eax
cmp dword [0x7c78a8], ebx
je 0x594ccf
test eax, eax
je 0x594ccf
lea eax, [esp + 0xc]
mov dword [0x7c7888], ebx
push eax
push ebx
push ebx
push 0x59468a
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x7c788c], eax
jmp 0x594cd5
mov dword [0x7c7888], ebp
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x594d55
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x594dfa
cmp dword [esp + 0xc], 0
je 0x594dfa
cmp dword [0x7c7888], 1
je 0x594dfa
push edi
push 0x1f
push 0
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
mov edi, eax
cmp edi, 0xffffffff
je 0x594df9
push ebp
mov ebp, 0x7c7890
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [0x7c78ac]
mov dword [0x7c78b0], esi
mov dword [0x7c78b4], edi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [0x7c78a8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x1388
push dword [0x7c78ac]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x594df1
push 0
push dword [0x7c788c]
mov dword [0x7c7888], 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 0x595333
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 0x5954a9
mov eax, dword [esp + 0x24]
dec eax
je 0x59548c
dec eax
jne 0x5954a9
lea eax, [esp + 0x128]
xor ebp, ebp
push eax
call fcn.005952ec
pop ecx
test eax, eax
je 0x5953ea
mov ebx, dword [esp + 0x12c]
mov edi, dword [esp + 0x130]
mov eax, dword [esp + 0x134]
cmp byte [esp + 0x242], 1
jne 0x5953ad
xor ebp, ebp
inc ebp
sub ebx, 3
je 0x595488
dec ebx
je 0x595484
dec ebx
je 0x595463
dec ebx
je 0x59541d
sub ebx, 4
jne 0x5954a9
test edi, edi
jne 0x5954a9
cmp eax, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x5954a9
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 0x5953ad
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
cmp byte [esp + 0x35e], 1
jmp 0x5953a8
sub edi, 0
je 0x595455
dec edi
je 0x595447
dec edi
je 0x595439
dec edi
jne 0x5954a9
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x5954a9
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x5954a9
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x5954a9
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x5954a9
sub edi, 0
je 0x595480
dec edi
je 0x59547c
dec edi
jne 0x5954a9
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x5954a9
push 0x3c
jmp 0x5954a8
push 0x32
jmp 0x5954a8
push 0x14
jmp 0x5954a8
push 5
jmp 0x5954a8
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x5954a6
cmp eax, 0xa
je 0x5954a2
cmp eax, 0x5a
jne 0x5954a9
push 0x28
jmp 0x5954a8
push 0x1e
jmp 0x5954a8
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret
Function at 0x595a8c
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push dword [0x7c8b00]
call fcn.005b0947
mov esi, eax
test esi, esi
je 0x595b66
cmp dword [ebp + 0xc], 0
je 0x595ad8
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x595ac9
cmp dword [esi + 0x1c], 0
jne 0x595ac9
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x595b66
test byte [ebp + 0x10], 3
je 0x595af3
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
push eax
push dword [ebp + 0x10]
push dword [esi]
call fcn.005968d7
cmp dword [esi + 0x3c], 0xffffffff
push ebx
je 0x595b18
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 0x595b2c
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 0x595b49
test ebx, ebx
je 0x595b3d
push 8
jmp 0x595b4f
neg ecx
sbb ecx, ecx
and ecx, 3
add ecx, 4
jmp 0x595b5c
test ebx, ebx
je 0x595b52
push 3
pop ecx
jmp 0x595b5c
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 0x59727e
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 0x597316
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x597313
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x597313
lea eax, [esi - 1]
push eax
push dword [0x7c8b00]
call fcn.005b0947
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x597315
mov edx, dword [edi + 4]
xor ecx, ecx
pop esi
cmp word [ecx + edx + 2], si
jne 0x59730a
mov esi, 0xfa01
push 9
cmp word [ecx + edx + 4], si
je 0x5973fd
pop esi
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x5972f0
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x5973bc
push eax
call esi
test al, al
jns 0x5973bc
push 0x11
call esi
test al, al
js 0x5973bc
push 0x10
call esi
test al, al
js 0x5973bc
push 0x12
call esi
test al, al
js 0x5973bc
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x5973bc
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
je 0x597390
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x5973a7
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x597407
lea eax, [esp + 0x18]
push 0x7058c4
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x597407
test ebp, ebp
je 0x5973e0
push 0x11
call esi
test al, al
js 0x5973d8
push 0x10
call esi
test al, al
js 0x5973d8
push 0x12
call esi
test al, al
jns 0x5973e0
push 1
push ebp
call fcn.00597413
test ebx, ebx
je 0x5973f4
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x597407
test edi, edi
je 0x597407
mov eax, dword [edi + 8]
jmp 0x597409
and dword [esp + 0x14], 0
jmp 0x597315
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
Function at 0x597fbe
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push ebx
xor ebx, ebx
push esi
mov esi, ebx
test eax, eax
je 0x598164
cmp word [eax], bx
je 0x598164
push ebx
push pe_nt_image_headers32
push 3
push ebx
push 1
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 8], eax
cmp eax, 0xffffffff
je 0x598160
push ebp
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
test ebp, ebp
jle 0x598155
push edi
push dword [esp + 0x20]
call fcn.0059a249
mov edi, eax
test edi, edi
je 0x598154
cmp dword [esp + 0x20], 0xffffffff
mov ebx, dword [esp + 0x18]
jne 0x598034
push 2
jmp 0x598038
push dword [esp + 0x20]
push ebx
call fcn.00598a16
mov esi, eax
test esi, esi
je 0x59814d
cmp ebx, 0xffffffff
jne 0x59804f
mov ebx, esi
mov eax, dword [esi + 4]
mov dword [esi + 0x30], ebx
lea ebx, [ebp + 8]
mov dword [esi + 0x38], eax
xor eax, eax
push ebx
push eax
mov dword [esi + 0x2c], edi
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x14], eax
push dword [0x7c1878]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi + 0x28], eax
test eax, eax
je 0x598090
mov dword [eax + 4], ebx
mov eax, dword [esi + 0x28]
and dword [eax], 0
mov eax, dword [esi + 0x28]
add eax, 8
mov dword [esi + 0x44], eax
cmp dword [esp + 0x20], 0xffffffff
je 0x59809e
mov dword [esi + 0x34], 1
push esi
push edi
call fcn.00626110
pop ecx
pop ecx
xor ebx, ebx
mov ecx, 0x4000
mov dword [esp + 0x20], ecx
test ebp, ebp
jle 0x598149
lea eax, [ecx + ebx]
cmp eax, ebp
jle 0x5980c9
mov ecx, ebp
sub ecx, ebx
mov dword [esp + 0x20], ecx
push ecx
push edi
call fcn.00625930
mov dword [esp + 0x20], eax
pop ecx
pop ecx
test eax, eax
je 0x59813b
push 0
lea ecx, [esp + 0x20]
push ecx
push dword [esp + 0x28]
push eax
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x1c]
add ebx, eax
cmp dword [esi + 0x14], 0
jne 0x59810d
push eax
push dword [esp + 0x1c]
call fcn.0059a2f4
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x1c]
cmp ebx, ebp
jl 0x598115
push 1
jmp 0x598117
push 0
push eax
push edi
call fcn.00625d70
add esp, 0xc
test eax, eax
je 0x59812f
mov ecx, dword [esp + 0x20]
cmp ebx, ebp
jl 0x5980ba
jmp 0x598149
push edi
call fcn.00625be0
pop ecx
mov dword [esi + 0x18], eax
jmp 0x598142
mov dword [esi + 0x18], 1
push edi
push esi
call fcn.0059a3ae
and dword [esi + 0x2c], 0
push edi
call fcn.00625eb0
pop ecx
pop edi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
mov eax, esi
jmp 0x598166
xor eax, eax
pop esi
pop ebx
pop ecx
ret 0xc

Function at 0x599de1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp + 8]
push edi
push 0
push eax
mov edi, 0x1000
mov eax, edi
sub eax, dword [esi + 4]
push eax
push dword [esi + 0x10]
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, edi
sub eax, dword [esi + 4]
cmp dword [ebp + 8], eax
jne 0x599e1d
mov eax, dword [esi + 0x10]
mov dword [esi], eax
xor eax, eax
mov dword [esi + 4], edi
inc eax
jmp 0x599e1f
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x59cc43
Capabilities:
Check if file exists

Disassembly:
xor eax, eax
push ebp
mov ebp, eax
mov eax, dword [0x7c7904]
push esi
test eax, eax
jne 0x59cc68
push fcn.0059cd70
push 0x10
push 0x258
call fcn.005b0a1a
mov dword [0x7c7904], eax
push dword [esp + 0xc]
push eax
call fcn.005b0986
mov esi, eax
test esi, esi
je 0x59cd69
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x59cc8a
mov edi, 0x6ef070
push ebx
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x59cc9a
xor eax, eax
cmp word [ebx], ax
jne 0x59cc9f
mov ebx, 0x705e1c
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 [0x7c1878]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x59cd50
push edi
push eax
call sub.MSVCRT.dll_wcscpy
mov eax, dword [esp + 0x24]
pop ecx
pop ecx
test eax, eax
je 0x59cd00
cmp word [edi + eax*2 - 2], 0x5c
mov edi, dword [esp + 0x18]
je 0x59cd04
push 0x705e38
push edi
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
jmp 0x59cd04
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 0x59cd28
xor eax, eax
mov ebp, esi
mov dword [esi + 4], eax
jmp 0x59cd3e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x59cd3c
mov dword [esi + 4], 1
mov ebp, esi
xor eax, eax
push edi
push eax
push dword [0x7c1878]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebp, ebp
jne 0x59cd67
cmp dword [esp + 0x14], 0xffffffff
je 0x59cd5b
mov esi, dword [esp + 0x14]
push esi
push dword [0x7c7904]
call fcn.005b08f8
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
ret 0xc