joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408847
Capabilities:
Set environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x120
push esi
push edi
push dword [ebp + 0x7c]
lea eax, [ebp - 0xac]
push eax
call fcn.00404497
push 0x10
pop ecx
mov esi, eax
lea edi, [ebp + 0x34]
rep movsd dword es:[edi], dword [esi]
push dword [ebp + 0x34]
call fcn.004043ee
add esp, 0xc
test eax, eax
jne 0x40888f
push dword [ebp + 0x38]
call fcn.004043ee
test eax, eax
pop ecx
jne 0x40888f
inc eax
jmp 0x408927
push ebx
push dword [ebp + 0x34]
call fcn.004043ee
test eax, eax
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebx, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
pop ecx
je 0x4088e3
and word [ebp - 0x6c], 0
push 0x9e
lea eax, [ebp - 0x6a]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0
call edi
push eax
lea eax, [ebp - 0x6c]
push 0x401848
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x6c]
push eax
push dword [ebp + 0x34]
call ebx
push dword [ebp + 0x38]
call fcn.004043ee
test eax, eax
pop ecx
je 0x408924
and word [ebp - 0x6c], 0
push 0x9e
lea eax, [ebp - 0x6a]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 1
call edi
push eax
lea eax, [ebp - 0x6c]
push 0x401848
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x6c]
push eax
push dword [ebp + 0x38]
call ebx
xor eax, eax
pop ebx
pop edi
pop esi
add ebp, 0x74
leave
ret

Function at 0x4089aa
Capabilities:
Acquire debug privileges
Terminate process

Disassembly:
push ebp
mov ebp, dword [esp + 8]
cmp word [ebp], 0x5c
push esi
push edi
jne 0x408a09
add ebp, 2
push ebp
call fcn.004043d0
mov esi, eax
push esi
call fcn.004043ee
pop ecx
xor edi, edi
test eax, eax
pop ecx
je 0x4089ef
push esi
push edi
call dword [sym.imp.USER32.dll_FindWindowW]
cmp eax, edi
je 0x408a04
push edi
push edi
push 0x10
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
jmp 0x408a77
mov eax, dword [0x41524c]
cmp eax, edi
je 0x408a04
push edi
push edi
push 0x10
push dword [eax + 0x4d0]
jmp 0x4089e2
xor eax, eax
inc eax
jmp 0x408a77
mov dword [esp + 0x10], 1
xor edi, edi
push ebx
push ebp
call fcn.00404a29
mov ebx, eax
cmp ebx, edi
pop ecx
je 0x408a72
push ebx
push edi
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, edi
je 0x408a63
push 0x402230
call fcn.004070de
test eax, eax
pop ecx
push edi
push esi
je 0x408a4e
call fcn.00403f98
pop ecx
pop ecx
jmp 0x408a54
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x408a5c
mov dword [esp + 0x14], edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, edi
jbe 0x408a72
push ebp
call fcn.004043ee
test eax, eax
pop ecx
jne 0x408a14
mov eax, dword [esp + 0x14]
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x408d8c
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
push ebx
push esi
xor esi, esi
cmp dword [ebp + 0xc], esi
push edi
je 0x408dd3
cmp byte [ebp + 8], 0
jne 0x408dd3
push 0x402274
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0xa0]
push eax
call fcn.00408b37
test eax, eax
pop ecx
jne 0x408dd3
push 0x2710
call fcn.00407183
pop ecx
lea eax, [ebp + 0xc]
push eax
mov ebx, 0x7d0
push ebx
push esi
push esi
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageTimeoutW]
push 0x11
mov edi, 0xffff
push edi
call esi
lea eax, [ebp + 0xc]
push eax
push ebx
xor ebx, ebx
push ebx
push ebx
push ebx
push 0x16
push edi
call esi
push 0x1f4
call fcn.00407183
mov dword [esp], 0x40227c
call fcn.004070de
test eax, eax
pop ecx
je 0x408e62
movzx eax, byte [ebp + 8]
sub eax, ebx
je 0x408e4c
dec eax
je 0x408e48
dec eax
je 0x408e3e
dec eax
je 0x408e33
dec eax
jne 0x408e54
push 1
push ebx
jmp 0x408e37
push 1
push 1
call sub.KERNEL32.dll_SetSystemPowerState
jmp 0x408e54
push ebx
push ebx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x408e54
push 1
jmp 0x408e4e
push 2
call fcn.00403f64
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
neg eax
sbb eax, eax
neg eax
jmp 0x408e65
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40926a
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b4
push dword [ebp + 8]
call fcn.004043ee
test eax, eax
pop ecx
je 0x4092d9
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [0x4152cc]
call dword [sym.imp.SHELL32.dll_ExtractIconW]
test eax, eax
jne 0x4092db
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 0x4092d9
mov eax, dword [ebp - 0x2b4]
leave
ret
xor eax, eax
leave
ret
Function at 0x40931a
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
cmp dword [ebp + 0xc], 0x111
mov dword [ebp - 8], esi
jne 0x40936a
mov esi, dword [ebp + 0x10]
mov eax, dword [0x415250]
imul esi, esi, 0x368
lea eax, [esi + eax + 0x150]
push eax
call fcn.004043ee
test eax, eax
pop ecx
je 0x40946b
mov eax, dword [0x415250]
lea eax, [esi + eax + 0x150]
push eax
call fcn.00412454
pop ecx
jmp 0x40946b
cmp dword [0x415040], esi
mov dword [ebp - 4], esi
jl 0x40946b
push ebx
mov ebx, dword [ebp + 8]
push edi
mov eax, dword [0x415250]
add eax, esi
cmp dword [eax + 0x360], ebx
jne 0x409451
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 0x409418
mov eax, dword [0x415250]
add eax, esi
cmp dword [eax + 0x358], 0
je 0x409451
mov edi, dword [eax + 0xc]
push ebx
sub edi, 6
call fcn.004092dd
test eax, eax
pop ecx
je 0x4093e6
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x4093e6
mov al, 1
jmp 0x4093e8
xor al, al
mov ecx, dword [0x415250]
push 3
push 0
push 0
push edi
push edi
push dword [esi + 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]
jmp 0x409451
cmp dword [ebp + 0xc], 0x100
jne 0x409451
cmp dword [ebp + 0x10], 0xd
jne 0x409451
mov eax, dword [0x415250]
lea eax, [esi + eax + 0x150]
push eax
call fcn.004043ee
test eax, eax
pop ecx
je 0x409451
mov eax, dword [0x415250]
lea eax, [esi + eax + 0x150]
push eax
call fcn.00412454
pop ecx
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add esi, 0x368
cmp eax, dword [0x415040]
jle 0x40937e
pop edi
pop ebx
mov eax, dword [ebp - 8]
pop esi
leave
ret 0x10

Function at 0x409473
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [0x415260]
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 pe_nt_image_headers32
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [0x415260]
push 0
push 0
push dword [esp + 0x14]
mov dword [esi + ecx + 0x35c], eax
push 4
call fcn.0040585d
mov eax, dword [0x415260]
lea eax, [esi + eax + 0x150]
push eax
call fcn.004043ee
add esp, 0x14
test eax, eax
je 0x4094f2
mov eax, dword [0x415260]
lea eax, [esi + eax + 0x150]
push eax
call fcn.00412454
pop ecx
xor eax, eax
pop esi
ret 8

Function at 0x40a806
Capabilities:
Find taskbar

Disassembly:
push esi
push edi
xor edi, edi
push edi
push 0x4023a4
call dword [sym.imp.USER32.dll_FindWindowW]
cmp eax, edi
je 0x40a848
mov esi, dword [sym.imp.USER32.dll_FindWindowExW]
push edi
push 0x402388
push edi
push eax
call esi
cmp eax, edi
je 0x40a848
push edi
push 0x402374
push edi
push eax
call esi
cmp eax, edi
je 0x40a848
push edi
push 0x402354
push edi
push eax
call esi
jmp 0x40a84a
xor eax, eax
pop edi
pop esi
ret
Function at 0x40b131
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x49c
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x8c]
push eax
call fcn.00404497
push 0x10
pop ecx
mov esi, eax
lea edi, [ebp - 0x4c]
rep movsd dword es:[edi], dword [esi]
push dword [ebp - 0x48]
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
call fcn.004043ee
add esp, 0xc
test eax, eax
je 0x40b17f
push dword [ebp - 0x48]
call fcn.00402b60
neg eax
sbb eax, eax
neg eax
pop ecx
mov dword [ebp - 8], eax
push dword [ebp - 0x44]
call fcn.004043ee
test eax, eax
pop ecx
je 0x40b19e
push dword [ebp - 0x44]
call fcn.00402b60
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 0x402558
push 0x4024e0
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 0x4024c0
push 0x401c50
lea eax, [ebp - 0x49c]
push 0x401ce0
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
push 4
lea eax, [ebp - 0xc]
push eax
push 4
push 0x402494
lea eax, [ebp - 0x49c]
push eax
push edi
call esi
add 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]
push ebx
call fcn.004043ee
add esp, 0x10
test eax, eax
je 0x40b266
push ebx
call fcn.00402c8c
pop ecx
test eax, eax
push ebx
lea eax, [ebp - 0x294]
je 0x40b255
push 0x402480
jmp 0x40b25a
push 0x40246c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
jmp 0x40b278
push 0x402454
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 0x40243c
push 0x4023e8
push edi
call esi
add dword [ebp - 4], eax
call fcn.004051c9
xor eax, eax
cmp dword [ebp - 4], eax
pop edi
pop esi
setne al
pop ebx
leave
ret
Function at 0x40bf53
Capabilities:
Enumerate files on windows
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1260
call fcn.00412b10
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 0x40c0bc
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 0x40c0bb
mov word [edi], bx
inc edi
push 0x2c
inc edi
push edi
call esi
mov ebx, eax
xor esi, esi
cmp ebx, esi
je 0x40c0bb
mov word [ebx], 1
inc ebx
push edi
inc ebx
call fcn.00402b60
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.00402c6d
cmp dword [ebp - 8], 0xffffffff
pop ecx
je 0x40c0bb
mov dword [ebp - 4], esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0xc], 1
xor eax, eax
test byte [ebp - 0x260], 0x10
je 0x40c037
cmp dword [ebp + 0x14], eax
je 0x40c03e
lea eax, [ebp - 0x234]
push eax
call fcn.00404b60
neg eax
sbb eax, eax
pop ecx
inc eax
jmp 0x40c03e
cmp dword [ebp + 0x14], 0
sete al
test eax, eax
je 0x40c08f
lea eax, [ebp - 0x234]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x1260]
push 0x401a18
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.00412454
add dword [ebp - 4], eax
inc dword [ebp - 0xc]
inc dword [esi]
test edi, edi
mov eax, dword [esi]
pop ecx
jle 0x40c08f
cmp dword [ebp - 0xc], edi
jg 0x40c0a9
cmp eax, edi
jge 0x40c0a9
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40c013
jmp 0x40c0b2
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
Function at 0x40c0c3
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1420
call fcn.00412b10
push ebx
push esi
xor ebx, ebx
push edi
xor ecx, ecx
xor edi, edi
xor esi, esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
inc ecx
mov eax, dword [ebp + 8]
movzx eax, word [eax]
cmp ax, 0x21
jne 0x40c0f2
mov edi, ecx
jmp 0x40c105
cmp ax, 0x5c
jne 0x40c0fc
mov esi, ecx
jmp 0x40c105
cmp ax, 0x40
jne 0x40c10b
mov dword [ebp - 0xc], ecx
add dword [ebp + 8], 2
jmp 0x40c0e2
push 0xffe
lea eax, [ebp - 0x141e]
push ebx
push eax
mov word [ebp - 0x1420], bx
call sub.MSVCRT.dll_memset
add esp, 0xc
cmp esi, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
je 0x40c292
mov esi, 0x206
push esi
lea eax, [ebp - 0x216]
push ebx
push eax
mov word [ebp - 0x218], bx
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp edi, ebx
je 0x40c239
push esi
lea eax, [ebp - 0x41e]
push ebx
push eax
mov word [ebp - 0x420], bx
call sub.MSVCRT.dll_memset
add esp, 0xc
cmp word [ebp - 0x218], bx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [ebp - 0x420]
lea esi, [ebp - 0x218]
je 0x40c1ba
movzx eax, word [ebp - 0x218]
mov word [edi], ax
inc edi
push esi
inc edi
call ebx
lea esi, [esi + eax*2 + 2]
movzx eax, word [esi]
test ax, ax
jne 0x40c1a6
lea eax, [ebp - 0x420]
push eax
call ebx
mov ebx, eax
test ebx, ebx
jle 0x40c2bf
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea edi, [ebp + ebx*2 - 0x422]
mov ax, word [edi]
and word [ebp - 0x141e], 0
mov word [ebp - 0x1420], ax
push 0x402584
lea eax, [ebp - 0x1420]
push eax
call esi
push dword [ebp + 8]
lea eax, [ebp - 0x1420]
push eax
call esi
push dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1420]
push eax
call fcn.0040bf53
add dword [ebp - 4], eax
add esp, 0x10
cmp dword [ebp - 8], 0
jne 0x40c2bf
dec ebx
dec edi
dec edi
test ebx, ebx
jg 0x40c1da
jmp 0x40c2bf
cmp word [ebp - 0x218], bx
lea esi, [ebp - 0x218]
je 0x40c2bf
push dword [ebp + 8]
lea eax, [ebp - 0x1420]
push esi
push 0x401ce0
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
push dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1420]
push eax
call fcn.0040bf53
add dword [ebp - 4], eax
add esp, 0x20
cmp dword [ebp - 8], ebx
jne 0x40c2bf
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
cmp word [esi], bx
jne 0x40c248
jmp 0x40c2bf
push dword [ebp + 8]
lea eax, [ebp - 0x1420]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1420]
push eax
call fcn.0040bf53
add esp, 0x10
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40c2c7
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x458
push esi
push edi
lea eax, [ebp - 0x250]
push eax
push dword [ebp + 8]
xor edi, edi
inc edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push dword [ebp + 8]
mov esi, eax
call fcn.00402c6d
cmp esi, 0xffffffff
pop ecx
je 0x40c356
test byte [ebp - 0x250], 0x10
jne 0x40c32c
lea eax, [ebp - 0x224]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x458]
push 0x401a18
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x458]
push eax
call dword [sym.imp.GDI32.dll_AddFontResourceW]
add edi, eax
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40c2f5
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push 0
push 0x1d
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
test edi, edi
pop edi
sete al
pop esi
leave
ret

Function at 0x40c361
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push ebx
push esi
push edi
xor ebx, ebx
push 0x206
lea eax, [ebp - 0x20a]
push ebx
push eax
mov word [ebp - 0x20c], bx
call sub.MSVCRT.dll_memset
mov edi, dword [ebp + 8]
add esp, 0xc
cmp word [edi], 0x5c
mov dword [ebp - 4], 2
jne 0x40c456
push 0x2c
push edi
mov dword [ebp + 8], ebx
call dword [sym.imp.SHLWAPI.dll_StrChrW]
mov esi, eax
cmp esi, ebx
je 0x40c3cb
mov word [esi], bx
inc esi
inc esi
push esi
call dword [sym.imp.USER32.dll_CharUpperW]
movzx eax, word [esi]
cmp ax, bx
je 0x40c3cb
movzx eax, ax
mov dword [ebp + 8], eax
lea eax, [ebp - 0x414]
push eax
inc edi
push 0x104
inc edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp word [ebp - 0x414], bx
lea esi, [ebp - 0x414]
je 0x40c49d
mov ax, word [ebp + 8]
cmp word [esi], ax
jb 0x40c444
push edi
push esi
lea eax, [ebp - 0x20c]
push 0x402598
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x20c]
push eax
call fcn.00402cb4
add esp, 0x14
test eax, eax
je 0x40c444
push 0x40258c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x20c]
push eax
call fcn.0040c2c7
pop ecx
mov dword [ebp - 4], eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
cmp word [esi], bx
jne 0x40c3f2
jmp 0x40c49d
push edi
call fcn.00402cb4
test eax, eax
pop ecx
je 0x40c46d
push 0x40258c
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push edi
call fcn.00402c6d
push edi
call fcn.00402cb4
test eax, eax
pop ecx
pop ecx
je 0x40c49d
lea eax, [ebp - 0x20c]
push eax
call fcn.0040c2c7
pop ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40c5a8
Capabilities:
Change the wallpaper
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
push esi
push 1
push 0x4025dc
push 0x4025b0
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push 2
push esi
call fcn.0040c4a5
pop ecx
pop ecx
push 3
push 0
push 0
push 0x14
mov esi, eax
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
test esi, esi
pop esi
jne 0x40c5f4
test eax, eax
jne 0x40c5f4
inc eax
ret
xor eax, eax
ret

Function at 0x40c908
Capabilities:
Log keystrokes via polling
Set environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0xa8
push ebx
push esi
xor esi, esi
xor ebx, ebx
cmp word [ebp + 0x74], si
push edi
je 0x40c93a
movzx eax, word [ebp + 0x74]
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x40c9f5
movzx esi, word [ebp + 0x74]
jmp 0x40c976
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
nop
push 8
pop edi
movzx eax, di
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x40c95f
inc edi
cmp di, 0xff
jb 0x40c946
jmp 0x40c962
xor ebx, ebx
inc ebx
cmp dword [ebp + 0x7c], esi
jne 0x40c96b
test ebx, ebx
je 0x40c93a
test ebx, ebx
je 0x40c9f5
movzx esi, di
xor edi, edi
cmp si, di
je 0x40c9f5
push 0x9e
lea eax, [ebp - 0x3a]
push edi
push eax
mov word [ebp - 0x3c], di
call sub.MSVCRT.dll_memset
push dword [ebp + 0x78]
mov word [ebp + 0x64], di
xor eax, eax
lea edi, [ebp + 0x66]
stosd dword es:[edi], eax
stosw word es:[edi], ax
call fcn.004043ee
add esp, 0x10
test eax, eax
lea eax, [ebp - 0x3c]
je 0x40c9b3
push dword [ebp + 0x78]
jmp 0x40c9b8
push 0x402610
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [esi - 0x60]
cmp ax, 9
ja 0x40c9ce
add esi, 0xffd0
cmp si, 0x40
jbe 0x40c9da
cmp si, 0x5b
jb 0x40c9e3
lea eax, [esi - 0x30]
cmp ax, 9
ja 0x40c9e7
mov word [ebp + 0x64], si
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
pop edi
movzx eax, si
pop esi
pop ebx
add ebp, 0x6c
leave
ret
Function at 0x40ca7a
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_StrChrW]
push edi
push 0x2c
push ebx
call esi
xor edi, edi
cmp eax, edi
mov dword [ebp - 8], edi
je 0x40ccbc
mov word [eax], di
inc eax
inc eax
push 0x21
push eax
mov dword [ebp - 0xc], eax
call esi
cmp eax, edi
mov dword [ebp - 8], eax
je 0x40caba
mov word [eax], di
inc eax
inc eax
mov dword [ebp - 8], eax
cmp word [ebx], 0x24
jne 0x40cba3
inc ebx
push 0x3d
inc ebx
push ebx
call esi
mov edi, eax
test edi, edi
jne 0x40caeb
push 0x3e
push ebx
call esi
mov edi, eax
test edi, edi
jne 0x40caeb
push 0x3c
push ebx
call esi
mov edi, eax
test edi, edi
je 0x40ccbc
movzx esi, word [edi]
and word [edi], 0
push ebx
call fcn.0040ca00
add edi, 2
push edi
mov ebx, eax
call fcn.0040ca00
cmp byte [ebp + 0xc], 0
pop ecx
pop ecx
mov edi, eax
je 0x40cb64
push ebx
call fcn.004047f1
fstp qword [ebp - 0x14]
push edi
call fcn.004047f1
cmp si, 0x3d
pop ecx
pop ecx
jne 0x40cb37
fcomp qword [ebp - 0x14]
fnstsw ax
test ah, 0x44
jnp 0x40ccb5
jmp 0x40ccbc
cmp si, 0x3e
jne 0x40cb47
fcomp qword [ebp - 0x14]
fnstsw ax
test ah, 5
jmp 0x40cb2c
cmp si, 0x3c
jne 0x40ccba
fcomp qword [ebp - 0x14]
fnstsw ax
test ah, 0x41
je 0x40ccb5
jmp 0x40ccbc
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
cmp si, 0x3e
jne 0x40cb7e
xor ecx, ecx
test eax, eax
setg cl
jmp 0x40cc95
cmp si, 0x3c
jne 0x40cb90
xor ecx, ecx
test eax, eax
setl cl
jmp 0x40cc95
cmp si, 0x3d
jne 0x40ccbc
xor ecx, ecx
test eax, eax
jmp 0x40cc92
push 4
push ebx
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
movzx eax, word [ebx + 6]
cmp ax, 0x3e
je 0x40cbf6
cmp ax, 0x3c
je 0x40cbf6
cmp ax, 0x3d
je 0x40cbf6
cmp byte [ebp + 0xc], 0
push ebx
je 0x40cbe7
call fcn.00402c8c
test eax, eax
pop ecx
jne 0x40ccb5
push ebx
call fcn.00402cb4
pop ecx
jmp 0x40ccb1
call fcn.00404a29
pop ecx
xor ecx, ecx
cmp ecx, eax
jmp 0x40ccad
lea esi, [ebx + 8]
push esi
call fcn.00402b60
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
mov dword [esp], 0x40262c
push eax
call edi
test eax, eax
jne 0x40cc2c
cmp byte [ebp + 0xc], al
je 0x40cc25
call fcn.0040466e
jmp 0x40cc83
call fcn.00404678
jmp 0x40cc83
push 0x402624
lea eax, [ebp - 0x14]
push eax
call edi
test eax, eax
jne 0x40cc6c
cmp word [esi], 0x23
jne 0x40cc4c
lea eax, [ebx + 0xa]
push eax
call fcn.00402b60
jmp 0x40cc59
movzx eax, word [esi + 2]
push eax
call fcn.00402ae9
movzx eax, ax
pop ecx
push 0
push 0
push eax
mov dword [ebp - 4], eax
call fcn.0040c908
add esp, 0xc
jmp 0x40cc83
cmp byte [ebp + 0xc], 0
lea eax, [ebp - 0x14]
push eax
je 0x40cc7d
call fcn.004033af
jmp 0x40cc82
call fcn.004033c0
pop ecx
movzx ecx, word [ebx + 6]
cmp cx, 0x3d
jne 0x40cc99
xor ecx, ecx
cmp eax, dword [ebp - 4]
sete cl
mov eax, ecx
jmp 0x40ccb1
cmp cx, 0x3e
jne 0x40cca4
cmp dword [ebp - 4], eax
jmp 0x40ccad
cmp cx, 0x3c
jne 0x40ccbc
cmp eax, dword [ebp - 4]
sbb eax, eax
neg eax
test eax, eax
je 0x40ccbc
push dword [ebp - 0xc]
jmp 0x40ccbf
fstp st(0)
push dword [ebp - 8]
call fcn.00412454
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40cce6
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov ebx, eax
call esi
sub eax, ebx
cmp eax, dword [esp + 0xc]
jae 0x40cd36
push edi
push 1
push dword [esp + 0x18]
push 0
call fcn.0040c908
add esp, 0xc
mov edi, eax
nop
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [0x4152d4]
call dword [sym.imp.KERNEL32.dll_SetProcessWorkingSetSize]
cmp dword [esp + 0x18], 0
je 0x40cd2b
test edi, edi
jne 0x40cd35
call esi
sub eax, ebx
cmp eax, dword [esp + 0x10]
jb 0x40ccfd
pop edi
pop esi
pop ebx
ret

Function at 0x40d0b3
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xa0]
push 0x401848
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0xa0]
push eax
push 0x402634
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
leave
ret

Function at 0x40d0ec
Capabilities:
Set current directory

Disassembly:
mov eax, dword [esp + 4]
movzx ecx, word [eax]
test cx, cx
je 0x40d11d
cmp cx, 0x40
jne 0x40d104
add eax, 2
push eax
jmp 0x40d122
cmp cx, 0x23
jne 0x40d115
add eax, 2
push eax
call fcn.00407e8c
pop ecx
ret
push eax
call fcn.00407d16
pop ecx
ret
push 0x4152e0
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
neg eax
sbb eax, eax
inc eax
ret