joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4078f0
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
push ebx
push esi
mov ebx, edx
mov dword [ebp - 0x74], 0x6a09e667
push edi
xorps xmm0, xmm0
mov dword [ebp - 0x70], 0xbb67ae85
mov edx, ecx
movlpd qword [ebp - 0x7c], xmm0
push 0x20
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x6c], 0x3c6ef372
mov dword [ebp - 0x68], 0xa54ff53a
mov dword [ebp - 0x64], 0x510e527f
mov dword [ebp - 0x60], 0x9b05688c
mov dword [ebp - 0x5c], 0x1f83d9ab
mov dword [ebp - 0x58], 0x5be0cd19
mov dword [ebp - 0x54], 0
call fcn.00407870
mov eax, dword [ebp - 0x7c]
mov edi, 0x78
mov edx, dword [ebp - 0x78]
mov esi, eax
sub edi, dword [ebp - 0x54]
xor ecx, ecx
rol eax, 8
add esp, 4
and eax, 0xff00ff
ror esi, 8
and esi, 0xff00ff00
or esi, eax
mov eax, edx
ror eax, 8
rol edx, 8
and eax, 0xff00ff00
and edx, 0xff00ff
mov dword [ebp - 8], esi
or eax, edx
mov edx, 0x4262c0
or ecx, eax
cmp edi, 0x40
lea eax, [edi - 0x40]
mov dword [ebp - 0xc], ecx
cmovbe eax, edi
lea ecx, [ebp - 0x7c]
push eax
call fcn.00407870
add esp, 4
lea edx, [ebp - 0xc]
lea ecx, [ebp - 0x7c]
push 8
call fcn.00407870
add esp, 4
test ebx, ebx
je 0x407ac7
mov ecx, dword [ebp - 0x74]
mov eax, ecx
shr eax, 0x18
mov byte [ebx], al
mov eax, ecx
shr eax, 0x10
mov byte [ebx + 1], al
movzx eax, byte [ebp - 0x74]
mov byte [ebx + 3], al
shr ecx, 8
mov byte [ebx + 2], cl
mov ecx, dword [ebp - 0x70]
mov eax, ecx
shr eax, 0x18
mov byte [ebx + 4], al
mov eax, ecx
shr eax, 0x10
mov byte [ebx + 5], al
movzx eax, byte [ebp - 0x70]
mov byte [ebx + 7], al
shr ecx, 8
mov byte [ebx + 6], cl
mov ecx, dword [ebp - 0x6c]
mov eax, ecx
shr eax, 0x18
mov byte [ebx + 8], al
mov eax, ecx
shr eax, 0x10
mov byte [ebx + 9], al
movzx eax, byte [ebp - 0x6c]
mov byte [ebx + 0xb], al
shr ecx, 8
mov byte [ebx + 0xa], cl
mov ecx, dword [ebp - 0x68]
mov eax, ecx
shr eax, 0x18
mov byte [ebx + 0xc], al
mov eax, ecx
shr eax, 0x10
mov byte [ebx + 0xd], al
movzx eax, byte [ebp - 0x68]
mov byte [ebx + 0xf], al
shr ecx, 8
mov byte [ebx + 0xe], cl
mov ecx, dword [ebp - 0x64]
mov eax, ecx
shr eax, 0x18
mov byte [ebx + 0x10], al
mov eax, ecx
shr eax, 0x10
mov byte [ebx + 0x11], al
movzx eax, byte [ebp - 0x64]
mov byte [ebx + 0x13], al
shr ecx, 8
mov byte [ebx + 0x12], cl
mov ecx, dword [ebp - 0x60]
mov eax, ecx
shr eax, 0x18
mov byte [ebx + 0x14], al
mov eax, ecx
shr eax, 0x10
mov byte [ebx + 0x15], al
movzx eax, byte [ebp - 0x60]
shr ecx, 8
mov byte [ebx + 0x17], al
mov byte [ebx + 0x16], cl
mov ecx, dword [ebp - 0x5c]
mov eax, ecx
shr eax, 0x18
mov byte [ebx + 0x18], al
mov eax, ecx
shr eax, 0x10
mov byte [ebx + 0x19], al
movzx eax, byte [ebp - 0x5c]
shr ecx, 8
mov byte [ebx + 0x1a], cl
mov ecx, dword [ebp - 0x58]
mov byte [ebx + 0x1b], al
mov eax, ecx
shr eax, 0x18
mov byte [ebx + 0x1c], al
mov eax, ecx
shr eax, 0x10
mov byte [ebx + 0x1d], al
movzx eax, byte [ebp - 0x58]
shr ecx, 8
mov byte [ebx + 0x1e], cl
mov byte [ebx + 0x1f], al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4131ec
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x413289
push ebx
push esi
call fcn.004131b5
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.004130fe
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x413236
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x413288
push edi
push eax
call fcn.00410915
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x413256
call fcn.004108db
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x413287
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004130fe
add esp, 0x20
test eax, eax
jne 0x413275
push edi
call fcn.004108db
jmp 0x41327d
push ebx
call fcn.004108db
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x41432f
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41e480
push 0x41e478
push str.FlsAlloc
push 0x1e
call fcn.004141f0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x414363
push dword [ebp + 8]
mov ecx, esi
call dword [0x41c250]
call esi
jmp 0x414369
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4143ad
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41e490
push 0x41e488
push str.FlsGetValue
push 0x20
call fcn.004141f0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4143e4
push dword [ebp + 8]
mov ecx, esi
call dword [0x41c250]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4026c0
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00403218
test esi, esi
jne 0x4026f6
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00403308
jmp 0x402714
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004025d4
mov edi, eax
test esi, esi
je 0x402714
cmp dword [ebx], 0
je 0x402714
dec esi
jmp 0x4026fd
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402808
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x41d008], 0x8088405
inc edx
mov dword [ebx + 0x41d008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x402930
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x41d018]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4029c8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4029a8
xor eax, eax
push ebp
push 0x4029a1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4029e4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4029a8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x41d018]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x41d018], ax
mov esp, ebp
pop ebp
ret

Function at 0x403020
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x41e034], 0
je 0x403081
cmp word [0x41e208], 0xd7b2
jne 0x403049
cmp dword [0x41e210], 0
jbe 0x403049
mov eax, 0x41e204
call dword [0x41e220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x41d060
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4030a8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x41d024], 0
jne 0x40309d
push 0
push 0x41d058
push 0x41d060
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4031d4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402490
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x41e035], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x40319c
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x403ea0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x403f06
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00403384
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402824
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x403ef0
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403f0d
lea eax, [ebp - 0x10]
call fcn.00403218
ret

Function at 0x404c94
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040358c
xor eax, eax
push ebp
push 0x404d9f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.00403218
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.0040359c
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x404d89
mov eax, dword [ebp - 8]
mov edx, 0x73
call fcn.0040367c
push 0
lea eax, [ebp - 0x10]
push eax
push 0x73
mov eax, dword [ebp - 8]
call fcn.004035ec
mov edx, 1
dec edx
test eax, eax
je 0x404d17
cmp edx, dword [eax - 4]
jb 0x404d1c
call fcn.00402a00
inc edx
lea eax, [eax + edx - 1]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_ReadFile
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
mov edx, dword [ebp - 8]
mov edx, dword [edx]
mov eax, 0x404db4
call fcn.00403634
test eax, eax
jne 0x404d51
mov eax, dword [ebp - 8]
call fcn.00403218
jmp 0x404d89
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 8]
mov edx, dword [edx]
mov eax, 0x404dc0
call fcn.00403634
mov ecx, eax
sub ecx, 1
jno 0x404d70
call fcn.00402a08
sub ecx, 0x50
jno 0x404d7a
call fcn.00402a08
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov edx, 0x51
call fcn.004035f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404da6
lea eax, [ebp - 4]
call fcn.00403218
ret
Function at 0x404dc4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff64
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040358c
xor eax, eax
push ebp
push 0x404e92
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
push 0
lea eax, [ebp - 0x9c]
push eax
mov eax, dword [ebp - 4]
call fcn.0040359c
push eax
call sub.kernel32.dll_OpenFile
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x404e74
lea eax, [ebp - 0x10]
mov edx, 0x186a0
call fcn.0040367c
push 0
lea eax, [ebp - 0x14]
push eax
push 0x186a0
lea eax, [ebp - 0x10]
call fcn.004035ec
mov edx, 1
dec edx
test eax, eax
je 0x404e3e
cmp edx, dword [eax - 4]
jb 0x404e43
call fcn.00402a00
inc edx
lea eax, [eax + edx - 1]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x404e74
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
mov edx, dword [ebp - 0x10]
mov eax, 0x404ea8
call fcn.00403634
test eax, eax
jle 0x404e74
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404e99
lea eax, [ebp - 0x10]
call fcn.00403218
lea eax, [ebp - 4]
call fcn.00403218
ret

Function at 0x404ec0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040358c
mov eax, dword [ebp - 8]
call fcn.0040358c
xor eax, eax
push ebp
push 0x404f5a
push dword fs:[eax]
mov dword fs:[eax], esp
mov al, byte [ebp - 9]
xor al, 1
neg al
sbb eax, eax
push eax
mov eax, dword [ebp - 8]
call fcn.0040359c
push eax
mov eax, dword [ebp - 4]
call fcn.0040359c
push eax
call sub.kernel32.dll_CopyFileA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xa], al
mov al, byte [ebp - 0xa]
and al, byte [ebp + 0x10]
je 0x404f3f
mov ecx, dword [ebp + 8]
test ecx, ecx
jns 0x404f2b
call fcn.00402a00
mov edx, dword [ebp + 0xc]
test edx, edx
jns 0x404f37
call fcn.00402a00
mov eax, dword [ebp - 8]
call fcn.00405490
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404f61
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040323c
ret
Function at 0x404fe4
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea4
xor edx, edx
mov dword [ebp - 0x15c], edx
mov dword [ebp - 0x158], edx
mov dword [ebp - 0x154], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040358c
xor eax, eax
push ebp
push 0x40519e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040339c
cmp eax, 2
jl 0x40516b
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x154]
mov ecx, 0x4051b4
mov edx, dword [ebp - 4]
call fcn.004033e8
mov eax, dword [ebp - 0x154]
call fcn.0040359c
push eax
call sub.kernel32.dll_FindFirstFileA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x405132
lea eax, [ebp - 0x158]
lea edx, [ebp - 0x124]
mov ecx, 0x104
call fcn.00403384
mov ecx, dword [ebp - 0x158]
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.004033e8
lea eax, [ebp - 0x10]
lea edx, [ebp - 0x124]
mov ecx, 0x104
call fcn.00403384
test byte [ebp - 0x150], 0x10
je 0x4050ea
mov eax, dword [ebp - 0x10]
mov edx, 0x4051c0
call fcn.004034e8
je 0x40511a
mov eax, dword [ebp - 0x10]
mov edx, 0x4051cc
call fcn.004034e8
je 0x40511a
lea eax, [ebp - 0x15c]
mov ecx, 0x4051d8
mov edx, dword [ebp - 0xc]
call fcn.004033e8
mov eax, dword [ebp - 0x15c]
call fcn.00404fe4
jmp 0x40511a
mov eax, dword [ebp - 0xc]
call fcn.0040359c
push eax
call sub.kernel32.dll_DeleteFileA
test eax, eax
jne 0x40511a
push 0x20
mov eax, dword [ebp - 0xc]
call fcn.0040359c
push eax
call sub.kernel32.dll_SetFileAttributesA
mov eax, dword [ebp - 0xc]
call fcn.0040359c
push eax
call sub.kernel32.dll_DeleteFileA
lea eax, [ebp - 0x150]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x405069
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FindClose
mov eax, dword [ebp - 4]
call fcn.0040359c
push eax
call sub.kernel32.dll_RemoveDirectoryA
test eax, eax
jne 0x40516b
push 0x20
mov eax, dword [ebp - 4]
call fcn.0040359c
push eax
call sub.kernel32.dll_SetFileAttributesA
mov eax, dword [ebp - 4]
call fcn.0040359c
push eax
call sub.kernel32.dll_RemoveDirectoryA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4051a5
lea eax, [ebp - 0x15c]
mov edx, 3
call fcn.0040323c
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.0040323c
lea eax, [ebp - 4]
call fcn.00403218
ret

Function at 0x4051dc
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040358c
xor eax, eax
push ebp
push 0x405228
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040359c
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40522f
lea eax, [ebp - 4]
call fcn.00403218
ret
Function at 0x405338
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec0
xor edx, edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040358c
xor eax, eax
push ebp
push 0x405464
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea edx, [ebp - 0x138]
mov eax, dword [ebp - 4]
call fcn.00404a14
mov edx, dword [ebp - 0x138]
lea eax, [ebp - 4]
call fcn.004032b0
xor edx, edx
mov eax, 2
call fcn.004047a0
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x134], 0x128
lea edx, [ebp - 0x134]
mov eax, dword [ebp - 0xc]
call fcn.004047c0
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 6], al
jmp 0x40542f
lea eax, [ebp - 0x140]
lea edx, [ebp - 0x110]
mov ecx, 0x104
call fcn.00403384
mov eax, dword [ebp - 0x140]
lea edx, [ebp - 0x13c]
call fcn.00404a14
mov eax, dword [ebp - 0x13c]
mov edx, dword [ebp - 4]
call fcn.004034e8
jne 0x405418
push 0
mov eax, dword [ebp - 0x12c]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
lea edx, [ebp - 0x134]
mov eax, dword [ebp - 0xc]
call fcn.004047e0
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 6], al
cmp byte [ebp - 6], 0
jne 0x4053c0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40546b
lea eax, [ebp - 0x140]
mov edx, 3
call fcn.0040323c
lea eax, [ebp - 4]
call fcn.00403218
ret
Function at 0x405874
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
lea eax, [ebp - 0x10]
push eax
call sub.kernel32.dll_QueryPerformanceFrequency
lea eax, [ebp - 0x18]
push eax
call sub.kernel32.dll_QueryPerformanceCounter_1
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
add eax, dword [ebp - 0x10]
adc edx, dword [ebp - 0xc]
jno 0x40589f
call fcn.00402a08
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
push ebp
call fcn.0040586c
pop ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
lea eax, [ebp - 0x18]
push eax
call sub.kernel32.dll_QueryPerformanceCounter_1
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x1c]
jne 0x4058cd
cmp eax, dword [ebp - 0x20]
jb 0x4058b2
jmp 0x4058cf
jl 0x4058b2
push ebp
call fcn.0040586c
pop ecx
sub eax, dword [ebp - 0x28]
sbb edx, dword [ebp - 0x24]
jno 0x4058e3
call fcn.00402a08
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x405a4c
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe64
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040358c
xor eax, eax
push ebp
push 0x405ae3
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x19c]
push eax
push 0x101
call dword [0x41e6e0]
mov eax, dword [ebp - 4]
call fcn.0040359c
push eax
call sub.wsock32.dll_gethostbyname
mov dword [ebp - 0xc], eax
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x405abf
cmp dword [ebp - 0xc], 0
je 0x405abf
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
push dword [eax]
call dword [0x41e6f4]
mov edx, eax
mov eax, dword [ebp - 8]
call fcn.00403348
jmp 0x405ac7
mov eax, dword [ebp - 8]
call fcn.00403218
call dword [0x41e6e4]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405aea
lea eax, [ebp - 4]
call fcn.00403218
ret

Function at 0x405cd4
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 4], eax
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
call fcn.0040339c
test eax, eax
je 0x405d75
mov eax, dword [ebp - 4]
call fcn.0040339c
add eax, 1
jno 0x405d03
call fcn.00402a08
test eax, eax
jns 0x405d0c
call fcn.00402a00
push eax
push 0x2042
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x405d75
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GlobalLock
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x405d75
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
call fcn.00405d7c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GlobalUnlock
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x405d6c
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 0xc]
push eax
push 1
call sub.user32.dll_SetClipboardData
test eax, eax
setne byte [ebp - 5]
call sub.user32.dll_CloseClipboard
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GlobalFree
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret
Function at 0x405fec
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x406084
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xfa
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetForegroundWindow
push eax
call sub.user32.dll_GetWindowTextA
lea eax, [ebp - 8]
lea edx, [ebp - 0x108]
mov ecx, pe_nt_image_headers32
call fcn.00403384
mov edx, dword [ebp - 8]
mov eax, 0x40609c
call fcn.00403634
test eax, eax
jne 0x406069
mov edx, dword [ebp - 8]
mov eax, 0x4060ac
call fcn.00403634
test eax, eax
jne 0x406069
mov edx, dword [ebp - 8]
mov eax, 0x4060c0
call fcn.00403634
test eax, eax
jne 0x406069
xor eax, eax
jmp 0x40606b
mov al, 1
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40608b
lea eax, [ebp - 8]
call fcn.00403218
ret

Function at 0x4060d0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
xor edx, edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x406131
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x10
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x19]
push eax
call sub.kernel32.dll_GetComputerNameA
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x19]
mov ecx, 0x11
call fcn.00403384
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 4]
call fcn.00404998
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406138
lea eax, [ebp - 0x20]
call fcn.00403218
ret

Function at 0x40613c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
xor edx, edx
mov dword [ebp - 0x110], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4061bc
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 0x109]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
lea eax, [ebp - 0x110]
lea edx, [ebp - 0x109]
mov ecx, 0x105
call fcn.00403384
lea eax, [ebp - 0x110]
mov edx, 0x4061d0
call fcn.004033a4
mov eax, dword [ebp - 0x110]
mov edx, dword [ebp - 4]
push ebp
cld
Function at 0x406338
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.0040358c
mov eax, dword [ebp - 0xc]
call fcn.0040358c
xor eax, eax
push ebp
push 0x4063f0
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x10], eax
push 0x41e6b8
push 1
push 0
mov eax, dword [ebp - 8]
call fcn.0040359c
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jns 0x40638e
call fcn.00402a00
mov dword [0x41e6bc], eax
mov dword [ebp - 0x14], 4
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
push eax
push 0
mov eax, dword [ebp - 0xc]
call fcn.0040359c
push eax
mov eax, dword [0x41e6b8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jns 0x4063c5
call fcn.00402a00
mov dword [0x41e6bc], eax
mov eax, dword [0x41e6b8]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4063f7
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.0040323c
ret

Function at 0x406400
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.0040358c
mov eax, dword [ebp - 0xc]
call fcn.0040358c
xor eax, eax
push ebp
push 0x4064de
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x41e6b8
push 1
push 0
mov eax, dword [ebp - 8]
call fcn.0040359c
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jns 0x406451
call fcn.00402a00
mov dword [0x41e6bc], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
call fcn.0040367c
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push eax
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.0040359c
push eax
mov eax, dword [0x41e6b8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jns 0x40648c
call fcn.00402a00
mov dword [0x41e6bc], eax
cmp dword [0x41e6bc], 0
jne 0x4064b0
mov eax, dword [ebp + 8]
mov eax, dword [eax]
call fcn.0040359c
mov edx, eax
mov eax, dword [ebp + 8]
call fcn.00403348
jmp 0x4064b8
mov eax, dword [ebp + 8]
call fcn.00403218
mov eax, dword [0x41e6b8]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4064e5
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.0040323c
ret