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

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x10], ecx
push edi
test esi, esi
je 0x45a881
push 0
push 1
mov ecx, esi
call fcn.00401640
cmp byte [esi + 0x17], 0
mov ebx, eax
jne 0x45a85b
mov edi, dword [esi + 0xc]
jmp 0x45a85d
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x45a878
test byte [edi + 0x15], 8
je 0x45a870
mov ecx, edi
call fcn.00401560
mov ebp, dword [edi + 0xc]
add edi, 0xc
jmp 0x45a8b8
mov edi, 0x50bba0
mov ebp, dword [edi]
jmp 0x45a8b8
lea eax, [esp + 0x10]
xor ecx, ecx
push eax
lea edx, [esp + 0x24]
call fcn.0049f810
add esp, 4
test eax, eax
jne 0x45a8b0
mov eax, dword [0x50499c]
pop edi
pop esi
pop ebp
mov dword [eax + 0x30], 0
xor eax, eax
pop ebx
add esp, 8
ret 8
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x10]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [esp + 0x20], 1
cmp edi, 0xffffffff
je 0x45a908
xor eax, eax
mov dword [esp + 0x20], eax
test ebx, ebx
je 0x45a8fd
push eax
lea eax, [esp + 0x24]
push eax
push ebp
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x20]
xor ecx, ecx
cmp eax, ebp
setne cl
mov dword [esp + 0x20], ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x50499c]
mov dword [ecx + 0x30], eax
cmp edi, 0xffffffff
je 0x45a923
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x45a930
push ebx
call fcn.004bb7ab
add esp, 4
push dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
call fcn.00447370
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8

Function at 0x45a960
Capabilities:
Delete file

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, ecx
push esi
push edi
mov edi, ebx
test ebx, ebx
je 0x45a9b1
movzx eax, word [ebx]
test ax, ax
je 0x45a9ee
mov esi, eax
nop word [eax + eax]
mov eax, 0x4f94e0
mov edx, 0x3f
nop word [eax + eax]
cmp si, dx
je 0x45a9ee
movzx ecx, word [eax + 2]
add eax, 2
mov edx, ecx
test cx, cx
jne 0x45a990
movzx eax, word [edi + 2]
add edi, 2
mov esi, eax
test ax, ax
jne 0x45a980
cmp word [ebx], 0
je 0x45a9ee
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
sete byte [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x50499c]
push dword [esp + 0x14]
mov dword [ecx + 0x30], eax
mov ecx, ebp
call fcn.00447370
pop edi
pop esi
pop ebp
pop ebx
ret 4
push 0
push 0x45a950
push 0
push 1
push ebx
mov ecx, ebp
call fcn.0045aed0
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x45ac50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x100
push esi
push 1
push 0
push 0xffffffffffffffff
mov esi, ecx
mov ecx, dword [0x5092c8]
push 0
call fcn.0049fde0
mov eax, dword [esp + 0x108]
test eax, eax
je 0x45acec
cmp word [eax], 0
je 0x45acec
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x45acaf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x50499c]
push 1
mov dword [ecx + 0x30], eax
mov ecx, esi
call fcn.00447370
pop edi
pop esi
add esp, 0x100
ret 4
mov eax, dword [0x50499c]
mov ecx, esi
push 0
mov dword [eax + 0x30], 0
call fcn.00447370
mov edx, edi
lea ecx, [esp + 8]
call fcn.0049cc60
mov ecx, dword [0x5092c8]
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.0049fde0
pop edi
pop esi
add esp, 0x100
ret 4
mov eax, dword [0x50499c]
mov ecx, esi
push 1
mov dword [eax + 0x30], 0x57
call fcn.00447370
pop esi
add esp, 0x100
ret 4

Function at 0x45ad10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
or ebx, 0xffffffff
xor edx, edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], ebx
movzx eax, word [edi]
mov dword [esp + 0x1c], edx
test ax, ax
je 0x45ae0b
mov ecx, eax
nop word [eax + eax]
movzx esi, cx
test esi, 0xffffff80
je 0x45ad5f
xor eax, eax
jmp 0x45ad72
push 2
push esi
call fcn.004be8e0
mov edx, dword [esp + 0x24]
add esp, 8
mov ebx, dword [esp + 0x18]
mov ecx, esi
and ecx, 0xffffffdf
test eax, eax
cmove ecx, esi
add ecx, 0xffffffd5
cmp ecx, 0x33
ja case.0x45ad8b.44
movzx eax, byte [ecx + 0x45ae54]
jmp dword [eax*4 + 0x45ae30]
movzx eax, word [edi]
mov dword [esp + 0x10], eax
jmp case.0x45ad8b.44
mov ecx, 1
jmp 0x45adca
mov ecx, 0x20
jmp 0x45adca
mov ecx, 4
jmp 0x45adca
mov ecx, 2
jmp 0x45adca
mov ecx, 0x80
jmp 0x45adca
mov ecx, 0x1000
jmp 0x45adca
mov ecx, 0x100
mov eax, dword [esp + 0x10]
sub eax, 0x2b
je 0x45ade9
sub eax, 2
je 0x45ade1
sub eax, 0x31
jne case.0x45ad8b.44
xor edx, ecx
jmp 0x45adf5
not ecx
and ebx, ecx
and edx, ecx
jmp 0x45adf1
mov eax, ecx
not eax
and ebx, eax
or edx, ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], edx
movzx eax, word [edi + 2]
add edi, 2
mov ecx, eax
test ax, ax
jne 0x45ad50
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push 0x45ae90
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0045aed0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x45b620
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x264
push ebx
push esi
push edi
push 1
push 0
mov esi, ecx
mov ecx, dword [0x5092c8]
push 0xffffffffffffffff
push 0
mov dword [esp + 0x2c], esi
call fcn.0049fde0
mov edi, dword [ebp + 8]
test edi, edi
je 0x45b758
cmp word [edi], 0
je 0x45b758
push 0
push 0
push 3
push 0
push 7
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x45b697
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x45b6e2
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x45b6c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x50499c]
push 1
mov dword [ecx + 0x30], eax
mov ecx, esi
call fcn.00447370
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x3c]
xor eax, eax
or eax, dword [esp + 0x40]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebp + 0xc]
mov cx, word [eax]
call fcn.00412f70
movzx eax, ax
sub eax, 0x4b
je 0x45b702
sub eax, 2
jne 0x45b71e
push eax
push 0x100000
jmp 0x45b709
push 0
push 0x400
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call fcn.004d2290
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
mov eax, dword [0x50499c]
mov ecx, dword [esp + 0x1c]
push 0
mov dword [eax + 0x30], 0
call fcn.00447370
mov ecx, dword [0x5092c8]
push 0x18
push dword [esp + 0x18]
push dword [esp + 0x18]
call fcn.004014e0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x50499c]
mov ecx, esi
push 1
mov dword [eax + 0x30], 0x57
call fcn.00447370
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x45d0f0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
push esi
mov esi, dword [esp + 0x218]
push edi
movzx edi, word [esi + 4]
test edi, 0xffffff80
je 0x45d10f
xor eax, eax
jmp 0x45d11a
push 2
push edi
call fcn.004be8e0
add esp, 8
mov ecx, edi
and ecx, 0xffffffdf
test eax, eax
cmove ecx, edi
add ecx, 0xffffffbf
cmp ecx, 0x12
ja case.0x45d137.66
movzx eax, byte [ecx + 0x45d244]
jmp dword [eax*4 + 0x45d230]
mov cx, word [esi + 0x12]
call fcn.00412f70
cmp ax, 0x53
jne 0x45d161
cmp word [esi + 0x14], 0
mov eax, 2
mov ecx, 0x17
cmovne eax, ecx
jmp 0x45d1cb
mov eax, 0x26
jmp 0x45d1cb
cmp word [esi + 0x12], 0
mov eax, 0x1a
mov ecx, 0x23
cmovne eax, ecx
jmp 0x45d1cb
cmp word [esi + 0x12], 0
mov eax, 0x10
mov ecx, 0x19
cmovne eax, ecx
jmp 0x45d1cb
mov cx, word [esi + 0xe]
call fcn.00412f70
cmp ax, 0x4d
jne 0x45d1b3
cmp word [esi + 0x16], 0
mov eax, 0xb
mov ecx, 0x16
cmovne eax, ecx
jmp 0x45d1cb
cmp word [esi + 0x12], 0
mov eax, 7
mov ecx, 0x18
cmovne eax, ecx
jmp 0x45d1cb
mov eax, dword [esp + 8]
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
pop edi
pop esi
test eax, eax
je 0x45d1ea
xor eax, eax
mov word [esp + 4], ax
mov edx, dword [esp + 0x210]
test edx, edx
je 0x45d210
lea ecx, [esp + 4]
mov eax, ecx
sub edx, eax
nop dword [eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x45d200
lea eax, [esp + 4]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45d217
sub eax, edx
sar eax, 1
add esp, 0x20c
ret

Function at 0x45d260
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
lea eax, [esp]
push eax
push 0
push 0
push 5
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x45d282
xor eax, eax
mov word [esp], ax
lea edx, [esp]
lea ecx, [edx + 2]
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x45d290
sub edx, ecx
sar edx, 1
jne 0x45d2a5
xor edx, edx
jmp 0x45d2b5
cmp word [esp + edx*2 - 2], 0x5c
jne 0x45d2b5
xor eax, eax
mov word [esp + edx*2 - 2], ax
dec edx
push esi
mov esi, dword [esp + 0x210]
test esi, esi
je 0x45d2e0
lea eax, [esp + 4]
mov ecx, eax
sub esi, ecx
nop dword [eax]
movzx ecx, word [eax]
lea eax, [eax + 2]
mov word [esi + eax - 2], cx
test cx, cx
jne 0x45d2d0
mov eax, edx
pop esi
add esp, 0x208
ret
Function at 0x46d8d0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov bl, cl
test bl, bl
jne 0x46d8db
xor al, al
pop ebx
ret
sub edx, 1
je 0x46d900
movzx eax, bl
push eax
sub edx, 1
je 0x46d8f6
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
pop ebx
ret
call dword [sym.imp.USER32.dll_GetKeyState]
and al, 1
pop ebx
ret
mov al, bl
dec al
cmp al, 5
ja 0x46d90d
cmp bl, 3
jne 0x46d915
mov al, bl
add al, 0x66
cmp al, 5
ja 0x46d92c
cmp dword [0x507ac4], 0
movzx eax, bl
je 0x46d95f
mov al, byte [eax + 0x508490]
shr al, 7
pop ebx
ret
cmp dword [0x507ac8], 0
je 0x46d95c
push 0
xor edx, edx
mov cl, bl
call fcn.0041c150
add esp, 4
test al, al
je 0x46d94e
mov cl, 1
call fcn.0041bf40
movzx eax, bl
pop ebx
mov al, byte [eax + 0x508490]
shr al, 7
ret
movzx eax, bl
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
pop ebx
ret

Function at 0x46e020
Capabilities:
Get disk information

Disassembly:
sub esp, 0x210
xor eax, eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
push ebp
push esi
push edi
mov esi, ecx
mov edi, edx
push esi
push eax
push 0x410
mov word [edi], ax
call ebx
mov ebp, eax
test ebp, ebp
jne 0x46e062
push esi
push eax
push 0x1000
call ebx
mov ebp, eax
test ebp, ebp
jne 0x46e062
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret
cmp byte [esp + 0x228], 0
push 0x104
push edi
push 0
push ebp
je 0x46e07d
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameW]
jmp 0x46e083
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
mov ebx, eax
test ebx, ebx
jne 0x46e1ad
mov eax, dword [0x4f9d68]
test eax, eax
je 0x46e1ad
push 0x104
push edi
push ebp
call eax
mov ebx, eax
test ebx, ebx
je 0x46e1ad
cmp byte [esp + 0x228], 0
je 0x46e105
push 0x5c
push edi
call fcn.004b7194
mov edx, eax
add esp, 8
test edx, edx
je 0x46e1ad
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46e0d1
sub ecx, esi
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [edx + 2]
push eax
push edi
call fcn.004b7db0
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x210
ret
mov eax, 0x41
mov dword [esp + 0x12], 0x3a
mov word [esp + 0x10], ax
nop word [eax + eax]
push 0x104
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov esi, eax
cmp esi, 2
jbe 0x46e15c
sub esi, 2
lea eax, [esp + 0x18]
push esi
push edi
push eax
call fcn.004c4920
add esp, 0xc
test eax, eax
jne 0x46e15c
cmp word [edi + esi*2], 0x5c
lea ecx, [edi + esi*2]
je 0x46e182
mov ax, word [esp + 0x10]
inc ax
mov word [esp + 0x10], ax
cmp ax, 0x5a
jbe 0x46e120
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x210
ret
movzx eax, word [esp + 0x10]
sub ebx, esi
mov word [edi], ax
movzx eax, word [esp + 0x12]
mov word [edi + 2], ax
lea eax, [ebx*2 + 2]
push eax
push ecx
lea eax, [edi + 4]
push eax
call fcn.004b7db0
add esp, 0xc
add ebx, 2
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x210
ret
Function at 0x4708d0
Capabilities:
Create shortcut via ishelllink
Get keyboard layout

Disassembly:
sub esp, 0x210
push ebx
push ebp
push 0
mov ebp, ecx
xor bl, bl
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 8]
push eax
push 0x4d4940
push 1
push 0
push 0x4d4950
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x470aa5
mov eax, dword [esp + 8]
push dword [esp + 0x21c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov edx, dword [esp + 0x224]
cmp word [edx], 0
je 0x47092e
mov eax, dword [esp + 8]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov edx, dword [esp + 0x228]
cmp word [edx], 0
je 0x470946
mov eax, dword [esp + 8]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov edx, dword [esp + 0x22c]
cmp word [edx], 0
je 0x47095e
mov eax, dword [esp + 8]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
push esi
push edi
mov edi, dword [esp + 0x238]
cmp word [edi], 0
je 0x4709b3
mov esi, dword [esp + 0x240]
cmp word [esi], 0
je 0x4709a5
mov ecx, esi
call fcn.00404cf0
test al, al
je 0x470997
push 0x10
push 0
push esi
call fcn.004bb6a0
add esp, 0xc
lea edx, [eax - 1]
jmp 0x4709a7
push esi
call fcn.004bb722
add esp, 4
lea edx, [eax - 1]
jmp 0x4709a7
xor edx, edx
mov eax, dword [esp + 0x10]
push edx
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov esi, dword [esp + 0x23c]
cmp word [esi], 0
je 0x4709f5
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push ecx
push 0
xor edx, edx
mov ecx, esi
call fcn.0041ca20
add esp, 0xc
test al, al
je 0x4709f5
mov ecx, dword [esp + 0x10]
mov esi, 0x600
movzx eax, al
or ax, si
movzx eax, ax
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x34]
mov esi, dword [esp + 0x244]
cmp word [esi], 0
je 0x470a32
mov ecx, esi
call fcn.00404cf0
test al, al
je 0x470a1c
push 0x10
push 0
push esi
call fcn.004bb6a0
add esp, 0xc
jmp 0x470a25
push esi
call fcn.004bb722
add esp, 4
mov edx, eax
mov eax, dword [esp + 0x10]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push 0x4d4960
push eax
mov ecx, dword [eax]
call dword [ecx]
pop edi
pop esi
test eax, eax
js 0x470a9b
push 0
lea eax, [esp + 0x14]
push eax
push 0x104
push dword [esp + 0x22c]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push 1
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
test eax, eax
js 0x470a91
mov ecx, dword [0x507a8c]
push 1
push 0
push 0xffffffffffffffff
push 0x4da494
call fcn.0049fde0
mov bl, 1
mov eax, dword [esp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
test bl, bl
je 0x470abf
pop ebp
mov eax, 1
pop ebx
add esp, 0x210
ret 0x24
mov eax, dword [0x50499c]
test byte [eax + 0x100], 1
jne 0x470aee
mov ecx, dword [0x507a8c]
push 1
push 0
push 0xffffffffffffffff
push 0x4f07d4
call fcn.0049fde0
pop ebp
pop ebx
add esp, 0x210
ret 0x24
push 0x4da3cc
push 0
push 0x4f07d4
mov ecx, ebp
call fcn.004472d0
pop ebp
pop ebx
add esp, 0x210
ret 0x24
Function at 0x470b10
Capabilities:
Delete file
Move file

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x230
push esi
mov esi, ecx
test eax, eax
je 0x470be0
cmp word [eax], 0
je 0x470be0
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea ecx, [esp + 0x28]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x470b50
sub ecx, edx
sar ecx, 1
je 0x470b70
cmp word [esp + ecx*2 + 0x26], 0x5c
jne 0x470b70
xor eax, eax
mov word [esp + ecx*2 + 0x26], ax
lea ecx, [esp + 0x28]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x470b77
xor eax, eax
mov dword [esp + 8], 3
sub ecx, edx
mov dword [esp + 0x1a], eax
sar ecx, 1
mov dword [esp + 0x1e], eax
mov dword [esp + 0x16], eax
mov dword [esp + 4], eax
mov word [esp + ecx*2 + 0x2a], ax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x28]
mov dword [esp + 0xc], eax
mov eax, 0x4054
mov word [esp + 0x14], ax
lea eax, [esp + 4]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
mov ecx, esi
setne al
movzx eax, al
push eax
call fcn.00447370
pop esi
add esp, 0x230
ret 4
mov eax, dword [0x50499c]
test byte [eax + 0x100], 1
jne 0x470c0e
mov ecx, dword [0x507a8c]
push 1
push 0
push 0xffffffffffffffff
push 0x4f07d4
call fcn.0049fde0
pop esi
add esp, 0x230
ret 4
push 0x4da3cc
push 0
push 0x4f07d4
call fcn.004472d0
pop esi
add esp, 0x230
ret 4
Function at 0x470c30
Capabilities:
Get file version info

Disassembly:
sub esp, 0x10c
push ebx
push esi
push 1
push 0
push 0xffffffffffffffff
mov ebx, ecx
mov ecx, dword [0x5092c8]
push 0
call fcn.0049fde0
mov esi, dword [esp + 0x118]
test esi, esi
je 0x470dae
cmp word [esi], 0
je 0x470dae
push ebp
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebp, eax
test ebp, ebp
jne 0x470c9d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x50499c]
push 1
mov dword [ecx + 0x30], eax
mov ecx, ebx
call fcn.00447370
pop ebp
pop esi
pop ebx
add esp, 0x10c
ret 4
push edi
push ebp
call fcn.004bb7a0
add esp, 4
mov edi, eax
push edi
push ebp
push 0
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x470d45
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x14]
push eax
push 0x4f16f8
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x470d45
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 8]
mov ecx, dword [eax + 0xc]
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
movzx eax, dx
push eax
shr edx, 0x10
lea eax, [esp + 0x28]
push edx
push str._u._u._u._u
push 0x80
push eax
call fcn.0049bbc0
push edi
call fcn.004bb7ab
mov eax, dword [0x50499c]
add esp, 0x20
mov ecx, ebx
push 0
mov dword [eax + 0x30], 0
call fcn.00447370
mov ecx, dword [0x5092c8]
lea eax, [esp + 0x1c]
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.0049fde0
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x10c
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x50499c]
push edi
mov dword [ecx + 0x30], eax
call fcn.004bb7ab
mov eax, dword [0x50499c]
add esp, 4
test byte [eax + 0x100], 1
jne 0x470d8e
mov ecx, dword [0x507a8c]
push 1
push 0
push 0xffffffffffffffff
push 0x4f07d4
call fcn.0049fde0
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x10c
ret 4
push 0x4da3cc
push 0
push 0x4f07d4
mov ecx, ebx
call fcn.004472d0
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x10c
ret 4
mov eax, dword [0x50499c]
mov ecx, ebx
push 1
mov dword [eax + 0x30], 0x57
call fcn.00447370
pop esi
pop ebx
add esp, 0x10c
ret 4
Function at 0x471050
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Move file

Disassembly:
sub esp, 0x230
test dl, dl
jne 0x471072
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x47113e
mov al, 1
add esp, 0x230
ret
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x28]
push eax
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea ecx, [esp + 0x24]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x471090
sub ecx, edx
sar ecx, 1
je 0x4710b0
cmp word [esp + ecx*2 + 0x22], 0x5c
jne 0x4710b0
xor eax, eax
mov word [esp + ecx*2 + 0x22], ax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x47113e
test al, 0x10
je 0x47113e
lea ecx, [esp + 0x24]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4710d0
sub ecx, edx
mov dword [esp + 0xc], 0
sar ecx, 1
xor eax, eax
mov dword [esp + 0x16], 0
mov dword [esp + 0x1a], 0
mov dword [esp + 0x12], 0
mov word [esp + ecx*2 + 0x26], ax
lea eax, [esp + 0x24]
mov dword [esp + 8], eax
mov eax, 0x614
mov word [esp + 0x10], ax
lea eax, [esp]
push eax
mov dword [esp + 4], 0
mov dword [esp + 8], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
sete al
add esp, 0x230
ret
xor al, al
add esp, 0x230
ret
Function at 0x471680
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x258
push esi
mov esi, ecx
push 0x2a
push esi
call fcn.004b7267
add esp, 8
test eax, eax
jne 0x4716bd
push 0x3f
push esi
call fcn.004b7267
add esp, 8
test eax, eax
jne 0x4716bd
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4716ce
mov al, 1
pop esi
add esp, 0x258
ret
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x4716d8
xor al, al
pop esi
add esp, 0x258
ret
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
pop esi
add esp, 0x258
ret

Function at 0x4716f0
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
lea eax, [esp]
push esi
push eax
push 0x28
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x471763
lea eax, [esp + 0xc]
push eax
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push 0
push 0
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 1
push eax
push 0
push dword [esp + 0x18]
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x471763
push eax
push esi
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x471763
mov al, 1
pop esi
add esp, 0x14
ret
xor al, al
pop esi
add esp, 0x14
ret
Function at 0x471770
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0xa60
push ebx
push ebp
push esi
push edi
push 0
mov ebx, ecx
mov dword [esp + 0x18], 0x22c
push 2
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebp, eax
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
push 0
push 0
push 1
xor edx, edx
mov ecx, ebx
call fcn.0049ba10
add esp, 0xc
test eax, eax
je 0x4717df
mov ecx, ebx
call fcn.00404cf0
test al, al
je 0x4717d2
push 0x10
push 0
push ebx
call fcn.004bb5f0
add esp, 0xc
mov ebx, eax
jmp 0x4717e1
push ebx
call fcn.004bb74c
add esp, 4
mov ebx, eax
jmp 0x4717e1
xor ebx, ebx
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x4718a6
test ebx, ebx
je 0x471803
cmp ebx, dword [esp + 0x1c]
je 0x4718ba
lea eax, [esp + 0x44c]
push eax
lea eax, [esp + 0x244]
push eax
lea eax, [esp + 0x660]
push eax
lea eax, [esp + 0x870]
push eax
lea eax, [esp + 0x48]
push eax
call fcn.004c5e86
lea eax, [esp + 0x460]
add esp, 0x14
mov esi, eax
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x471840
lea edi, [esp + 0x240]
sub eax, esi
add edi, 0xfffffffe
nop word [eax + eax]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x471860
push dword [esp + 0x10]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x244]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call fcn.004ba0a7
add esp, 8
test eax, eax
je 0x4718ce
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4717f5
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xa60
ret
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0xa60
ret
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa60
ret