joyce8/EMBER2024-capa huggingface dataset:
Function at 0x540ff0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
mov dword [esp + 4], 0
cmp dword [esi + 0x1c], 0
jne 0x5410f7
cmp dword [esi + 0x14], 1
jne 0x54103b
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0xc]
push 1
neg eax
cdq
push ecx
push eax
push dword [esi]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esi + 8]
mov dword [esi + 0x14], 0
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
push edi
mov edi, dword [esp + 0x20]
cmp eax, edi
jle 0x5410b8
mov ecx, dword [esi + 8]
add ecx, dword [esi + 4]
sub ecx, eax
mov eax, edi
dec eax
je 0x5410a3
dec eax
je 0x54108c
sub eax, 2
je 0x541077
push edi
push dword [esp + 0x20]
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x1c]
mov ax, word [eax]
mov word [ecx], ax
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x1c]
mov al, byte [eax]
mov byte [ecx], al
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
push esi
call fcn.00540ca0
mov eax, dword [esi + 8]
cmp edi, eax
jl 0x5410e5
push 0
lea eax, [esp + 0xc]
push eax
push edi
push dword [esp + 0x28]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0xc
ret 0xc
mov ecx, dword [esi + 4]
sub ecx, dword [esi + 0xc]
push edi
push dword [esp + 0x20]
add ecx, eax
jmp 0x541061
xor eax, eax
pop esi
add esp, 0xc
ret 0xc

Function at 0x542fcf
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
push 1
call edi
mov ebx, 0x8000
test bx, ax
je 0x542fe9
inc esi
push 2
call edi
test bx, ax
je 0x542ff5
or esi, 2
push 4
call edi
test bx, ax
je 0x543001
or esi, 4
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x543597
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x2c]
lea eax, [esp + 0x18]
push eax
xor ebx, ebx
mov dword [esp + 0x14], ebx
push dword [edi]
call dword [sym.imp.USER32.dll_GetClientRect]
mov esi, dword [esp + 0x30]
test esi, esi
jne 0x5435cf
push dword [edi]
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
mov dword [esp + 0x10], 1
push dword [edi]
push esi
call fcn.0055769d
test byte [edi + 0x14], 8
mov dword [esp + 0x14], eax
je 0x5436c0
call dword [sym.imp.USER32.dll_GetFocus]
cmp dword [edi], eax
jne 0x5436c0
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x24]
sub ebp, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
test eax, eax
jle 0x5436ee
test ebp, ebp
jle 0x5436ee
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, eax
test ebx, ebx
je 0x5436ee
push ebp
push dword [esp + 0x30]
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [esp + 0x30], eax
test eax, eax
je 0x5436b7
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [edi + 0x10], 0
je 0x543661
push 4
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push dword [edi + 0x10]
push eax
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawStateW]
jmp 0x543676
push 0
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_FillRect]
push 2
pop eax
add dword [esp + 0x18], eax
add dword [esp + 0x1c], eax
sub dword [esp + 0x20], eax
sub dword [esp + 0x24], eax
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawFocusRect]
push 0xcc0020
xor eax, eax
push eax
push eax
push ebx
push ebp
push dword [esp + 0x40]
push eax
push eax
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [esp + 0x30]
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
jmp 0x5436ee
cmp dword [edi + 0x10], ebx
je 0x5436da
push 4
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [edi + 0x10]
push ebx
push ebx
push esi
call dword [sym.imp.USER32.dll_DrawStateW]
jmp 0x5436ee
push ebx
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.USER32.dll_FillRect]
push dword [esp + 0x14]
push esi
call fcn.0055767b
cmp dword [esp + 0x10], 0
je 0x543708
push esi
push dword [edi]
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x543710
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
xor ebx, ebx
call dword [sym.imp.USER32.dll_GetMessagePos]
mov edi, dword [esp + 0x20]
mov esi, eax
push 0xfffffffffffffff4
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [edi]
mov dword [esp + 0x14], eax
call fcn.00557508
push eax
call fcn.0055acd6
push dword [0x760bc4]
mov dword [esp + 0x24], eax
call fcn.0057190c
mov ebp, eax
movsx ecx, si
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ecx
push eax
push dword [edi]
shr esi, 0x10
movsx ecx, si
mov dword [esp + 0x20], ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
call esi
mov edi, 0x8000
test di, ax
je 0x543784
inc ebx
push 0x12
call esi
test di, ax
je 0x543790
or ebx, 2
push 0x11
call esi
test di, ax
je 0x54379c
or ebx, 4
mov eax, dword [esp + 0x14]
mov dword [ebp], eax
mov eax, dword [esp + 0x18]
mov dword [ebp + 4], eax
call fcn.00542fcf
push 0x5437f1
push ebp
push dword [esp + 0x2c]
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x34]
push dword [esp + 0x2c]
mov dword [ebp + 0xc], eax
mov eax, dword [esp + 0x3c]
push dword [esp + 0x20]
mov dword [ebp + 0x14], eax
mov eax, dword [esp + 0x44]
movzx eax, ax
push 0x332c
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0x18], eax
call fcn.0055c19c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x5441b3
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x765a30]
call fcn.005717ab
mov ebx, eax
test ebx, ebx
je 0x544217
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x5441dc
push dword [esp + 0xc]
push ebx
call eax
jmp 0x544217
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.00572d00
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.00572dd0
pop edi
pop esi
pop ebx
ret 8
Function at 0x544d96
Capabilities:
Check os version

Disassembly:
sub esp, 0x114
push ebx
push ebp
push esi
push edi
push dword [0x765a28]
call fcn.00571742
xor ebp, ebp
mov esi, eax
cmp dword [0x760d50], ebp
jne 0x544e72
xor ebx, ebx
inc ebx
mov dword [0x760d50], ebx
call fcn.00557369
mov edi, 0xa4
push edi
push ebp
push 0x760d58
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x760d58], 0x13
lea eax, [esp + 0x10]
mov dword [0x760d5c], edi
mov dword [0x760d68], 0x544ce1
mov dword [0x760d6c], 0x54502c
push eax
mov dword [0x760dc0], 0x544cbc
mov dword [0x760dc4], 0x544f77
mov dword [0x760d64], 0x544c97
mov dword [0x760de8], 0x544cfc
mov dword [0x760dfc], ebx
mov dword [esp + 0x14], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x544e72
cmp dword [esp + 0x20], ebx
je 0x544e5a
cmp dword [esp + 0x20], 2
jne 0x544e72
cmp dword [esp + 0x14], 5
jae 0x544e62
mov dword [0x760dfc], ebp
jmp 0x544e72
jne 0x544e72
mov eax, dword [esp + 0x18]
neg eax
sbb eax, eax
and dword [0x760dfc], 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.0055ce72
mov eax, dword [esp + 0x140]
push ebp
push dword [0x760374]
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 0x544f48
push dword [esp + 0x128]
push dword [0x765a30]
call fcn.005717d3
mov edi, dword [esp + 0x13c]
mov esi, eax
mov dword [esi + 0x10], edi
test edi, edi
je 0x544f17
push edi
call fcn.00568c74
test eax, eax
je 0x544f17
push ebp
push ebp
push edi
call fcn.005688be
mov dword [esi + 0x18], eax
jmp 0x544f1a
mov dword [esi + 0x18], ebp
push 0x5449e6
push 0xfffffffffffffffc
push ebx
mov dword [esi + 0x14], ebp
mov dword [esi + 0x1c], ebp
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x760d58
push ebx
push esi
push dword [esp + 0x134]
mov dword [0x760d54], eax
call fcn.00557537
mov ebx, eax
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x114
ret 0x1c
Function at 0x5474f0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
push dword [0x765a28]
call fcn.00571742
xor ebx, ebx
mov ebp, eax
cmp dword [0x7610e0], ebx
jne 0x547584
mov esi, 0xa4
push esi
push ebx
push 0x7610e8
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x7610ec], esi
mov esi, dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [0x7610e8], 0xa
mov dword [0x7610f0], 0x547085
push 0x7f89
push ebx
mov dword [0x761160], 0x5577e4
mov dword [0x761164], 0x5577be
mov dword [0x7610f4], 0x5470a4
mov dword [0x761178], 0x5470c4
call esi
mov dword [0x7610e0], eax
test eax, eax
jne 0x547584
push 0x7f00
push ebx
call esi
mov dword [0x7610e0], 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.0055ce72
push ebx
push dword [0x760374]
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 0x547650
push edi
push dword [esp + 0x14]
push dword [0x765a30]
call fcn.005717d3
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 [0x760378]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov esi, eax
push 0x7610e8
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.00557537
push 0x5471aa
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 0x54b348
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
push ebx
push ebp
push esi
push edi
push dword [0x765a28]
call fcn.00571742
cmp dword [0x761880], 0
mov edi, eax
mov esi, 0x50010000
jne 0x54b4b0
mov ebx, 0xa4
push ebx
push 0
push 0x761888
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x761888], 0x1b
mov dword [0x76188c], ebx
mov dword [0x761890], 0x54acb8
mov dword [0x761894], 0x54affd
mov dword [0x7618ac], 0x54aa35
mov dword [0x7618bc], 0x54aff3
mov dword [0x7618b4], 0x54af9e
mov dword [0x7618b0], 0x54b62f
mov dword [0x76189c], 0x54bb16
mov dword [0x761898], 0x54b244
mov dword [0x7618a0], 0x54b28e
mov dword [0x7618a4], 0x54bb47
mov dword [0x7618c8], 0x54b1bb
mov dword [0x7618cc], 0x54bacf
mov dword [0x7618c0], 0x54b12a
mov dword [0x7618c4], 0x54b97c
mov dword [0x761900], 0x54b7c9
mov dword [0x761904], 0x54b042
mov dword [0x761908], 0x54b81c
mov dword [0x76190c], 0x54b0ce
mov dword [0x761910], 0x54b88e
mov dword [0x761914], 0x54b108
mov dword [0x7618f8], 0x54b09d
mov dword [0x761928], 0x54b8b0
call fcn.00557369
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x54b4a6
cmp dword [esp + 0x24], 2
jne 0x54b4a6
cmp dword [esp + 0x18], 6
jb 0x54b4a6
mov eax, dword [0x7617c8]
mov dword [0x761884], eax
mov dword [0x761880], 1
test byte [esp + 0x140], 2
jne 0x54b4bf
mov esi, 0x50010002
test byte [esp + 0x140], 1
jne 0x54b4cc
or esi, 5
test byte [esp + 0x140], 0x20
je 0x54b4d9
or esi, 0x20
push 0x1f4
push 0
push dword [0x760378]
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.0055ce72
test ebp, ebp
je 0x54b61c
push 0
push dword [0x760374]
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 0x54b620
push dword [esp + 0x12c]
push dword [0x765a30]
call fcn.005717d3
push 0x54bb90
push 0xfffffffffffffffc
push ebx
mov edi, eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 4
push 4
push 0x112c
push ebx
mov dword [0x76192c], eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x761888
push ebx
push edi
push dword [esp + 0x138]
mov dword [edi + 0x14], ebp
mov dword [edi + 0x18], 0x19
call fcn.00557537
mov ebx, eax
mov eax, 0x100
test dword [esp + 0x140], eax
je 0x54b620
or esi, eax
push esi
push 0xfffffffffffffff0
push dword [edi]
call dword [sym.imp.USER32.dll_SetWindowLongW]
test dword [esp + 0x140], 0x10000
je 0x54b620
call fcn.00559a5c
cmp eax, 0x3c
jg 0x54b5ef
push edi
call fcn.0054aeda
pop ecx
push 0
push 2
push 0x1108
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x54b60c
push eax
push dword [edi]
call fcn.00557e35
push edi
push str.PB_3State
push dword [edi]
call dword [sym.imp.USER32.dll_SetPropW]
jmp 0x54b620
mov ebx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x118
ret 0x18
Function at 0x54d017
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.0055783f
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 0x54d071
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 0x54d0b4
test byte [ebp - 0x458], 0x10
je 0x54d0ab
lea eax, [ebp - 0x208]
push eax
push esi
call fcn.0054d40e
push 0
push dword [esi]
call fcn.005575f7
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x54d0d2
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.0054d40e
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 0x555279
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 0x5552eb
push ebx
mov ebx, dword [esp + 0x10]
push esi
push edi
cmp ebx, 0xffffffff
jne 0x5552a2
mov ebx, eax
push dword [ebp]
call fcn.005549fb
push ebx
push dword [ebp]
mov edi, eax
call fcn.005549d2
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.0055530b
pop ecx
pop ecx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x5582b9
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 0x5582fe
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x55837a
cmp dword [0x764768], 1
je 0x55837a
push ebx
mov ebx, 0x764770
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [0x76478c]
and dword [0x764794], 0
mov dword [0x764790], esi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [0x764788]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x1388
push dword [0x76478c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x558372
push 0
push dword [0x76476c]
mov dword [0x764768], 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 0x55863b
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [0x764290], 0
jne 0x55870c
push ebx
push ebp
push esi
xor ebp, ebp
inc ebp
push 0x765b68
mov dword [0x764290], 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 [0x760378]
mov dword [0x764754], eax
mov dword [0x764294], 0x1f4
call esi
mov dword [0x764764], eax
mov eax, dword [0x764294]
add eax, eax
push eax
push 8
push dword [0x760378]
call esi
xor ebx, ebx
mov dword [0x764760], eax
push 0x764770
mov dword [0x764758], ebx
mov dword [0x76475c], 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 [0x764788], eax
call esi
mov dword [0x76478c], eax
cmp dword [0x764788], ebx
je 0x558703
test eax, eax
je 0x558703
lea eax, [esp + 0xc]
mov dword [0x764768], ebx
push eax
push ebx
push ebx
push 0x5580be
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x76476c], eax
jmp 0x558709
mov dword [0x764768], ebp
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x558789
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x55882e
cmp dword [esp + 0xc], 0
je 0x55882e
cmp dword [0x764768], 1
je 0x55882e
push edi
push 0x1f
push 0
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
mov edi, eax
cmp edi, 0xffffffff
je 0x55882d
push ebp
mov ebp, 0x764770
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [0x76478c]
mov dword [0x764790], esi
mov dword [0x764794], edi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [0x764788]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x1388
push dword [0x76478c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x558825
push 0
push dword [0x76476c]
mov dword [0x764768], 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 0x559056
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 0x55919e
xor ecx, ecx
cmp word [eax], cx
je 0x55919e
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 0x5590af
cmp eax, 3
jne 0x5590e9
cmp word [esp + 0xa], 0x3a
jne 0x5590e9
cmp eax, 2
jne 0x5590cd
lea eax, [esp + 8]
push 0x6230a0
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 0x55919e
push 0xfffffffffffffffe
pop edi
jmp 0x55919e
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x5590fe
cmp ax, bx
jne 0x559108
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x5590f1
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x559147
test byte [esp + 0x21c], 0x10
je 0x55912e
push 0xfffffffffffffffe
pop edi
jmp 0x55913e
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x55919c
cmp word [esp + 0x10], bp
jne 0x559155
cmp word [esp + 0x12], bp
je 0x559174
cmp word [esp + 0x10], bx
jne 0x559163
cmp word [esp + 0x12], bx
je 0x559174
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x55919c
cmp word [esp + 0x12], ax
jne 0x55919c
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x559189
test al, 0x10
je 0x55919c
jmp 0x559199
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x55919c
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 0x55936e
Capabilities:
Delete file
Set file attributes

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

Function at 0x5593aa
Capabilities:
Copy file

Disassembly:
cmp dword [esp + 4], 0
je 0x5593ca
cmp dword [esp + 8], 0
je 0x5593ca
push 0
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x5593cc
xor eax, eax
ret 8