joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45f3e0
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 [0x4fd218]
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.0041f4d0
mov bl, al
add esp, 0xc
test bl, bl
jne 0x45f47e
push 0
lea edx, [esp + 0x10]
mov ecx, esi
call fcn.0047b470
add esp, 4
test eax, eax
jne 0x45f444
push 1
push eax
push 0xffffffffffffffff
push 0x4cfc40
mov ecx, edi
call fcn.004b5b70
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.0047b6d0
add esp, 8
lea eax, [esp + 0x10]
mov ecx, edi
push eax
call fcn.004b5400
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 0x45f490
xor eax, eax
jmp 0x45f49c
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 0x45f4ba
xor eax, eax
mov edx, 2
cmp ecx, 0x54
cmovne edx, eax
jmp 0x45f4bf
mov edx, 1
mov cl, bl
call fcn.0047b630
push 1
test al, al
mov edx, 0x4ee9d4
push 0
mov ecx, 0x4ee9d0
cmove ecx, edx
push 0xffffffffffffffff
push ecx
mov ecx, edi
call fcn.004b5b70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x45f4f0
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 [0x4fd218]
push 0
call fcn.004b5b70
mov eax, dword [ebp + 8]
test eax, eax
je 0x45f5e8
cmp word [eax], 0
je 0x45f5e8
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 0x45f550
sub ecx, edx
sar ecx, 1
cmp word [esp + ecx*2 + 0x1e], 0x5c
je 0x45f579
lea eax, [ecx + 1]
cmp eax, 0x104
jae 0x45f5e8
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 0x45f5e8
cmp byte [ebp + 0xc], 0
je 0x45f5a7
mov edi, dword [esp + 8]
mov esi, dword [esp + 0xc]
jmp 0x45f5af
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov ecx, dword [0x4fb9cc]
push 1
push 0
push 0xffffffffffffffff
push 0x4cfd08
call fcn.004b5b70
mov ecx, dword [0x4fd218]
shrd edi, esi, 0x14
push 0x18
shr esi, 0x14
push esi
push edi
call fcn.00401490
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x4f90f4]
test byte [eax + 0x100], 1
jne 0x45f614
mov ecx, dword [0x4fb9cc]
push 1
push 0
push 0xffffffffffffffff
push 0x4e613c
call fcn.004b5b70
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
push 0x4cfc40
push 0
push 0x4e613c
mov ecx, esi
call fcn.0044e3e0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x461420
Capabilities:
Set current directory

Disassembly:
sub esp, 0x10
push esi
mov esi, ecx
movzx eax, word [esi]
test ax, ax
je 0x461454
cmp word [esi + 2], 0x3a
jne 0x461454
cmp word [esi + 4], 0
jne 0x461454
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 0x4614ac
cmp byte [0x4fe670], al
je 0x4614d2
mov eax, dword [0x4f90f4]
test byte [eax + 0x100], 1
jne 0x461490
mov ecx, dword [0x4fb9cc]
push 1
push 0
push 0xffffffffffffffff
push 0x4e613c
call fcn.004b5b70
pop esi
add esp, 0x10
ret
mov ecx, dword [0x4fe1c4]
push 0x4cfc40
push 0
push 0x4e613c
call fcn.0044e3e0
pop esi
add esp, 0x10
ret
cmp byte [0x4fe670], 0
je 0x4614d2
mov ecx, esi
call fcn.004614e0
mov ecx, dword [0x4fb9cc]
push 1
push 0
push 0xffffffffffffffff
push 0x4cfd08
call fcn.004b5b70
pop esi
add esp, 0x10
ret

Function at 0x4614e0
Capabilities:
Get common file path

Disassembly:
mov eax, 0x10000
call fcn.004cdac0
push esi
lea eax, [esp + 4]
mov esi, ecx
push eax
push 0x8000
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x461519
push ecx
lea esi, [esp + 8]
mov ecx, 0x4fab4c
push esi
call fcn.0047bf30
pop esi
add esp, 0x10000
ret
test esi, esi
je 0x461529
push ecx
push esi
mov ecx, 0x4fab4c
call fcn.0047bf30
pop esi
add esp, 0x10000
ret

Function at 0x461540
Capabilities:
Get common file path

Disassembly:
mov eax, 0x10000
call fcn.004cdac0
lea eax, [esp]
push eax
push 0x8000
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x461571
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 0x461e60
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, ecx
push edi
mov edi, edx
test ebx, ebx
je 0x461f36
cmp word [ebx], 0
je 0x461f36
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x461ea9
push 0xb7
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 4]
shr eax, 4
and al, 1
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x5c
push ebx
call dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
mov esi, eax
add esp, 8
mov dword [ebp - 4], esi
cmp esi, ebx
jbe 0x461f1e
cmp word [esi - 2], 0x3a
je 0x461f1e
test edi, edi
je 0x461ee1
xor eax, eax
mov edx, ebx
mov ecx, ebx
mov word [esi], ax
call fcn.00461e60
mov ecx, 0x5c
mov word [esi], cx
jmp 0x461f13
mov edi, esi
sub edi, ebx
sar edi, 1
lea eax, [edi*2 + 2]
call fcn.004cdaf0
mov esi, esp
push edi
push ebx
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
add esp, 0xc
xor eax, eax
mov edx, esi
mov word [esi + edi*2], ax
mov ecx, esi
call fcn.00461e60
mov esi, dword [ebp - 4]
cmp word [esi + 2], 0
je 0x461f40
test al, al
je 0x461f40
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
lea esp, [ebp - 0x10]
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 - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4631d0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, dword [esp + 0x18]
mov dword [esp + 0xc], ecx
push edi
test esi, esi
je 0x46321f
push 0
push 1
mov ecx, esi
call fcn.004016b0
cmp byte [esi + 0x17], 0
mov ebx, eax
jne 0x4631fa
mov edi, dword [esi + 0xc]
jmp 0x4631fc
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x463216
test byte [edi + 0x15], 8
je 0x46320f
mov ecx, edi
call fcn.00401510
add edi, 0xc
mov edi, dword [edi]
jmp 0x463255
mov edi, 0x4ffaf8
mov edi, dword [edi]
jmp 0x463255
lea eax, [esp + 0xc]
xor ecx, ecx
push eax
lea edx, [esp + 0x20]
call fcn.004b55a0
add esp, 4
test eax, eax
jne 0x46324d
mov eax, dword [0x4f90f4]
pop edi
pop esi
pop ebx
mov dword [eax + 0x30], 0
xor eax, eax
add esp, 8
ret 8
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0xc]
push ebp
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4632ba
xor ecx, ecx
mov dword [esp + 0x20], ecx
test ebx, ebx
je 0x463293
push ecx
lea eax, [esp + 0x24]
push eax
push edi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x20]
xor eax, eax
cmp ecx, edi
sete al
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4f90f4]
push ebp
mov dword [ecx + 0x30], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x20]
jmp 0x4632cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4f90f4]
xor edi, edi
mov dword [ecx + 0x30], eax
pop ebp
test esi, esi
jne 0x4632da
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
test edi, edi
je 0x4632fd
mov ecx, dword [0x4fb9cc]
push 1
push 0
push 0xffffffffffffffff
push 0x4cfd08
call fcn.004b5b70
pop edi
pop esi
pop ebx
add esp, 8
ret 8
mov eax, dword [0x4f90f4]
test byte [eax + 0x100], 1
jne 0x46332a
mov ecx, dword [0x4fb9cc]
push 1
push 0
push 0xffffffffffffffff
push 0x4e613c
call fcn.004b5b70
pop edi
pop esi
pop ebx
add esp, 8
ret 8
mov ecx, dword [esp + 0x10]
push 0x4cfc40
push 0
push 0x4e613c
call fcn.0044e3e0
pop edi
pop esi
pop ebx
add esp, 8
ret 8
Function at 0x463360
Capabilities:
Delete file

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push edi
movzx eax, word [ebx]
mov ebp, ecx
mov edi, ebx
test ax, ax
je 0x463436
test ebx, ebx
je 0x4633b5
mov esi, eax
nop
mov ecx, 0x4eef80
mov edx, 0x3f
nop word [eax + eax]
cmp si, dx
je 0x463436
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x463390
movzx eax, word [edi + 2]
add edi, 2
mov esi, eax
test ax, ax
jne 0x463380
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4f90f4]
mov dword [ecx + 0x30], eax
test esi, esi
je 0x4633f6
mov ecx, dword [0x4fb9cc]
push 1
push 0
push 0xffffffffffffffff
push 0x4cfd08
call fcn.004b5b70
pop edi
pop esi
pop ebp
pop ebx
ret 4
test byte [ecx + 0x100], 1
jne 0x46341c
mov ecx, dword [0x4fb9cc]
push 1
push 0
push 0xffffffffffffffff
push 0x4e613c
call fcn.004b5b70
pop edi
pop esi
pop ebp
pop ebx
ret 4
push 0x4cfc40
push 0
push 0x4e613c
mov ecx, ebp
call fcn.0044e3e0
pop edi
pop esi
pop ebp
pop ebx
ret 4
push 0
push 0x463350
push 0
push 1
push ebx
mov ecx, ebp
call fcn.004639c0
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x4636b0
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 [0x4fd218]
push 0
call fcn.004b5b70
mov eax, dword [esp + 0x108]
test eax, eax
je 0x463794
cmp word [eax], 0
je 0x463794
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x46374a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4f90f4]
test byte [ecx + 0x100], 1
mov dword [ecx + 0x30], eax
jne 0x46372c
mov ecx, dword [0x4fb9cc]
push 1
push 0
push edi
push 0x4e613c
call fcn.004b5b70
pop edi
pop esi
add esp, 0x100
ret 4
push 0x4cfc40
push 0
push 0x4e613c
mov ecx, esi
call fcn.0044e3e0
pop edi
pop esi
add esp, 0x100
ret 4
mov eax, dword [0x4f90f4]
mov ecx, dword [0x4fb9cc]
push 1
push 0
push 0xffffffffffffffff
push 0x4cfd08
mov dword [eax + 0x30], 0
call fcn.004b5b70
mov edx, edi
lea ecx, [esp + 8]
call fcn.004b25e0
mov ecx, dword [0x4fd218]
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.004b5b70
pop edi
pop esi
add esp, 0x100
ret 4
mov eax, dword [0x4f90f4]
test byte [eax + 0x100], 1
mov dword [eax + 0x30], 0x57
jne 0x4637c9
mov ecx, dword [0x4fb9cc]
push 1
push 0
push 0xffffffffffffffff
push 0x4e613c
call fcn.004b5b70
pop esi
add esp, 0x100
ret 4
push 0x4cfc40
push 0
push 0x4e613c
mov ecx, esi
call fcn.0044e3e0
pop esi
add esp, 0x100
ret 4

Function at 0x4637f0
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 0x4638fa
mov ecx, eax
nop word [eax + eax]
movzx esi, cx
test esi, 0xffffff80
je 0x463842
xor eax, eax
movzx ecx, cx
jmp 0x463859
push 2
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
movzx ecx, word [edi]
add esp, 8
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0xc], ecx
mov ecx, esi
and ecx, 0xffffffdf
test eax, eax
cmove ecx, esi
add ecx, 0xffffffd5
cmp ecx, 0x33
ja case.0x463876.44
movzx eax, byte [ecx + 0x463944]
jmp dword [eax*4 + 0x463920]
mov eax, dword [esp + 0xc]
movzx eax, ax
mov dword [esp + 0x10], eax
jmp case.0x463876.44
mov ecx, 1
jmp 0x4638b9
mov ecx, 0x20
jmp 0x4638b9
mov ecx, 4
jmp 0x4638b9
mov ecx, 2
jmp 0x4638b9
mov ecx, 0x80
jmp 0x4638b9
mov ecx, 0x1000
jmp 0x4638b9
mov ecx, 0x100
mov eax, dword [esp + 0x10]
sub eax, 0x2b
je 0x4638d8
sub eax, 2
je 0x4638d0
sub eax, 0x31
jne case.0x463876.44
xor edx, ecx
jmp 0x4638e4
not ecx
and ebx, ecx
and edx, ecx
jmp 0x4638e0
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 0x463830
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push 0x463980
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004639c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x464210
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 [0x4fd218]
push 0xffffffffffffffff
push 0
mov dword [esp + 0x2c], esi
call fcn.004b5b70
mov edi, dword [ebp + 8]
test edi, edi
je 0x464373
cmp word [edi], 0
je 0x464373
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 0x464291
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
je 0x46428d
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
jmp 0x4642d6
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x4642bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4f90f4]
test byte [ecx + 0x100], 1
mov dword [ecx + 0x30], eax
jmp 0x464386
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [esp + 0x3c]
xor esi, esi
or esi, dword [esp + 0x40]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edx
mov eax, dword [ebp + 0xc]
movzx edi, word [eax]
test edi, 0xffffff80
je 0x4642e8
xor eax, eax
jmp 0x4642fc
push 2
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
mov edx, dword [esp + 0x1c]
add esp, 8
mov esi, dword [esp + 0x10]
mov ecx, edi
and ecx, 0xffffffdf
test eax, eax
cmove ecx, edi
sub ecx, 0x4b
je 0x464318
sub ecx, 2
jne 0x46432e
push ecx
push 0x100000
jmp 0x46431f
push 0
push 0x400
push edx
push esi
call fcn.004cd9d0
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
mov eax, dword [0x4f90f4]
mov ecx, dword [0x4fb9cc]
push 1
push 0
push 0xffffffffffffffff
push 0x4cfd08
mov dword [eax + 0x30], 0
call fcn.004b5b70
mov ecx, dword [0x4fd218]
push 0x18
push dword [esp + 0x18]
push dword [esp + 0x18]
call fcn.00401490
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x4f90f4]
test byte [eax + 0x100], 1
mov dword [eax + 0x30], 0x57
jne 0x4643a7
mov ecx, dword [0x4fb9cc]
push 1
push 0
push 0xffffffffffffffff
push 0x4e613c
call fcn.004b5b70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x4cfc40
push 0
push 0x4e613c
mov ecx, esi
call fcn.0044e3e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4643d0
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
mov bl, cl
mov ebp, edx
mov byte [esp + 0x13], bl
xor edx, edx
mov ecx, edi
call fcn.00414b50
mov esi, eax
test esi, esi
je 0x46441e
lea eax, [esi - 1]
cmp eax, 6
ja case.0x4643fc.5
jmp dword [eax*4 + 0x4645a0]
mov edx, esi
mov dword [ebp], 7
mov cl, bl
call fcn.0041e320
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
push str.AlwaysOn
push edi
call esi
add esp, 8
test eax, eax
jne 0x464438
lea esi, [eax + 3]
jmp case.0x4643fc.3
push str.AlwaysOff
push edi
call esi
add esp, 8
test eax, eax
jne case.0x4643fc.7
mov esi, 4
mov al, byte [esp + 0x13]
xor ebx, ebx
cmp esi, 3
movzx edi, al
push edi
setne bl
inc ebx
mov dword [ebp], ebx
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
call ebp
xor eax, 0xffffffff
and eax, 1
inc eax
cmp eax, ebx
je 0x464548
push edi
call ebp
bt ax, 0xf
mov bl, byte [esp + 0x13]
jae 0x4644a3
push 0xffc3d44d
push 0
push 0
push 0
mov dl, bl
mov ecx, 1
call fcn.0041c240
add esp, 0x10
push 0xffc3d44d
push 0
push 0
push 0
mov dl, bl
mov ecx, 2
call fcn.0041c240
add esp, 0x10
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4fd2ec]
sete bh
jne 0x4644f8
mov edx, 1
mov dword [0x4f90ec], 0
or ecx, 0xffffffff
call fcn.004018f0
mov dword [0x4f90ec], 1
cmp bl, 0x14
jne 0x464548
cmp esi, 3
je 0x464548
push edi
call ebp
test al, 1
je 0x464548
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
mov ecx, 2
call fcn.0041c240
add esp, 0x10
test bh, bh
je 0x464548
mov edx, 1
mov dword [0x4f90ec], 0
or ecx, 0xffffffff
call fcn.004018f0
mov dword [0x4f90ec], 1
mov cl, byte [0x4fc4f6]
or cl, 1
cmp dword [0x4fba08], 0
mov byte [0x4fc4f6], cl
jne case.0x4643fc.5
movzx eax, byte [0x4fc4f7]
movzx edx, word [0x4fc55c]
push eax
movzx eax, cl
mov ecx, dword [0x4fc54c]
push eax
call fcn.00413470
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov dword [ebp], 7
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x466270
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
push ebx
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
push esi
mov esi, dword [esp + 0x21c]
push edi
movzx edi, word [esi + 4]
test edi, 0xffffff80
je 0x466296
xor eax, eax
jmp 0x46629e
push 2
push edi
call ebx
add esp, 8
mov ecx, edi
and ecx, 0xffffffdf
test eax, eax
cmove ecx, edi
add ecx, 0xffffffbf
cmp ecx, 0x12
ja case.0x4662bb.66
movzx eax, byte [ecx + 0x466414]
jmp dword [eax*4 + 0x466400]
movzx eax, word [esi + 0x12]
mov edi, eax
test eax, 0xffffff80
je 0x4662d3
xor eax, eax
jmp 0x4662db
push 2
push eax
call ebx
add esp, 8
mov ecx, edi
and ecx, 0xffdf
test eax, eax
movzx edx, cx
mov ecx, edi
cmove edx, ecx
cmp dx, 0x53
jne 0x46630a
cmp word [esi + 0x14], 0
mov eax, 2
mov ecx, 0x17
cmovne eax, ecx
jmp 0x466399
mov eax, 0x26
jmp 0x466399
cmp word [esi + 0x12], 0
mov eax, 0x1a
mov ecx, 0x23
cmovne eax, ecx
jmp 0x466399
cmp word [esi + 0x12], 0
mov eax, 0x10
mov ecx, 0x19
cmovne eax, ecx
jmp 0x466399
movzx eax, word [esi + 0xe]
mov edi, eax
test eax, 0xffffff80
je 0x46634d
xor eax, eax
jmp 0x466355
push 2
push eax
call ebx
add esp, 8
mov ecx, edi
and ecx, 0xffdf
test eax, eax
movzx edx, cx
mov ecx, edi
cmove edx, ecx
cmp dx, 0x4d
jne 0x466381
cmp word [esi + 0x16], 0
mov eax, 0xb
mov ecx, 0x16
cmovne eax, ecx
jmp 0x466399
cmp word [esi + 0x12], 0
mov eax, 7
mov ecx, 0x18
cmovne eax, ecx
jmp 0x466399
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
pop edi
pop esi
pop ebx
test eax, eax
je 0x4663b9
xor eax, eax
mov word [esp + 4], ax
mov edx, dword [esp + 0x210]
test edx, edx
je 0x4663e0
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 0x4663d0
lea eax, [esp + 4]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4663e7
sub eax, edx
sar eax, 1
add esp, 0x20c
ret

Function at 0x466430
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 0x466452
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 0x466460
sub edx, ecx
sar edx, 1
jne 0x466475
xor edx, edx
jmp 0x466485
cmp word [esp + edx*2 - 2], 0x5c
jne 0x466485
xor eax, eax
mov word [esp + edx*2 - 2], ax
dec edx
push esi
mov esi, dword [esp + 0x210]
test esi, esi
je 0x4664b0
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 0x4664a0
mov eax, edx
pop esi
add esp, 0x208
ret
Function at 0x47b630
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov bl, cl
test bl, bl
jne 0x47b63b
xor al, al
pop ebx
ret
sub edx, 1
je 0x47b660
movzx eax, bl
push eax
sub edx, 1
je 0x47b656
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 0x47b66d
cmp bl, 3
jne 0x47b675
mov al, bl
add al, 0x66
cmp al, 5
ja 0x47b68c
cmp dword [0x4fba04], 0
movzx eax, bl
je 0x47b6bd
mov al, byte [eax + 0x4fc3e0]
shr al, 7
pop ebx
ret
cmp dword [0x4fba08], 0
je 0x47b6ba
push 0
xor edx, edx
call fcn.0041ed80
add esp, 4
test al, al
je 0x47b6ac
mov cl, 1
call fcn.0041eb60
movzx eax, bl
pop ebx
mov al, byte [eax + 0x4fc3e0]
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 0x47bd80
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 0x47bdc2
push esi
push eax
push 0x1000
call ebx
mov ebp, eax
test ebp, ebp
jne 0x47bdc2
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 0x47bddd
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameW]
jmp 0x47bde3
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
mov ebx, eax
test ebx, ebx
jne 0x47bf0e
mov eax, dword [0x4ef7f8]
test eax, eax
je 0x47bf0e
push 0x104
push edi
push ebp
call eax
mov ebx, eax
test ebx, ebx
je 0x47bf0e
cmp byte [esp + 0x228], 0
je 0x47be66
push 0x5c
push edi
call dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
mov edx, eax
add esp, 8
test edx, edx
je 0x47bf0e
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47be32
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 0x47bebd
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 0x47bebd
cmp word [edi + esi*2], 0x5c
lea ecx, [edi + esi*2]
je 0x47bee3
mov ax, word [esp + 0x10]
inc ax
mov word [esp + 0x10], ax
cmp ax, 0x5a
jbe 0x47be80
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