joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b086
Capabilities:
Read file on windows

Disassembly:
test byte [esi], 4
push ebx
je 0x40b0b6
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 0x40b0dc
and dword [edi], eax
push 1
push eax
push ebx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor al, al
jmp 0x40b0de
push dword [esi + 4]
push dword [edi]
push 1
push dword [esp + 0x14]
call fcn.004509f1
mov dword [edi], eax
push dword [esi + 4]
call fcn.00450a3b
add esp, 0x14
test eax, eax
je 0x40b0dc
and dword [edi], 0
jmp 0x40b0b2
mov al, 1
pop ebx
ret 4

Function at 0x40b3f7
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, dword [esi + 0x58]
cmp dword [esi + 0x5c], edi
jne 0x40b476
cmp edi, 4
jle 0x40b408
push 4
pop edi
push 4
pop eax
sub eax, edi
push eax
lea eax, [edi + esi + 0x10]
push eax
lea eax, [esi + 0x10]
push eax
call fcn.00450c60
mov eax, dword [esi + 0x58]
sub eax, edi
lea eax, [eax + esi + 0x14]
push edi
push eax
mov eax, esi
sub eax, edi
add eax, 0x14
push eax
call fcn.0044f750
push dword [esi + 4]
lea eax, [esi + 0x14]
push 0x40
push 1
push eax
mov dword [esi + 0x54], edi
call fcn.004509f1
and dword [esi + 0x5c], 0
add esp, 0x28
test eax, eax
mov dword [esi + 0x58], eax
jne 0x40b476
push dword [esi + 4]
call fcn.00450a0c
test eax, eax
pop ecx
jne 0x40b471
push dword [esi + 4]
call fcn.00450a3b
test eax, eax
pop ecx
jne 0x40b471
pop edi
ret
or eax, 0xffffffff
pop edi
ret
mov ecx, dword [esi + 0x5c]
movzx eax, byte [ecx + esi + 0x14]
inc ecx
mov dword [esi + 0x5c], ecx
pop edi
ret

Function at 0x40b58f
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 0x40b5dc
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 0x40b5d3
shr dword [ebp + 0x14], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
leave
ret

Function at 0x40b5df
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 0x40b63f
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 0x40ba48
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor ebx, ebx
mov edi, eax
xor esi, esi
cmp edi, ebx
mov byte [0x477662], bl
je 0x40ba8e
mov byte [0x477663], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push 0x40bacf
push ebx
push ebx
mov dword [ebp - 8], edi
call fcn.00451734
add esp, 0x18
mov esi, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp esi, ebx
mov edi, eax
je 0x40baba
push 0xffffffffffffffff
push esi
mov byte [0x477663], bl
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x477662], 1
jne 0x40bac8
or eax, 0xffffffff
jmp 0x40baca
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40bca7
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 0x40bcc7
xor al, al
jmp 0x40bddc
push ebx
push edi
push esi
call fcn.0044d3f6
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.0044d9c3
xor ecx, ecx
push 2
add eax, 0x1a
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044d3f6
mov esi, 0x46a584
mov edi, eax
push esi
push edi
call fcn.0044d37c
push esi
push ebx
call fcn.0044d935
add esp, 0x18
test eax, eax
je 0x40bda2
push str.StringFileInfo_
push edi
call fcn.0044d352
push esi
push ebx
call fcn.0044dc06
add esp, 0x10
test eax, eax
jne 0x40bd99
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 0x40bd79
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.0040d555
mov eax, dword [ebp - 0x10]
shr eax, 0x10
lea ebx, [edi + 0x28]
push eax
call fcn.0040d555
mov ebx, dword [ebp + 0x10]
jmp 0x40bd84
push str.04090000
push edi
call fcn.0044d352
pop ecx
pop ecx
push esi
push edi
call fcn.0044d352
push ebx
push edi
call fcn.0044d352
add esp, 0x10
jmp 0x40bda2
push ebx
push edi
call fcn.0044d352
pop ecx
pop ecx
push str.DefaultLangCodepage
push ebx
call fcn.0044d2c1
test eax, eax
pop ecx
pop ecx
jne 0x40bddf
mov esi, dword [ebp + 0xc]
push 8
lea eax, [edi + 0x20]
push eax
push esi
call fcn.0044ff8a
push dword [ebp - 4]
and word [esi + 0x10], 0
call fcn.0044d460
push edi
call fcn.0044d460
add esp, 0x14
mov al, 1
pop edi
pop ebx
pop esi
leave
ret
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 0x40be55
push esi
push ebx
call fcn.0044d935
test eax, eax
pop ecx
pop ecx
jne 0x40be2c
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
movzx edx, cx
push edx
shr ecx, 0x10
push ecx
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
push str._u._u._u._u
push dword [ebp + 0xc]
call fcn.0044d9d9
add esp, 0x18
jmp 0x40be3f
push 0x200
push dword [ebp - 8]
push dword [ebp + 0xc]
call fcn.0044ff8a
add esp, 0xc
mov bl, 1
push dword [ebp - 4]
call fcn.0044d460
push edi
call fcn.0044d460
pop ecx
pop ecx
mov al, bl
jmp 0x40bdda
xor bl, bl
jmp 0x40be41

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x250
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40bea8
lea eax, [esp]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x40be9e
or eax, eax
jmp 0x40bea8
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp]
mov esp, ebp
pop ebp
ret
Function at 0x40c043
Capabilities:
Check if file exists
Delete file
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xca8
push ebx
push esi
push dword [ebp + 8]
lea eax, [esp + 0x14]
mov byte [esp + 0x13], 0
call fcn.0040beac
pop ecx
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40c088
test al, 0x10
je 0x40c088
lea eax, [esp + 0x10]
push str..
push eax
call fcn.0044d352
pop ecx
pop ecx
lea eax, [esp + 0xaa0]
push eax
lea eax, [esp + 0x894]
push eax
lea eax, [esp + 0x478]
push eax
lea eax, [esp + 0x68c]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.0044fee5
add esp, 0x14
lea eax, [esp + 0x220]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
mov bl, 1
je 0x40c159
cmp bl, 1
jne 0x40c159
test byte [esp + 0x220], 0x10
jne 0x40c131
lea eax, [esp + 0x680]
push eax
lea eax, [esp + 0x14]
push eax
mov byte [esp + 0x17], bl
call fcn.0044d37c
lea eax, [esp + 0x478]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.0044d352
lea eax, [esp + 0x25c]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.0044d352
add esp, 0x18
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
jne 0x40c148
lea eax, [esp + 0x220]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40c0d5
xor bl, bl
jmp 0x40c0d5
xor bl, bl
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
mov bl, byte [esp + 0xf]
jmp 0x40c14a
Function at 0x40c15f
Capabilities:
Check if file exists
Copy file
Delete file
Enumerate files on windows
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x12dc
call fcn.004528c0
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [esp + 0x43c]
xor bl, bl
call fcn.0040beac
pop ecx
push dword [ebp + 0xc]
lea eax, [esp + 0x64c]
call fcn.0040beac
pop ecx
lea eax, [esp + 0x648]
push eax
lea eax, [esp + 0x43c]
push eax
call fcn.0040bf9e
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop ecx
mov byte [esp + 0x17], al
pop ecx
lea eax, [esp + 0x438]
push eax
call esi
cmp eax, 0xffffffff
mov edi, str..
je 0x40c1dd
test al, 0x10
je 0x40c1dd
lea eax, [esp + 0x438]
push edi
push eax
call fcn.0044d352
pop ecx
pop ecx
lea eax, [esp + 0x648]
push eax
call esi
cmp eax, 0xffffffff
je 0x40c200
test al, 0x10
je 0x40c200
lea eax, [esp + 0x648]
push edi
push eax
call fcn.0044d352
pop ecx
pop ecx
lea eax, [esp + 0x10d8]
push eax
lea eax, [esp + 0xaac]
push eax
lea eax, [esp + 0xcc0]
push eax
lea eax, [esp + 0xed4]
push eax
lea eax, [esp + 0x448]
push eax
call fcn.0044fee5
add esp, 0x14
lea eax, [esp + 0x858]
push eax
lea eax, [esp + 0x43c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
mov byte [esp + 0x12], 1
je 0x40c398
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp byte [esp + 0x12], 1
jne 0x40c398
test byte [esp + 0x858], 0x10
jne 0x40c373
lea eax, [esp + 0x648]
push eax
lea eax, [esp + 0x10dc]
push eax
lea eax, [esp + 0xab0]
push eax
lea eax, [esp + 0x890]
push eax
lea esi, [esp + 0x238]
call fcn.0040c3ab
lea eax, [esp + 0xed8]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.0044d37c
lea eax, [esp + 0xcd0]
push eax
lea eax, [esp + 0x34]
push eax
call fcn.0044d352
lea eax, [esp + 0x8a4]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.0044d352
mov eax, esi
push eax
call fcn.0040be59
add esp, 0x2c
test al, al
je 0x40c309
cmp byte [ebp + 0x10], 0
je 0x40c354
mov eax, esi
push eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
mov eax, esi
push eax
je 0x40c362
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [ebp + 0x14], 1
lea eax, [esp + 0x228]
jne 0x40c346
cmp byte [esp + 0x13], 0
jne 0x40c32b
push eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x40c350
push 0
push eax
lea eax, [esp + 0x20]
push eax
call edi
test eax, eax
je 0x40c354
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x40c350
push 0
push eax
lea eax, [esp + 0x20]
push eax
call edi
test eax, eax
jne 0x40c371
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
jmp 0x40c3a4
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x40c396
mov bl, 1
lea eax, [esp + 0x858]
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40c25e
mov byte [esp + 0x12], al
jmp 0x40c25e
xor bl, bl
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c5c7
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.0044d9c3
dec eax
lea eax, [esi + eax*2]
cmp word [eax], 0x5c
pop ecx
jne 0x40c5e3
and word [eax], 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40c65a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jne 0x40c60d
push 0
push esi
call ebp
test eax, eax
je 0x40c612
mov al, 1
jmp 0x40c660
cmp eax, 3
jne 0x40c65e
push esi
call fcn.0040d0a5
mov edi, eax
push 0x5c
push edi
call fcn.0045160a
add esp, 0xc
test eax, eax
jne 0x40c632
push edi
call fcn.0044d460
pop ecx
jmp 0x40c65e
and word [eax], 0
push ebx
push edi
call fcn.0040c5c7
push edi
mov bl, al
call fcn.0044d460
test bl, bl
pop ecx
pop ecx
je 0x40c655
push 0
push esi
call ebp
test eax, eax
setne bl
mov al, bl
pop ebx
jmp 0x40c660
test al, 0x10
jne 0x40c609
xor al, al
pop edi
pop esi
pop ebp
ret

Function at 0x40c664
Capabilities:
Check if file exists
Copy file
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
push dword [ebp + 8]
lea eax, [ebp - 0x438]
call fcn.0040beac
push dword [ebp + 0xc]
lea eax, [ebp - 0x22c]
call fcn.0040beac
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 0x40c6dd
cmp byte [ebp + 0x10], al
je 0x40c6d9
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x438]
push eax
call fcn.0044d935
test eax, eax
pop ecx
pop ecx
je 0x40c6d5
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
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea eax, [ebp - 0x438]
push eax
call esi
cmp eax, 0xffffffff
je 0x40c6f6
test al, 0x10
jne 0x40c6fd
xor al, al
jmp 0x40c7b6
push ebx
lea eax, [ebp - 0x22c]
push eax
call esi
xor ebx, ebx
cmp eax, 0xffffffff
je 0x40c717
test al, 0x10
je 0x40c717
cmp byte [ebp + 0x10], bl
jmp 0x40c738
lea eax, [ebp - 0x22c]
push eax
call fcn.0040c5c7
test al, al
pop ecx
je 0x40c73a
lea eax, [ebp - 0x22c]
push eax
call esi
cmp eax, 0xffffffff
je 0x40c73a
test al, 0x10
jne 0x40c73e
xor al, al
jmp 0x40c7b5
lea eax, [ebp - 0x438]
push str..
push eax
call fcn.0044d352
lea eax, [ebp - 0x438]
push eax
call fcn.0044d9c3
mov word [ebp + eax*2 - 0x436], bx
lea eax, [ebp - 0x22c]
push eax
call fcn.0044d9c3
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
pop esi
leave
ret
Function at 0x40c7b9
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x22c]
call fcn.0040beac
push dword [ebp + 0xc]
lea eax, [ebp - 0x438]
call fcn.0040beac
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop ecx
pop ecx
lea eax, [ebp - 0x22c]
push eax
call esi
cmp eax, 0xffffffff
je 0x40c7f9
test al, 0x10
jne 0x40c800
xor al, al
jmp 0x40c919
push ebx
lea eax, [ebp - 0x438]
push eax
call esi
xor ebx, ebx
cmp eax, 0xffffffff
je 0x40c863
test al, 0x10
je 0x40c863
cmp byte [ebp + 0x10], bl
je 0x40c898
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40c863
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.0044d935
test eax, eax
pop ecx
pop ecx
je 0x40c863
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jmp 0x40c8ae
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.0040bf9e
test al, al
pop ecx
pop ecx
je 0x40c8b3
push 1
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.0040c664
add esp, 0xc
test al, al
jne 0x40c89c
xor al, al
jmp 0x40c918
lea eax, [ebp - 0x22c]
push 1
push eax
call fcn.0040c91c
pop ecx
pop ecx
test al, al
setne al
jmp 0x40c918
lea eax, [ebp - 0x22c]
push eax
call fcn.0044d9c3
mov word [ebp + eax*2 - 0x22a], bx
lea eax, [ebp - 0x438]
push eax
call fcn.0044d9c3
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
pop esi
leave
ret

Function at 0x40c91c
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push dword [ebp + 8]
lea eax, [ebp - 0x22c]
call fcn.0040beac
pop ecx
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40c94a
test al, 0x10
jne 0x40c94e
xor al, al
leave
ret
push ebx
xor ebx, ebx
cmp byte [ebp + 0xc], bl
lea eax, [ebp - 0x22c]
push eax
jne 0x40c96a
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
jmp 0x40c9ad
call fcn.0044d9c3
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 0x40ca75
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a0
push esi
mov esi, eax
lea eax, [ebp - 0x29c]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x40cb35
push 0x100
lea eax, [ebp - 0x10c]
push eax
call sub.WSOCK32.dll_gethostname
lea eax, [ebp - 0x10c]
push eax
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x40cb35
mov eax, dword [eax + 0xc]
xor edx, edx
cmp dword [eax], edx
je 0x40cacf
mov ecx, eax
add ecx, 4
inc edx
cmp dword [ecx], 0
jne 0x40cac6
cmp esi, edx
jle 0x40cae4
push str.0.0.0.0
push dword [ebp + 8]
call fcn.0044d37c
pop ecx
pop ecx
jmp 0x40cb2e
push 4
push dword [eax + esi*4 - 4]
lea eax, [ebp - 8]
push eax
call fcn.0044f750
add esp, 0xc
push dword [ebp - 8]
call sub.WSOCK32.dll_inet_ntoa
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.0044f5c0
lea eax, [ebp - 0x10c]
push eax
or eax, 0xffffffff
call fcn.0040d89f
mov esi, eax
push esi
push dword [ebp + 8]
call fcn.0044d37c
push esi
call fcn.0044d460
add esp, 0x18
call sub.WSOCK32.dll_WSACleanup
jmp 0x40cb44
push 0x46a170
push dword [ebp + 8]
call fcn.0044d37c
pop ecx
pop ecx
pop esi
leave
ret

Function at 0x40cc53
Capabilities:
Enumerate gui resources
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp byte [0x48984c], 0
push ebx
push esi
mov ebx, eax
je 0x40ccbe
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
jne 0x40cc81
xor eax, eax
jmp 0x40cd00
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 0x40ccc0
jmp 0x40cc7d
xor esi, esi
cmp byte [0x48984d], 0
je 0x40ccdd
test bl, 4
je 0x40ccdd
push esi
push 0x40cd04
xor ebx, 4
call dword [sym.imp.USER32.dll_EnumWindows]
cmp ebx, 0x20
je 0x40ccf1
cmp ebx, 0x40
je 0x40ccf1
push esi
push ebx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x40cd00
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 0x40cd40
Capabilities:
Log keystrokes

Disassembly:
cmp byte [esp + 8], 1
jne 0x40cd59
push dword [esp + 4]
call fcn.0040cd1b
test al, al
pop ecx
jne 0x40cd75
push 1
jmp 0x40cd5b
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 0x40d014
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
test edi, edi
push esi
jl 0x40d0a0
jne 0x40d028
push 0
jmp 0x40d09a
mov al, byte [0x48984d]
neg al
sbb eax, eax
and eax, 0x28
add eax, 0xf
cmp edi, eax
jae 0x40d099
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [esp + 0x10]
push eax
call esi
test eax, eax
je 0x40d099
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 8]
push eax
call esi
mov eax, dword [esp + 8]
sub eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
sbb ecx, dword [esp + 0x14]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
fild qword [esp + 0x18]
fild qword [esp + 0x20]
fdivp st(1)
fmul qword [0x470338]
call fcn.00464806
cmp eax, edi
jb 0x40d057
jmp 0x40d0a0
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40d2ec
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov bl, byte [0x47765b]
push edi
push 0x8000
push esi
call fcn.00451253
pop ecx
push eax
call fcn.0045115c
push dword [ebp + 8]
mov dword [ebp - 4], eax
or eax, 0xffffffff
call fcn.0040d90e
mov edi, eax
push edi
push 0x46b0e8
push esi
call fcn.00451280
push edi
call fcn.0044d460
push esi
call fcn.0045154d
add esp, 0x20
cmp dword [ebp - 4], 0xffffffff
jne 0x40d342
push 0x4000
jmp 0x40d345
push dword [ebp - 4]
push esi
call fcn.00451253
pop ecx
push eax
call fcn.0045115c
pop ecx
pop ecx
pop edi
test bl, bl
pop ebx
je 0x40d363
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
leave
ret

Function at 0x411238
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
xor esi, esi
inc esi
mov dword [0x4876c0], eax
push edi
mov edx, esi
mov eax, 0x4876c0
mov ecx, dword [eax]
mov edi, ecx
shr edi, 0x1e
xor edi, ecx
imul edi, edi, 0x6c078965
add edi, edx
mov dword [eax + 4], edi
add eax, 4
inc edx
cmp eax, 0x48807c
jl 0x411249
pop edi
mov dword [0x475c94], esi
mov dword [0x488090], esi
pop esi
ret