joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411e91
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
test edi, edi
jl 0x411f31
jne 0x411eae
push 0
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x411f31
mov eax, dword [ebp + 8]
mov al, byte [eax + 0x219]
neg al
push esi
sbb eax, eax
and eax, 0x28
add eax, 0xf
cmp edi, eax
jae 0x411f29
mov esi, dword [sym.imp.KERNEL32.DLL_QueryPerformanceCounter]
lea eax, [ebp - 0x10]
push eax
call esi
test eax, eax
je 0x411f29
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.DLL_QueryPerformanceFrequency]
push 0
call dword [sym.imp.KERNEL32.DLL_Sleep]
lea eax, [ebp - 8]
push eax
call esi
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
sbb ecx, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
fild qword [ebp - 0x18]
fstp qword [ebp - 0x28]
fild qword [ebp - 0x20]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x28]
fdiv qword [ebp - 0x30]
fmul qword [0x462760]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
call fcn.004581c4
cmp eax, edi
jb 0x411ee0
jmp 0x411f30
push edi
call dword [sym.imp.KERNEL32.DLL_Sleep]
pop esi
leave
ret 4
Function at 0x412196
Capabilities:
Find taskbar
Log keystrokes

Disassembly:
sub esp, 0x10
push esi
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edi, dword [esp + 0x1c]
mov esi, eax
cmp edi, esi
jne 0x4121b3
xor eax, eax
inc eax
jmp 0x4122af
push ebp
xor ebp, ebp
cmp esi, ebp
jne 0x4121c8
push ebp
push 0x45d4c8
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
push edi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x4121dc
push 9
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp eax, ebp
jne 0x4122ae
push ebx
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call esi
mov edi, eax
mov dword [esp + 0x18], edi
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
push ebp
push dword [esp + 0x28]
mov ebx, eax
mov dword [esp + 0x24], ebx
call esi
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
push 1
push eax
push ebx
mov dword [esp + 0x1c], eax
call esi
push 1
push edi
push ebx
call esi
push 1
push dword [esp + 0x14]
push edi
call esi
push dword [esp + 0x24]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp eax, ebp
mov dword [esp + 0x14], eax
jne 0x412294
mov edi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
push ebp
push ebp
push ebp
push 0x12
call edi
mov ebx, dword [sym.imp.USER32.dll_keybd_event]
push eax
push 0x12
call ebx
push ebp
push 2
push ebp
push 0x12
call edi
push eax
push 0x12
call ebx
push ebp
push ebp
push ebp
push 0x12
call edi
push eax
push 0x12
call ebx
push ebp
push 2
push ebp
push 0x12
call edi
push eax
push 0x12
call ebx
push dword [esp + 0x24]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
push ebp
push dword [esp + 0x14]
push ebx
call esi
push ebp
push edi
push ebx
call esi
push ebp
push dword [esp + 0x14]
push edi
call esi
mov eax, dword [esp + 0x14]
pop ebx
pop ebp
pop edi
pop esi
add esp, 0x10
ret 4

Function at 0x41237d
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
xor ebx, ebx
xor edi, edi
lea eax, [esi + 0x20]
cmp dword [eax], ebx
je 0x412396
inc edi
add eax, 8
cmp edi, 0x10
jl 0x412389
cmp edi, 0x10
jne 0x41239f
xor eax, eax
jmp 0x412409
cmp byte [esi + 0x18], 1
jne 0x4123e0
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp + 0xc]
push ebx
push 0x438
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
push 4
push 0x1000
push dword [ebp + 8]
mov dword [esi + edi*8 + 0x1c], eax
push ebx
push eax
mov eax, esi
lea edi, [esi + edi*8 + 0x20]
call fcn.0041249f
call eax
jmp 0x412407
push ebx
push dword [ebp + 8]
push ebx
push 4
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingW]
push ebx
push ebx
push ebx
push 0xf001f
mov dword [esi + edi*8 + 0x1c], eax
push eax
lea edi, [esi + edi*8 + 0x20]
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov dword [edi], eax
pop edi
pop ebx
pop ebp
ret 8
Function at 0x413fe0
Capabilities:
Read file on windows

Disassembly:
test byte [esi], 4
push ebx
je 0x41400e
mov ebx, dword [edi]
push 0
push edi
push ebx
push dword [esp + 0x14]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x414033
and dword [edi], eax
push 1
push eax
push ebx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
jmp 0x41402f
push dword [esi + 4]
push dword [edi]
push 1
push dword [esp + 0x14]
call fcn.0044a98f
mov dword [edi], eax
mov eax, dword [esi + 4]
add esp, 0x10
test byte [eax + 0xc], 0x20
je 0x414033
and dword [edi], 0
xor al, al
jmp 0x414035
mov al, 1
pop ebx
ret 4

Function at 0x414513
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x14]
push edi
add eax, eax
mov dword [ebp + 0x14], eax
lea eax, [ebp - 4]
push eax
push 1
xor edi, edi
push edi
push dword [ebp + 0xc]
mov word [esi], di
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x414560
lea eax, [ebp + 0x14]
push eax
push esi
push edi
push edi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp + 0x14], edi
je 0x414557
shr dword [ebp + 0x14], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
leave
ret

Function at 0x414563
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
push esi
push esi
push 0x10
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_PostMessageW]
lea eax, [ebp - 8]
push eax
push 0x1f4
push 2
push esi
push esi
push 0x10
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
jne 0x4145c3
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 4]
push esi
push 0x1f0fff
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov edi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
leave
ret
Function at 0x414c46
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
jne 0x414c66
xor al, al
jmp 0x414dfe
push ebx
push edi
push esi
call fcn.00449170
pop ecx
push eax
push esi
push 0
push dword [ebp + 8]
mov dword [ebp - 4], eax
call sub.VERSION.dll_GetFileVersionInfoW
mov ebx, dword [ebp + 0x10]
push ebx
call fcn.004493b8
lea eax, [eax + eax + 0x34]
push eax
call fcn.00449170
mov esi, 0x45d09c
mov edi, eax
push esi
push edi
call fcn.00449154
push esi
push ebx
call fcn.0044925f
add esp, 0x18
test eax, eax
je 0x414d34
push str.StringFileInfo_
push edi
call fcn.0044912a
push esi
push ebx
call fcn.00449508
add esp, 0x10
test eax, eax
jne 0x414d2b
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push str.VarFileInfoTranslation
push dword [ebp - 4]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x414d0b
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
push eax
push 4
lea ebx, [edi + 0x20]
pop edx
mov dword [ebp - 0x10], eax
call fcn.004164e3
mov eax, dword [ebp - 0x10]
shr eax, 0x10
lea ebx, [edi + 0x28]
push eax
call fcn.004164e3
mov ebx, dword [ebp + 0x10]
jmp 0x414d16
push str.04090000
push edi
call fcn.0044912a
pop ecx
pop ecx
push esi
push edi
call fcn.0044912a
push ebx
push edi
call fcn.0044912a
add esp, 0x10
jmp 0x414d34
push ebx
push edi
call fcn.0044912a
pop ecx
pop ecx
push str.DefaultLangCodepage
push ebx
call fcn.0044907d
test eax, eax
pop ecx
pop ecx
jne 0x414d71
mov esi, dword [ebp + 0xc]
push 8
lea eax, [edi + 0x20]
push eax
push esi
call fcn.004497d7
push dword [ebp - 4]
and word [esi + 0x10], 0
call fcn.00449078
push edi
call fcn.00449078
add esp, 0x14
mov al, 1
jmp 0x414dfc
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp - 4]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x414dea
push esi
push ebx
call fcn.0044925f
test eax, eax
pop ecx
pop ecx
jne 0x414dc5
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov esi, ecx
mov edx, 0xffff
and esi, edx
push esi
shr ecx, 0x10
push ecx
mov ecx, eax
and ecx, edx
push ecx
shr eax, 0x10
push eax
push str._u._u._u._u
push dword [ebp + 0xc]
call fcn.004493ce
add esp, 0x18
jmp 0x414dd8
push 0x200
push dword [ebp - 8]
push dword [ebp + 0xc]
call fcn.004497d7
add esp, 0xc
push dword [ebp - 4]
call fcn.00449078
push edi
call fcn.00449078
mov al, 1
jmp 0x414dfa
push dword [ebp - 4]
call fcn.00449078
push edi
call fcn.00449078
xor al, al
pop ecx
pop ecx
pop edi
pop ebx
pop esi
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x414e53
lea eax, [ebp - 0x250]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x414e46
or eax, eax
leave
ret
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov eax, dword [ebp - 0x250]
leave
ret
Function at 0x414e55
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x414e6b
test al, 0x10
je 0x414e6b
mov al, 1
ret
xor al, al
ret

Function at 0x414ffa
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc90
push dword [ebp + 8]
lea eax, [ebp - 0x210]
mov byte [ebp - 1], 0
call fcn.00414e6e
lea eax, [ebp - 0x210]
push eax
call fcn.00414e55
test al, al
pop ecx
pop ecx
je 0x41503a
lea eax, [ebp - 0x210]
push 0x45d7f8
push eax
call fcn.0044912a
pop ecx
pop ecx
push ebx
push esi
lea eax, [ebp - 0xc90]
push eax
lea eax, [ebp - 0xa84]
push eax
lea eax, [ebp - 0x66c]
push eax
lea eax, [ebp - 0x878]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00449da6
add esp, 0x14
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
mov bl, 1
je 0x4150fd
cmp bl, 1
jne 0x4150fd
test byte [ebp - 0x460], 0x10
jne 0x4150e3
lea eax, [ebp - 0x878]
push eax
lea eax, [ebp - 0x210]
push eax
mov byte [ebp - 1], bl
call fcn.00449154
lea eax, [ebp - 0x66c]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.0044912a
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.0044912a
add esp, 0x18
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp eax, 1
jne 0x4150f9
lea eax, [ebp - 0x460]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x415084
xor bl, bl
jmp 0x415084
xor bl, bl
jmp 0x415100
mov bl, byte [ebp - 1]
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x41510d
Capabilities:
Copy file
Delete file
Enumerate files on windows
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x12b8
call fcn.0044c070
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x62c]
mov byte [ebp - 2], 0
call fcn.00414e6e
push dword [ebp + 0xc]
lea eax, [ebp - 0x838]
call fcn.00414e6e
lea eax, [ebp - 0x838]
push eax
lea eax, [ebp - 0x62c]
push eax
call fcn.00414f55
mov byte [ebp - 3], al
lea eax, [ebp - 0x62c]
push eax
call fcn.00414e55
add esp, 0x14
test al, al
mov esi, 0x45d7f8
je 0x41517a
lea eax, [ebp - 0x62c]
push esi
push eax
call fcn.0044912a
pop ecx
pop ecx
lea eax, [ebp - 0x838]
push eax
call fcn.00414e55
test al, al
pop ecx
je 0x41519a
lea eax, [ebp - 0x838]
push esi
push eax
call fcn.0044912a
pop ecx
pop ecx
lea eax, [ebp - 0x12b8]
push eax
lea eax, [ebp - 0xc94]
push eax
lea eax, [ebp - 0xea0]
push eax
lea eax, [ebp - 0x10ac]
push eax
lea eax, [ebp - 0x62c]
push eax
call fcn.00449da6
add esp, 0x14
lea eax, [ebp - 0xa88]
push eax
lea eax, [ebp - 0x62c]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
mov byte [ebp - 1], 1
je 0x415313
mov ebx, dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov edi, dword [sym.imp.KERNEL32.DLL_CopyFileW]
cmp byte [ebp - 1], 1
jne 0x415313
test byte [ebp - 0xa88], 0x10
mov byte [ebp - 2], 1
jne 0x4152c6
lea eax, [ebp - 0x838]
push eax
lea eax, [ebp - 0x12b8]
push eax
lea eax, [ebp - 0xc94]
push eax
lea eax, [ebp - 0xa5c]
push eax
lea esi, [ebp - 0x420]
call fcn.00415326
lea eax, [ebp - 0x10ac]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.00449154
lea eax, [ebp - 0xea0]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.0044912a
lea eax, [ebp - 0xa5c]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.0044912a
mov eax, esi
push eax
call fcn.00414e01
add esp, 0x2c
test al, al
je 0x4152a2
cmp byte [ebp + 0x10], 0
je 0x41530f
mov eax, esi
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
mov eax, esi
push eax
je 0x4152b5
call ebx
cmp byte [ebp + 0x14], 1
lea eax, [ebp - 0x420]
jne 0x415301
cmp byte [ebp - 3], 0
jne 0x4152e6
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
test eax, eax
je 0x41530f
lea eax, [ebp - 0xa88]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x4151f5
mov byte [ebp - 1], al
jmp 0x4151f5
push 0
push eax
lea eax, [ebp - 0x214]
push eax
call edi
test eax, eax
je 0x41530f
lea eax, [ebp - 0x214]
push eax
call ebx
jmp 0x4152c2
push 0
push eax
lea eax, [ebp - 0x214]
push eax
call edi
jmp 0x4152c2
xor bl, bl
jmp 0x415316
mov bl, byte [ebp - 2]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_FindClose]
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x41553b
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0xc]
push edi
push esi
call fcn.004493b8
dec eax
lea eax, [esi + eax*2]
cmp word [eax], 0x5c
pop ecx
jne 0x415557
and word [eax], 0
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4155d0
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 2
mov ebp, dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
jne 0x41557f
push 0
push esi
call ebp
test eax, eax
je 0x415584
jmp 0x4155d4
cmp eax, 3
jne 0x4155a2
push esi
call fcn.00416034
mov edi, eax
push 0x5c
push edi
call fcn.0044b137
add esp, 0xc
test eax, eax
jne 0x4155a8
push edi
call fcn.00449078
pop ecx
xor al, al
pop edi
pop esi
pop ebp
ret
and word [eax], 0
push ebx
push edi
call fcn.0041553b
push edi
mov bl, al
call fcn.00449078
pop ecx
pop ecx
test bl, bl
je 0x4155cb
push 0
push esi
call ebp
test eax, eax
setne bl
mov al, bl
pop ebx
jmp 0x4155a4
test al, 0x10
je 0x4155a2
mov al, 1
jmp 0x4155a4

Function at 0x4155d8
Capabilities:
Copy file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
push dword [ebp + 8]
lea eax, [ebp - 0x438]
call fcn.00414e6e
push dword [ebp + 0xc]
lea eax, [ebp - 0x22c]
call fcn.00414e6e
pop ecx
pop ecx
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
jne 0x415651
cmp byte [ebp + 0x10], al
je 0x41564d
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x438]
push eax
call fcn.0044925f
test eax, eax
pop ecx
pop ecx
je 0x415649
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
mov al, 1
leave
ret
xor al, al
leave
ret
lea eax, [ebp - 0x438]
push eax
call fcn.00414e55
test al, al
pop ecx
je 0x41564d
lea eax, [ebp - 0x22c]
push ebx
push eax
call fcn.00414e55
xor ebx, ebx
test al, al
pop ecx
je 0x415682
cmp byte [ebp + 0x10], bl
jne 0x4156a4
xor al, al
jmp 0x41571b
lea eax, [ebp - 0x22c]
push eax
call fcn.0041553b
test al, al
pop ecx
je 0x41567b
lea eax, [ebp - 0x22c]
push eax
call fcn.00414e55
pop ecx
test al, al
jmp 0x415679
lea eax, [ebp - 0x438]
push 0x45d7f8
push eax
call fcn.0044912a
lea eax, [ebp - 0x438]
push eax
call fcn.004493b8
mov word [ebp + eax*2 - 0x436], bx
lea eax, [ebp - 0x22c]
push eax
call fcn.004493b8
mov word [ebp + eax*2 - 0x22a], bx
lea eax, [ebp - 0x438]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x14], eax
add esp, 0x10
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0xa], ebx
mov dword [ebp - 6], ebx
mov dword [ebp - 0xe], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 2
mov word [ebp - 0x10], 0x614
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
neg eax
sbb al, al
inc al
pop ebx
leave
ret
Function at 0x41571e
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
push dword [ebp + 8]
lea eax, [ebp - 0x22c]
call fcn.00414e6e
push dword [ebp + 0xc]
lea eax, [ebp - 0x438]
call fcn.00414e6e
lea eax, [ebp - 0x22c]
push eax
call fcn.00414e55
add esp, 0xc
test al, al
jne 0x415758
leave
ret
lea eax, [ebp - 0x438]
push ebx
push eax
call fcn.00414e55
xor ebx, ebx
test al, al
pop ecx
je 0x4157c7
cmp byte [ebp + 0x10], bl
jne 0x415778
xor al, al
jmp 0x415879
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
jne 0x4157c7
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.0044925f
test eax, eax
pop ecx
pop ecx
je 0x4157c7
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
test eax, eax
setne al
jmp 0x415879
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.00414f55
test al, al
pop ecx
pop ecx
je 0x415814
push 1
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.004155d8
add esp, 0xc
test al, al
je 0x415771
lea eax, [ebp - 0x22c]
push 1
push eax
call fcn.0041587c
pop ecx
pop ecx
test al, al
jmp 0x4157bf
lea eax, [ebp - 0x22c]
push eax
call fcn.004493b8
mov word [ebp + eax*2 - 0x22a], bx
lea eax, [ebp - 0x438]
push eax
call fcn.004493b8
mov word [ebp + eax*2 - 0x436], bx
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x18], eax
pop ecx
lea eax, [ebp - 0x438]
mov dword [ebp - 0x14], eax
pop ecx
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0xa], ebx
mov dword [ebp - 6], ebx
mov dword [ebp - 0xe], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 1
mov word [ebp - 0x10], 0x614
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
neg eax
sbb al, al
inc al
pop ebx
leave
ret

Function at 0x41587c
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push dword [ebp + 8]
lea eax, [ebp - 0x22c]
call fcn.00414e6e
lea eax, [ebp - 0x22c]
push eax
call fcn.00414e55
test al, al
pop ecx
pop ecx
jne 0x4158a7
leave
ret
push ebx
xor ebx, ebx
cmp byte [ebp + 0xc], bl
lea eax, [ebp - 0x22c]
push eax
jne 0x4158c3
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
test eax, eax
setne al
jmp 0x415906
call fcn.004493b8
mov word [ebp + eax*2 - 0x22a], bx
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x18], eax
pop ecx
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xa], ebx
mov dword [ebp - 6], ebx
mov dword [ebp - 0xe], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 3
mov word [ebp - 0x10], 0x614
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
neg eax
sbb al, al
inc al
pop ebx
leave
ret
Function at 0x4159f1
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x294
push esi
mov esi, eax
lea eax, [ebp - 0x294]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x415ab1
push 0x100
lea eax, [ebp - 0x104]
push eax
call sub.WSOCK32.dll_gethostname
lea eax, [ebp - 0x104]
push eax
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x415ab1
mov eax, dword [eax + 0xc]
xor edx, edx
cmp dword [eax], edx
je 0x415a4b
mov ecx, eax
add ecx, 4
inc edx
cmp dword [ecx], 0
jne 0x415a42
cmp esi, edx
jle 0x415a60
push str.0.0.0.0
push dword [ebp + 8]
call fcn.00449154
pop ecx
pop ecx
jmp 0x415aaa
push 4
push dword [eax + esi*4 - 4]
lea eax, [ebp - 4]
push eax
call fcn.0044a210
add esp, 0xc
push dword [ebp - 4]
call sub.WSOCK32.dll_inet_ntoa
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.00449b90
lea eax, [ebp - 0x104]
push eax
or eax, 0xffffffff
call fcn.0041684e
mov esi, eax
push esi
push dword [ebp + 8]
call fcn.00449154
push esi
call fcn.00449078
add esp, 0x18
call sub.WSOCK32.dll_WSACleanup
jmp 0x415ac0
push 0x45c6d0
push dword [ebp + 8]
call fcn.00449154
pop ecx
pop ecx
pop esi
leave
ret

Function at 0x415c2e
Capabilities:
Enumerate gui resources
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp byte [0x479bb4], 0
push ebx
push esi
mov ebx, eax
je 0x415c97
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x415c93
lea eax, [ebp - 0x10]
push eax
push str.SeShutdownPrivilege
xor esi, esi
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
je 0x415c99
xor eax, eax
jmp 0x415cd9
xor esi, esi
cmp byte [0x479bb5], 0
je 0x415cb6
test bl, 4
je 0x415cb6
push esi
push 0x415cdd
xor ebx, 4
call dword [sym.imp.USER32.dll_EnumWindows]
cmp ebx, 0x20
je 0x415cca
cmp ebx, 0x40
je 0x415cca
push esi
push ebx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x415cd9
xor eax, eax
cmp ebx, 0x20
sete al
push esi
push eax
call sub.KERNEL32.DLL_SetSystemPowerState
pop esi
pop ebx
leave
ret

Function at 0x415d17
Capabilities:
Log keystrokes

Disassembly:
cmp byte [esp + 8], 1
jne 0x415d36
push 0x1388
push dword [esp + 8]
call fcn.00415cf4
test al, al
pop ecx
pop ecx
jne 0x415d52
push 1
jmp 0x415d38
push 0
push 0
push dword [esp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
ret
Function at 0x415f9f
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
test edi, edi
push esi
jl 0x416031
jne 0x415fb4
push 0
jmp 0x41602b
mov al, byte [0x479bb5]
neg al
sbb eax, eax
and eax, 0x28
add eax, 0xf
cmp edi, eax
jae 0x41602a
mov esi, dword [sym.imp.KERNEL32.DLL_QueryPerformanceCounter]
lea eax, [ebp - 0x10]
push eax
call esi
test eax, eax
je 0x41602a
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.DLL_QueryPerformanceFrequency]
push 0
call dword [sym.imp.KERNEL32.DLL_Sleep]
lea eax, [ebp - 8]
push eax
call esi
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
sbb ecx, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
fild qword [ebp - 0x18]
fstp qword [ebp - 0x28]
fild qword [ebp - 0x20]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x28]
fdiv qword [ebp - 0x30]
fmul qword [0x462760]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
call fcn.004581c4
cmp eax, edi
jb 0x415fe1
jmp 0x416031
push edi
call dword [sym.imp.KERNEL32.DLL_Sleep]
pop esi
leave
ret