joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4057e0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x416aab
mov eax, dword fs:[0]
push eax
sub esp, 0x818
mov eax, dword [0x41e028]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x81c], ebx
mov dword [ebp - 0x820], ebx
mov dword [ebp - 0x824], ebx
push 0x2710
lea eax, [ebp - 0x814]
push eax
lea ecx, [ebp - 0x818]
push ecx
lea edx, [ebp - 0x824]
push edx
mov dword [ebp - 4], ebx
push edi
mov dword [ebp - 0x818], ebx
mov dword [ebp - 0x814], ebx
call fcn.00406640
test eax, eax
jne 0x4058ed
mov eax, dword [ebp - 0x818]
cmp eax, ebx
je 0x4058ed
cmp dword [ebp - 0x814], ebx
jne 0x4058ed
mov esi, dword [ebp - 0x824]
mov word [esi + eax - 2], bx
cmp eax, 2
jne 0x405886
push edi
call fcn.00405a80
jmp 0x4058dc
push 0x7fe
lea ecx, [ebp - 0x80e]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x810], ax
call fcn.0040e850
add esp, 0xc
push 0x400
lea edx, [ebp - 0x810]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x4058d0
push esi
lea eax, [ebp - 0x810]
push 0x400
push eax
call fcn.0040a937
add esp, 0xc
push edi
lea ecx, [ebp - 0x810]
call fcn.00405b70
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x405907
push esi
jmp 0x4058ff
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x824]
cmp eax, ebx
je 0x405907
push eax
call fcn.00409587
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040942c
mov esp, ebp
pop ebp
ret
Function at 0x405930
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x444
mov eax, dword [0x41e028]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [esi], eax
push edi
mov dword [esi + 4], eax
movzx ecx, bx
mov dword [esi + 8], eax
push ecx
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
push str._c:_
mov dword [esi + 0x14], eax
lea edx, [ebp - 0x18]
push 0xa
mov dword [esi + 0x18], eax
push edx
xor edi, edi
mov dword [esi + 0x1c], eax
mov word [ebp - 0x18], ax
mov dword [ebp - 0x16], eax
mov dword [ebp - 0x12], eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0xa], eax
mov word [ebp - 6], ax
call fcn.00409c4d
add esp, 0x10
lea eax, [ebp - 0x18]
push eax
mov byte [esi], bl
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [esi + 4], eax
cmp eax, 2
je 0x405a70
cmp eax, 5
je 0x405a70
push 0x100
lea ecx, [ebp - 0x418]
push ecx
lea edx, [ebp - 0x424]
push edx
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x41c]
push ecx
push 0x100
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x41c], edi
mov dword [ebp - 0x420], 0x100
mov dword [ebp - 0x424], edi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x405a07
mov ecx, dword [ebp - 0x41c]
mov dword [esi + 8], ecx
jmp 0x405a0e
mov dword [esi + 8], 0xffffffff
lea edx, [ebp - 0x430]
push edx
lea eax, [ebp - 0x438]
push eax
lea ecx, [ebp - 0x440]
push ecx
lea edx, [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x405a64
mov eax, dword [ebp - 0x438]
mov ecx, dword [ebp - 0x434]
mov dword [esi + 0x10], eax
sub eax, dword [ebp - 0x430]
mov dword [esi + 0x14], ecx
sbb ecx, dword [ebp - 0x42c]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040942c
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0040942c
mov esp, ebp
pop ebp
ret
Function at 0x405a80
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4169a8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x41e028]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
xor ebx, ebx
xor edi, edi
mov byte [ebp - 0x44], bl
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0x405b2c
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov edx, 1
shl edx, cl
test eax, edx
je 0x405b1f
lea ebx, [ecx + 0x41]
lea esi, [ebp - 0x44]
call fcn.00405930
lea ebx, [edi + 0x20]
mov eax, ebx
lea ecx, [ebp - 0x24]
call fcn.00401850
test eax, eax
je 0x405b2a
add edi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x18]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x14]
mov edi, ebx
xor ebx, ebx
inc ecx
mov dword [ebp - 0x14], ecx
cmp ecx, 0x1a
jl 0x405ae4
jmp 0x405b2c
xor ebx, ebx
mov esi, dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
push ebx
push esi
push ecx
mov eax, edi
call fcn.00406860
mov dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x405b50
push esi
call fcn.00409587
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406950
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x420768
mov dword [eax], 0
mov dword [ebx], 0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x4207bc], 0
jne 0x406a5a
jmp 0x406990
push 0x420784
xor edi, edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x42079c]
cmp dword [esi + 0x10], edi
je 0x406a0a
lea eax, [ebp - 0x10]
mov ecx, esi
call fcn.00402910
mov ecx, dword [eax]
test ecx, ecx
jne 0x4069bc
xor edx, edx
jmp 0x4069be
mov edx, dword [ecx]
mov ecx, dword [eax + 8]
mov edi, dword [edx + 8]
mov eax, ecx
shr eax, 1
and ecx, 1
cmp edi, eax
ja 0x4069d1
sub eax, edi
cmp dword [esi + 0x10], 0
mov edx, dword [edx + 4]
mov eax, dword [edx + eax*4]
mov edi, dword [eax + ecx*8]
lea eax, [eax + ecx*8]
mov eax, dword [eax + 4]
mov dword [ebx], eax
mov ecx, esi
je 0x406a0a
inc dword [esi + 0xc]
lea eax, [esi + 0xc]
mov esi, dword [ecx + 8]
add esi, esi
cmp esi, dword [eax]
ja 0x4069ff
mov dword [eax], 0
dec dword [ecx + 0x10]
jne 0x406a0a
mov dword [eax], 0
push 0x420784
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp + 8]
push 0x420768
mov dword [esi], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esi], 0
jne 0x406a74
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 4]
cmp eax, 0x2710
ja 0x406a7e
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x420768
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x4207bc], 0
je 0x406990
push 0x420768
mov esi, 2
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x407c90
Capabilities:
Check mutex on windows

Disassembly:
push str.RRRRRREvent
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov dword [0x420840], eax
test eax, eax
jne 0x407cbf
push str.RRRRRREvent
push eax
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x420840], eax
push str.DDDDDDDDDMutex
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov dword [0x420844], eax
test eax, eax
jne 0x407cee
push str.DDDDDDDDDMutex
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x420844], eax
ret
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
ret
Function at 0x407d00
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1268
call fcn.00414550
mov eax, dword [0x41e028]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
xor ecx, ecx
push 0x7fe
push ecx
lea edx, [ebp - 0x80a]
push edx
mov dword [ebp - 0x1260], eax
mov word [ebp - 0x80c], cx
call fcn.0040e850
add esp, 0xc
xor eax, eax
push 0x7fe
push eax
lea ecx, [ebp - 0x100a]
push ecx
mov word [ebp - 0x100c], ax
call fcn.0040e850
add esp, 0xc
push esi
lea edx, [ebp - 0x80c]
push 0x400
push edx
call fcn.0040a937
lea eax, [ebp - 0x80c]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407d83
sub eax, edx
sar eax, 1
cmp word [ebp + eax*2 - 0x80e], 0x5c
je 0x407db6
push 0x41bcb8
lea eax, [ebp - 0x80c]
push 0x400
push eax
call fcn.00409b87
add esp, 0xc
lea ecx, [ebp - 0x80c]
push ecx
push str._s.
lea edx, [ebp - 0x100c]
push 0x400
push edx
call fcn.00409c4d
add esp, 0x10
lea eax, [ebp - 0x125c]
push eax
lea ecx, [ebp - 0x100c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x1264], eax
cmp eax, 0xffffffff
jne 0x407e08
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040942c
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, 1
test byte [ebp - 0x125c], 0x10
je 0x407e68
cmp word [ebp - 0x1230], 0x2e
je 0x407ea4
lea edx, [ebp - 0x1230]
push edx
lea eax, [ebp - 0x80c]
push eax
push str._s_s_
lea ecx, [ebp - 0x100c]
push 0x400
push ecx
call fcn.00409c4d
mov edx, dword [ebp - 0x1260]
add esp, 0x14
push edx
lea eax, [ebp - 0x100c]
push edi
push eax
call fcn.00407d00
add esp, 0xc
mov esi, eax
jmp 0x407ea4
lea ecx, [ebp - 0x1230]
push ecx
lea edx, [ebp - 0x80c]
push edx
push str._s_s
lea eax, [ebp - 0x100c]
push 0x400
push eax
call fcn.00409c4d
add esp, 0x14
lea ecx, [ebp - 0x100c]
push ecx
call ebx
mov esi, eax
test esi, esi
je 0x407ea4
test edi, edi
je 0x407ea4
inc dword [edi]
mov eax, dword [ebp - 0x1264]
lea edx, [ebp - 0x125c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x407ec4
test esi, esi
jne 0x407e13
mov ecx, dword [ebp - 0x1264]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
test esi, esi
je 0x407ef4
lea edx, [ebp - 0x80c]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
test esi, esi
je 0x407ef4
mov eax, dword [ebp - 0x1260]
test eax, eax
je 0x407ef4
inc dword [eax]
mov ecx, dword [ebp - 8]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040942c
mov esp, ebp
pop ebp
ret
Function at 0x408750
Capabilities:
Check if file exists
Delete file
Get file attributes
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x416cbb
mov eax, dword fs:[0]
push eax
sub esp, 0x828
mov eax, dword [0x41e028]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 0x828], esi
mov dword [ebp - 0x82c], esi
mov dword [ebp - 0x830], esi
mov edx, dword [ebp + 8]
push 0x2710
push esi
lea eax, [ebp - 0x81c]
push eax
lea ecx, [ebp - 0x830]
push ecx
mov dword [ebp - 4], esi
push edx
mov dword [ebp - 0x81c], esi
call fcn.00406640
test eax, eax
je 0x4087d7
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x830]
cmp eax, esi
je 0x408915
push eax
jmp 0x40890d
mov eax, dword [ebp - 0x81c]
cmp eax, 1
jb 0x4087bc
mov ebx, dword [ebp - 0x830]
lea edi, [ebx + eax]
mov word [edi - 2], 0
mov dword [ebp - 0x818], esi
mov dword [ebp - 0x824], esi
mov esi, ebx
cmp ebx, edi
jae 0x4088bd
xor eax, eax
push 0x7fe
push eax
lea ecx, [ebp - 0x812]
push ecx
mov word [ebp - 0x814], ax
call fcn.0040e850
add esp, 0xc
push 0x400
lea edx, [ebp - 0x814]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x408851
push esi
lea eax, [ebp - 0x814]
push 0x400
push eax
call fcn.0040a937
add esp, 0xc
lea ecx, [ebp - 0x814]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40889d
test al, 0x10
je 0x408886
lea edx, [ebp - 0x824]
push edx
lea eax, [ebp - 0x818]
push eax
lea ecx, [ebp - 0x814]
push ecx
call fcn.00407d00
add esp, 0xc
jmp 0x40889d
lea edx, [ebp - 0x814]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40889d
inc dword [ebp - 0x818]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4088a2
sub eax, edx
sar eax, 1
lea esi, [esi + eax*2 + 2]
cmp esi, edi
jb 0x408807
mov ecx, dword [ebp - 0x824]
xor eax, eax
mov dword [ebp - 0x81f], eax
mov word [ebp - 0x81b], ax
mov byte [ebp - 0x819], al
mov eax, dword [ebp - 0x818]
push 0
mov dword [ebp - 0x820], eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x820]
push edx
push eax
mov eax, 8
mov dword [ebp - 0x81c], ecx
call fcn.00406860
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x408915
push ebx
call fcn.00409587
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040942c
mov esp, ebp
pop ebp
ret
Function at 0x408b70
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x416bfb
mov eax, dword fs:[0]
push eax
sub esp, 0x818
mov eax, dword [0x41e028]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x81c], ebx
mov dword [ebp - 0x820], ebx
mov dword [ebp - 0x824], ebx
mov edx, dword [ebp + 8]
push 0x2710
push ebx
lea eax, [ebp - 0x818]
push eax
lea ecx, [ebp - 0x824]
push ecx
mov dword [ebp - 4], ebx
push edx
mov dword [ebp - 0x818], ebx
call fcn.00406640
test eax, eax
je 0x408bf7
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x824]
cmp eax, ebx
je 0x408ca4
push eax
jmp 0x408c9c
cmp dword [ebp - 0x818], 0x1c
jb 0x408bdc
push 0x7fe
lea ecx, [ebp - 0x812]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x814], ax
call fcn.0040e850
mov esi, dword [ebp - 0x824]
add esp, 0xc
push 0x400
lea edx, [ebp - 0x814]
push edx
lea edi, [esi + 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x408c53
push edi
lea eax, [ebp - 0x814]
push 0x400
push eax
call fcn.0040a937
add esp, 0xc
mov ecx, dword [esi + 0x14]
push ecx
xor ecx, ecx
mov eax, 0xff
cmp word [esi], ax
push ebx
sete cl
push ebx
lea edx, [ebp - 0x814]
push edx
dec ecx
and ecx, esi
push ecx
push ebx
call dword [0x420744]
push ebx
mov dword [ebp - 0x818], eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x818]
push edx
push eax
mov eax, 4
call fcn.00406860
mov dword [ebp - 4], 0xffffffff
push esi
call fcn.00409587
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040942c
mov esp, ebp
pop ebp
ret
Function at 0x408cc0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x416bc6
mov eax, dword fs:[0]
push eax
sub esp, 0x828
mov eax, dword [0x41e028]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x82c], ebx
mov dword [ebp - 0x830], ebx
mov dword [ebp - 0x834], ebx
mov edx, dword [ebp + 8]
push 0x2710
push ebx
lea eax, [ebp - 0x828]
push eax
lea ecx, [ebp - 0x834]
push ecx
mov dword [ebp - 4], ebx
push edx
mov dword [ebp - 0x828], ebx
call fcn.00406640
test eax, eax
je 0x408d46
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x834]
cmp eax, ebx
je 0x408e6e
jmp 0x408e65
cmp dword [ebp - 0x828], 6
jbe 0x408d2c
mov esi, dword [ebp - 0x834]
mov edi, dword [esi]
push 0x7fe
lea ecx, [ebp - 0x812]
xor eax, eax
push ebx
push ecx
add esi, 4
mov word [ebp - 0x814], ax
call fcn.0040e850
add esp, 0xc
push 0x400
lea edx, [ebp - 0x814]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x408da4
push esi
lea eax, [ebp - 0x814]
push 0x400
push eax
call fcn.0040a937
add esp, 0xc
mov dword [ebp - 0x81c], ebx
mov dword [ebp - 0x820], ebx
mov dword [ebp - 0x824], ebx
lea ecx, [ebp - 0x818]
push ecx
lea edx, [ebp - 0x824]
push edx
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x814]
push eax
mov byte [ebp - 4], 1
push edi
mov dword [ebp - 0x818], ebx
call fcn.00408e90
mov esi, eax
mov eax, dword [ebp - 0x818]
add esp, 0x14
add eax, 5
lea ecx, [ebp - 0x824]
call fcn.00401850
test eax, eax
je 0x408e22
mov ecx, dword [ebp - 0x824]
mov edx, dword [ebp - 0x818]
mov byte [ecx + edx], bl
mov eax, dword [ebp - 0x818]
mov ecx, dword [ebp - 0x824]
mov dword [ecx + eax + 1], esi
add dword [ebp - 0x818], 5
mov edx, dword [ebp - 0x824]
mov eax, dword [ebp - 0x818]
push ebx
push edx
push edi
call fcn.00406860
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x824]
cmp eax, ebx
je 0x408e4c
push eax
call fcn.00409587
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x834]
mov dword [ebp - 0x820], ebx
mov dword [ebp - 0x824], ebx
push eax
call fcn.00409587
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040942c
mov esp, ebp
pop ebp
ret
Function at 0x409140
Capabilities:
Create thread
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
push 0x64
push 0x420300
push 0x67
push esi
call edi
push 0x64
push 0x420298
push 0x6d
push esi
call edi
mov eax, esi
call fcn.00409250
push 0
push esi
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push 0x420300
push 0x420298
push 0
mov dword [0x4202fc], esi
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov edi, eax
test edi, edi
je 0x40923f
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x6d
push esi
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
push 0
push 0
push 0
push 0x409120
push 0
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
call edi
test eax, eax
je 0x409234
push ebx
mov ebx, dword [sym.imp.USER32.dll_TranslateAcceleratorA]
lea esp, [esp]
mov edx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x1c]
push ecx
push esi
push edx
call ebx
test eax, eax
jne 0x409223
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [ebp - 0x1c]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0
push 0
push 0
lea edx, [ebp - 0x1c]
push edx
call edi
test eax, eax
jne 0x409200
pop ebx
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40942c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41e028]
jne 0x409436
repz ret
jmp fcn.0040b00f
Function at 0x414ac2
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41e028]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040da4b
and dword [ebp - 0x14], 0
cmp dword [0x42027c], 0
mov dword [ebp - 0x18], eax
jne 0x414b75
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x414c1d
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x414c1d
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x42027c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x420280], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x420284], eax
call edi
push eax
call esi
mov dword [0x42028c], eax
test eax, eax
je 0x414b75
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x420288], eax
mov eax, dword [0x420288]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x414bce
cmp dword [0x42028c], ecx
je 0x414bce
push eax
call esi
push dword [0x42028c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x414bce
test ebx, ebx
je 0x414bce
call edi
test eax, eax
je 0x414bc5
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x414bc5
test byte [ebp - 8], 1
jne 0x414bce
or dword [ebp + 0x10], 0x200000
jmp 0x414c01
mov eax, dword [0x420280]
cmp eax, dword [ebp - 0x18]
je 0x414c01
push eax
call esi
test eax, eax
je 0x414c01
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x414c01
mov eax, dword [0x420284]
cmp eax, dword [ebp - 0x18]
je 0x414c01
push eax
call esi
test eax, eax
je 0x414c01
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42027c]
call esi
test eax, eax
je 0x414c1d
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x414c1f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040942c
leave
ret
Function at 0x1000655b
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
mov edi, dword [ebp + 8]
lea esi, [edi - 0x6c]
mov ecx, esi
call fcn.1000bc07
test eax, eax
jne 0x1000657b
mov eax, 0x80070005
jmp 0x100065ec
push esi
mov ecx, esi
call fcn.1000bc07
test eax, eax
js 0x100065ea
cmp dword [edi + 0x44], 0
je 0x100065ea
and dword [ebp + 8], 0
lea eax, [ebp - 0x10]
mov esi, dword [sym.imp.USER32.dll_GetCursorPos]
push eax
call esi
lea eax, [ebp - 8]
push eax
call esi
push 0x14
pop ecx
call fcn.100099b8
test eax, eax
je 0x100065c7
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
and dword [eax + 8], 0
mov dword [eax], vtable.CNameShowContactCardJob.0
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edx
jmp 0x100065c9
xor eax, eax
push eax
lea ecx, [ebp + 8]
call fcn.1000bc07
mov esi, dword [ebp + 8]
test esi, esi
je 0x100065ea
mov ecx, dword [edi + 0x44]
push esi
call fcn.1000bc07
test eax, eax
mov eax, dword [esi]
push esi
call dword [eax + 8]
xor eax, eax
pop edi
pop esi
leave
ret 4

Function at 0x1000a002
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x10
mov eax, 0x1000bfd5
call fcn.1000be6e
mov ebx, ecx
lea eax, [ebp - 0x14]
xor ecx, ecx
push eax
push 0x20019
push ecx
push 0x1000e1a8
mov dword [ebp - 4], ecx
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push SysReAllocString
mov dword [ebp - 0x14], ecx
call edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x1000a0aa
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
and dword [ebp - 0x10], 0
push eax
push 0x20019
push 0
push ebx
push dword [ebp - 0x14]
call edi
push 4
pop ebx
test eax, eax
jne 0x1000a09c
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push str.InsecureQI
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000a09c
cmp dword [ebp - 0x18], ebx
jne 0x1000a09c
mov edi, dword [ebp - 0x1c]
cmp edi, 3
ja 0x1000a09c
mov byte [ebp - 4], 2
cmp dword [ebp - 0x10], eax
je 0x1000a0ac
push dword [ebp - 0x10]
call esi
jmp 0x1000a0ac
mov byte [ebp - 4], bl
cmp dword [ebp - 0x10], 0
je 0x1000a0aa
push dword [ebp - 0x10]
call esi
xor edi, edi
mov dword [ebp - 4], 5
cmp dword [ebp - 0x14], 0
je 0x1000a0be
push dword [ebp - 0x14]
call esi
mov eax, edi
call fcn.1000be4c
ret