joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402c60
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, ecx
push esi
mov ebx, edx
call edi
test eax, eax
jne 0x402ce1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x402ce1
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 5
je 0x402c9f
and eax, 0xfffffffa
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call edi
test eax, eax
jne 0x402ce1
test bl, 2
je 0x402cba
mov ecx, dword [ebp + 8]
push dword [ecx + 4]
push 4
push ecx
push esi
call fcn.004080e0
push esi
call edi
test eax, eax
jne 0x402ce1
test bl, 1
je 0x402cd8
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
neg eax
sbb eax, eax
and eax, 2
pop edi
pop esi
pop ebx
pop ebp
ret 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 4
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret 4

Function at 0x402cf0
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, ecx
push esi
mov ebx, edx
call edi
test eax, eax
jne 0x402d71
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x402d71
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 5
je 0x402d2f
and eax, 0xfffffffa
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call edi
test eax, eax
jne 0x402d71
test bl, 2
je 0x402d4a
mov ecx, dword [ebp + 8]
push dword [ecx + 4]
push 5
push ecx
push esi
call fcn.004080e0
push esi
call edi
test eax, eax
jne 0x402d71
test bl, 1
je 0x402d68
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
neg eax
sbb eax, eax
and eax, 2
pop edi
pop esi
pop ebx
pop ebp
ret 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 4
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret 4
Function at 0x404770
Capabilities:
Create process on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47cd60
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x80
mov eax, dword [0x4b4200]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edx, ecx
mov dword [ebp - 0x78], edx
mov ecx, dword [ebx + 8]
xorps xmm0, xmm0
xor eax, eax
mov dword [ebp - 0x74], ecx
mov word [ebp - 0x1e], ax
mov ax, word [ebx + 0xc]
movlpd qword [ebp - 0x5c], xmm0
movlpd qword [ebp - 0x54], xmm0
movlpd qword [ebp - 0x4c], xmm0
movlpd qword [ebp - 0x44], xmm0
movlpd qword [ebp - 0x3c], xmm0
movlpd qword [ebp - 0x2e], xmm0
movlpd qword [ebp - 0x26], xmm0
mov dword [ebp - 0x60], 0x44
mov dword [ebp - 0x34], 1
mov word [ebp - 0x30], ax
movups xmmword [ebp - 0x70], xmm0
test edx, edx
je 0x40481c
xor eax, eax
cmp word [edx], ax
je 0x40481c
nop
inc eax
cmp word [edx + eax*2], 0
jne 0x404810
test eax, eax
jne 0x404823
mov dword [ebp - 0x78], 0
test esi, esi
je 0x40483c
xor eax, eax
cmp word [esi], ax
je 0x40483c
nop
inc eax
cmp word [esi + eax*2], 0
jne 0x404830
test eax, eax
jne 0x40483e
xor esi, esi
test ecx, ecx
je 0x40485c
xor eax, eax
cmp word [ecx], ax
je 0x40485c
nop dword [eax]
inc eax
cmp word [ecx + eax*2], 0
jne 0x404850
test eax, eax
jne 0x404863
mov dword [ebp - 0x74], 0
xorps xmm0, xmm0
mov dword [ebp - 0x80], 0
movq qword [ebp - 0x88], xmm0
xor edi, edi
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x88], edi
mov byte [ebp - 0x80], 1
mov dword [ebp - 4], edi
test esi, esi
je 0x4048fb
push 0xfa02
mov dword [ebp - 0x84], edi
call fcn.0046a3df
mov edi, eax
add esp, 4
xor eax, eax
mov dword [ebp - 0x7c], edi
xor ecx, ecx
mov word [edi + 0xfa00], ax
cmp word [esi], ax
je 0x4048c7
nop word [eax + eax]
inc ecx
cmp word [esi + ecx*2], ax
jne 0x4048c0
cmp ecx, 0x7d00
jle 0x4048d6
mov ecx, 0x7d00
jmp 0x4048da
test ecx, ecx
jle 0x4048f3
mov edx, edi
sub esi, edi
mov edi, ecx
mov ax, word [edx + esi]
lea edx, [edx + 2]
mov word [edx - 2], ax
sub edi, 1
jne 0x4048e0
mov edi, dword [ebp - 0x7c]
xor eax, eax
mov esi, edi
mov word [edi + ecx*2], ax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x74]
push 0
push 0
push 0
push 0
push 0
push esi
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x404922
xor esi, esi
jmp 0x40492e
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x70]
test edi, edi
je 0x40493b
push edi
call fcn.00469dd3
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00469dc5
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc
Function at 0x4049a0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x4b4200]
xor eax, ebp
mov dword [ebp - 4], eax
xorps xmm0, xmm0
mov dword [ebp - 0x38], 0
lea eax, [ebp - 0x40]
movlpd qword [ebp - 0x20], xmm0
push eax
movlpd qword [ebp - 0x18], xmm0
movlpd qword [ebp - 0x10], xmm0
mov dword [ebp - 8], 0
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x40
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x404a1b
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00469dc5
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 8]
test eax, eax
je 0x404a48
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessId]
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00469dc5
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.00469dc5
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4053d0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x264
mov eax, dword [0x4b4200]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
push esi
push edi
push 0
push 0
push 3
push 0
push 7
mov edi, ecx
mov dword [esp + 0x24], 0
push 0
push edi
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
jne 0x40541d
or esi, 0xffffffff
jmp 0x405422
cmp esi, 0xffffffff
jne 0x40544e
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, eax
cmp ecx, 0xffffffff
je 0x40545a
mov eax, dword [esp + 0x34]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x38]
push ecx
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x40545a
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
cmp esi, 0xffffffff
je 0x405472
test esi, esi
je 0x405472
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x26c]
mov eax, edi
pop edi
pop esi
mov edx, ebx
pop ebx
xor ecx, esp
call fcn.00469dc5
mov esp, ebp
pop ebp
ret

Function at 0x4059c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
lea edi, [esi + 8]
mov byte [edi], 0
mov eax, dword [esi + 4]
test eax, eax
jne 0x4059ee
mov ecx, dword [esi]
test ecx, ecx
je 0x4059eb
cmp word [ecx], ax
je 0x4059e8
nop
inc eax
cmp word [ecx + eax*2], 0
jne 0x4059e0
lea edi, [esi + 8]
mov dword [esi + 4], eax
cmp eax, 0x104
jge 0x405a2f
push ebx
mov ebx, dword [esi]
push 0x20a
mov dword [esi + 4], 0
call fcn.0046a3df
xor ecx, ecx
mov dword [esi], eax
add esp, 4
mov word [eax + 0x208], cx
mov eax, dword [esi]
mov word [eax], cx
test ebx, ebx
je 0x405a29
push ebx
call fcn.00469dd3
add esp, 4
cmp dword [esi], 0
pop ebx
je 0x405a4b
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
push dword [esi]
push ecx
push ecx
push dword [ebp + 8]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
sete al
mov byte [edi], al
pop edi
mov eax, esi
pop esi
pop ebp
ret 0xc
Function at 0x4082d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov edx, dword [ecx]
xor eax, eax
mov dword [ebp - 0x14], ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x10], esi
push edi
mov edi, dword [ebp + 0x10]
test edx, edx
jne 0x4082f8
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp + 0xc]
test edi, edi
je 0x408366
xor eax, eax
cmp ecx, 4
je 0x408361
cmp ecx, 5
je 0x408361
cmp ecx, 2
je 0x408345
cmp ecx, 6
je 0x408345
cmp ecx, 1
je 0x408345
cmp ecx, 0xb
jne 0x408324
lea eax, [ecx - 3]
jmp 0x408366
cmp ecx, 7
jne 0x4084bb
xor eax, eax
cmp word [edi], ax
je 0x40833c
inc eax
cmp word [edi + eax*2], 0
jne 0x408334
lea eax, [eax*2 + 4]
jmp 0x408366
xor eax, eax
cmp word [edi], ax
je 0x408358
nop dword [eax]
inc eax
cmp word [edi + eax*2], 0
jne 0x408350
lea eax, [eax*2 + 2]
jmp 0x408366
mov eax, 4
cmp ecx, 7
jne 0x4084bb
cmp eax, 2
jbe 0x4084bb
xor esi, esi
mov dword [ebp - 4], esi
test edi, edi
je 0x4083b2
cmp word [edi], si
je 0x408391
inc esi
cmp word [edi + esi*2], 0
jne 0x408386
mov dword [ebp - 4], esi
cmp esi, 1
jle 0x4083b2
lea eax, [edi - 2]
lea eax, [eax + esi*2]
nop dword [eax]
cmp word [eax], 0xa
jne 0x4083af
dec esi
sub eax, 2
cmp esi, 1
jg 0x4083a0
mov dword [ebp - 4], esi
mov ecx, 2
lea eax, [esi + 2]
mul ecx
mov ecx, 0xffffffff
cmovb eax, ecx
push eax
call fcn.0046a3df
add esp, 4
mov edx, eax
xor ecx, ecx
mov dword [ebp - 0xc], edx
test esi, esi
jle 0x408480
cmp esi, 8
jb 0x408456
lea eax, [edi - 2]
lea eax, [eax + esi*2]
lea ebx, [esi - 1]
lea ebx, [edx + ebx*2]
cmp edx, eax
ja 0x4083f5
cmp ebx, edi
jae 0x408456
mov eax, esi
and eax, 0x80000007
jns 0x408403
dec eax
or eax, 0xfffffff8
inc eax
movaps xmm4, xmmword [0x4aa830]
mov ebx, esi
sub ebx, eax
mov esi, edi
sub esi, edx
mov eax, edx
mov dword [ebp - 8], esi
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 8]
nop dword [eax]
movups xmm3, xmmword [edx + eax]
add ecx, 8
lea eax, [eax + 0x10]
movups xmm0, xmmword [eax - 0x10]
movaps xmm2, xmm3
pcmpeqw xmm2, xmm4
movaps xmm1, xmm2
andnps xmm1, xmm0
andps xmm1, xmm2
andnps xmm2, xmm3
orps xmm1, xmm2
movups xmmword [eax - 0x10], xmm1
cmp ecx, ebx
jl 0x408420
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], ecx
cmp ecx, esi
jge 0x408480
sub edi, edx
mov dword [ebp - 8], esi
lea ebx, [edx + ecx*2]
sub esi, ecx
movzx ecx, word [ebx + edi]
lea ebx, [ebx + 2]
xor edx, edx
mov eax, ecx
cmp ecx, 0xa
cmovne edx, eax
mov word [ebx - 2], dx
sub esi, 1
jne 0x408460
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
xor eax, eax
mov dword [edx + esi*2], eax
lea eax, [esi*2 + 4]
push eax
mov eax, dword [ebp - 0x14]
push edx
push 7
push 0
push dword [ebp - 0x10]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0xc]
test eax, eax
sete bl
call fcn.00469dd3
add esp, 4
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push eax
push edi
push ecx
push 0
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
test eax, eax
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4097a0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d0c5
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x4b4200]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
push eax
push 0xf01ff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4097fa
xor esi, esi
jmp 0x40992d
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0x94
push 0x94
movlpd qword [ebp - 0x20], xmm0
call fcn.0046a3df
mov edi, eax
mov dword [ebp - 0x1c], 0x94
mov dword [ebp - 0x20], edi
mov byte [ebp - 4], 1
push dword [ebp - 0x14]
call fcn.0046a3df
push dword [ebp - 0x14]
mov ebx, eax
push 0
push edi
call fcn.0046ba40
mov esi, dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
lea eax, [edi + 4]
add esp, 0x14
mov dword [edi], 9
push eax
push str.SeRestorePrivilege
push 0
call esi
lea eax, [edi + 0x10]
push eax
push str.SeBackupPrivilege
push 0
call esi
lea eax, [edi + 0x1c]
push eax
push str.SeDebugPrivilege
push 0
call esi
lea eax, [edi + 0x28]
push eax
push str.SeSecurityPrivilege
push 0
call esi
lea eax, [edi + 0x34]
push eax
push str.SeTakeOwnershipPrivilege
push 0
call esi
lea eax, [edi + 0x40]
push eax
push str.SeImpersonatePrivilege
push 0
call esi
lea eax, [edi + 0x4c]
push eax
push str.SeSystemProfilePrivilege
push 0
call esi
lea eax, [edi + 0x58]
push eax
push str.SeShutdownPrivilege
push 0
call esi
lea eax, [edi + 0x64]
push eax
push str.SeIncreaseQuotaPrivilege
push 0
call esi
lea eax, [edi + 0x70]
push eax
push str.SeAssignPrimaryTokenPrivilege
push 0
call esi
lea eax, [edi + 0x7c]
push eax
push str.SeTcbPrivilege
push 0
call esi
lea eax, [edi + 0x88]
push eax
push str.SeTrustedCredManAccessPrivilege
push 0
call esi
lea eax, [edi + 0xc]
mov ecx, 0xc
nop
mov dword [eax], 2
lea eax, [eax + 0xc]
sub ecx, 1
jne 0x4098f0
lea eax, [ebp - 0x14]
push eax
push ebx
push dword [ebp - 0x14]
push edi
push ecx
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x409922
push ebx
xor esi, esi
call fcn.00469dd3
add esp, 4
jmp 0x409924
mov esi, ebx
push edi
call fcn.00469dd3
add esp, 4
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xffffffff
je 0x409940
test ecx, ecx
je 0x409940
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00469dc5
mov esp, ebp
pop ebp
ret
Function at 0x40f2b0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d28d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4b4200]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 0x230]
test ecx, ecx
jne 0x40f2f8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x248]
shr eax, 2
test al, 1
jne 0x40f31e
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x40f31e
push 0
push dword [esi + 0x230]
call dword [sym.imp.USER32.dll_ShowWindow]
xorps xmm0, xmm0
mov dword [ebp - 0x10], 0
movq qword [ebp - 0x18], xmm0
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x10], 1
mov dword [ebp - 4], 0
push 0x20a
mov dword [ebp - 0x14], 0
call fcn.0046a3df
add esp, 4
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x18], ebx
push 0x104
mov word [ebx + 0x208], ax
push ebx
mov word [ebx], ax
push dword [esi + 0x230]
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esi + 0x3c], 0
je 0x40f3b7
mov edi, dword [esi + 0x40]
test edi, edi
je 0x40f3b7
cmp edi, 1
jl 0x40f3b7
lea ebx, [edi + edi*8]
shl ebx, 3
nop
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x40f3ab
cmp edi, dword [esi + 0x40]
jg 0x40f3ab
cmp dword [ebx + eax + 0xc], 0
je 0x40f3ab
push edi
mov ecx, esi
call fcn.00416080
dec edi
sub ebx, 0x48
cmp edi, 1
jge 0x40f390
mov ebx, dword [ebp - 0x18]
mov eax, dword [esi + 0x238]
mov ecx, dword [sym.imp.USER32.dll_DestroyWindow]
test eax, eax
je 0x40f3d0
push eax
call ecx
mov ecx, dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [esi + 0x23c]
test eax, eax
je 0x40f3dd
push eax
call ecx
mov eax, dword [esi + 0x1fc]
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
je 0x40f3f9
cmp dword [esi + 0x204], 4
je 0x40f3f9
push eax
call edi
mov eax, dword [esi + 0x200]
test eax, eax
je 0x40f406
push eax
call edi
mov eax, dword [esi + 0x1e0]
test eax, eax
je 0x40f413
push eax
call edi
mov eax, dword [esi + 0x1e8]
test eax, eax
je 0x40f424
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esi + 0x26c]
test eax, eax
je 0x40f435
push eax
call dword [sym.imp.USER32.dll_DestroyMenu]
mov eax, dword [esi + 0x244]
test eax, eax
je 0x40f446
push eax
call dword [sym.imp.USER32.dll_DestroyAcceleratorTable]
mov eax, dword [esi + 0x248]
mov ecx, dword [esi + 0x230]
shr eax, 2
test al, 1
jne 0x40f48e
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [esi + 0x248]
shr eax, 1
test al, 1
jne 0x40f49b
xor eax, eax
cmp word [ebx], ax
je 0x40f49b
inc eax
cmp word [ebx + eax*2], 0
jne 0x40f473
test eax, eax
je 0x40f49b
push dword [esi + 0x11c]
push ebx
call dword [sym.imp.USER32.dll_UnregisterClassW]
jmp 0x40f49b
push esi
push 0x40e3b0
push ecx
call dword [sym.imp.COMCTL32.dll_RemoveWindowSubclass]
push 0
mov ecx, esi
call fcn.0041ada0
push ebx
call fcn.00469dd3
add esp, 4
mov al, 1
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 0x418a80
Capabilities:
Capture webcam image

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3fc
mov eax, dword [0x4b4200]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 0xc]
lea eax, [esi + 0x40]
cmp ebx, 0xffffffff
jne 0x418aa8
mov ebx, dword [eax]
mov ecx, dword [esi + 0x3c]
test ecx, ecx
je 0x418cca
cmp ebx, 1
jl 0x418cca
cmp ebx, dword [eax]
jg 0x418cca
lea eax, [ebx + ebx*8]
shl eax, 3
mov dword [ebp - 0x3fc], eax
cmp dword [eax + ecx + 0xc], 0
je 0x418cca
cmp dword [eax + ecx], 0x26
jne 0x418b89
push 0x3ac
lea eax, [ebp - 0x3e8]
push 0
push eax
call fcn.0046ba40
mov eax, dword [esi + 0x230]
add esp, 0xc
mov dword [ebp - 0x3f4], eax
xor eax, eax
mov dword [ebp - 0x3f8], 0x3bc
mov dword [ebp - 0x3f0], ebx
mov dword [ebp - 0x3ec], 4
test edi, edi
je 0x418b42
cmp word [edi], ax
je 0x418b38
nop dword [eax]
inc eax
cmp word [edi + eax*2], 0
jne 0x418b30
mov ecx, 0x7f
cmp eax, ecx
cmovg eax, ecx
push eax
push edi
lea eax, [ebp - 0x3e0]
push 0x80
push eax
call fcn.0046d1e3
add esp, 0x10
mov dword [ebp - 0xd8], 3
lea eax, [ebp - 0x3f8]
push eax
push 1
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
test eax, eax
setne al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00469dc5
mov esp, ebp
pop ebp
ret 0x10
cmp dword [esi + 0x238], 0
jne 0x418beb
push 0
push dword [esi + 0x11c]
push 0
push dword [esi + 0x230]
push SysReAllocString
push SysReAllocString
push SysReAllocString
push SysReAllocString
push SHDefExtractIconW
push 0
push str.tooltips_class32
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [esi + 0x238], eax
test eax, eax
je 0x418cca
push 0x13
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 0x3fc]
xorps xmm0, xmm0
add ecx, dword [esi + 0x3c]
movlpd qword [ebp - 0x28], xmm0
movlpd qword [ebp - 0x20], xmm0
movlpd qword [ebp - 0x18], xmm0
movlpd qword [ebp - 0x10], xmm0
mov dword [ebp - 8], 0
mov dword [ebp - 0x34], 0x30
mov eax, dword [ecx + 4]
mov dword [ebp - 0x2c], eax
cmp dword [ecx], 0x1c
jne 0x418c6b
push 0
push ebx
push 0x419
mov dword [ebp - 0x30], 0x10
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
je 0x418cca
lea ecx, [ebp - 0x24]
push ecx
mov ecx, dword [ebp - 0x3fc]
push eax
mov eax, dword [esi + 0x3c]
push 0x41d
push dword [eax + ecx + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x418cca
mov dword [ebp - 0x28], ebx
jmp 0x418c78
mov dword [ebp - 0x30], 0x11
mov eax, dword [ecx + 4]
mov dword [ebp - 0x28], eax
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0x186a0
push 0
push 0x418
push dword [esi + 0x238]
call ebx
mov eax, dword [esi + 0x11c]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x34]
push eax
push 0
push 0x432
push dword [esi + 0x238]
mov dword [ebp - 0x10], edi
call ebx
cmp eax, 1
sete al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00469dc5
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00469dc5
mov esp, ebp
pop ebp
ret 0x10
Function at 0x418ce0
Capabilities:
Capture webcam image

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
cmp eax, 0xffffffff
jne 0x418cf3
mov eax, dword [edi + 0x40]
mov esi, dword [edi + 0x3c]
test esi, esi
je 0x418d98
cmp eax, 1
jl 0x418d98
cmp eax, dword [edi + 0x40]
jg 0x418d98
lea ebx, [eax + eax*8]
cmp dword [esi + ebx*8 + 0xc], 0
je 0x418d98
cmp dword [esi + ebx*8], 0x1c
mov ecx, dword [esi + ebx*8 + 4]
jne 0x418d58
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push eax
push 0x419
push ecx
call esi
cmp eax, 0xffffffff
je 0x418d98
push dword [ebp + 0xc]
push eax
mov eax, dword [edi + 0x3c]
push 0x433
push dword [eax + ebx*8 + 4]
call esi
pop edi
test eax, eax
pop esi
setne al
pop ebx
pop ebp
ret 8
mov esi, dword [ebp + 0xc]
push esi
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
je 0x418d98
mov eax, dword [edi + 0x3c]
push dword [eax + ebx*8 + 4]
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x418d98
push 2
push esi
push eax
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [esi]
sub dword [esi + 8], eax
mov eax, dword [esi + 4]
sub dword [esi + 0xc], eax
mov al, 1
pop edi
pop esi
pop ebx
pop ebp
ret 8
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 8
Function at 0x41ca10
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d63d
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4b4200]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x1c], 0
mov eax, dword [ebp + 8]
je 0x41cbc4
cmp dword [ebx], 1
jl 0x41cbc4
cmp eax, 0xfffffffe
jg 0x41cbc4
cmp dword [ebx + 4], 2
jne 0x41ca68
cmp eax, dword [ebx + 8]
je 0x41cbc4
mov ecx, 0xffffff9c
cmp eax, ecx
cmovge ecx, eax
mov eax, dword [ebx + 0x38]
mov dword [ebp + 8], ecx
cmp eax, 0xffffffff
je 0x41cab2
test eax, eax
je 0x41cab2
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebx + 0x34], 1
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x41cab2
cmp eax, 0xffffffff
je 0x41cab2
push 0
push eax
call edi
cmp eax, 0x102
jne 0x41cab2
push 0x1e
call esi
jmp 0x41ca94
mov ecx, dword [ebx + 0xc]
mov edx, ecx
push dword [ebx + 0x18]
call fcn.0040a580
mov esi, eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x1c]
push eax
push eax
push esi
push 0
push dword [ebx]
call fcn.004174a0
mov eax, dword [ebx]
mov edx, dword [ebx + 0x1c]
test eax, eax
jne 0x41caee
mov eax, dword [edx + 0x230]
jmp 0x41cb1a
lea ecx, [edx + 0x40]
cmp eax, 0xffffffff
jne 0x41caf8
mov eax, dword [ecx]
mov edx, dword [edx + 0x3c]
test edx, edx
je 0x41cb18
cmp eax, 1
jl 0x41cb18
cmp eax, dword [ecx]
jg 0x41cb18
lea eax, [eax + eax*8]
cmp dword [edx + eax*8 + 0xc], 0
je 0x41cb18
mov eax, dword [edx + eax*8 + 4]
jmp 0x41cb1a
xor eax, eax
mov edx, dword [ebx + 0x18]
lea edi, [ebx + 0x20]
mov dword [edi], eax
mov eax, dword [ebx + 0x14]
mov dword [ebx + 0x24], eax
mov eax, edx
shr eax, 0x10
movzx ecx, al
push 0
movzx eax, dl
and edx, 0xff00
shl eax, 0x10
push 0
or ecx, eax
mov dword [ebx + 0x34], 0
mov eax, dword [ebx + 0xc]
or ecx, edx
push edi
mov dword [ebx + 0x2c], eax
mov eax, dword [ebp + 8]
push 0x40e8f0
push 0
neg eax
mov dword [ebx + 0x28], ecx
push 0
mov dword [ebx + 0x30], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebx + 0x38]
mov edi, eax
cmp ecx, 0xffffffff
je 0x41cb81
test ecx, ecx
je 0x41cb81
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x38], edi
test edi, edi
jne 0x41cb8f
mov dword [ebx + 0x38], 0xffffffff
mov eax, dword [ebp + 8]
mov ecx, dword [ebx + 0x3c]
mov dword [ebx + 8], eax
mov eax, dword [ebx + 0x1c]
mov dword [ebx + 4], 2
mov edx, dword [eax + 0x230]
test ecx, ecx
je 0x41cbb9
test edx, edx
je 0x41cbb9
mov eax, dword [ecx]
push 1
push edx
push ecx
call dword [eax + 0x28]
test esi, esi
je 0x41cbc4
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4