joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c0584
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x170]
test eax, eax
je 0x4c0626
cmp dword [ebx + 0x94], 0
jne 0x4c0620
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4c04d0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4c0620
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongW
test al, 8
je 0x4c05e6
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4c0620
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0043d920
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4c05f5
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4c0844
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x4e325c]
cmp dword [eax + 0x170], 0
je 0x4c09a9
test bl, bl
jne 0x4c08f7
cmp dword [esi + 0x9c], 0
jne 0x4c08ec
mov eax, esi
call fcn.004c36c4
push eax
push 0x4c0750
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x4c08bd
mov eax, dword [0x4e325c]
cmp byte [eax + 0xd3], 0
je 0x4c08bd
mov eax, dword [esi + 0xd8]
call fcn.004082d8
mov edi, eax
cmp edi, 0
jl 0x4c08bd
push 0
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4c08a6
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4c08ec
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0043d920
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4c08cc
inc dword [esi + 0x9c]
jmp 0x4c09a9
cmp dword [esi + 0x9c], 0
jle 0x4c09a9
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x4c09a9
cmp dword [esi + 0x44], 0
je 0x4c0954
mov eax, dword [0x4e325c]
cmp byte [eax + 0xd3], 0
je 0x4c0954
mov eax, dword [esi + 0xd8]
call fcn.004082d8
mov edi, eax
cmp edi, 0
jl 0x4c0954
push 5
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4c093d
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4c0983
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0043d920
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4c0963
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xd8]
mov ecx, 1
mov edx, dword [0x4b3bd4]
call fcn.00408498
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x4c15ec
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x4c1657
cmp byte [ebx + 0xd3], 0
jne 0x4c1657
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x170]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00406aac
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x4c1644
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4c1664
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00406d04
jmp 0x4c1664
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00406d04
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x4c2e2c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4c2e9a
mov eax, esi
call fcn.0047d508
test al, al
je 0x4c2e9a
mov eax, dword [ebx + 0x84]
call fcn.0047d15c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4c2e9a
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xfc]
test al, al
je 0x4c2e8e
push 0
mov eax, dword [ebx + 0x84]
call fcn.0047d15c
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.004740d8
jmp 0x4c2e9a
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.004c2c64
pop esi
pop ebx
ret

Function at 0x4c7a1c
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
xor esi, esi
mov ecx, 0x4e328c
mov eax, esi
mov edx, 8
mov ebx, eax
and ebx, 1
test bl, bl
je 0x4c7a3e
shr eax, 1
xor eax, 0xedb88320
jmp 0x4c7a40
shr eax, 1
dec edx
jne 0x4c7a2c
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x4c7a25
mov byte [0x4e368c], 1
pop esi
pop ebx
ret

Function at 0x4c7a5c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x4e368c], 0
jne 0x4c7a73
call fcn.004c7a1c
mov eax, edi
dec eax
test eax, eax
jl 0x4c7a9b
inc eax
xor edx, edx
movzx ecx, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4e328c]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x4c7a7d
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x4ca828
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x14]
movzx edx, byte [eax + 0x461]
movzx ecx, dl
cmp ecx, 6
ja case.0x4ca8c2.0
jmp dword [ecx*4 + 0x4ca85b]
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x4ca88d
sub dl, 8
je 0x4ca89c
jmp case.0x4ca8c2.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x4ca4d0
jmp case.0x4ca8c2.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x4ca528
jmp case.0x4ca8c2.0
movzx ecx, byte [eax + 0x460]
cmp ecx, 0x10
ja case.0x4ca8c2.0
movzx ecx, byte [ecx + 0x4ca8c9]
jmp dword [ecx*4 + 0x4ca8da]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x4ca5d4
jmp case.0x4ca8c2.0
cmp dl, 3
jne 0x4ca907
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x4ca62c
jmp case.0x4ca8c2.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x4ca5e8
jmp case.0x4ca8c2.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x4ca670
jmp case.0x4ca8c2.0
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x4ca932
sub dl, 8
je 0x4ca93e
jmp case.0x4ca8c2.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x4ca69c
jmp case.0x4ca8c2.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x4ca708
jmp case.0x4ca8c2.0
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x4ca95d
sub dl, 8
je 0x4ca969
jmp case.0x4ca8c2.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x4ca7c4
jmp case.0x4ca8c2.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x4ca7ec
mov edx, dword [eax + 0x468]
mov ecx, dword [ebx + 0x1c]
dec ecx
imul edx, ecx
mov esi, edx
add esi, dword [eax + 0x450]
mov dword [ebp - 0xc], esi
mov esi, dword [eax + 0x454]
mov dword [ebp - 8], esi
add edx, dword [eax + 0x44c]
mov dword [ebp - 0x10], edx
mov esi, ecx
test esi, esi
jb 0x4caa0b
inc esi
mov eax, dword [ebx + 0x20]
inc eax
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [ebp + 8]
push eax
movzx eax, byte [ebx + 0x48]
mov ecx, dword [ebx + eax*4 + 0x40]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.004c99d4
test eax, eax
je 0x4caa0b
mov eax, ebx
call fcn.004caa14
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
push eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
lea edx, [eax + 1]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
call dword [ebp - 0x18]
movzx eax, byte [ebx + 0x48]
xor al, 1
mov byte [ebx + 0x48], al
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0x468]
sub dword [ebp - 0xc], eax
sub dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x18]
add dword [ebp - 8], eax
dec esi
jne 0x4ca9a4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4caa14
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax]
dec al
je 0x4caa45
dec al
je 0x4caa80
dec al
je 0x4caac5
dec al
je 0x4cab2e
jmp 0x4cabb8
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x4cabb8
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx edx, byte [ecx + edx]
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x4caa55
jmp 0x4cabb8
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4cabb8
mov esi, 1
movzx eax, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x4caa90
jmp 0x4cabb8
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4cabb8
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov ecx, esi
dec ecx
mov edx, dword [ebx + 0x24]
cmp ecx, edx
jae 0x4caaf4
xor ebp, ebp
jmp 0x4cab04
mov ecx, esi
sub ecx, edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx ebp, byte [edx + ecx]
add eax, ebp
sar eax, 1
jns 0x4cab0d
adc eax, 0
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [edx + esi]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x4caad5
jmp 0x4cabb8
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4cabb8
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, esi
dec edx
cmp edx, dword [ebx + 0x24]
jb 0x4cab87
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx ebp, byte [ecx + edx]
movzx edx, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 4], edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
movzx ecx, byte [esp + 4]
push eax
mov eax, ebp
pop edx
call fcn.004c7aa4
add al, byte [esp]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x4cab42
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4d0750
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4d07a1
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetTickCount_1
mov dword [ebp - 0xc], eax
jmp 0x4d078a
push 0x32
call sub.kernel32.dll_Sleep_2
mov eax, dword [0x4ddbac]
mov eax, dword [eax]
call fcn.004c1b78
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 8]
jb 0x4d0777
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4d07ab
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x412e70
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xd000]
push edi
or ebp, 0xffffffff
jmp 0x412e92
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x412e99
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x412e88
mov eax, 1
add ebx, ebx
jne 0x412eab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x412ea0
jne 0x412ebc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x412ea0
xor ecx, ecx
sub eax, 3
jb 0x412ed0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x412f42
mov ebp, eax
add ebx, ebx
jne 0x412edb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x412ee8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x412f0c
inc ecx
add ebx, ebx
jne 0x412ef8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x412eed
jne 0x412f09
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x412eed
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x412f2c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x412f1d
jmp 0x412e8e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x412f2c
add edi, ecx
jmp 0x412e8e
pop esi
lea edi, [esi + 0x10000]
mov eax, dword [edi]
or eax, eax
je 0x412f8b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1585c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x158d0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x412f49
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x158d8]
or eax, eax
je 0x412f85
mov dword [ebx], eax
add ebx, 4
jmp 0x412f66
call dword [esi + 0x158d4]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x412fbc
cmp al, 0xef
ja 0x412faf
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x412f91
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x412f9e
mov ebp, dword [esi + 0x158dc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x412ff0
sub esp, 0xffffff80
jmp 0x4014ff

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4050f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 8]
sub esp, 8
test eax, eax
push esi
push edi
je 0x405158
mov edi, dword [esp + 0x20]
test edi, edi
je 0x405158
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x405158
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push 0x20019
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405142
mov edx, dword [esp + 0x18]
lea eax, [esp + 8]
push eax
push edi
lea ecx, [esp + 0x14]
push ecx
push 0
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
add esp, 8
ret
pop edi
xor eax, eax
pop esi
add esp, 8
ret
Function at 0x405be0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x84
mov eax, dword [0x4834f0]
xor eax, esp
mov dword [esp + 0x80], eax
push 0x80
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [esp]
add eax, 0xffffffff
lea ebx, [ebx]
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x405c10
mov ecx, dword [str.mediakaka.wav]
mov edx, dword [0x46f158]
mov dword [eax], ecx
mov ecx, dword [0x46f15c]
mov dword [eax + 4], edx
mov edx, dword [0x46f160]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
push 1
lea eax, [esp + 4]
push eax
call dword [sym.imp.WINMM.dll_sndPlaySoundA]
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.0043e6ad
add esp, 0x84
ret
Function at 0x407410
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x38
push ebp
mov ebp, dword [esp + 0x44]
push edi
xor edi, edi
cmp ebp, edi
jne 0x407427
pop edi
xor eax, eax
pop ebp
add esp, 0x38
ret
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x44]
push ebx
mov ebx, dword [esp + 0x50]
lea eax, [ebx + 0x36]
mov dword [esp + 0xe], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x20], eax
imul eax, ecx
push esi
mov dword [esp + 0x28], ecx
lea ecx, [eax + eax*2]
push 0x46ea08
push edx
mov word [esp + 0x18], 0x4d42
mov word [esp + 0x1e], di
mov word [esp + 0x20], di
mov dword [esp + 0x22], 0x36
mov dword [esp + 0x28], 0x28
mov word [esp + 0x34], 1
mov word [esp + 0x36], 0x18
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
call fcn.0043ea3c
mov esi, eax
add esp, 8
cmp esi, edi
jne 0x4074bd
push 0x46ea08
push str.C:CapImage.bmp
call fcn.0043ea3c
add esp, 8
mov esi, eax
push esi
push 1
lea eax, [esp + 0x18]
push 0xe
push eax
call fcn.0043fb1d
push esi
push 1
lea ecx, [esp + 0x38]
push 0x28
push ecx
call fcn.0043fb1d
push esi
push ebx
push 1
push ebp
call fcn.0043fb1d
push esi
call fcn.0043e72f
add esp, 0x34
pop esi
pop ebx
pop edi
mov eax, 1
pop ebp
add esp, 0x38
ret

Function at 0x407790
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 8
push esi
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x18]
push eax
push 0x20019
push 0
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esi], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4077c5
xor eax, eax
pop esi
add esp, 8
ret
mov ecx, dword [esp + 0x14]
mov eax, 4
lea edx, [esp + 4]
push edx
mov edx, dword [esp + 0x1c]
push esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
lea eax, [esp + 0x10]
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4077be
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
add esp, 8
ret
Function at 0x408f80
Capabilities:
Get common file path

Disassembly:
sub esp, 0x264
mov eax, dword [0x4834f0]
xor eax, esp
mov dword [esp + 0x260], eax
push esi
mov esi, dword [esp + 0x26c]
push edi
mov edi, dword [esp + 0x274]
push 0x46ed08
lea eax, [esp + 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x164]
push ecx
push 0
push 0
push 0x8027
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
push 0x58
lea edx, [esp + 0xc]
push 0
push edx
call fcn.00440aa0
add esp, 0xc
lea edx, [esp + 8]
lea eax, [esp + 0x60]
lea ecx, [esp + 0x164]
push edx
mov dword [esp + 0xc], 0x58
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], str.JPEG__.jpg_
mov dword [esp + 0x48], 0x46f444
mov dword [esp + 0x24], 2
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], 0x104
mov dword [esp + 0x30], 0
mov dword [esp + 0x3c], str.Save_Picture_As
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], ecx
mov dword [esp + 0x40], 0x806
call dword [sym.imp.comdlg32.dll_GetSaveFileNameA]
test eax, eax
jne 0x409063
pop edi
pop esi
mov ecx, dword [esp + 0x260]
xor ecx, esp
call fcn.0043e6ad
add esp, 0x264
ret
mov eax, dword [esp + 0x20]
cmp eax, 1
jne 0x409091
mov eax, dword [esp + 0x280]
mov ecx, dword [esp + 0x27c]
mov edx, dword [esp + 0x278]
push eax
push ecx
push edx
lea eax, [esp + 0x6c]
push edi
push eax
call fcn.00407500
jmp 0x4090b9
cmp eax, 2
jne 0x4090bc
mov ecx, dword [esp + 0x280]
mov edx, dword [esp + 0x27c]
mov eax, dword [esp + 0x278]
push ecx
push edx
push eax
lea ecx, [esp + 0x6c]
push edi
push ecx
call fcn.00407410
add esp, 0x14
mov ecx, dword [esp + 0x268]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.0043e6ad
add esp, 0x264
ret

Function at 0x409720
Capabilities:
Get common file path

Disassembly:
cmp dword [0x486c48], 0
jne 0x409812
push 0x104
push 0x4856b0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.Ksproxy.ax
push 0x4856b0
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x4856b0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x486c54], eax
jne 0x409767
mov dword [0x486c48], eax
ret
push str.KsSynchronousDeviceControl
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [0x485364], 1
mov dword [0x486c48], eax
jne 0x409812
push esi
push edi
mov edi, 0x4857b8
lea esp, [esp]
push edi
call fcn.00408630
mov esi, eax
add esp, 4
test esi, esi
jne 0x4097bf
add edi, 0x104
cmp edi, 0x486c08
jl 0x409790
pop edi
mov dword [0x487060], 1
pop esi
mov eax, 1
ret
push str.CreateKsSynchronousDeviceControl:_Handel_Creat
call fcn.00404b40
push str.CreateKsSynchronousDeviceControl:_Handel_Creat
push 0x487078
call fcn.00404890
push esi
push 1
call fcn.00405520
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.CreateKsSynchronousDeviceControl:_Handel_Close
call fcn.00404b40
push str.CreateKsSynchronousDeviceControl:_Handel_Close
push 0x487078
call fcn.00404890
add esp, 0xc
pop edi
mov dword [0x487060], 1
pop esi
mov eax, 1
ret
Function at 0x40b4b0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [0x486c4c], 0
jne 0x40b58c
call fcn.00409720
test eax, eax
je 0x40b4db
push str.WaitForDeviceEvent_Done_.....
push 0x487078
call fcn.00404890
add esp, 8
jmp 0x40b4f7
push str.CreateKsSynchronousDeviceControl_fail
call fcn.00404b40
push str.CreateKsSynchronousDeviceControl_fail
push 0x487078
call fcn.00404890
add esp, 0xc
push str.CreatePollingThread
mov dword [0x485254], 0x3e7
call fcn.00404b40
push str.CreatePollingThread
push 0x487078
call fcn.00404890
add esp, 0xc
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
mov dword [0x486c50], eax
jne 0x40b550
push str.Create_event_fail
call fcn.00404b40
push str.Create_event_fail
push 0x487078
call fcn.00404890
add esp, 0xc
lea eax, [esp]
push eax
push 0
push 0
push 0x40b450
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [0x486c4c], eax
jne 0x40b58c
push str.Create_thread_fail
call fcn.00404b40
push str.Create_thread_fail
push 0x487078
call fcn.00404890
add esp, 0xc
pop ecx
ret

Function at 0x429f7c
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x429fb5
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0042297e
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00422959
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x42bf18
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x42bf5b
call fcn.00421bfc
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x42bf5b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x42bf76
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0042bacf
test ebx, ebx
mov esi, eax
je 0x42bf74
test edi, edi
je 0x42bf74
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x43e6ad
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4834f0]
jne 0x43e6b7
repz ret
jmp fcn.00447033