joyce8/EMBER2024-capa huggingface dataset:
Function at 0x459308
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
call fcn.00458e19
cmp dword [ebp - 0x14], 0
pop ecx
pop ecx
jne 0x459355
push str.ERROR:_cannot_create_XML_for_command
lea ecx, [ebp - 4]
call fcn.004064a9
push dword [ebp - 4]
call fcn.0043d98d
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00459485
add esp, 0x18
lea ecx, [ebp - 4]
jmp 0x4593bf
push dword [ebp + 0xc]
call fcn.004594e7
mov edi, eax
pop ecx
cmp edi, 0xffffffff
jne 0x4593d5
mov eax, dword [0x4a9450]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [ebp - 0xc]
push esi
push eax
call fcn.00414afb
pop ecx
pop ecx
push dword [eax]
lea eax, [ebp - 4]
push esi
push str.ERROR:_code__d___s
push eax
call fcn.004069e4
add esp, 0x10
lea ecx, [ebp - 0xc]
call fcn.00401085
push dword [ebp - 4]
call fcn.0043d98d
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00459485
add esp, 0x18
lea ecx, [ebp - 4]
call fcn.00401085
push 1
lea ecx, [ebp - 0x1c]
call fcn.00409ac9
xor eax, eax
jmp 0x459481
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
and dword [ebp - 8], 0
mov dword [ebp - 0xc], ecx
test eax, eax
jne 0x4593eb
mov eax, 0x4a17b4
lea edx, [ebp - 8]
push 0
push edx
push ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x459414
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 8]
jne 0x459414
push 1
pop edi
jmp 0x459475
mov eax, dword [0x4a9450]
xor edi, edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [ebp - 0xc]
push esi
push eax
call fcn.00414afb
pop ecx
pop ecx
push dword [eax]
lea eax, [ebp - 4]
push esi
push str.ERROR:_code__d___s
push eax
call fcn.004069e4
add esp, 0x10
lea ecx, [ebp - 0xc]
call fcn.00401085
push dword [ebp - 4]
call fcn.0043d98d
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00459485
add esp, 0x18
lea ecx, [ebp - 4]
call fcn.00401085
push 1
lea ecx, [ebp - 0x1c]
call fcn.00409ac9
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x4594e7
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.00411bc2
test al, al
pop ecx
je 0x45951f
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
and ecx, 1
cmp cl, 1
jne 0x459518
xor eax, 1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
push esi
call fcn.00411bc2
pop ecx
lea edi, [ebp - 8]
mov cl, al
xor eax, eax
test cl, cl
setne al
and dword [ebp - 0xc], 0
inc eax
mov dword [ebp + 8], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
test cl, cl
pop edi
je 0x459548
xor eax, eax
jmp 0x459552
lea eax, [ebp - 0xc]
push eax
call fcn.0044f684
pop ecx
push 0
push 0
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
neg eax
sbb eax, eax
and eax, ecx
push eax
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
pop esi
leave
ret

Function at 0x459d1f
Capabilities:
Timestomp file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
cmp dword [esi + 0x74], ebx
je 0x459d4e
push ebx
push ebx
push 1
push ebx
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
jne 0x459d55
xor eax, eax
jmp 0x459e6c
cmp dword [esi + 0x6c], 1
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
jne 0x459d77
lea ecx, [ebp - 0x10]
push ebx
push ecx
lea ecx, [ebp - 4]
push 2
push ecx
push eax
mov dword [ebp - 4], 0xfeff
call edi
lea eax, [ebp - 0xc]
push ebx
push eax
mov dword [ebp - 0xc], ebx
push dword [esi + 0x74]
push dword [esi + 0x70]
push dword [ebp + 0xc]
call edi
mov edi, eax
cmp edi, ebx
je 0x459dcb
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push 8
lea eax, [ebp - 0x14]
push dword [ebp + 0x10]
push eax
call fcn.00490dc0
add esp, 0xc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
je 0x459e69
cmp byte [esi + 0x30], bl
je 0x459dff
push 1
push dword [ebp + 8]
call fcn.0045a6b1
mov eax, dword [esi + 0x14]
pop ecx
pop ecx
cmp dword [eax - 8], ebx
je 0x459dff
push 1
push eax
call fcn.0045a6b1
pop ecx
pop ecx
mov ecx, esi
call fcn.004140ae
test al, al
je 0x459e69
push dword [ebp + 8]
lea eax, [ebp + 8]
push esi
push eax
call fcn.0045a9e4
push dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call fcn.00410f9c
add esp, 0x14
lea ecx, [ebp + 8]
push eax
call fcn.004065e8
lea ecx, [ebp + 0xc]
call fcn.00401085
mov eax, dword [ebp + 8]
cmp dword [eax - 8], ebx
je 0x459e61
add esi, 0x14
lea ecx, [ebp + 0xc]
push esi
call fcn.00406383
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.0045ad2b
pop ecx
pop ecx
lea ecx, [ebp + 0xc]
call fcn.00401085
lea ecx, [ebp + 8]
call fcn.00401085
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45a5b1
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 4]
push eax
call fcn.00459a0b
pop ecx
lea eax, [ebp - 4]
pop ecx
push str..info
push 0x4aec7c
push eax
lea eax, [ebp + 8]
push eax
call fcn.004066f3
push eax
lea eax, [ebp - 8]
push eax
call fcn.004066f3
lea ecx, [ebp + 8]
call fcn.00401085
and dword [ebp - 0x258], 0
mov ecx, 0x93
xor eax, eax
lea edi, [ebp - 0x254]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x45a68f
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 4]
test eax, eax
je 0x45a637
mov ecx, dword [esi + 8]
sub ecx, eax
test ecx, 0xfffffffc
jne 0x45a640
push 0x64
mov ecx, esi
call fcn.00436b5b
mov eax, dword [ebp - 0x258]
and eax, 0x10
test al, al
jne 0x45a66f
lea eax, [ebp - 0x22c]
lea ecx, [ebp + 8]
push eax
call fcn.004064a9
lea eax, [ebp + 8]
mov ecx, esi
push eax
call fcn.004099ea
lea ecx, [ebp + 8]
call fcn.00401085
lea eax, [ebp - 0x258]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x45a640
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esi + 4]
test eax, eax
jne 0x45a693
xor esi, esi
jmp 0x45a69b
mov esi, dword [esi + 8]
sub esi, eax
sar esi, 2
lea ecx, [ebp - 8]
call fcn.00401085
lea ecx, [ebp - 4]
call fcn.00401085
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x45a6b1
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45a6c7
mov ecx, eax
or ecx, 1
jmp 0x45a6ca
push 1
pop ecx
test cl, 1
je 0x45a6d2
xor ecx, 1
cmp eax, ecx
jne 0x45a6da
push 1
pop eax
ret
push ecx
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
ret
Function at 0x45a975
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
call edi
mov ebp, eax
and eax, 1
xor bl, bl
cmp al, 1
jne 0x45a9a8
mov eax, ebp
xor eax, 1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call edi
mov ebx, eax
not bl
and bl, 1
xor eax, eax
cmp byte [esp + 0x18], al
setne al
push eax
push str.Protected
push str.Files
push esi
call fcn.004338cb
add esp, 0x10
mov byte [esp + 0x18], al
test bl, bl
je 0x45a9d5
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
cmp byte [esp + 0x18], 1
pop edi
pop esi
pop ebp
pop ebx
sete al
ret

Function at 0x45a9e4
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ecx, esi
call fcn.004140ae
test al, al
jne 0x45aa0b
mov ecx, dword [ebp + 8]
push 0x4bf5f0
call fcn.004064a9
jmp 0x45aa98
push dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
call fcn.0045aaa0
pop ecx
xor ebx, ebx
pop ecx
push ebx
push ebx
push 2
push ebx
push 1
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp + 0x10], eax
je 0x45aa83
mov edi, dword [esi + 8]
mov esi, dword [esi + 4]
cmp esi, ebx
mov dword [ebp - 4], ebx
jne 0x45aa4a
mov esi, 0x4a17b4
lea ecx, [ebp - 4]
push ebx
push ecx
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp + 0x10]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, ebx
je 0x45aa7a
cmp edi, dword [ebp - 4]
jne 0x45aa7a
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call fcn.00406383
jmp 0x45aa90
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp + 8]
push 0x4bf5f0
call fcn.004064a9
lea ecx, [ebp + 0xc]
call fcn.00401085
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45ab71
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
xor esi, esi
push edi
push esi
push esi
push 3
push esi
push 1
push 0x80000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x45abc2
mov edi, dword [ebp + 8]
mov al, byte [ebp + 0xb]
push esi
mov ecx, edi
mov byte [edi], al
call fcn.00409ac9
mov esi, 0x4bf60c
push esi
call fcn.004916e0
pop ecx
push eax
push esi
mov ecx, edi
call fcn.00409b5b
jmp 0x45acab
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, esi
mov dword [ebp + 0xc], eax
jne 0x45abdc
mov edi, dword [ebp + 8]
mov al, byte [ebp + 0xb]
jmp 0x45ac85
inc eax
push eax
call fcn.00490944
mov edi, eax
pop ecx
cmp edi, esi
jne 0x45abf5
mov edi, dword [ebp + 8]
mov al, byte [ebp + 0xb]
jmp 0x45ac85
mov eax, dword [ebp + 0xc]
inc eax
push eax
push esi
push edi
call fcn.00491510
add esp, 0xc
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push esi
push eax
push dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45ac78
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 4]
jne 0x45ac78
mov al, byte [ebp + 0xb]
push esi
lea ecx, [ebp - 0x14]
mov byte [ebp - 0x14], al
call fcn.00409ac9
push edi
call fcn.004916e0
pop ecx
push eax
push edi
lea ecx, [ebp - 0x14]
call fcn.00409b5b
push edi
call fcn.0048e18e
mov edi, dword [ebp + 8]
mov al, byte [ebp - 0x14]
pop ecx
push esi
mov ecx, edi
mov byte [edi], al
call fcn.00409ac9
push dword [0x4a17b8]
lea eax, [ebp - 0x14]
mov ecx, edi
push esi
push eax
call fcn.004099fb
push 1
lea ecx, [ebp - 0x14]
call fcn.00409ac9
jmp 0x45aca4
push edi
call fcn.0048e18e
mov edi, dword [ebp + 8]
mov al, byte [ebp + 0xb]
pop ecx
push esi
mov ecx, edi
mov byte [edi], al
call fcn.00409ac9
mov esi, 0x4bf60c
push esi
call fcn.004916e0
pop ecx
push eax
push esi
mov ecx, edi
call fcn.00409b5b
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x45bb92
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 8]
push esi
push eax
push 4
push dword [ebp + 8]
push 0x45bbd1
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x45bbce
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
pop esi
pop ebp
ret
Function at 0x45e2ab
Capabilities:
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ecx, esi
push dword [esi + 8]
push dword [esi + 4]
call fcn.0045fb7d
push 0x3e8
mov ecx, esi
call fcn.0045f904
push dword [ebp + 8]
lea ecx, [ebp + 0xc]
call fcn.004064a9
lea eax, [ebp + 8]
push 1
push eax
lea ecx, [ebp + 0xc]
call fcn.004068d7
mov eax, dword [eax]
mov edi, 0x4a9890
push edi
push eax
call fcn.00490952
pop ecx
pop ecx
test eax, eax
lea ecx, [ebp + 8]
setne bl
call fcn.00401085
test bl, bl
je 0x45e324
mov eax, edi
test eax, eax
je 0x45e31a
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
push eax
lea ecx, [ebp + 0xc]
call fcn.0040678b
lea eax, [ebp + 0xc]
push 0x4ac3ac
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.004066f3
and dword [ebp - 0x268], 0
mov ecx, 0x93
xor eax, eax
lea edi, [ebp - 0x264]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x268]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x45e4aa
lea eax, [ebp - 0x23c]
push 0x4ab9fc
push eax
call fcn.00490952
mov ebx, eax
pop ecx
neg ebx
sbb bl, bl
pop ecx
inc bl
je 0x45e388
mov al, 1
jmp 0x45e3a1
lea eax, [ebp - 0x23c]
push 0x4b612c
push eax
call fcn.00490952
neg eax
pop ecx
sbb al, al
pop ecx
inc al
test bl, bl
jne 0x45e486
test al, al
jne 0x45e486
mov eax, dword [0x4a9450]
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004066f3
push eax
lea ecx, [ebp - 8]
call fcn.004065e8
lea ecx, [ebp - 0x14]
call fcn.00401085
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0x10
sub al, 0x10
neg al
sbb eax, eax
inc eax
mov dword [ebp - 4], eax
je 0x45e40a
lea eax, [ebp - 8]
mov ecx, esi
push eax
push dword [esi + 8]
call fcn.0045fb54
jmp 0x45e47e
push dword [ebp - 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00410f9c
lea eax, [ebp - 0x18]
push eax
call fcn.0045e4cd
mov eax, dword [eax]
push 0
push eax
push dword [ebp - 0x10]
call fcn.00488d1a
add esp, 0x18
lea ecx, [ebp - 0x18]
test eax, eax
setne bl
call fcn.00401085
test bl, bl
je 0x45e476
push dword [ebp - 8]
lea eax, [ebp + 8]
push eax
call fcn.00410f68
push str..twinkiepaste
push dword [ebp + 8]
call fcn.00491db7
add esp, 0x10
test eax, eax
jne 0x45e46e
lea eax, [ebp - 8]
mov ecx, esi
push eax
push dword [esi + 8]
call fcn.0045fb54
lea ecx, [ebp + 8]
call fcn.00401085
lea ecx, [ebp - 0x10]
call fcn.00401085
lea ecx, [ebp - 8]
call fcn.00401085
lea eax, [ebp - 0x268]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x45e367
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esi + 4]
test eax, eax
jne 0x45e4ae
xor esi, esi
jmp 0x45e4b6
mov esi, dword [esi + 8]
sub esi, eax
sar esi, 3
lea ecx, [ebp - 0xc]
call fcn.00401085
lea ecx, [ebp + 0xc]
call fcn.00401085
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45e821
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
cmp dword [esi + 0x940], 0
je 0x45e893
lea eax, [esi + 0x954]
lea ecx, [ebp - 4]
push eax
call fcn.00406383
push edi
lea ecx, [ebp + 8]
call fcn.004064a9
mov eax, dword [ebp - 4]
cmp dword [eax - 8], 0
je 0x45e883
mov ecx, dword [ebp + 8]
cmp dword [ecx - 8], 0
je 0x45e883
push eax
call fcn.00411c30
test al, al
pop ecx
je 0x45e883
push dword [ebp + 8]
call fcn.00411c30
test al, al
pop ecx
jne 0x45e883
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea ecx, [ebp + 8]
call fcn.00401085
lea ecx, [ebp - 4]
call fcn.00401085
add esi, 0x954
test edi, edi
jne 0x45e8a1
xor eax, eax
jmp 0x45e8a8
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
push eax
mov ecx, esi
call fcn.00406586
pop edi
pop esi
leave
ret 4

Function at 0x45ea81
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x96c
push ebx
push esi
push edi
mov ebx, ecx
push dword [ebp + 8]
lea ecx, [ebp - 8]
call fcn.004064a9
lea ecx, [ebp - 0x96c]
call fcn.0045e04b
mov edi, dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
push edi
call fcn.004064a9
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 4]
push eax
call fcn.0045ebe5
pop ecx
pop ecx
lea ecx, [ebp + 0xc]
call fcn.00401085
push dword [ebp - 4]
call fcn.00411bc2
test al, al
pop ecx
je 0x45eae6
push dword [ebp - 4]
lea eax, [ebp - 0x96c]
push eax
call fcn.00459751
pop ecx
pop ecx
push 0x78
lea eax, [ebp - 0x958]
push dword [ebp + 8]
push eax
call fcn.00490987
add esp, 0xc
mov ecx, ebx
call fcn.0045e967
xor esi, esi
mov dword [ebp - 0x5c], eax
cmp edi, esi
jne 0x45eb0e
xor eax, eax
jmp 0x45eb15
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
push eax
lea ecx, [ebp - 0x18]
call fcn.00406586
mov eax, dword [ebp - 0x18]
cmp dword [eax - 8], esi
jne 0x45eb48
lea eax, [ebp - 8]
lea ecx, [ebp - 0x18]
push eax
call fcn.004065e8
lea eax, [ebp - 0x18]
push 0xffffffffffffffff
push eax
call fcn.0045f7fe
mov eax, dword [ebp - 0x18]
pop ecx
pop ecx
cmp dword [eax - 8], esi
je 0x45eb7a
push eax
call fcn.00411c30
test al, al
pop ecx
jne 0x45eb7a
xor eax, eax
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push eax
call fcn.0044f684
pop ecx
neg eax
sbb eax, eax
lea ecx, [ebp - 0x14]
and eax, ecx
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x10
call fcn.00490944
cmp eax, esi
pop ecx
je 0x45eb98
mov cl, byte [ebp + 0xb]
mov dword [eax + 4], esi
mov byte [eax], cl
mov dword [eax + 8], esi
mov dword [eax + 0xc], esi
mov edi, eax
jmp 0x45eb9a
xor edi, edi
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x96c]
push eax
mov dword [ebp - 0x2c], edi
call fcn.0045f861
mov eax, dword [ebp + 0x14]
cmp eax, esi
je 0x45ebb8
mov ecx, dword [ebp - 0x5c]
mov dword [eax], ecx
push esi
push esi
mov ecx, ebx
call fcn.0045f654
lea ecx, [ebp - 4]
call fcn.00401085
lea ecx, [ebp - 0x96c]
call fcn.0045e9bd
lea ecx, [ebp - 8]
call fcn.00401085
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x45f1b2
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
push esi
mov esi, ecx
push eax
push 0
push esi
push 0x45f155
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x45f1dd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
jmp 0x45f1eb
push dword [esi + 0x954]
push esi
call fcn.004592f3
pop ecx
pop ecx
pop esi
pop ecx
ret

Function at 0x461ab0
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x81c
push ebx
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push dword [esi + 0xc]
push str.SendMessageToTargetWindow
call fcn.00461cc2
mov ecx, esi
call fcn.00461a64
mov ebx, eax
cmp ebx, edi
jne 0x461ade
mov ebx, dword [esi + 0xc]
call fcn.0044a6a8
mov ecx, eax
call fcn.0045cb20
cmp ebx, edi
mov dword [ebp - 4], eax
jne 0x461b07
cmp eax, edi
je 0x461b00
push str.Cannot_sendmessage_to_target_window_CTWPDLLService::SendMessageToTargetWindow
call fcn.0043d497
pop ecx
push 1
jmp 0x461bf0
push dword [esi + 0xc]
mov ecx, esi
call fcn.00461f41
test eax, eax
je 0x461bf3
mov esi, dword [ebp + 0xc]
mov dword [esi + 0x20], ebx
mov dword [esi + 0x68], 1
call fcn.0040a08b
push eax
lea eax, [ebp - 0x18]
push ebx
push eax
call fcn.00484d56
add esp, 0xc
cmp dword [ebp - 0x10], edi
je 0x461b58
mov dword [esi + 0x68], 2
push dword [0x4a18ac]
lea eax, [ebp - 0x18]
lea ecx, [esi + 0x58]
push edi
push eax
call fcn.004199af
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], edi
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp + 8]
push eax
call fcn.00461ef0
mov edi, dword [eax]
push edi
call fcn.00491136
add esp, 0xc
mov ecx, esi
push eax
push edi
call fcn.00410b0a
lea ecx, [ebp + 8]
call fcn.00401085
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
and word [ebp - 0x81c], 0
mov dword [esi + 0x54], eax
mov ecx, 0x200
xor eax, eax
lea edi, [ebp - 0x81a]
push 0x400
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x81c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
lea eax, [ebp - 0x81c]
push eax
call fcn.00491136
pop ecx
push eax
lea eax, [ebp - 0x81c]
push eax
lea ecx, [esi + 0x10]
call fcn.00410b0a
push 1
lea ecx, [ebp - 0x18]
call fcn.00407805
push 2
pop eax
jmp 0x461c39
mov eax, dword [0x4a9450]
push edi
push dword [ebp + 8]
mov dword [ebp - 8], eax
push dword [esi + 0x10]
push ebx
call dword [sym.imp.USER32.dll_PostMessageW]
cmp dword [ebp - 4], edi
mov esi, eax
je 0x461c2a
push esi
lea eax, [ebp - 8]
push str.Sending_message_by_PostMessage_bRet_d
push eax
call fcn.004069e4
push dword [ebp - 8]
call fcn.0043d98d
add esp, 0x10
lea ecx, [ebp - 8]
call fcn.00401085
xor eax, eax
cmp esi, edi
sete al
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x462b32
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x462b9b
push 0xc
call fcn.00490944
xor edi, edi
pop ecx
cmp eax, edi
je 0x462b5f
mov dword [eax], esi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov esi, eax
jmp 0x462b61
xor esi, esi
cmp esi, edi
je 0x462b9b
mov eax, dword [ebp + 0xc]
mov dword [esi + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 8], eax
lea eax, [ebp + 8]
push eax
push edi
push esi
push 0x462ba1
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
je 0x462b94
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
jmp 0x462b9d
push esi
call fcn.0048e18e
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x462ca2
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x462cdb
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 8]
push 0x462cdf
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x462cdb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
leave
ret
xor eax, eax
leave
ret

Function at 0x465479
Capabilities:
Capture webcam image

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0x10]
push esi
mov esi, ecx
push edi
movsx ecx, ax
shr eax, 0x10
movsx eax, ax
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
mov dword [ebp - 8], ecx
push dword [esi + 0xe4]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0xe141
push 0x419
push dword [esi + 0xe4]
call edi
lea ecx, [ebp - 0x18]
push ecx
push eax
push 0x41d
push dword [esi + 0xe4]
call edi
push dword [ebp - 4]
lea eax, [ebp - 0x18]
push dword [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x4654ea
push 0x14
pop eax
jmp 0x4654f1
mov ecx, esi
call fcn.004294ac
pop edi
pop esi
leave
ret 0x10
Function at 0x466c8d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push esi
mov esi, ecx
push eax
call fcn.00466c27
mov eax, dword [ebp + 8]
xor ecx, ecx
sub eax, ecx
je 0x466cc0
dec eax
jne 0x466cc9
push 5
push ecx
push ecx
push dword [ebp - 4]
push str.open
push dword [esi + 4]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x466cc9
push dword [ebp - 4]
call fcn.0041956c
pop ecx
lea ecx, [ebp - 4]
call fcn.00401085
pop esi
leave
ret 4