joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43f410
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d76ce
push eax
mov dword fs:[0], esp
sub esp, 0x234
push esi
mov esi, ecx
mov ecx, dword [0x515e10]
push edi
call fcn.0041bc60
xor edi, edi
cmp esi, edi
je 0x43f5ce
cmp word [esi], di
je 0x43f5ce
push 0x103
lea eax, [esp + 0x34]
push esi
push eax
call fcn.004c67b5
add esp, 0xc
xor ecx, ecx
lea eax, [esp + 0x30]
mov word [esp + 0x236], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x43f477
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x2e], 0x5c
lea ecx, [esp + eax*2 + 0x30]
je 0x43f4ad
inc eax
cmp eax, 0x104
jae 0x43f5ce
mov edx, 0x5c
mov word [ecx], dx
xor ecx, ecx
mov word [esp + eax*2 + 0x30], cx
test byte [0x51a348], 1
jne 0x43f4ff
or dword [0x51a348], 1
push 0x4ef6b4
mov dword [esp + 0x248], edi
call fcn.0049fce0
add esp, 4
push eax
push str.97__7_a_
call fcn.0049fc00
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x51a344], eax
mov dword [esp + 0x244], 0xffffffff
jmp 0x43f504
mov eax, dword [0x51a344]
cmp eax, edi
je 0x43f550
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x3c]
push ecx
call eax
test eax, eax
je 0x43f5ce
test bl, bl
je 0x43f53d
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
shrd esi, eax, 0x14
shr eax, 0x14
mov edi, eax
jmp 0x43f58e
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
shrd esi, eax, 0x14
shr eax, 0x14
mov edi, eax
jmp 0x43f58e
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x43f5ce
mov eax, dword [esp + 0x14]
test bl, bl
jne 0x43f57f
mov eax, dword [esp + 0x10]
imul eax, dword [esp + 0xc]
imul eax, dword [esp + 8]
shr eax, 0x14
mov esi, eax
mov ecx, dword [0x5166e0]
push 1
push 0
push 0xffffffffffffffff
push 0x4e1a5c
push ecx
call fcn.004aa2a0
mov eax, dword [0x515e10]
push 0x18
push edi
push esi
call fcn.00401590
mov eax, 1
mov ecx, dword [esp + 0x23c]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov edx, dword [0x51161c]
test byte [edx + 0x100], 1
jne 0x43f608
mov eax, dword [0x5166e0]
push 1
push edi
push 0xffffffffffffffff
push 0x4e6784
push eax
call fcn.004aa2a0
mov ecx, dword [esp + 0x23c]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp + 8]
push 0x4e1a4c
push edi
push 0x4e6784
call fcn.0042ef30
mov ecx, dword [esp + 0x23c]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x441530
Capabilities:
Set current directory

Disassembly:
sub esp, 8
push esi
mov esi, eax
movzx eax, word [esi]
test ax, ax
je 0x441564
cmp word [esi + 2], 0x3a
jne 0x441564
cmp word [esi + 4], 0
jne 0x441564
xor edx, edx
mov word [esp + 4], ax
mov dword [esp + 6], 0x5c003a
mov word [esp + 0xa], dx
lea esi, [esp + 4]
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x441581
cmp byte [0x517988], al
je 0x4415a7
call fcn.0040a020
pop esi
add esp, 8
ret
cmp byte [0x517988], 0
je 0x4415a7
mov ecx, esi
call fcn.004415b0
mov eax, dword [0x5166e0]
push 1
push 0
push 0xffffffffffffffff
push 0x4e1a5c
push eax
call fcn.004aa2a0
pop esi
add esp, 8
ret

Function at 0x4415b0
Capabilities:
Get common file path

Disassembly:
mov eax, 0x10000
call fcn.004d0b30
push esi
lea eax, [esp + 4]
push eax
push 0x8000
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x4415d7
lea esi, [esp + 4]
jmp 0x4415db
test esi, esi
je 0x4415e8
push edi
push esi
mov edi, 0x511640
call fcn.00450ff0
pop edi
pop esi
add esp, 0x10000
ret
Function at 0x441c90
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x441d53
cmp word [ebx], 0
je 0x441d53
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x441cd4
push 0xb7
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
shr eax, 4
and eax, 1
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
push 0x5c
push ebx
call fcn.004c6cf1
mov esi, eax
add esp, 8
mov dword [ebp + 8], esi
cmp esi, ebx
jbe 0x441d3d
cmp word [esi - 2], 0x3a
je 0x441d3d
cmp dword [ebp + 0xc], 0
je 0x441cfe
xor eax, eax
mov edi, ebx
mov word [esi], ax
jmp 0x441d1a
sub esi, ebx
sar esi, 1
lea eax, [esi + esi + 2]
call fcn.004cc950
mov edi, esp
lea ecx, [esi + 1]
mov eax, ebx
call fcn.004a71d0
mov esi, dword [ebp + 8]
push edi
push edi
call fcn.00441c90
add esp, 8
cmp dword [ebp + 0xc], 0
je 0x441d32
mov ecx, 0x5c
mov word [esi], cx
cmp word [esi + 2], 0
je 0x441d5d
test al, al
je 0x441d5d
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x442960
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
push edi
xor edi, edi
cmp ebp, edi
je 0x4429b0
push edi
push 1
mov ecx, ebp
call fcn.004016f0
cmp byte [ebp + 0x17], 0
mov dword [esp + 0x24], eax
jne 0x44298a
mov esi, dword [ebp + 0xc]
jmp 0x44298c
mov esi, ebp
cmp byte [esi + 0x17], 1
jne 0x4429a7
test byte [esi + 0x15], 8
je 0x44299f
mov eax, esi
call fcn.00401610
mov ebx, dword [esi + 0xc]
add esi, 0xc
jmp 0x4429de
mov esi, 0x51952c
mov ebx, dword [esi]
jmp 0x4429de
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
push ecx
push edi
call fcn.004a9cf0
add esp, 0xc
test eax, eax
jne 0x4429da
mov edx, dword [0x51161c]
mov dword [edx + 0x30], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x442a26
mov eax, dword [esp + 0x24]
mov dword [esp + 0x20], edi
test eax, eax
je 0x442a1b
push 0
lea ecx, [esp + 0x24]
push ecx
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor edx, edx
cmp dword [esp + 0x20], ebx
sete dl
mov edi, edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x51161c]
mov dword [ecx + 0x30], eax
cmp esi, 0xffffffff
je 0x442a41
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
jne 0x442a52
mov edx, dword [esp + 0x24]
push edx
call fcn.004c57e5
add esp, 4
mov edx, dword [esp + 0x1c]
test edi, edi
sete al
movzx ecx, al
push ecx
push edx
call fcn.0042efe0
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc

Function at 0x442a80
Capabilities:
Delete file

Disassembly:
sub esp, 8
push ebx
mov ebx, 0x4efed4
mov eax, esi
call fcn.00409df0
test eax, eax
jne 0x442acf
cmp word [esi], ax
je 0x442acf
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
sete al
mov byte [esp + 8], al
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 8]
mov ecx, dword [0x51161c]
push edx
push edi
mov dword [ecx + 0x30], eax
call fcn.0042efe0
pop ebx
add esp, 8
ret
push 0
push 0x442a70
push 0
push 1
push edi
mov ecx, esi
call fcn.00443110
pop ebx
add esp, 8
ret
Function at 0x442e70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov ecx, dword [0x515e10]
sub esp, 0x100
push esi
mov esi, eax
call fcn.0041bc60
test esi, esi
je 0x442f26
cmp word [esi], 0
je 0x442f26
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x442edd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x51161c]
test byte [ecx + 0x100], 1
mov dword [ecx + 0x30], eax
jne 0x442f5a
mov eax, dword [0x5166e0]
push 1
push 0
push esi
push 0x4e6784
push eax
call fcn.004aa2a0
pop esi
add esp, 0x100
ret
mov edx, dword [0x5166e0]
mov ecx, dword [0x51161c]
push 1
push 0
push 0xffffffffffffffff
push 0x4e1a5c
push edx
mov dword [ecx + 0x30], 0
call fcn.004aa2a0
mov edx, esi
lea eax, [esp + 4]
call fcn.004a8240
push 1
push 0
push 0xffffffffffffffff
push eax
mov eax, dword [0x515e10]
push eax
call fcn.004aa2a0
pop esi
add esp, 0x100
ret
mov eax, dword [0x51161c]
test byte [eax + 0x100], 1
mov dword [eax + 0x30], 0x57
jne 0x442f5a
mov ecx, dword [0x5166e0]
push 1
push 0
push 0xffffffffffffffff
push 0x4e6784
push ecx
call fcn.004aa2a0
pop esi
add esp, 0x100
ret
push 0x4e1a4c
push 0
push 0x4e6784
mov ecx, edi
call fcn.0042ef30
pop esi
add esp, 0x100
ret

Function at 0x442f80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x10
push ebx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x14], ebx
mov edi, eax
cmp word [eax], bx
je 0x443046
nop
movzx esi, word [edi]
test esi, 0xffffff80
jne 0x442fbd
push 2
push esi
call fcn.004c613e
add esp, 8
test eax, eax
je 0x442fbd
and esi, 0xffffffdf
movzx eax, si
add eax, 0xffffffd5
cmp eax, 0x33
ja case.0x442fcf.44
movzx eax, byte [eax + 0x443098]
jmp dword [eax*4 + 0x443074]
movzx ebx, word [edi]
jmp case.0x442fcf.44
mov eax, 1
jmp 0x44300a
mov eax, 0x20
jmp 0x44300a
mov eax, 4
jmp 0x44300a
mov eax, 2
jmp 0x44300a
mov eax, 0x80
jmp 0x44300a
mov eax, 0x1000
jmp 0x44300a
mov eax, 0x100
mov ecx, ebx
sub ecx, 0x2b
je 0x44302d
sub ecx, 2
je 0x443021
sub ecx, 0x31
jne case.0x442fcf.44
xor dword [esp + 0x14], eax
jmp case.0x442fcf.44
not eax
and dword [esp + 0x10], eax
and dword [esp + 0x14], eax
jmp case.0x442fcf.44
mov ecx, eax
not ecx
and dword [esp + 0x10], ecx
or dword [esp + 0x14], eax
add edi, 2
cmp word [edi], 0
jne 0x442fa0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x24]
push 0x4430d0
push eax
push ecx
mov ecx, dword [esp + 0x34]
push edx
call fcn.00443110
pop edi
pop esi
pop ebx
add esp, 0x10
ret 0x10
Function at 0x443930
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [0x515e10]
sub esp, 0x258
push ebx
push esi
call fcn.0041bc60
test edi, edi
je 0x443a9d
cmp word [edi], 0
je 0x443a9d
push 0
push 0
push 3
push 0
push 7
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x443991
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x4439fc
lea ecx, [esp + 0x10]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x4439dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x51161c]
test byte [ecx + 0x100], 1
mov dword [ecx + 0x30], eax
jne 0x443ad1
mov edx, dword [0x5166e0]
push 1
push 0
push 0xffffffffffffffff
push 0x4e6784
push edx
call fcn.004aa2a0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x2c]
xor ecx, ecx
or ecx, dword [esp + 0x30]
xor esi, esi
or eax, esi
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
jmp 0x443a04
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [ebp + 0xc]
movzx esi, word [edx]
test esi, 0xffffff80
jne 0x443a2c
push 2
push esi
call fcn.004c613e
mov ecx, dword [esp + 0x10]
add esp, 8
test eax, eax
mov eax, dword [esp + 0xc]
je 0x443a2c
and esi, 0xffffffdf
movzx edx, si
sub edx, 0x4b
je 0x443a41
sub edx, 2
jne 0x443a57
push edx
push 0x100000
jmp 0x443a48
push 0
push 0x400
push eax
push ecx
call fcn.004d3d10
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov ecx, dword [0x5166e0]
mov eax, dword [0x51161c]
push 1
push 0
push 0xffffffffffffffff
push 0x4e1a5c
push ecx
mov dword [eax + 0x30], 0
call fcn.004aa2a0
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push 0x18
push edx
push eax
mov eax, dword [0x515e10]
call fcn.00401590
mov eax, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x51161c]
test byte [eax + 0x100], 1
mov dword [eax + 0x30], 0x57
jne 0x443ad1
mov ecx, dword [0x5166e0]
push 1
push 0
push 0xffffffffffffffff
push 0x4e6784
push ecx
call fcn.004aa2a0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 8]
push 0x4e1a4c
push 0
push 0x4e6784
call fcn.0042ef30
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4507d0
Capabilities:
Log keystrokes via polling

Disassembly:
test bl, bl
jne 0x4507d7
xor al, al
ret
mov eax, dword [esp + 4]
dec eax
je 0x4507ff
dec eax
je 0x4507f1
movzx eax, bl
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
ret
movzx ecx, bl
push ecx
call dword [sym.imp.USER32.dll_GetKeyState]
and eax, 1
ret
lea edx, [ebx - 1]
cmp dl, 5
ja 0x45080c
cmp bl, 3
jne 0x450813
lea eax, [ebx + 0x66]
cmp al, 5
ja 0x450839
cmp dword [0x516010], 0
je 0x450829
movzx ecx, bl
mov al, byte [ecx + 0x515f00]
shr al, 7
ret
movzx edx, bl
push edx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
ret
cmp dword [0x51600c], 0
je 0x450868
xor ecx, ecx
xor edx, edx
mov al, bl
call fcn.00413940
test al, al
je 0x45085b
push 1
call fcn.00413740
add esp, 4
movzx eax, bl
mov al, byte [eax + 0x515f00]
shr al, 7
ret
movzx ecx, bl
push ecx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
ret
Function at 0x450e00
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x4d706e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
push ebp
push esi
push edi
mov esi, edx
xor eax, eax
push esi
push eax
mov edi, ecx
push 0x410
mov word [edi], ax
call ebx
mov ebp, eax
test ebp, ebp
jne 0x450e50
push esi
push eax
push 0x1000
call ebx
mov ebp, eax
test ebp, ebp
je 0x450fd1
cmp byte [esp + 0x230], 0
push 0x104
push edi
push 0
push ebp
je 0x450e6b
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameW]
jmp 0x450e71
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
test byte [0x51a0cc], 1
mov ebx, eax
jne 0x450ec9
or dword [0x51a0cc], 1
push 0x4f0a68
mov dword [esp + 0x22c], 0
call fcn.0049fce0
add esp, 4
push eax
push 0x4f0a8c
call fcn.0049fc00
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x51a0c8], eax
mov dword [esp + 0x228], 0xffffffff
jmp 0x450ece
mov eax, dword [0x51a0c8]
test ebx, ebx
jne 0x450fc8
test eax, eax
je 0x450fc8
push 0x104
push edi
push ebp
call eax
mov ebx, eax
test ebx, ebx
je 0x450fc8
cmp byte [esp + 0x230], 0
je 0x450f37
push 0x5c
push edi
call fcn.004c6cf1
add esp, 8
test eax, eax
je 0x450fc8
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x450f13
sub ecx, esi
sar ecx, 1
add ecx, ecx
push ecx
add eax, 2
push eax
push edi
call fcn.004c5960
add esp, 0xc
jmp 0x450fc8
mov ecx, 0x41
mov dword [esp + 0x12], 0x3a
mov word [esp + 0x10], cx
lea esp, [esp]
push 0x104
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov esi, eax
cmp esi, 2
jbe 0x450f89
sub esi, 2
push esi
lea ecx, [esp + 0x1c]
push edi
push ecx
call fcn.004c6e79
add esp, 0xc
test eax, eax
jne 0x450f89
cmp word [edi + esi*2], 0x5c
je 0x450f9d
mov ax, word [esp + 0x10]
inc ax
mov word [esp + 0x10], ax
cmp ax, 0x5a
jbe 0x450f50
jmp 0x450fc8
mov dx, word [esp + 0x10]
mov ax, word [esp + 0x12]
sub ebx, esi
mov word [edi], dx
lea ecx, [ebx + ebx + 2]
push ecx
lea edx, [edi + esi*2]
mov word [edi + 2], ax
push edx
add edi, 4
push edi
call fcn.004c5960
add esp, 0xc
add ebx, 2
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [esp + 0x220]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x21c
ret
Function at 0x4541e0
Capabilities:
Delete file
Move file

Disassembly:
sub esp, 0x230
push esi
xor esi, esi
cmp eax, esi
je 0x4542a8
cmp word [eax], si
je 0x4542a8
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x2c]
push edx
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea eax, [esp + 0x28]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x454217
sub eax, edx
sar eax, 1
cmp eax, esi
je 0x45423b
cmp word [esp + eax*2 + 0x26], 0x5c
lea eax, [esp + eax*2 + 0x26]
jne 0x45423b
xor ecx, ecx
mov word [eax], cx
lea eax, [esp + 0x28]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x454242
sub eax, edx
sar eax, 1
xor edx, edx
mov word [esp + eax*2 + 0x2a], dx
lea edx, [esp + 4]
lea eax, [esp + 0x28]
mov ecx, 0x4054
push edx
mov dword [esp + 0x1e], esi
mov dword [esp + 0x22], esi
mov dword [esp + 0x1a], esi
mov dword [esp + 8], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 3
mov word [esp + 0x18], cx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
setne al
movzx ecx, al
push ecx
push edi
call fcn.0042efe0
pop esi
add esp, 0x230
ret
mov edx, dword [0x51161c]
test byte [edx + 0x100], 1
jne 0x4542d4
mov eax, dword [0x5166e0]
push 1
push esi
push 0xffffffffffffffff
push 0x4e6784
push eax
call fcn.004aa2a0
pop esi
add esp, 0x230
ret
push 0x4e1a4c
push esi
push 0x4e6784
mov ecx, edi
call fcn.0042ef30
pop esi
add esp, 0x230
ret
Function at 0x4542f0
Capabilities:
Get file version info

Disassembly:
mov ecx, dword [0x515e10]
sub esp, 0x10c
push ebp
mov ebp, dword [esp + 0x114]
push edi
mov edi, eax
call fcn.0041bc60
test edi, edi
je 0x454469
cmp word [edi], 0
je 0x454469
push esi
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
jne 0x45438a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x51161c]
test byte [ecx + 0x100], 1
mov dword [ecx + 0x30], eax
jne 0x45436b
mov ecx, dword [0x5166e0]
push 1
push esi
push 0xffffffffffffffff
push 0x4e6784
push ecx
call fcn.004aa2a0
pop esi
pop edi
pop ebp
add esp, 0x10c
ret 4
push 0x4e1a4c
push 0
push 0x4e6784
mov ecx, ebp
call fcn.0042ef30
pop esi
pop edi
pop ebp
add esp, 0x10c
ret 4
push ebx
push esi
call fcn.004c4f28
add esp, 4
mov ebx, eax
push ebx
push esi
push 0
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x45443e
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x14]
push eax
push 0x4e7bb8
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x45443e
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
movzx edx, cx
push edx
shr ecx, 0x10
push ecx
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
push str._u._u._u._u
mov esi, 0x80
lea edi, [esp + 0x30]
call fcn.004a71f0
push ebx
call fcn.004c57e5
mov eax, dword [0x5166e0]
mov edx, dword [0x51161c]
add esp, 0x18
push 1
push 0
push 0xffffffffffffffff
push 0x4e1a5c
push eax
mov dword [edx + 0x30], 0
call fcn.004aa2a0
mov edx, dword [0x515e10]
push 1
push 0
push 0xffffffffffffffff
mov ecx, edi
push ecx
push edx
call fcn.004aa2a0
pop ebx
pop esi
pop edi
pop ebp
add esp, 0x10c
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x51161c]
push ebx
mov dword [ecx + 0x30], eax
call fcn.004c57e5
add esp, 4
push ebp
call fcn.004319e0
pop ebx
pop esi
pop edi
pop ebp
add esp, 0x10c
ret 4
mov eax, dword [0x51161c]
test byte [eax + 0x100], 1
mov dword [eax + 0x30], 0x57
jne 0x4544a0
mov edx, dword [0x5166e0]
push 1
push 0
push 0xffffffffffffffff
push 0x4e6784
push edx
call fcn.004aa2a0
pop edi
pop ebp
add esp, 0x10c
ret 4
push 0x4e1a4c
push 0
push 0x4e6784
mov ecx, ebp
call fcn.0042ef30
pop edi
pop ebp
add esp, 0x10c
ret 4
Function at 0x454780
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Move file

Disassembly:
sub esp, 0x230
push ebx
xor ebx, ebx
cmp byte [esp + 0x238], bl
jne 0x4547a6
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
pop ebx
add esp, 0x230
ret
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x2c]
push edx
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea eax, [esp + 0x28]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4547c3
sub eax, edx
sar eax, 1
cmp eax, ebx
je 0x4547e7
cmp word [esp + eax*2 + 0x26], 0x5c
lea eax, [esp + eax*2 + 0x26]
jne 0x4547e7
xor ecx, ecx
mov word [eax], cx
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4547fb
test al, 0x10
jne 0x454805
xor al, al
pop ebx
add esp, 0x230
ret
lea eax, [esp + 0x28]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x454810
sub eax, edx
sar eax, 1
xor ecx, ecx
mov word [esp + eax*2 + 0x2a], cx
lea ecx, [esp + 4]
lea edx, [esp + 0x28]
mov eax, 0x614
push ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1e], ebx
mov dword [esp + 0x22], ebx
mov dword [esp + 0x1a], ebx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 3
mov word [esp + 0x18], ax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
neg eax
sbb eax, eax
inc eax
pop ebx
add esp, 0x230
ret
Function at 0x454de0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x254
push 0x2a
push esi
call fcn.004c5cc1
add esp, 8
test eax, eax
jne 0x454e18
push 0x3f
push esi
call fcn.004c5cc1
add esp, 8
test eax, eax
jne 0x454e18
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
add esp, 0x254
ret
lea eax, [esp]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x454e31
xor al, al
add esp, 0x254
ret
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
add esp, 0x254
ret

Function at 0x454e50
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x18
lea eax, [esp + 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x454e71
xor al, al
add esp, 0x18
ret
lea ecx, [esp + 0xc]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [esp + 4]
push 0
push 0
push 0
lea edx, [esp + 0x14]
push edx
push 0
push eax
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x454e6b
mov ecx, dword [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
setne al
add esp, 0x18
ret

Function at 0x454ed0
Capabilities:
Terminate process

Disassembly:
push ecx
push esi
mov esi, eax
lea eax, [esp + 4]
push eax
push 0x1f4
push 2
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
jne 0x454f21
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x454f21
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x454f21
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ecx
ret