joyce8/EMBER2024-capa huggingface dataset:
Function at 0x453d80
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, ecx
push dword [esp + 0x14]
push str.__s_s
push 0x800
push esi
call fcn.0049c650
mov edi, eax
add esp, 0x14
lea ecx, [edi + 1]
cmp ecx, 0x800
jg 0x453dc7
lea ecx, [esi + 2]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x453dc7
mov dword [esi + edi*2], 0x22
mov al, 1
pop edi
pop esi
ret
pop edi
xor al, al
pop esi
ret

Function at 0x453dd0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x241c
call fcn.004b79a0
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov byte [esp + 0x17], dl
push edi
push dword [0x4e8660]
lea ebx, [esp + 0x430]
mov ebp, 0x4b9c40
push str.__s_s
mov eax, ebx
push 0x800
push eax
call fcn.0049c650
mov esi, eax
add esp, 0x14
lea ecx, [esi + 1]
cmp ecx, 0x800
jg 0x453e42
lea eax, [esp + 0x42a]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x453e42
mov dword [esp + esi*2 + 0x428], 0x22
mov esi, dword [0x4e8660]
jmp 0x453ed4
xor esi, esi
lea eax, [esp + 0x18]
push esi
push ecx
push eax
push str.InstallDir
mov edx, str.SOFTWAREAutoHotkey
call fcn.0049db50
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x453e8b
test esi, esi
jne 0x453e8b
mov esi, 0x100
lea eax, [esp + 0x18]
push esi
push ecx
push eax
push str.InstallDir
mov edx, str.SOFTWAREAutoHotkey
call fcn.0049db50
mov edx, eax
add esp, 0x10
test edx, edx
je 0x453e63
xor ecx, ecx
nop dword [eax]
movzx eax, word [esp + ecx + 0x18]
lea ecx, [ecx + 2]
mov word [esp + ecx + 0x21e], ax
test ax, ax
jne 0x453e90
test edx, edx
je 0x453f6e
lea eax, [esp + 0x220]
push eax
push edi
lea ecx, [esp + 0x430]
call fcn.00453d80
add esp, 8
test al, al
je 0x453f6e
lea esi, [esp + 0x220]
cmp byte [esp + 0x17], 0
je 0x453f44
push 0x4d85b0
push esi
push str.__s_s
lea eax, [esp + 0x1434]
push 0x800
push eax
call fcn.0049c650
mov edi, eax
add esp, 0x14
lea ecx, [edi + 1]
cmp ecx, 0x800
jg 0x453f2f
lea eax, [esp + 0x142a]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x453f2f
mov dword [esp + edi*2 + 0x1428], 0x22
lea ebx, [esp + 0x1428]
jmp 0x453f3d
cmp esi, dword [0x4e8660]
jne 0x453f44
mov ebx, dword [0x4e865c]
lea ebp, [esp + 0x428]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ebp
push ebx
mov ecx, 0x4e7b70
call fcn.00448cb0
test eax, eax
setne al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x241c
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x241c
ret
Function at 0x457980
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
push ebx
push esi
push edi
mov edi, dword [0x4e7210]
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov esi, dword [ebp + 8]
xor edx, edx
push eax
push ecx
push 0
mov ecx, esi
call fcn.0041cb90
mov bl, al
add esp, 0xc
test bl, bl
jne 0x457a1e
push 0
lea edx, [esp + 0x10]
mov ecx, esi
call fcn.0046db90
add esp, 4
test eax, eax
jne 0x4579e4
push 1
push eax
push 0xffffffffffffffff
push 0x4b9c40
mov ecx, edi
call fcn.004a0a20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x20]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x10]
push 0
push ecx
mov ecx, eax
mov dword [esp + 0x20], 0
call fcn.0046de40
add esp, 8
lea eax, [esp + 0x10]
mov ecx, edi
push eax
call fcn.004a0310
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
movzx esi, word [eax]
test esi, 0xffffff80
je 0x457a30
xor eax, eax
jmp 0x457a3c
push 2
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
add esp, 8
mov ecx, esi
and ecx, 0xffffffdf
test eax, eax
cmove ecx, esi
cmp ecx, 0x50
je 0x457a5a
xor eax, eax
mov edx, 2
cmp ecx, 0x54
cmovne edx, eax
jmp 0x457a5f
mov edx, 1
mov cl, bl
call fcn.0046dda0
push 1
test al, al
mov edx, 0x4d8984
push 0
mov ecx, 0x4d8980
cmove ecx, edx
push 0xffffffffffffffff
push ecx
mov ecx, edi
call fcn.004a0a20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x457a90
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x220
push esi
push edi
push 1
push 0
push 0xffffffffffffffff
mov esi, ecx
mov ecx, dword [0x4e7210]
push 0
call fcn.004a0a20
mov eax, dword [ebp + 8]
test eax, eax
je 0x457b88
cmp word [eax], 0
je 0x457b88
push 0x103
push eax
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
add esp, 0xc
lea ecx, [esp + 0x20]
xor eax, eax
lea edx, [ecx + 2]
mov word [esp + 0x226], ax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x457af0
sub ecx, edx
sar ecx, 1
cmp word [esp + ecx*2 + 0x1e], 0x5c
je 0x457b19
lea eax, [ecx + 1]
cmp eax, 0x104
jae 0x457b88
mov dword [esp + ecx*2 + 0x20], 0x5c
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x457b88
cmp byte [ebp + 0xc], 0
je 0x457b47
mov edi, dword [esp + 8]
mov esi, dword [esp + 0xc]
jmp 0x457b4f
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov ecx, dword [0x4e59cc]
push 1
push 0
push 0xffffffffffffffff
push 0x4b9d08
call fcn.004a0a20
mov ecx, dword [0x4e7210]
shrd edi, esi, 0x14
push 0x18
shr esi, 0x14
push esi
push edi
call fcn.004014e0
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x4e30f4]
test byte [eax + 0x100], 1
jne 0x457bb4
mov ecx, dword [0x4e59cc]
push 1
push 0
push 0xffffffffffffffff
push 0x4d00fc
call fcn.004a0a20
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
push 0x4b9c40
push 0
push 0x4d00fc
mov ecx, esi
call fcn.00447670
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x4599d0
Capabilities:
Set current directory

Disassembly:
sub esp, 0x10
push esi
mov esi, ecx
movzx eax, word [esi]
test ax, ax
je 0x459a04
cmp word [esi + 2], 0x3a
jne 0x459a04
cmp word [esi + 4], 0
jne 0x459a04
mov word [esp + 8], ax
lea esi, [esp + 8]
xor eax, eax
mov dword [esp + 0xa], 0x5c003a
mov word [esp + 0xe], ax
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x459a5c
cmp byte [0x4e8668], al
je 0x459a82
mov eax, dword [0x4e30f4]
test byte [eax + 0x100], 1
jne 0x459a40
mov ecx, dword [0x4e59cc]
push 1
push 0
push 0xffffffffffffffff
push 0x4d00fc
call fcn.004a0a20
pop esi
add esp, 0x10
ret
mov ecx, dword [0x4e81bc]
push 0x4b9c40
push 0
push 0x4d00fc
call fcn.00447670
pop esi
add esp, 0x10
ret
cmp byte [0x4e8668], 0
je 0x459a82
mov ecx, esi
call fcn.00459a90
mov ecx, dword [0x4e59cc]
push 1
push 0
push 0xffffffffffffffff
push 0x4b9d08
call fcn.004a0a20
pop esi
add esp, 0x10
ret

Function at 0x459a90
Capabilities:
Get common file path

Disassembly:
mov eax, 0x10000
call fcn.004b79a0
push esi
lea eax, [esp + 4]
mov esi, ecx
push eax
push 0x8000
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x459ac9
push ecx
lea esi, [esp + 8]
mov ecx, 0x4e4ae4
push esi
call fcn.0046e6a0
pop esi
add esp, 0x10000
ret
test esi, esi
je 0x459ad9
push ecx
push esi
mov ecx, 0x4e4ae4
call fcn.0046e6a0
pop esi
add esp, 0x10000
ret

Function at 0x459af0
Capabilities:
Get common file path

Disassembly:
mov eax, 0x10000
call fcn.004b79a0
lea eax, [esp]
push eax
push 0x8000
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x459b21
lea eax, [esp]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsdup]
add esp, 4
add esp, 0x10000
ret
xor eax, eax
add esp, 0x10000
ret
Function at 0x45a1a0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov dword [ebp - 8], esi
test edi, edi
je 0x45a27a
cmp word [edi], 0
je 0x45a27a
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x45a1ed
push 0xb7
call dword [sym.imp.KERNEL32.dll_SetLastError]
shr ebx, 4
and bl, 1
mov al, bl
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x5c
push edi
call dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
mov ebx, eax
add esp, 8
cmp ebx, edi
jbe 0x45a262
cmp word [ebx - 2], 0x3a
je 0x45a262
test esi, esi
je 0x45a213
xor ecx, ecx
mov eax, edi
mov word [ebx], cx
jmp 0x45a242
mov esi, ebx
sub esi, edi
sar esi, 1
lea eax, [esi*2 + 2]
call fcn.004b79d0
mov eax, esp
push esi
push edi
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
mov eax, dword [ebp - 4]
add esp, 0xc
xor ecx, ecx
mov word [eax + esi*2], cx
mov esi, dword [ebp - 8]
mov edx, eax
mov ecx, eax
call fcn.0045a1a0
test esi, esi
je 0x45a257
mov ecx, 0x5c
mov word [ebx], cx
cmp word [ebx + 2], 0
je 0x45a284
test al, al
je 0x45a284
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45adb0
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 0x45ae01
push 0
push 1
mov ecx, esi
call fcn.00401640
cmp byte [esi + 0x17], 0
mov ebx, eax
jne 0x45addb
mov edi, dword [esi + 0xc]
jmp 0x45addd
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x45adf8
test byte [edi + 0x15], 8
je 0x45adf0
mov ecx, edi
call fcn.00401560
mov ebp, dword [edi + 0xc]
add edi, 0xc
jmp 0x45ae38
mov edi, 0x4e9af0
mov ebp, dword [edi]
jmp 0x45ae38
lea eax, [esp + 0x10]
xor ecx, ecx
push eax
lea edx, [esp + 0x24]
call fcn.004a0450
add esp, 4
test eax, eax
jne 0x45ae30
mov eax, dword [0x4e30f4]
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 0x45ae88
xor eax, eax
mov dword [esp + 0x20], eax
test ebx, ebx
je 0x45ae7d
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 [0x4e30f4]
mov dword [ecx + 0x30], eax
cmp edi, 0xffffffff
je 0x45aea3
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x45aeb1
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
push dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
call fcn.00447710
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8

Function at 0x45aee0
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 0x45af31
movzx eax, word [ebx]
test ax, ax
je 0x45af6e
mov esi, eax
nop word [eax + eax]
mov eax, 0x4d8f30
mov edx, 0x3f
nop word [eax + eax]
cmp si, dx
je 0x45af6e
movzx ecx, word [eax + 2]
add eax, 2
mov edx, ecx
test cx, cx
jne 0x45af10
movzx eax, word [edi + 2]
add edi, 2
mov esi, eax
test ax, ax
jne 0x45af00
cmp word [ebx], 0
je 0x45af6e
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 [0x4e30f4]
push dword [esp + 0x14]
mov dword [ecx + 0x30], eax
mov ecx, ebp
call fcn.00447710
pop edi
pop esi
pop ebp
pop ebx
ret 4
push 0
push 0x45aed0
push 0
push 1
push ebx
mov ecx, ebp
call fcn.0045b460
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x45b1e0
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 [0x4e7210]
push 0
call fcn.004a0a20
mov eax, dword [esp + 0x108]
test eax, eax
je 0x45b27c
cmp word [eax], 0
je 0x45b27c
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x45b23f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4e30f4]
push 1
mov dword [ecx + 0x30], eax
mov ecx, esi
call fcn.00447710
pop edi
pop esi
add esp, 0x100
ret 4
mov eax, dword [0x4e30f4]
mov ecx, esi
push 0
mov dword [eax + 0x30], 0
call fcn.00447710
mov edx, edi
lea ecx, [esp + 8]
call fcn.0049d720
mov ecx, dword [0x4e7210]
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.004a0a20
pop edi
pop esi
add esp, 0x100
ret 4
mov eax, dword [0x4e30f4]
mov ecx, esi
push 1
mov dword [eax + 0x30], 0x57
call fcn.00447710
pop esi
add esp, 0x100
ret 4

Function at 0x45b2a0
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 0x45b39c
mov ecx, eax
nop word [eax + eax]
movzx esi, cx
test esi, 0xffffff80
je 0x45b2ef
xor eax, eax
jmp 0x45b303
push 2
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
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.0x45b31c.44
movzx eax, byte [ecx + 0x45b3e8]
jmp dword [eax*4 + 0x45b3c4]
movzx eax, word [edi]
mov dword [esp + 0x10], eax
jmp case.0x45b31c.44
mov ecx, 1
jmp 0x45b35b
mov ecx, 0x20
jmp 0x45b35b
mov ecx, 4
jmp 0x45b35b
mov ecx, 2
jmp 0x45b35b
mov ecx, 0x80
jmp 0x45b35b
mov ecx, 0x1000
jmp 0x45b35b
mov ecx, 0x100
mov eax, dword [esp + 0x10]
sub eax, 0x2b
je 0x45b37a
sub eax, 2
je 0x45b372
sub eax, 0x31
jne case.0x45b31c.44
xor edx, ecx
jmp 0x45b386
not ecx
and ebx, ecx
and edx, ecx
jmp 0x45b382
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 0x45b2e0
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push 0x45b420
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0045b460
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x45bbb0
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 [0x4e7210]
push 0xffffffffffffffff
push 0
mov dword [esp + 0x2c], esi
call fcn.004a0a20
mov edi, dword [ebp + 8]
test edi, edi
je 0x45bce8
cmp word [edi], 0
je 0x45bce8
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 0x45bc27
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 0x45bc72
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x45bc59
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4e30f4]
push 1
mov dword [ecx + 0x30], eax
mov ecx, esi
call fcn.00447710
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.004130a0
movzx eax, ax
sub eax, 0x4b
je 0x45bc92
sub eax, 2
jne 0x45bcae
push eax
push 0x100000
jmp 0x45bc99
push 0
push 0x400
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call fcn.004b78b0
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
mov eax, dword [0x4e30f4]
mov ecx, dword [esp + 0x1c]
push 0
mov dword [eax + 0x30], 0
call fcn.00447710
mov ecx, dword [0x4e7210]
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 [0x4e30f4]
mov ecx, esi
push 1
mov dword [eax + 0x30], 0x57
call fcn.00447710
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x45d6b0
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 0x45d6cf
xor eax, eax
jmp 0x45d6db
push 2
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
add esp, 8
mov ecx, edi
and ecx, 0xffffffdf
test eax, eax
cmove ecx, edi
add ecx, 0xffffffbf
cmp ecx, 0x12
ja case.0x45d6f8.66
movzx eax, byte [ecx + 0x45d804]
jmp dword [eax*4 + 0x45d7f0]
mov cx, word [esi + 0x12]
call fcn.004130a0
cmp ax, 0x53
jne 0x45d722
cmp word [esi + 0x14], 0
mov eax, 2
mov ecx, 0x17
cmovne eax, ecx
jmp 0x45d78c
mov eax, 0x26
jmp 0x45d78c
cmp word [esi + 0x12], 0
mov eax, 0x1a
mov ecx, 0x23
cmovne eax, ecx
jmp 0x45d78c
cmp word [esi + 0x12], 0
mov eax, 0x10
mov ecx, 0x19
cmovne eax, ecx
jmp 0x45d78c
mov cx, word [esi + 0xe]
call fcn.004130a0
cmp ax, 0x4d
jne 0x45d774
cmp word [esi + 0x16], 0
mov eax, 0xb
mov ecx, 0x16
cmovne eax, ecx
jmp 0x45d78c
cmp word [esi + 0x12], 0
mov eax, 7
mov ecx, 0x18
cmovne eax, ecx
jmp 0x45d78c
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 0x45d7ab
xor eax, eax
mov word [esp + 4], ax
mov edx, dword [esp + 0x210]
test edx, edx
je 0x45d7d0
lea ecx, [esp + 4]
mov eax, ecx
sub edx, eax
nop
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x45d7c0
lea eax, [esp + 4]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45d7d7
sub eax, edx
sar eax, 1
add esp, 0x20c
ret

Function at 0x45d820
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 0x45d842
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 0x45d850
sub edx, ecx
sar edx, 1
jne 0x45d865
xor edx, edx
jmp 0x45d875
cmp word [esp + edx*2 - 2], 0x5c
jne 0x45d875
xor eax, eax
mov word [esp + edx*2 - 2], ax
dec edx
push esi
mov esi, dword [esp + 0x210]
test esi, esi
je 0x45d8a0
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 0x45d890
mov eax, edx
pop esi
add esp, 0x208
ret
Function at 0x46dda0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov bl, cl
test bl, bl
jne 0x46ddab
xor al, al
pop ebx
ret
sub edx, 1
je 0x46ddd0
movzx eax, bl
push eax
sub edx, 1
je 0x46ddc6
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 0x46dddd
cmp bl, 3
jne 0x46dde5
mov al, bl
add al, 0x66
cmp al, 5
ja 0x46ddfc
cmp dword [0x4e5a04], 0
movzx eax, bl
je 0x46de2f
mov al, byte [eax + 0x4e63d0]
shr al, 7
pop ebx
ret
cmp dword [0x4e5a08], 0
je 0x46de2c
push 0
xor edx, edx
mov cl, bl
call fcn.0041c2b0
add esp, 4
test al, al
je 0x46de1e
mov cl, 1
call fcn.0041c0a0
movzx eax, bl
pop ebx
mov al, byte [eax + 0x4e63d0]
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 0x46e4f0
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 0x46e532
push esi
push eax
push 0x1000
call ebx
mov ebp, eax
test ebp, ebp
jne 0x46e532
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 0x46e54d
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameW]
jmp 0x46e553
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
mov ebx, eax
test ebx, ebx
jne 0x46e67e
mov eax, dword [0x4d97a8]
test eax, eax
je 0x46e67e
push 0x104
push edi
push ebp
call eax
mov ebx, eax
test ebx, ebx
je 0x46e67e
cmp byte [esp + 0x228], 0
je 0x46e5d6
push 0x5c
push edi
call dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
mov edx, eax
add esp, 8
test edx, edx
je 0x46e67e
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46e5a2
sub ecx, esi
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [edx + 2]
push eax
push edi
call sub.VCRUNTIME140.dll_memmove
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 dword [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 0x46e62d
sub esi, 2
lea eax, [esp + 0x18]
push esi
push edi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x46e62d
cmp word [edi + esi*2], 0x5c
lea ecx, [edi + esi*2]
je 0x46e653
mov ax, word [esp + 0x10]
inc ax
mov word [esp + 0x10], ax
cmp ax, 0x5a
jbe 0x46e5f0
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 sub.VCRUNTIME140.dll_memmove
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 0x471030
Capabilities:
Delete file
Move file

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x230
push esi
mov esi, ecx
test eax, eax
je 0x471100
cmp word [eax], 0
je 0x471100
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 0x471070
sub ecx, edx
sar ecx, 1
je 0x471090
cmp word [esp + ecx*2 + 0x26], 0x5c
jne 0x471090
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 0x471097
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.00447710
pop esi
add esp, 0x230
ret 4
mov eax, dword [0x4e30f4]
test byte [eax + 0x100], 1
jne 0x47112e
mov ecx, dword [0x4e59cc]
push 1
push 0
push 0xffffffffffffffff
push 0x4d00fc
call fcn.004a0a20
pop esi
add esp, 0x230
ret 4
push 0x4b9c40
push 0
push 0x4d00fc
call fcn.00447670
pop esi
add esp, 0x230
ret 4