joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2001591c
Capabilities:
Get disk information
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x4c4
push ebx
push esi
mov esi, dword [ebp + 0x74]
push edi
push esi
call fcn.20004e0e
cmp eax, 3
pop ecx
je 0x20015950
cmp eax, 0x10002
je 0x20015950
cmp eax, 0x10001
je 0x20015950
cmp eax, 6
jne 0x20015a75
mov edi, 0x206
xor ebx, ebx
push edi
lea eax, [ebp - 0x456]
push ebx
push eax
mov word [ebp - 0x458], bx
call sub.MSVCRT.dll_memset
mov eax, dword [0x2000362c]
mov dword [ebp - 0x48], eax
mov eax, dword [0x20003630]
push 0x98
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x40]
push ebx
push eax
call sub.MSVCRT.dll_memset
mov ax, word [esi]
add esp, 0x18
mov word [ebp - 0x48], ax
push 0x104
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x48]
push eax
mov word [ebp - 0x42], bx
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
je 0x20015a75
mov esi, 0x2000361c
push esi
lea eax, [ebp - 0x458]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrW]
cmp eax, ebx
mov dword [ebp + 0x68], eax
je 0x20015a75
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp + 0x68]
lea eax, [ecx + eax*2]
push eax
mov dword [ebp + 0x68], eax
call fcn.2000c460
pop ecx
lea eax, [ebp + 0x58]
push eax
push dword [ebp + 0x68]
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
jl 0x20015a75
push edi
lea eax, [ebp - 0x24e]
push ebx
push eax
mov word [ebp - 0x250], bx
call sub.MSVCRT.dll_memset
push dword [ebp + 0x68]
lea eax, [ebp - 0x250]
push esi
push dword [ebp + 0x7c]
push 0x2000360c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x20
mov esi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
xor eax, eax
cmp dword [ebp + 0x78], ebx
push 4
sete al
pop ebx
push ebx
mov edi, SysReAllocString
mov dword [ebp + 0x68], eax
lea eax, [ebp + 0x78]
push eax
push ebx
push 0x200035f4
lea eax, [ebp - 0x250]
push eax
push edi
call esi
push ebx
lea eax, [ebp + 0x68]
push eax
push ebx
push 0x200035d8
lea eax, [ebp - 0x250]
push eax
push edi
call esi
xor eax, eax
jmp 0x20015a78
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
add ebp, 0x6c
leave
ret
Function at 0x20015b8f
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3b8
push ebx
push esi
push edi
xor ebx, ebx
push 0x206
lea eax, [ebp - 0x3b6]
push ebx
push eax
mov word [ebp - 0x3b8], bx
call sub.MSVCRT.dll_memset
push 0x2c
push 4
push dword [ebp + 8]
lea eax, [ebp - 0x1b0]
push eax
call fcn.2000c4a6
add esp, 0x1c
push 0x10
mov esi, eax
pop ecx
lea edi, [ebp - 0x50]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x48]
cmp eax, ebx
je 0x20015d42
cmp word [eax], bx
je 0x20015d42
mov esi, dword [ebp - 0x50]
cmp esi, ebx
je 0x20015d14
cmp word [esi], bx
je 0x20015d14
push esi
call fcn.20004465
test eax, eax
pop ecx
je 0x20015d14
lea eax, [ebp - 4]
push eax
push esi
call fcn.20012f7a
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x20015d2b
push 0x23
push 2
push dword [ebp - 0x4c]
lea eax, [ebp - 0x170]
push eax
mov dword [ebp - 8], 1
call fcn.2000c4a6
add esp, 0x10
push 0x10
mov esi, eax
pop ecx
lea edi, [ebp - 0x90]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x90]
cmp eax, ebx
je 0x20015c68
cmp word [eax], bx
je 0x20015c68
push eax
call fcn.200042be
pop ecx
mov esi, eax
jmp 0x20015c6a
mov esi, ebx
mov eax, dword [ebp - 0x8c]
cmp eax, ebx
je 0x20015c8e
cmp word [eax], bx
je 0x20015c8e
push eax
call fcn.200042be
pop ecx
mov dword [ebp - 8], eax
push 0x28
pop eax
cmp dword [ebp - 8], eax
jbe 0x20015c8e
mov dword [ebp - 8], eax
cmp esi, ebx
jl 0x20015cf1
cmp esi, dword [ebp - 4]
jae 0x20015cf1
mov edi, dword [ebp - 8]
cmp edi, ebx
jle 0x20015d09
push 0x9e
lea eax, [ebp - 0x12e]
push ebx
push eax
mov word [ebp - 0x130], bx
call sub.MSVCRT.dll_memset
mov eax, dword [ebp - 0xc]
movzx eax, byte [esi + eax]
push eax
lea eax, [ebp - 0x130]
push 0x200029ec
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x3b8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
inc esi
dec edi
cmp esi, dword [ebp - 4]
jb 0x20015c9a
jmp 0x20015d09
push dword [ebp - 4]
lea eax, [ebp - 0x3b8]
push 0x20002b9c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push dword [ebp - 0xc]
call sub.MSVCRT.dll_free
pop ecx
jmp 0x20015d2b
push 0xffffffffffffffff
lea eax, [ebp - 0x3b8]
push 0x20002960
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x3b8]
push eax
call fcn.2000c372
pop ecx
push eax
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret
Function at 0x20015d4a
Capabilities:
Get disk information
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x540
push ebx
push esi
push edi
push 0x2c
push 2
push dword [ebp + 0x7c]
lea eax, [ebp - 0x2c4]
push eax
call fcn.2000c4a6
push 0x10
pop ecx
mov esi, eax
lea edi, [ebp - 0x7c]
rep movsd dword es:[edi], dword [esi]
push dword [ebp - 0x7c]
call fcn.2000c372
xor ebx, ebx
add esp, 0x14
cmp eax, ebx
mov dword [ebp + 0x68], eax
je 0x20015f6e
movzx esi, word [eax]
cmp si, bx
je 0x20015f6e
xor eax, eax
cmp si, 0x2a
sete al
mov edi, 0x206
push edi
push ebx
mov word [ebp - 0x284], bx
mov dword [ebp + 0x6c], eax
lea eax, [ebp - 0x282]
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [0x2000362c]
mov dword [ebp - 0x3c], eax
mov eax, dword [0x20003630]
push 0x98
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x34]
push ebx
push eax
call sub.MSVCRT.dll_memset
push dword [ebp - 0x78]
mov word [ebp - 0x3c], si
mov word [ebp - 0x36], bx
call fcn.2000c372
push eax
call fcn.200042be
push 0x20003520
push 0x200034c8
mov dword [ebp + 0x70], eax
lea eax, [ebp - 0x284]
push 0x20003668
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x30
call fcn.2000cb44
test eax, eax
je 0x20015ef2
cmp dword [ebp + 0x70], 0x1e
jbe 0x20015e30
mov dword [ebp + 0x70], 0xa
xor eax, eax
cmp dword [ebp + 0x70], ebx
sete al
mov dword [ebp + 0x64], eax
xor eax, eax
cmp dword [ebp + 0x6c], 1
sete al
cmp eax, ebx
jne 0x20015e6e
lea eax, [ebp - 0x3c]
push eax
call fcn.20004e0e
cmp eax, 3
pop ecx
je 0x20015e6e
cmp eax, 6
je 0x20015e6e
cmp eax, 0x10002
je 0x20015e6e
cmp eax, 0x10001
jne 0x20015f6e
mov esi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push 4
pop ebx
push ebx
lea eax, [ebp + 0x6c]
push eax
push ebx
push 0x20003644
lea eax, [ebp - 0x284]
push eax
mov edi, reloc.OLEAUT32.dll_SysReAllocString
push edi
call esi
cmp dword [ebp + 0x6c], 1
je 0x20015ec4
mov eax, dword [ebp + 0x68]
movzx eax, word [eax]
push eax
mov word [ebp - 0x3c], 0x5c
call fcn.2000426e
and word [ebp - 0x38], 0
mov word [ebp - 0x3a], ax
pop ecx
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x284]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push ebx
lea eax, [ebp + 0x70]
push eax
push ebx
push 0x20003634
lea eax, [ebp - 0x284]
push eax
push edi
call esi
push ebx
lea eax, [ebp + 0x64]
push eax
push ebx
push 0x200035d8
lea eax, [ebp - 0x284]
push eax
push edi
call esi
xor eax, eax
jmp 0x20015f71
cmp dword [ebp + 0x6c], 1
jne 0x20015f56
push edi
lea eax, [ebp - 0x4ca]
push ebx
push eax
mov word [ebp - 0x4cc], bx
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x4cc]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp word [ebp - 0x4cc], bx
lea esi, [ebp - 0x4cc]
je 0x20015eee
lea eax, [ebp - 0x284]
push eax
push dword [ebp + 0x70]
push esi
call fcn.2001591c
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
cmp word [esi], bx
jne 0x20015f31
jmp 0x20015eee
lea eax, [ebp - 0x284]
push eax
push dword [ebp + 0x70]
lea eax, [ebp - 0x3c]
push eax
call fcn.2001591c
add esp, 0xc
jmp 0x20015f71
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
add ebp, 0x74
leave
ret
Function at 0x200160a8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x2003f044]
movzx eax, word [eax]
sub esp, 0x208
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x2001615e
shr eax, 2
push eax
call fcn.2000ed52
mov dword [esp], 0x206
lea eax, [ebp - 0x206]
push edi
push eax
mov word [ebp - 0x208], di
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp word [ebp - 0x208], di
lea esi, [ebp - 0x208]
je 0x20016172
push esi
call fcn.20004b7b
cmp eax, 3
pop ecx
jne 0x2001614c
movzx eax, word [esi]
push eax
call fcn.20004614
cmp eax, 0xffffffff
pop ecx
je 0x20016137
movzx eax, word [esi]
push eax
call fcn.20004622
test eax, eax
pop ecx
jne 0x2001614c
push esi
call fcn.2000448d
test eax, eax
pop ecx
jne 0x2001614c
movzx eax, word [esi]
push eax
call fcn.200053af
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
cmp word [esi], di
jne 0x2001610e
jmp 0x20016172
push eax
call fcn.2000ed52
push edi
push 0xa
push edi
push 0xffffffffffffffff
call fcn.20005606
add esp, 0x14
push edi
push edi
push 0x1005
push 0x1000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
pop edi
pop esi
leave
ret
Function at 0x20016460
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x49c
push ebx
push esi
push edi
push 0x2c
push 3
push dword [ebp + 8]
lea eax, [ebp - 0x8c]
push eax
call fcn.2000c4a6
add esp, 0x10
push 0x10
mov esi, eax
pop ecx
lea edi, [ebp - 0x4c]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x48]
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
je 0x200164b0
cmp word [eax], bx
je 0x200164b0
push eax
call fcn.200042be
neg eax
sbb eax, eax
neg eax
pop ecx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x44]
cmp eax, ebx
je 0x200164cc
cmp word [eax], bx
je 0x200164cc
push eax
call fcn.200042be
neg eax
sbb eax, eax
neg eax
pop ecx
mov dword [ebp - 0xc], eax
mov esi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0x200037e8
push 0x20003770
mov edi, SysReAllocString
push edi
call esi
mov word [ebp - 0x49c], bx
mov ebx, 0x206
push ebx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x49a]
push 0
push eax
call sub.MSVCRT.dll_memset
push 0x2000374c
push 0x200034c8
lea eax, [ebp - 0x49c]
push 0x20002b80
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
push 4
lea eax, [ebp - 0xc]
push eax
push 4
push 0x20003720
lea eax, [ebp - 0x49c]
push eax
push edi
call esi
or dword [ebp - 4], eax
and word [ebp - 0x294], 0
push ebx
lea eax, [ebp - 0x292]
push 0
push eax
call sub.MSVCRT.dll_memset
mov ebx, dword [ebp - 0x4c]
add esp, 0xc
test ebx, ebx
je 0x2001658d
cmp word [ebx], 0
je 0x2001658d
push ebx
call fcn.20004465
pop ecx
test eax, eax
push ebx
lea eax, [ebp - 0x294]
je 0x20016598
push 0x2000370c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
jmp 0x2001659f
push 0x200036f4
lea eax, [ebp - 0x294]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x294]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
lea eax, [ebp - 0x294]
push eax
push 1
push 0x200036dc
push 0x20003688
push edi
call esi
or dword [ebp - 4], eax
call fcn.2000d573
xor eax, eax
cmp dword [ebp - 4], eax
pop edi
pop esi
setne al
pop ebx
leave
ret

Function at 0x2001679a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push esi
push edi
call fcn.2000c61d
push 0x3ff
lea eax, [ebp - 0x3ff]
push 0
push eax
mov byte [ebp - 0x400], 0
call sub.MSVCRT.dll_memset
add esp, 0xc
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x400]
push eax
call fcn.2000429f
add esp, 0xc
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [0x2003f930]
mov edi, eax
xor edx, edx
test edi, edi
mov esi, ecx
jbe 0x20016820
movzx eax, byte [ebp + edx - 0x400]
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [eax*4 + 0x2003f530]
inc edx
cmp edx, edi
jb 0x20016802
xor esi, ecx
push esi
call fcn.2000c657
pop ecx
pop edi
pop esi
leave
ret
Function at 0x2001682d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x40000
call fcn.200256d0
push ebx
push edi
call fcn.2000c61d
mov edi, dword [0x2003f930]
push SysReAllocString
push dword [ebp + 8]
call fcn.200042da
mov ebx, eax
xor eax, eax
cmp ebx, eax
pop ecx
pop ecx
je 0x200168b2
push esi
push eax
push eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, 0x40000
jmp 0x20016895
xor ecx, ecx
test eax, eax
jbe 0x20016895
movzx edx, byte [ebp + ecx - 0x40000]
xor edx, edi
and edx, 0xff
shr edi, 8
xor edi, dword [edx*4 + 0x2003f530]
inc ecx
cmp ecx, eax
jb 0x20016876
push esi
lea eax, [ebp - 0x40000]
push eax
push ebx
call fcn.20004319
add esp, 0xc
test eax, eax
jne 0x20016870
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor edi, dword [0x2003f930]
push edi
call fcn.2000c657
pop ecx
pop edi
pop ebx
leave
ret

Function at 0x20016d48
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b4
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x20016db1
cmp word [esi], 0
je 0x20016db1
push dword [ebp + 0x10]
push esi
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_ExtractIconW]
test eax, eax
jne 0x20016db3
and dword [ebp - 0x2b4], eax
push 0x2b0
push eax
lea eax, [ebp - 0x2b0]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x100
push 0x2b4
lea eax, [ebp - 0x2b4]
push eax
push 0
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x20016db1
mov eax, dword [ebp - 0x2b4]
jmp 0x20016db3
xor eax, eax
pop esi
leave
ret
Function at 0x20016de9
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
cmp dword [ebp + 0xc], 0x111
mov dword [ebp - 0xc], esi
jne 0x20016e31
mov eax, dword [ebp + 0x10]
mov ecx, dword [0x2002dce4]
imul eax, eax, 0x368
lea eax, [eax + ecx + 0x150]
cmp eax, esi
je 0x20016f36
cmp word [eax], si
je 0x20016f36
push eax
call fcn.20024e01
pop ecx
jmp 0x20016f36
cmp dword [0x2002db04], esi
mov dword [ebp - 8], esi
jl 0x20016f36
push ebx
push edi
xor edi, edi
mov eax, dword [0x2002dce4]
mov ebx, dword [ebp + 8]
add eax, edi
cmp dword [eax + 0x360], ebx
jne 0x20016f1c
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
push dword [eax + 0x364]
call dword [sym.imp.USER32.dll_CallWindowProcW]
cmp dword [ebp + 0xc], 0xf
mov dword [ebp - 0xc], eax
jne 0x20016ef1
mov eax, dword [0x2002dce4]
add eax, edi
cmp dword [eax + 0x358], esi
je 0x20016f1c
mov esi, dword [eax + 0xc]
push ebx
sub esi, 6
call fcn.20016db6
test eax, eax
pop ecx
je 0x20016eae
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
mov byte [ebp - 1], 1
jl 0x20016eb2
mov byte [ebp - 1], 0
push ebx
call dword [sym.imp.USER32.dll_GetDC]
mov ecx, dword [0x2002dce4]
push 3
push 0
push 0
push esi
mov ebx, eax
movzx eax, byte [ebp - 1]
push esi
push dword [edi + ecx + 0x358]
lea ecx, [eax + 3]
push ecx
add eax, 6
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawIconEx]
push ebx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ReleaseDC]
xor esi, esi
jmp 0x20016f1c
cmp dword [ebp + 0xc], 0x100
jne 0x20016f1c
cmp dword [ebp + 0x10], 0xd
jne 0x20016f1c
mov eax, dword [0x2002dce4]
lea eax, [edi + eax + 0x150]
cmp eax, esi
je 0x20016f1c
cmp word [eax], si
je 0x20016f1c
push eax
call fcn.20024e01
pop ecx
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
add edi, 0x368
cmp eax, dword [0x2002db04]
jle 0x20016e44
pop edi
pop ebx
mov eax, dword [ebp - 0xc]
pop esi
leave
ret 0x10

Function at 0x20016f3e
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [0x2002dcf4]
push esi
mov esi, dword [esp + 0xc]
imul esi, esi, 0x364
push edi
push 0x50
lea eax, [esi + eax + 0xb0]
push eax
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_GetWindowTextW]
xor edi, edi
push edi
push edi
push 0xf0
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [0x2002dcf4]
push edi
push edi
push dword [esp + 0x18]
mov dword [esi + ecx + 0x35c], eax
push 4
call fcn.2000d82e
mov eax, dword [0x2002dcf4]
lea eax, [esi + eax + 0x150]
add esp, 0x10
cmp eax, edi
je 0x20016faf
cmp word [eax], di
je 0x20016faf
push eax
call fcn.20024e01
pop ecx
pop edi
xor eax, eax
pop esi
ret 8
Function at 0x20019c1d
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
push esi
mov esi, dword [sym.imp.USER32.dll_GetCursorPos]
push edi
xor eax, eax
lea edi, [ebp - 4]
stosd dword es:[edi], eax
lea eax, [ebp - 8]
push eax
call esi
lea eax, [ebp - 8]
push eax
call esi
test eax, eax
je 0x20019c7b
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_WindowFromPoint]
test eax, eax
je 0x20019c7b
mov ecx, dword [0x2002db08]
xor esi, esi
test ecx, ecx
jl 0x20019c7b
mov edx, dword [0x2002dce8]
add edx, 0x4c4
cmp eax, dword [edx]
je 0x20019c7d
inc esi
add edx, 0x4cc
cmp esi, ecx
jle 0x20019c6c
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x2001a2f7
Capabilities:
Enumerate files on windows
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1260
call fcn.200256d0
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_StrChrW]
push 0x2c
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 8], 1
mov dword [eax], ebx
call esi
cmp eax, ebx
je 0x2001a476
mov word [eax], bx
push edi
inc eax
inc eax
push 0x2c
push eax
mov dword [ebp - 0xc], eax
call esi
mov edi, eax
cmp edi, ebx
je 0x2001a475
mov word [edi], bx
inc edi
push 0x2c
inc edi
push edi
call esi
mov ebx, eax
xor esi, esi
cmp ebx, esi
je 0x2001a475
mov word [ebx], 1
inc ebx
push edi
inc ebx
call fcn.200042be
mov dword [ebp - 0x10], eax
mov dword [esp], 0xffe
lea eax, [ebp - 0x125e]
push esi
push eax
mov word [ebp - 0x1260], si
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x260]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.20004446
cmp dword [ebp - 4], esi
pop ecx
je 0x2001a475
cmp dword [ebp - 4], 0xffffffff
je 0x2001a475
xor edi, edi
mov dword [ebp - 8], esi
mov esi, dword [ebp + 0xc]
inc edi
xor eax, eax
test byte [ebp - 0x260], 0x10
je 0x2001a3e1
cmp dword [ebp + 0x14], eax
je 0x2001a3e8
lea eax, [ebp - 0x234]
push eax
call fcn.20007e6f
neg eax
sbb eax, eax
pop ecx
inc eax
jmp 0x2001a3e8
cmp dword [ebp + 0x14], 0
sete al
test eax, eax
je 0x2001a428
lea eax, [ebp - 0x234]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x1260]
push 0x200029c0
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x1260]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push ebx
call fcn.20024e01
or dword [ebp - 8], eax
inc edi
inc dword [esi]
pop ecx
mov eax, dword [ebp - 0x10]
test eax, eax
jle 0x2001a437
cmp edi, eax
jg 0x2001a463
cmp dword [esi], eax
jge 0x2001a463
cmp dword [0x2002dd44], 3
jne 0x2001a449
cmp dword [0x2002dd4c], 0
jne 0x2001a463
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x2001a3bd
jmp 0x2001a46c
mov eax, dword [ebp + 0x10]
mov dword [eax], 1
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov eax, dword [ebp - 8]
pop esi
pop ebx
leave
ret
Function at 0x2001a47d
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1424
call fcn.200256d0
push ebx
push esi
xor ebx, ebx
push edi
xor esi, esi
xor edi, edi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
inc esi
mov eax, dword [ebp + 8]
movzx eax, word [eax]
cmp ax, 0x21
jne 0x2001a4ae
mov dword [ebp - 4], esi
jmp 0x2001a4c1
cmp ax, 0x5c
jne 0x2001a4b8
mov edi, esi
jmp 0x2001a4c1
cmp ax, 0x40
jne 0x2001a4c7
mov dword [ebp - 0x10], esi
add dword [ebp + 8], 2
jmp 0x2001a49d
push 0xffe
lea eax, [ebp - 0x1422]
push ebx
push eax
mov word [ebp - 0x1424], bx
call sub.MSVCRT.dll_memset
push 3
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
mov dword [0x2002dd4c], esi
call fcn.2001a2de
add esp, 0x10
cmp edi, ebx
je 0x2001a660
mov esi, 0x206
push esi
lea eax, [ebp - 0x21a]
push ebx
push eax
mov word [ebp - 0x21c], bx
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp dword [ebp - 4], ebx
je 0x2001a607
push esi
lea eax, [ebp - 0x422]
push ebx
push eax
mov word [ebp - 0x424], bx
call sub.MSVCRT.dll_memset
add esp, 0xc
cmp word [ebp - 0x21c], bx
lea edi, [ebp - 0x424]
lea esi, [ebp - 0x21c]
je 0x2001a582
movzx eax, word [ebp - 0x21c]
mov word [edi], ax
inc edi
push esi
inc edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
movzx eax, word [esi]
cmp ax, bx
jne 0x2001a56a
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, ebx
mov dword [ebp - 4], eax
jle 0x2001a68d
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea edi, [ebp + eax*2 - 0x426]
mov ax, word [edi]
mov word [ebp - 0x1424], ax
push 0x20002604
lea eax, [ebp - 0x1424]
push eax
mov word [ebp - 0x1422], bx
call esi
push dword [ebp + 8]
lea eax, [ebp - 0x1424]
push eax
call esi
push dword [ebp - 0x10]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1424]
push eax
call fcn.2001a2f7
or dword [ebp - 8], eax
add esp, 0x10
cmp dword [ebp - 0xc], ebx
jne 0x2001a68d
dec dword [ebp - 4]
dec edi
dec edi
cmp dword [ebp - 4], ebx
jg 0x2001a5a7
jmp 0x2001a68d
cmp word [ebp - 0x21c], bx
lea esi, [ebp - 0x21c]
je 0x2001a68d
push dword [ebp + 8]
lea eax, [ebp - 0x1424]
push esi
push 0x20002b80
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
push dword [ebp - 0x10]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1424]
push eax
call fcn.2001a2f7
or dword [ebp - 8], eax
add esp, 0x20
cmp dword [ebp - 0xc], ebx
jne 0x2001a68d
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
cmp word [esi], bx
jne 0x2001a616
jmp 0x2001a68d
push dword [ebp + 8]
lea eax, [ebp - 0x1424]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [ebp - 0x10]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1424]
push eax
call fcn.2001a2f7
add esp, 0x10
mov dword [ebp - 8], eax
push 3
call fcn.2001a2de
mov eax, dword [ebp - 8]
add esp, 4
pop edi
pop esi
mov dword [0x2002dd4c], ebx
pop ebx
leave
ret