joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405aac
Capabilities:
Enumerate files on windows
Link many functions at runtime
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x660
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push edi
push 0x401c20
call esi
mov edi, eax
test edi, edi
jne 0x405b74
push 0x104
lea eax, [ebp - 0x458]
push eax
push 0x401bf4
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x458]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x405bd5
lea eax, [ebp - 0x458]
push eax
call fcn.00402570
pop ecx
cmp word [ebp - 0x224], 0x2e
je 0x405b57
test byte [ebp - 0x250], 0x10
je 0x405b57
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x660]
push 0x401bd0
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x660]
push eax
call esi
mov edi, eax
test edi, edi
jne 0x405b69
lea eax, [ebp - 0x250]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405b12
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
test edi, edi
je 0x405bd5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401bc0
push edi
call esi
push 0x401bb0
push edi
mov dword [0x4127b8], eax
call esi
push 0x401b9c
push edi
mov dword [0x4127bc], eax
call esi
push 0x401b88
push edi
mov dword [0x4127c0], eax
call esi
push 0x401b74
push edi
mov dword [0x4127c4], eax
call esi
push 0x401b5c
push edi
mov dword [0x4127c8], eax
call esi
push 0x401b44
push edi
mov dword [0x4127cc], eax
call esi
mov dword [0x4127d0], eax
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x406083
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call esi
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [0x4122e0]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetProcessWorkingSetSize]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
nop
call esi
sub eax, edi
cmp eax, dword [esp + 0xc]
jb 0x40609f
pop edi
pop esi
ret

Function at 0x406217
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
push edi
lea eax, [ebp - 0x208]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.USER32.dll_CharUpperW]
xor edi, edi
cmp word [ebp - 0x208], di
lea esi, [ebp - 0x208]
je 0x406295
push ebx
mov ebx, dword [ebp + 0xc]
add ebx, 0x10
push esi
call fcn.00402c11
cmp eax, ebx
pop ecx
jbe 0x406283
push esi
call fcn.00402de4
dec eax
dec eax
pop ecx
je 0x406280
dec eax
jne 0x406283
movzx eax, word [esi]
cmp ax, word [ebp + 8]
movzx edi, ax
jae 0x406294
jmp 0x406283
movzx edi, word [esi]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
cmp word [esi], 0
jne 0x406259
pop ebx
mov ax, di
pop edi
pop esi
leave
ret
Function at 0x40629c
Capabilities:
Get disk information
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x648
and dword [ebp - 0xc], 0
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_StrChrW]
push 0x20
push esi
call edi
mov ebx, eax
test ebx, ebx
je 0x4062fc
and word [ebx], 0
inc ebx
inc ebx
push ebx
call fcn.00402463
pop ecx
push 0x20
push ebx
mov dword [ebp - 0xc], eax
call edi
test eax, eax
je 0x4062ee
and word [eax], 0
add eax, 2
push eax
call fcn.00402463
pop ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jae 0x4062fc
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
call fcn.00403d6e
cmp eax, dword [ebp - 4]
jae 0x406491
xor eax, eax
lea edi, [ebp - 0x12]
stosd dword es:[edi], eax
stosw word es:[edi], ax
movzx eax, word [esi]
push eax
call fcn.004023ec
push dword [ebp - 4]
mov word [ebp - 0x14], ax
mov word [ebp - 0x12], 0x3a
push dword [ebp - 0x14]
call fcn.00406217
add esp, 0xc
mov word [ebp - 0x14], ax
mov word [esi], ax
push 0x104
lea eax, [ebp - 0x440]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
lea eax, [esi + 4]
push eax
lea eax, [ebp - 0x440]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x440]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
mov word [ebp - 0x1c], ax
mov eax, dword [ebp - 0x1c]
add eax, 2
mov word [ebp - 0x1a], ax
lea eax, [ebp - 0x440]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
shl eax, 0x14
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 4]
xor ebx, ebx
shl eax, 0x14
push 0x401c94
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ebx
call fcn.00405fde
push ebx
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0040377d
add esp, 0x14
cmp eax, ebx
mov dword [ebp - 0x20], eax
jne 0x40648c
push 0x206
lea eax, [ebp - 0x236]
push ebx
push eax
mov dword [ebp - 8], 0x208
mov word [ebp - 0x238], bx
call sub.MSVCRT.dll_memset
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
push 0x401c70
push 0x4019f8
lea eax, [ebp - 0x238]
push 0x401c64
push eax
call edi
add esp, 0x1c
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x648]
push eax
push ebx
push 0x401c4c
lea eax, [ebp - 0x238]
push eax
mov ebx, 0x80000002
push ebx
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x406438
xor eax, eax
jmp 0x40643e
mov eax, dword [ebp - 8]
shr eax, 1
dec eax
push dword [ebp - 4]
mov dword [ebp - 8], eax
push dword [ebp - 0xc]
lea eax, [ebp + eax*2 - 0x648]
push esi
push 0x401c38
push eax
call edi
mov ecx, dword [ebp - 8]
lea eax, [ecx + eax + 1]
add esp, 0x14
mov dword [ebp - 8], eax
add eax, eax
and word [ebp + eax - 0x648], 0
push eax
lea eax, [ebp - 0x648]
push eax
push 7
push 0x401c4c
lea eax, [ebp - 0x238]
push eax
push ebx
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov eax, dword [ebp - 0x20]
jmp 0x406493
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406498
Capabilities:
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
xor ebx, ebx
push 0xf003f
push ebx
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x406511
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp word [eax], 0x21
sete cl
cmp ecx, ebx
mov dword [ebp - 8], ecx
je 0x4064cd
inc eax
inc eax
push esi
push edi
push 0x30
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
cmp esi, ebx
je 0x40650a
cmp dword [ebp - 8], ebx
je 0x4064fb
lea eax, [ebp - 0x28]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
jmp 0x406504
push ebx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push esi
mov dword [ebp - 4], eax
call edi
push dword [ebp - 0xc]
call edi
pop edi
pop esi
xor eax, eax
cmp dword [ebp - 4], ebx
pop ebx
sete al
leave
ret

Function at 0x406595
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x660
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x660]
push 0x401d10
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x660]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
test edi, edi
je 0x406663
cmp edi, 0xffffffff
je 0x406663
push ebx
lea eax, [ebp - 0x458]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
and word [ebp - 0x208], 0
push 0x206
mov ebx, eax
lea eax, [ebp - 0x206]
push 0
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x42c]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push 0x401c64
push eax
call esi
add esp, 0x1c
test byte [ebp - 0x458], 0x10
je 0x406651
lea eax, [ebp - 0x42c]
push eax
call fcn.00406567
test eax, eax
pop ecx
jne 0x40665e
lea eax, [ebp - 0x208]
push eax
call fcn.00406595
pop ecx
jmp 0x40665e
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test ebx, ebx
jne 0x4065e2
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
neg eax
sbb eax, eax
pop edi
inc eax
pop esi
leave
ret
Function at 0x406698
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x874
and dword [ebp - 4], 0
push esi
push dword [ebp + 8]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x874]
push 0x401d10
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x464]
push eax
lea eax, [ebp - 0x874]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
test eax, eax
mov dword [ebp - 8], eax
je 0x4067c3
cmp eax, 0xffffffff
je 0x4067c3
push ebx
push edi
mov ebx, 0x206
mov edi, 0x401c64
lea eax, [ebp - 0x464]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
and word [ebp - 0x66c], 0
push ebx
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x66a]
push 0
push eax
call sub.MSVCRT.dll_memset
and word [ebp - 0x214], 0
push ebx
lea eax, [ebp - 0x212]
push 0
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x438]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x66c]
push edi
push eax
call esi
lea eax, [ebp - 0x438]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x214]
push edi
push eax
call esi
add esp, 0x38
test byte [ebp - 0x464], 0x10
je 0x4067a1
lea eax, [ebp - 0x438]
push eax
call fcn.00406567
test eax, eax
pop ecx
jne 0x4067b7
lea eax, [ebp - 0x214]
push eax
call fcn.0040667c
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x66c]
push eax
call fcn.00406698
add esp, 0xc
add dword [ebp - 4], eax
jmp 0x4067b7
push 1
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x66c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp dword [ebp - 0xc], 0
jne 0x4066f4
pop edi
pop ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 4]
pop esi
leave
ret
Function at 0x4068b5
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4a4
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x94]
push eax
call fcn.00403c42
pop ecx
pop ecx
push 0x10
mov esi, eax
pop ecx
lea edi, [ebp - 0x54]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x50]
mov eax, dword [ebp - 0x54]
xor ebx, ebx
cmp esi, ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], esi
jne 0x4068f6
push 3
pop eax
jmp 0x406a6b
cmp dword [ebp - 0x48], ebx
mov dword [ebp - 0xc], ebx
je 0x40691e
push 0x23
push ebx
push dword [ebp - 0x48]
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
cmp eax, ebx
je 0x40691e
mov word [eax], bx
add eax, 2
push eax
call fcn.00402463
pop ecx
mov dword [ebp - 0xc], eax
push ebx
lea eax, [ebp - 0x29c]
push eax
mov edi, 0x104
push edi
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
je 0x406944
lea eax, [ebp - 0x29c]
mov dword [ebp - 8], eax
jmp 0x40694f
push esi
call fcn.004025b7
test eax, eax
pop ecx
je 0x4068ee
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 4]
push eax
push 0x40225c
push 1
push ebx
push 0x40226c
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, ebx
jne 0x406a63
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
push 0x40227c
push eax
call dword [ecx]
mov esi, eax
cmp esi, ebx
jne 0x406a5a
mov eax, dword [ebp - 0x54]
cmp word [eax], 0x21
jne 0x4069ab
lea esi, [eax + 2]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push 2
push eax
call dword [ecx + 0x3c]
jmp 0x4069ae
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
push dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
mov eax, dword [ebp - 4]
push dword [ebp - 0x4c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
push dword [ebp - 0xc]
mov eax, dword [ebp - 4]
push dword [ebp - 0x48]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp - 4]
push dword [ebp - 0x44]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
push dword [ebp - 0x40]
call fcn.00403bda
add esp, 4
test eax, eax
je 0x406a02
push dword [ebp - 0x40]
call fcn.004025b7
test eax, eax
pop ecx
je 0x406a02
push dword [ebp - 0x40]
jmp 0x406a13
push dword [ebp - 8]
call fcn.00402570
cmp eax, dword [ebp - 8]
pop ecx
je 0x406a1c
push dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
push 0x401d20
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push edi
push esi
lea eax, [ebp - 0x4a4]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
push esi
call fcn.004025df
mov eax, dword [ebp - 0x10]
pop ecx
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0x4a4]
push edx
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406ad8
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
cmp word [ebx], 0x5c
jne 0x406b37
add ebx, 2
push ebx
call fcn.00403bbc
mov ecx, eax
push ecx
call fcn.00403bda
add esp, 8
test eax, eax
je 0x406b1b
push ecx
push 0
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x406b32
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
jmp 0x406b8c
mov eax, dword [0x412260]
test eax, eax
je 0x406b32
push 0
push 0
push 0x10
push dword [eax + 0x4d0]
jmp 0x406b11
xor eax, eax
inc eax
jmp 0x406b8c
push esi
mov dword [ebp + 8], 1
push edi
push ebx
call fcn.004040a9
mov edi, eax
test edi, edi
pop ecx
je 0x406b87
push edi
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x406b76
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x406b6f
and dword [ebp + 8], 0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jbe 0x406b87
push ebx
call fcn.00403bda
add esp, 4
test eax, eax
jne 0x406b40
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4073ab
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b4
push dword [ebp + 8]
call fcn.00403bda
add esp, 4
test eax, eax
je 0x40741c
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [0x4122d8]
call dword [sym.imp.SHELL32.dll_ExtractIconW]
test eax, eax
jne 0x40741e
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 dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x40741c
mov eax, dword [ebp - 0x2b4]
leave
ret
xor eax, eax
leave
ret

Function at 0x40745d
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
xor edi, edi
cmp dword [ebp + 0xc], 0x111
mov dword [ebp - 8], edi
jne 0x4074a4
mov eax, dword [ebp + 0x10]
mov ecx, dword [0x412264]
imul eax, eax, 0x368
lea ecx, [eax + ecx + 0x150]
push ecx
call fcn.00403bda
add esp, 4
test eax, eax
je 0x407566
push ecx
call fcn.0040faa6
pop ecx
jmp 0x407566
cmp dword [0x412050], edi
mov dword [ebp - 4], edi
jl 0x407566
push ebx
mov ebx, dword [ebp + 8]
push esi
mov eax, dword [0x412264]
add eax, edi
cmp dword [eax + 0x360], ebx
jne 0x40754c
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 - 8], eax
jne 0x40754c
mov eax, dword [0x412264]
add eax, edi
cmp dword [eax + 0x358], 0
je 0x40754c
mov esi, dword [eax + 0xc]
push ebx
sub esi, 6
call fcn.00407420
test eax, eax
pop ecx
je 0x40751c
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x40751c
mov al, 1
jmp 0x40751e
xor al, al
mov ecx, dword [0x412264]
push 3
push 0
push 0
push esi
push esi
push dword [edi + ecx + 0x358]
movzx eax, al
lea ecx, [eax + 3]
push ecx
add eax, 6
push eax
push ebx
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.USER32.dll_DrawIconEx]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add edi, 0x368
cmp eax, dword [0x412050]
jle 0x4074b8
pop esi
pop ebx
mov eax, dword [ebp - 8]
pop edi
leave
ret 0x10

Function at 0x40756e
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [0x412274]
push esi
mov esi, dword [esp + 0xc]
imul esi, esi, 0x364
push 0x50
lea eax, [esi + eax + 0xb0]
push eax
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0
push 0
push 0xf0
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [0x412274]
push 0
push 0
push dword [esp + 0x14]
mov dword [esi + ecx + 0x35c], eax
push 4
call fcn.00404771
mov eax, dword [0x412274]
lea ecx, [esi + eax + 0x150]
push ecx
call fcn.00403bda
add esp, 0x14
test eax, eax
pop esi
je 0x4075e2
push ecx
call fcn.0040faa6
pop ecx
xor eax, eax
ret 8
Function at 0x407f36
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2964
call fcn.00410150
push ebx
push esi
push edi
push 0x401924
push dword [ebp + 0xc]
xor edi, edi
xor ebx, ebx
call dword [sym.imp.SHLWAPI.dll_StrStrW]
mov esi, eax
cmp esi, edi
je 0x407f64
movzx ebx, word [esi]
mov word [esi], di
push 0xffe
lea eax, [ebp - 0x2962]
push edi
push eax
mov word [ebp - 0x2964], di
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x800
lea eax, [ebp - 0x2964]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp bx, di
je 0x407f9d
mov word [esi], bx
mov ebx, dword [sym.imp.SHLWAPI.dll_StrChrW]
push 0x60
lea eax, [ebp - 0x2964]
push eax
call ebx
cmp eax, edi
je 0x407fb5
mov word [eax], di
lea eax, [ebp - 0x2964]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.00403c42
push 0x10
pop ecx
mov esi, eax
push 0x18e0
lea eax, [ebp - 0x1960]
lea edi, [ebp - 0x40]
push 0
rep movsd dword es:[edi], dword [esi]
and dword [ebp - 0x1964], 0
push eax
call sub.MSVCRT.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
add esp, 0x14
push dword [ebp - 0x40]
lea eax, [ebp - 0x1954]
push eax
call esi
push dword [ebp - 0x3c]
call fcn.00403bda
add esp, 4
test eax, eax
je 0x40807c
push dword [ebp - 0x3c]
call dword [sym.imp.USER32.dll_CharUpperW]
mov edi, eax
push 0x4c
push edi
call ebx
test eax, eax
je 0x408031
add eax, 2
push eax
call fcn.00402463
pop ecx
mov dword [ebp - 0x1964], eax
push 0x54
push edi
call ebx
test eax, eax
je 0x40804a
add eax, 2
push eax
call fcn.00402463
pop ecx
mov dword [ebp - 0x1960], eax
push 0x57
push edi
call ebx
test eax, eax
je 0x408063
add eax, 2
push eax
call fcn.00402463
pop ecx
mov dword [ebp - 0x195c], eax
push 0x48
push edi
call ebx
test eax, eax
je 0x40807c
add eax, 2
push eax
call fcn.00402463
pop ecx
mov dword [ebp - 0x1958], eax
push dword [ebp - 0x38]
lea eax, [ebp - 0x18b4]
push eax
call esi
push dword [ebp - 0x34]
lea eax, [ebp - 0x10b4]
push eax
call esi
push dword [ebp - 0x30]
lea eax, [ebp - 0x8b4]
push eax
call esi
push dword [ebp - 0x2c]
lea eax, [ebp - 0x69c]
push eax
call esi
push dword [ebp - 0x28]
lea eax, [ebp - 0x494]
push eax
call esi
push dword [ebp - 0x24]
lea eax, [ebp - 0x28c]
push eax
call esi
push dword [ebp - 0x40]
call fcn.00403bda
mov dword [ebp - 0x84], eax
lea eax, [ebp - 0x1964]
mov dword [esp], 0x18e4
push eax
push dword [ebp + 8]
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp + 8]
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret

Function at 0x408926
Capabilities:
Find taskbar

Disassembly:
push esi
push edi
xor edi, edi
push edi
push 0x401e80
call dword [sym.imp.USER32.dll_FindWindowW]
cmp eax, edi
je 0x408968
mov esi, dword [sym.imp.USER32.dll_FindWindowExW]
push edi
push 0x401e64
push edi
push eax
call esi
cmp eax, edi
je 0x408968
push edi
push 0x401e50
push edi
push eax
call esi
cmp eax, edi
je 0x408968
push edi
push 0x401e30
push edi
push eax
call esi
jmp 0x40896a
xor eax, eax
pop edi
pop esi
ret
Function at 0x409e6e
Capabilities:
Enumerate files on windows
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1260
call fcn.00410150
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 - 4], 1
mov dword [eax], ebx
call esi
cmp eax, ebx
je 0x409fd7
mov word [eax], bx
push edi
inc eax
inc eax
push 0x2c
push eax
mov dword [ebp - 0x10], eax
call esi
mov edi, eax
cmp edi, ebx
je 0x409fd6
mov word [edi], bx
inc edi
push 0x2c
inc edi
push edi
call esi
mov ebx, eax
xor esi, esi
cmp ebx, esi
je 0x409fd6
mov word [ebx], 1
inc ebx
push edi
inc ebx
call fcn.00402463
mov edi, 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 - 8], eax
call fcn.00402570
cmp dword [ebp - 8], 0xffffffff
pop ecx
je 0x409fd6
mov dword [ebp - 4], esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0xc], 1
xor eax, eax
test byte [ebp - 0x260], 0x10
je 0x409f52
cmp dword [ebp + 0x14], eax
je 0x409f59
lea eax, [ebp - 0x234]
push eax
call fcn.00406567
neg eax
sbb eax, eax
pop ecx
inc eax
jmp 0x409f59
cmp dword [ebp + 0x14], 0
sete al
test eax, eax
je 0x409faa
lea eax, [ebp - 0x234]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x1260]
push 0x401c64
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x1260]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push ebx
call fcn.0040faa6
add dword [ebp - 4], eax
inc dword [ebp - 0xc]
inc dword [esi]
test edi, edi
mov eax, dword [esi]
pop ecx
jle 0x409faa
cmp dword [ebp - 0xc], edi
jg 0x409fc4
cmp eax, edi
jge 0x409fc4
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x409f2e
jmp 0x409fcd
mov eax, dword [ebp + 0x10]
mov dword [eax], 1
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret