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

Disassembly:
sub esp, 0x14
push ebx
mov ebx, dword [esp + 0x1c]
push 0x1000
push 0
push dword [0x876470]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 8], edx
test edx, edx
je 0x4498ef
mov ax, word [esp + 0x1c]
push ebp
push esi
push edi
mov edi, edx
mov dword [esp + 0x1c], 0x1000
mov dword [esp + 0x18], 0x7ff
mov ecx, dword [esp + 0x30]
cmp ecx, 0xffffffff
je 0x449789
test ecx, ecx
je 0x44984c
dec ecx
mov dword [esp + 0x30], ecx
cmp dword [ebx + 4], 0
lea ebp, [ebx + 4]
je 0x4497a5
push 2
lea eax, [esp + 0x2c]
push eax
push ebx
call fcn.00449a60
mov dword [esp + 0x10], eax
jmp 0x4497bf
push 0
lea eax, [esp + 0x14]
push eax
push 2
lea eax, [esp + 0x34]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x10]
cmp eax, 2
mov ax, word [esp + 0x28]
jne 0x44984f
test ax, ax
je 0x4497dd
mov word [edi], ax
add edi, 2
mov ax, word [esp + 0x28]
mov edx, dword [esp + 0x14]
mov esi, edi
mov ecx, dword [esp + 0x18]
sub esi, edx
sar esi, 1
cmp esi, ecx
jle 0x449824
mov eax, dword [esp + 0x1c]
add ecx, 0x800
add eax, 0x1000
mov dword [esp + 0x18], ecx
push eax
push edx
push 8
push dword [0x876470]
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
mov ax, word [esp + 0x28]
mov dword [esp + 0x14], edx
lea edi, [edx + esi*2]
test ax, ax
je 0x44984f
cmp dword [esp + 0x2c], 0
jne 0x449773
cmp ax, 0xd
je 0x449856
cmp ax, 0xa
jne 0x449773
sub edi, 2
jmp 0x4498ce
lea ebp, [ebx + 4]
cmp dword [esp + 0x2c], 0
jne 0x4498ce
cmp ax, 0xa
jne 0x449861
sub edi, 2
jmp 0x4498ce
cmp ax, 0xd
jne 0x4498ce
sub edi, 2
cmp dword [ebp], 0
je 0x449883
push 2
lea eax, [esp + 0x2c]
push eax
push ebx
call fcn.00449a60
mov dword [esp + 0x10], eax
jmp 0x449899
push 0
lea eax, [esp + 0x14]
push eax
push 2
lea eax, [esp + 0x34]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp word [esp + 0x28], 0xa
je 0x4498ce
cmp dword [ebp], 0
je 0x4498ad
add dword [ebx + 0xc], 2
jmp 0x4498ce
push 1
lea eax, [esp + 0x24]
mov dword [esp + 0x20], 0xfffffffe
push eax
push 0xfffffffffffffffe
push dword [ebx]
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x34]
mov ecx, edi
sub ecx, dword [esp + 0x14]
sar ecx, 1
mov dword [eax], ecx
xor eax, eax
mov word [edi], ax
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
xor eax, eax
pop ebx
add esp, 0x14
ret 0x10
Function at 0x449900
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push 0x1000
push 0
push dword [0x876470]
mov dword [esp + 0x10], 0x1000
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 0xc], edx
test edx, edx
je 0x449a50
mov eax, dword [esp + 0x1c]
mov cl, byte [esp + 3]
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, edx
cmp edi, 0xffffffff
je 0x44994c
test edi, edi
je 0x4499bd
dec edi
push esi
push ebp
call fcn.00449ba0
mov dword [esp + 0x20], eax
test eax, eax
jne 0x44995f
xor cl, cl
jmp 0x449961
mov cl, byte [esi]
mov edx, dword [esp + 0x1c]
add esi, eax
mov eax, dword [esp + 0x14]
mov ebx, esi
sub ebx, edx
mov byte [esp + 0x13], cl
add eax, 0xfffffffb
cmp ebx, eax
jle 0x4499a4
mov eax, dword [esp + 0x14]
add eax, 0x1000
push eax
push edx
push 8
push dword [0x876470]
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov cl, byte [esp + 0x13]
mov edx, eax
mov dword [esp + 0x1c], edx
lea esi, [ebx + edx]
mov eax, dword [esp + 0x2c]
test cl, cl
je 0x4499bd
test eax, eax
jne 0x449942
cmp cl, 0xd
je 0x4499c1
cmp cl, 0xa
jne 0x449942
dec esi
jmp 0x449a33
test eax, eax
jne 0x449a33
cmp cl, 0xa
jne 0x4499c9
dec esi
jmp 0x449a33
cmp cl, 0xd
jne 0x449a33
dec esi
cmp dword [ebp + 4], 0
je 0x4499e8
push 1
lea eax, [esp + 0x17]
push eax
push ebp
call fcn.00449a60
mov dword [esp + 0x20], eax
jmp 0x4499ff
push 0
lea eax, [esp + 0x24]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x13], 0xa
je 0x449a33
cmp dword [ebp + 4], 0
je 0x449a11
inc dword [ebp + 0xc]
jmp 0x449a33
push 1
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 0xffffffff
push eax
push 0xffffffffffffffff
push dword [ebp]
mov dword [esp + 0x28], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x34]
mov ecx, esi
sub ecx, dword [esp + 0x1c]
pop edi
mov dword [eax], ecx
mov eax, dword [esp + 0x18]
mov byte [esi], 0
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
xor eax, eax
add esp, 0x14
ret 0x10
Function at 0x449a60
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
push edi
cmp dword [ebx + 0x14], 0
jne 0x449a83
push ebx
call fcn.00448a40
mov dword [ebx + 0x14], 1
mov dword [ebx + 0xc], 0
mov esi, dword [ebx + 0xc]
mov eax, dword [ebx + 0x10]
mov ebp, dword [esp + 0x20]
sub eax, esi
add eax, dword [ebx + 4]
mov dword [esp + 0x10], esi
cmp esi, ebp
jl 0x449b07
mov ecx, ebp
sub ecx, 1
je 0x449af2
sub ecx, 1
je 0x449adb
sub ecx, 2
je 0x449ac6
push ebp
push eax
push dword [esp + 0x24]
call fcn.00434c20
add esp, 0xc
mov eax, ebp
sub dword [ebx + 0xc], ebp
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
mov ecx, dword [eax]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
mov dword [eax], ecx
mov eax, ebp
sub dword [ebx + 0xc], ebp
pop ebp
pop ebx
pop ecx
ret 0xc
mov cx, word [eax]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
mov word [eax], cx
mov eax, ebp
sub dword [ebx + 0xc], ebp
pop ebp
pop ebx
pop ecx
ret 0xc
mov ecx, dword [esp + 0x1c]
mov dl, byte [eax]
mov eax, ebp
pop edi
pop esi
mov byte [ecx], dl
sub dword [ebx + 0xc], ebp
pop ebp
pop ebx
pop ecx
ret 0xc
push esi
push eax
mov eax, dword [esp + 0x24]
push eax
call fcn.00434c20
mov eax, dword [esp + 0x28]
add esp, 0xc
mov edx, dword [ebx + 8]
add eax, esi
mov ecx, dword [ebx]
sub ebp, esi
mov dword [esp + 0x1c], eax
push 0
cmp ebp, edx
jl 0x449b50
lea edx, [esp + 0x1c]
push edx
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x18]
pop edi
add eax, esi
mov dword [ebx + 0xc], 0
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
lea eax, [esp + 0x1c]
push eax
push edx
push dword [ebx + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, dword [esp + 0x18]
cmp ebp, esi
mov eax, dword [esp + 0x1c]
mov dword [ebx + 0xc], esi
mov dword [ebx + 0x10], esi
cmovle esi, ebp
push esi
push dword [ebx + 4]
push eax
call fcn.00434c20
sub dword [ebx + 0xc], esi
add esp, 0xc
mov eax, dword [esp + 0x10]
add eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
Function at 0x449ba0
Capabilities:
Read file on windows

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [edi + 4], 0
je 0x449bc7
push 1
lea eax, [esp + 0x10]
push eax
push edi
call fcn.00449a60
mov dword [esp + 4], eax
jmp 0x449be1
push 0
lea eax, [esp + 8]
push eax
push 1
lea eax, [esp + 0x18]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 4]
cmp eax, 1
jne 0x449c94
mov cl, byte [esp + 0xc]
test cl, cl
js 0x449c06
mov eax, dword [esp + 0x10]
pop edi
mov byte [eax], cl
mov byte [eax + 1], 0
mov eax, 1
pop ecx
ret 8
mov al, cl
and al, 0xe0
push esi
cmp al, 0xc0
jne 0x449c16
mov esi, 2
jmp 0x449c32
mov al, cl
and al, 0xf0
cmp al, 0xe0
jne 0x449c25
mov esi, 3
jmp 0x449c32
mov al, cl
and al, 0xf8
cmp al, 0xf0
jne 0x449c80
mov esi, 4
mov eax, dword [esp + 0x14]
push ebx
lea ebx, [esi - 1]
mov byte [eax], cl
inc eax
cmp dword [edi + 4], 0
je 0x449c5b
push ebx
push eax
push edi
call fcn.00449a60
xor ecx, ecx
cmp eax, ebx
pop ebx
cmovne esi, ecx
mov eax, esi
pop esi
pop edi
pop ecx
ret 8
push 0
lea ecx, [esp + 0x10]
push ecx
push ebx
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0xc]
xor ecx, ecx
cmp eax, ebx
pop ebx
cmovne esi, ecx
mov eax, esi
pop esi
pop edi
pop ecx
ret 8
mov eax, dword [esp + 0x14]
pop esi
pop edi
mov word [eax], 0x3f
mov eax, 1
pop ecx
ret 8
xor eax, eax
pop edi
pop ecx
ret 8

Function at 0x44a9e2
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
xor esi, esi
call fcn.00459e23
mov edi, eax
test edi, edi
je 0x44aac4
cmp dword [edi + 0x14], esi
je 0x44aac4
cmp dword [edi], 0xf
jne 0x44aac4
push dword [edi + 0x18]
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x44aac4
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x44aab9
push dword [edi + 0x18]
push dword [edi + 0x14]
push eax
call fcn.00434c20
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push esi
push 0xffffffffffffffff
push ebx
call dword [sym.imp.SHELL32.dll_DragQueryFileW]
mov dword [esp + 0xc], eax
test eax, eax
jle 0x44aab9
push ebp
lea edi, [eax - 1]
mov ebp, esi
push esi
push esi
push ebp
push ebx
call dword [sym.imp.SHELL32.dll_DragQueryFileW]
add edi, eax
inc ebp
cmp ebp, dword [esp + 0x10]
jl 0x44aa5e
push dword [esp + 0x20]
mov dword [esp + 0x1c], edi
push edi
call fcn.00461b40
lea ecx, [edi + 1]
mov ebp, eax
mov edi, dword [esp + 0x10]
mov dword [esp + 0x14], ecx
push ecx
push ebp
push esi
push ebx
call dword [sym.imp.SHELL32.dll_DragQueryFileW]
push 0xa
pop ecx
lea ebp, [ebp + eax*2]
mov word [ebp], cx
mov eax, ebp
mov ecx, dword [esp + 0x14]
add ebp, 2
inc esi
cmp esi, edi
jl 0x44aa8c
mov esi, dword [esp + 0x18]
xor ecx, ecx
mov word [eax], cx
pop ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test esi, esi
jne 0x44aacf
pop edi
pop esi
pop ebx
add esp, 0xc
jmp fcn.00461bd0
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4
Function at 0x44b1ec
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x87ae54]
call fcn.00460fe5
mov ebx, eax
test ebx, ebx
je 0x44b250
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x44b215
push dword [esp + 0xc]
push ebx
call eax
jmp 0x44b250
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.00461b40
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 fcn.0042668c
pop ecx
sub edi, eax
push edi
call fcn.00461bf0
pop edi
pop esi
pop ebx
ret 8
Function at 0x44d15a
Capabilities:
Get graphical window text

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push edi
xor edi, edi
push edi
push edi
push 0x147
push dword [ebp]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, eax
or eax, 0xffffffff
cmp ebx, eax
je 0x44d1e9
push 0xfffffffffffffff0
push dword [ebp]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test al, 1
jne 0x44d1e9
push esi
push dword [ebp]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
lea ecx, [esi*2 + 2]
push ecx
push edi
push dword [0x876470]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
lea ecx, [esi + 1]
push ecx
xor eax, eax
push edi
mov word [edi], ax
push dword [ebp]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push edi
or esi, 0xffffffff
push esi
push 0x158
push dword [ebp]
call dword [sym.imp.USER32.dll_SendMessageW]
push edi
push 0
push dword [0x876470]
cmp eax, esi
cmove ebx, esi
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop edi
mov eax, ebx
pop ebp
cdq
pop ebx
ret 4

Function at 0x44e49e
Capabilities:
Check os version

Disassembly:
sub esp, 0x114
push ebx
push ebp
push esi
push edi
push dword [0x87ae64]
call fcn.00460e45
xor ebx, ebx
mov esi, eax
cmp dword [0x878b2c], ebx
jne 0x44e570
xor ebp, ebp
inc ebp
mov dword [0x878b2c], ebp
call fcn.004539c3
mov edi, 0xa8
push edi
push ebx
push 0x878a80
call fcn.004314a0
add esp, 0xc
mov dword [0x878a80], 0x13
lea eax, [esp + 0x10]
mov dword [0x878a84], edi
mov dword [0x878a90], 0x44e3e9
mov dword [0x878a94], 0x44e72e
push eax
mov dword [0x878ae8], 0x44e3c1
mov dword [0x878aec], 0x44e673
mov dword [0x878a8c], 0x44e39c
mov dword [0x878b10], 0x44e406
mov dword [0x878b30], ebp
mov dword [esp + 0x14], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x44e570
cmp dword [esp + 0x20], ebp
je 0x44e56a
cmp dword [esp + 0x20], 2
jne 0x44e570
cmp dword [esp + 0x14], 5
jb 0x44e56a
jne 0x44e570
cmp dword [esp + 0x18], ebx
jne 0x44e570
mov dword [0x878b30], ebx
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.00457f3a
mov eax, dword [esp + 0x140]
push ebx
push dword [0x876474]
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 ebx
push str.BUTTON
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edi, eax
test edi, edi
je 0x44e644
mov ebp, dword [esp + 0x128]
push ebp
push dword [0x87ae54]
call fcn.00461023
mov esi, dword [esp + 0x13c]
mov ebx, eax
mov dword [ebx + 0x10], esi
test esi, esi
je 0x44e615
push esi
call fcn.0045c6c7
test eax, eax
je 0x44e615
push 0
push 0
push esi
call fcn.0045c328
jmp 0x44e617
xor eax, eax
push 0x44e0f3
push 0xfffffffffffffffc
mov dword [ebx + 0x18], eax
and dword [ebx + 0x14], 0
and dword [ebx + 0x1c], 0
push edi
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x878a80
push edi
push ebx
push ebp
mov dword [0x878b28], eax
call fcn.00453720
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret 0x1c
Function at 0x45487d
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]
leave
ret 4

Function at 0x4548c0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x45493c
cmp dword [0x87a6c8], 1
je 0x45493c
push ebx
mov ebx, 0x87a6d0
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [0x87a6ec]
and dword [0x87a6f4], 0
mov dword [0x87a6f0], esi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [0x87a6e8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x1388
push dword [0x87a6ec]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x454934
push 0
push dword [0x87a6cc]
mov dword [0x87a6c8], 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 0x454c08
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [0x87a1f0], 0
jne 0x454cd9
push ebx
push ebp
push esi
xor ebp, ebp
inc ebp
push 0x87ae84
mov dword [0x87a1f0], 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 [0x876470]
mov dword [0x87a6b4], eax
mov dword [0x87a1f4], 0x1f4
call esi
mov dword [0x87a6c4], eax
mov eax, dword [0x87a1f4]
add eax, eax
push eax
push 8
push dword [0x876470]
call esi
xor ebx, ebx
mov dword [0x87a6c0], eax
push 0x87a6d0
mov dword [0x87a6b8], ebx
mov dword [0x87a6bc], 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 [0x87a6e8], eax
call esi
mov dword [0x87a6ec], eax
cmp dword [0x87a6e8], ebx
je 0x454cd0
test eax, eax
je 0x454cd0
lea eax, [esp + 0xc]
mov dword [0x87a6c8], ebx
push eax
push ebx
push ebx
push 0x454666
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x87a6cc], eax
jmp 0x454cd6
mov dword [0x87a6c8], ebp
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x454cdb
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x454d80
cmp dword [esp + 0xc], 0
je 0x454d80
cmp dword [0x87a6c8], 1
je 0x454d80
push edi
push 0x1f
push 0
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
mov edi, eax
cmp edi, 0xffffffff
je 0x454d7f
push ebp
mov ebp, 0x87a6d0
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [0x87a6ec]
mov dword [0x87a6f0], esi
mov dword [0x87a6f4], edi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [0x87a6e8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x1388
push dword [0x87a6ec]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x454d77
push 0
push dword [0x87a6cc]
mov dword [0x87a6c8], 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 0x4552e8
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 0x455430
xor ecx, ecx
cmp word [eax], cx
je 0x455430
push 0x104
push eax
lea eax, [esp + 0x10]
push eax
call fcn.0058f046
xor eax, eax
mov word [esp + 0x21c], ax
lea eax, [esp + 0x14]
push eax
call fcn.0042668c
add esp, 0x10
lea ecx, [esp + eax*2 + 6]
cmp eax, 2
je 0x455341
cmp eax, 3
jne 0x45537b
cmp word [esp + 0xa], 0x3a
jne 0x45537b
cmp eax, 2
jne 0x45535f
lea eax, [esp + 8]
push 0x5ba398
push eax
call fcn.0058f015
pop ecx
pop ecx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x455430
push 0xfffffffffffffffe
pop edi
jmp 0x455430
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x455390
cmp ax, bx
jne 0x45539a
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x455383
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x4553d9
test byte [esp + 0x21c], 0x10
je 0x4553c0
push 0xfffffffffffffffe
pop edi
jmp 0x4553d0
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x45542e
cmp word [esp + 0x10], bp
jne 0x4553e7
cmp word [esp + 0x12], bp
je 0x455406
cmp word [esp + 0x10], bx
jne 0x4553f5
cmp word [esp + 0x12], bx
je 0x455406
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x45542e
cmp word [esp + 0x12], ax
jne 0x45542e
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x45541b
test al, 0x10
je 0x45542e
jmp 0x45542b
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x45542e
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 0x45543f
Capabilities:
Set file attributes

Disassembly:
xor eax, eax
cmp dword [esp + 4], eax
je 0x45544d
jmp dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
ret 8
Function at 0x4554c2
Capabilities:
Check if file exists

Disassembly:
xor eax, eax
push ebx
mov ebx, eax
mov eax, dword [0x87a700]
push esi
push edi
test eax, eax
jne 0x4554e8
push 0x4555f1
push 0x10
push 0x258
call fcn.004610b7
mov dword [0x87a700], eax
mov edi, dword [esp + 0x10]
push edi
push eax
call fcn.00461023
mov esi, eax
test esi, esi
je 0x4555e9
cmp dword [esp + 0x14], ebx
mov eax, 0x5bd268
push ebp
cmovne eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
test ebp, ebp
je 0x455520
xor ecx, ecx
cmp word [ebp], cx
jne 0x455529
mov ebp, 0x5bff2c
mov dword [esp + 0x1c], ebp
push eax
call fcn.0042668c
push ebp
mov dword [esp + 0x20], eax
call fcn.0042668c
add eax, dword [esp + 0x20]
pop ecx
pop ecx
lea eax, [eax*2 + 4]
push eax
xor eax, eax
push eax
push dword [0x876470]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test ebp, ebp
je 0x4555d6
push dword [esp + 0x14]
push ebp
call fcn.0058eff3
pop ecx
pop ecx
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x455589
mov eax, dword [esp + 0x14]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x455589
push 0x5ba398
push ebp
call fcn.0058f015
pop ecx
pop ecx
push dword [esp + 0x1c]
push ebp
call fcn.0058f015
pop ecx
pop ecx
lea eax, [esi + 8]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x4555ae
xor ecx, ecx
mov dword [esi + 4], ecx
jmp 0x4555c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 2
jne 0x4555c4
mov dword [esi + 4], 1
mov ebx, esi
push ebp
push ecx
push dword [0x876470]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebx, ebx
jne 0x4555e8
cmp edi, 0xffffffff
cmove edi, esi
push edi
push dword [0x87a700]
call fcn.00460f96
pop ebp
pop edi
pop esi
mov eax, ebx
pop ebx
ret 0xc

Function at 0x4556e1
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x45570a
test byte [esp + 8], 2
je 0x4556fe
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 0x45570c
xor eax, eax
ret 8
Function at 0x455ebd
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x455f35
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call fcn.0058f046
xor eax, eax
mov word [ebp - 4], ax
lea eax, [ebp - 0x20c]
push eax
call fcn.0042668c
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea eax, [ecx + eax*2]
jmp 0x455f16
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x455f13
cmp ecx, 0x5c
je 0x455f13
cmp ecx, 0x2f
jne 0x455f20
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x455f00
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x455f37
xor eax, eax
leave
ret 4

Function at 0x455f54
Capabilities:
Copy file

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

Function at 0x4561b9
Capabilities:
Check os version

Disassembly:
sub esp, 0x34c
push ebp
push esi
push edi
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x114
push eax
mov esi, 0xc8
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x456322
mov eax, dword [esp + 0x1c]
sub eax, 1
je 0x456305
sub eax, 1
jne 0x456322
lea eax, [esp + 0x120]
xor edi, edi
push eax
call fcn.00456172
pop ecx
test eax, eax
je 0x456230
cmp byte [esp + 0x23a], 1
mov ecx, dword [esp + 0x124]
mov eax, dword [esp + 0x128]
mov ebp, dword [esp + 0x12c]
jne 0x456266
inc edi
jmp 0x456266
lea eax, [esp + 0x23c]
mov dword [esp + 0x23c], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x456322
mov ecx, dword [esp + 0x10]
xor edx, edx
mov eax, dword [esp + 0x14]
inc edx
cmp byte [esp + 0x356], dl
cmove edi, edx
sub ecx, 3
je 0x456301
sub ecx, 1
je 0x4562fd
sub ecx, 1
je 0x4562df
sub ecx, 1
je 0x4562a3
sub ecx, 4
jne 0x456322
test eax, eax
jne 0x456322
cmp ebp, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x456322
sub eax, 0
je 0x4562d2
sub eax, 1
je 0x4562c5
sub eax, 1
je 0x4562be
sub eax, 1
jne 0x456322
push 0x69
pop esi
push 0x64
jmp 0x4562d7
push 0x5a
pop esi
push 0x5f
jmp 0x4562ca
push 0x50
pop esi
push 0x55
test edi, edi
pop eax
cmove esi, eax
jmp 0x456322
push 0x4b
pop esi
push 0x46
test edi, edi
pop eax
cmovne esi, eax
jmp 0x456322
sub eax, 0
je 0x4562f9
sub eax, 1
je 0x4562f5
sub eax, 1
jne 0x456322
push 0x41
pop esi
push 0x3c
jmp 0x4562d7
push 0x3c
jmp 0x456321
push 0x32
jmp 0x456321
push 0x14
jmp 0x456321
push 5
jmp 0x456321
mov eax, dword [esp + 0x14]
test eax, eax
je 0x45631f
cmp eax, 0xa
je 0x45631b
cmp eax, 0x5a
jne 0x456322
push 0x28
jmp 0x456321
push 0x1e
jmp 0x456321
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x34c
ret