joyce8/EMBER2024-capa huggingface dataset:
Function at 0x8749f0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push edi
xor edi, edi
test eax, eax
je 0x874a9b
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x874a9b
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x874a9b
xor eax, eax
lea ecx, [edx + 8]
mov byte [ecx + eax], al
inc eax
cmp eax, 0x100
jl 0x874a1d
mov eax, 0xfffffff8
push ebx
sub eax, edx
push esi
mov dword [ebp - 4], eax
add eax, ecx
mov esi, dword [ebp + 8]
cdq
idiv dword [ebp + 0xc]
mov bl, byte [ecx]
xor eax, eax
mov al, byte [edx + esi]
mov edx, ebx
and edx, 0xff
add edi, eax
add edi, edx
and edi, 0x800000ff
jns 0x874a60
dec edi
or edi, 0xffffff00
inc edi
mov eax, dword [ebp + 0x10]
inc ecx
mov dl, byte [eax + edi + 8]
lea esi, [eax + 8]
mov eax, dword [ebp - 4]
mov byte [ecx - 1], dl
mov byte [esi + edi], bl
lea edx, [eax + ecx]
cmp edx, 0x100
jl 0x874a34
mov eax, dword [ebp + 0x10]
mov ecx, 0x40
lea edi, [eax + 0x108]
mov dword [eax + 0x208], 0
rep movsd dword es:[edi], dword [esi]
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x874aa0
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
test eax, eax
je 0x874c03
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x874c03
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x874c03
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebx + 0x208]
push esi
cmp ecx, eax
push edi
je 0x874b3d
lea edi, [ebx + 8]
lea esi, [ebx + 0x108]
mov ecx, 0x40
xor edx, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, 0xffff
mov dword [ebx + 0x208], eax
div ecx
mov dword [ebx], 0
mov dword [ebx + 4], 0
test edx, edx
jbe 0x874b3a
mov edi, edx
mov eax, dword [ebx]
mov esi, dword [ebx + 4]
inc eax
xor ecx, ecx
and eax, 0xff
mov dword [ebx], eax
mov dl, byte [eax + ebx + 8]
add esi, edx
and esi, 0xff
dec edi
mov dword [ebx + 4], esi
mov cl, byte [eax + ebx + 8]
mov dl, byte [esi + ebx + 8]
mov byte [eax + ebx + 8], dl
mov eax, dword [ebx + 4]
mov byte [ebx + eax + 8], cl
jne 0x874b06
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
test edx, edx
jbe 0x874bf0
mov ecx, dword [ebp + 0xc]
lea edi, [ebx + 8]
sub eax, ecx
mov dword [ebp + 0x14], ecx
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], edx
jmp 0x874b5e
mov eax, dword [ebp + 8]
add eax, ecx
xor edx, edx
mov ecx, 0xffff
div ecx
test edx, edx
jne 0x874b7f
lea esi, [ebx + 0x108]
mov ecx, 0x40
mov dword [ebx], edx
mov dword [ebx + 4], edx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx]
mov esi, dword [ebx + 4]
inc eax
lea edi, [ebx + 8]
and eax, 0xff
mov dword [ebx], eax
mov dl, byte [eax + edi]
add esi, edx
xor edx, edx
and esi, 0xff
mov dword [ebx + 4], esi
mov dl, byte [eax + edi]
mov cl, byte [esi + edi]
mov byte [eax + edi], cl
mov eax, dword [ebx + 4]
mov byte [ebx + eax + 8], dl
mov ecx, dword [ebx]
mov eax, dword [ebx + 4]
xor edx, edx
mov dl, byte [ecx + ebx + 8]
xor ecx, ecx
mov cl, byte [ebx + eax + 8]
add edx, ecx
and edx, 0x800000ff
jns 0x874bd2
dec edx
or edx, 0xffffff00
inc edx
mov ecx, dword [ebp + 0x14]
mov dl, byte [edx + ebx + 8]
mov al, byte [ecx]
xor al, dl
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
inc ecx
dec eax
mov dword [ebp + 0x14], ecx
mov dword [ebp + 0xc], eax
jne 0x874b5b
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebx + 0x208]
add ecx, eax
pop edi
mov dword [ebx + 0x208], ecx
pop esi
pop ebx
pop ebp
ret
Function at 0x878770
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0x10]
test esi, esi
jle 0x878792
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push ebx
sub ecx, eax
mov dl, byte [ecx + eax]
mov bl, byte [eax]
xor bl, dl
mov byte [eax], bl
inc eax
dec esi
jne 0x878784
pop ebx
pop esi
ret

Function at 0x8787a0
Capabilities:
Encode data using xor
Encrypt data using xtea

Disassembly:
mov ecx, dword [esp + 4]
push ebx
push ebp
push esi
mov edx, dword [ecx + 4]
mov ecx, dword [ecx]
mov esi, dword [esp + 0x1c]
xor eax, eax
push edi
xor ecx, esi
mov esi, dword [esp + 0x1c]
mov edi, 0x20
mov ebx, edx
mov ebp, edx
shr ebx, 5
shl ebp, 4
xor ebx, ebp
mov ebp, eax
and ebp, 3
add ebx, edx
mov ebp, dword [esi + ebp*4]
add ebp, eax
sub eax, 0x61c88647
xor ebx, ebp
add ecx, ebx
mov ebx, ecx
mov ebp, ecx
shr ebx, 5
shl ebp, 4
xor ebx, ebp
mov ebp, eax
shr ebp, 0xb
and ebp, 3
add ebx, ecx
mov ebp, dword [esi + ebp*4]
add ebp, eax
xor ebx, ebp
add edx, ebx
dec edi
jne 0x8787be
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
mov dword [eax], ecx
mov dword [eax + 4], edx
pop ebx
ret

Function at 0x878810
Capabilities:
Encode data using xor
Encrypt data using xtea

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
push esi
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov esi, dword [esp + 0x18]
push edi
mov eax, 0xc6ef3720
mov edi, 0x20
mov ebx, ecx
mov ebp, ecx
shr ebx, 5
shl ebp, 4
xor ebx, ebp
mov ebp, eax
shr ebp, 0xb
and ebp, 3
add ebx, ecx
mov ebp, dword [esi + ebp*4]
add ebp, eax
add eax, 0x61c88647
xor ebx, ebp
sub edx, ebx
mov ebx, edx
mov ebp, edx
shr ebx, 5
shl ebp, 4
xor ebx, ebp
mov ebp, eax
and ebp, 3
add ebx, edx
mov ebp, dword [esi + ebp*4]
add ebp, eax
xor ebx, ebp
sub ecx, ebx
dec edi
jne 0x87882b
mov eax, dword [esp + 0x20]
pop edi
xor ecx, eax
mov eax, dword [esp + 0x14]
pop esi
pop ebp
mov dword [eax], ecx
mov dword [eax + 4], edx
pop ebx
ret
Function at 0x878fe0
Capabilities:
Parse pe header

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
cmp word [ebp], 0x5a4d
je 0x878ff7
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov ebx, dword [ebp + 0x3c]
add ebx, ebp
cmp dword [ebx], 0x4550
je 0x87900b
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, dword [ebx + 0x50]
mov ecx, dword [ebx + 0x34]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x3000
push eax
push ecx
call esi
mov edi, eax
test edi, edi
jne 0x879041
mov edx, dword [ebx + 0x50]
push 4
push 0x3000
push edx
push eax
call esi
mov edi, eax
test edi, edi
jne 0x879041
pop edi
pop esi
pop ebp
pop ebx
ret
push 0x14
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
xor eax, eax
push 4
push 0x1000
mov dword [esi + 4], edi
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov dword [esi + 0x10], eax
mov eax, dword [ebx + 0x50]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebx + 0x54]
push 4
push 0x1000
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, dword [ebp + 0x3c]
mov ecx, dword [ebx + 0x54]
add edx, ecx
mov dword [esp + 0x14], eax
push edx
push ebp
push eax
call fcn.00878350
mov eax, dword [ebp + 0x3c]
mov ecx, dword [esp + 0x20]
add eax, ecx
push esi
push ebx
mov dword [esi], eax
push ebp
mov dword [eax + 0x34], edi
call fcn.00879120
mov ecx, dword [ebx + 0x34]
mov eax, edi
add esp, 0x18
sub eax, ecx
je 0x8790c6
push eax
push esi
call fcn.00879340
add esp, 8
push esi
call fcn.008793c0
add esp, 4
test eax, eax
je 0x8790f6
push esi
call fcn.008791e0
mov edx, dword [esi]
add esp, 4
mov eax, dword [edx + 0x28]
test eax, eax
je 0x87910d
add eax, edi
test eax, eax
je 0x8790f6
push 0
push 1
push edi
call eax
test eax, eax
jne 0x879106
push esi
call fcn.00878ab0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov dword [esi + 0x10], 1
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x879120
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
xor ecx, ecx
push esi
mov ebx, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 8], 0
mov cx, word [eax + 0x14]
cmp word [eax + 6], 0
lea esi, [ecx + eax + 0x18]
jbe 0x8791d0
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
add esi, 0x10
cmp dword [esi], 0
jne 0x879185
mov edx, dword [esp + 0x1c]
mov edi, dword [edx + 0x38]
test edi, edi
jle 0x8791b2
mov eax, dword [esi - 4]
push 4
push 0x1000
add eax, ebx
push edi
push eax
call ebp
push edi
push 0
push eax
mov dword [esi - 8], eax
call fcn.00878370
add esp, 0xc
jmp 0x8791b2
mov edx, dword [esi - 4]
mov ecx, dword [esi]
push 4
push 0x1000
add edx, ebx
push ecx
push edx
call ebp
mov ecx, dword [esi + 4]
mov edi, eax
mov eax, dword [esi]
push eax
mov eax, dword [esp + 0x1c]
add ecx, eax
push ecx
push edi
call fcn.00878350
add esp, 0xc
mov dword [esi - 8], edi
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
inc eax
add esi, 0x28
mov ecx, dword [edx]
xor edx, edx
mov dword [esp + 0x10], eax
mov dx, word [ecx + 6]
cmp eax, edx
jl 0x879154
pop edi
pop ebp
pop esi
pop ebx
pop ecx
ret
Function at 0x8791e0
Capabilities:
Access peb ldr_data
Encode data using xor
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
xor ecx, ecx
mov byte [ebp - 0x1c], 0x47
mov byte [ebp - 0x1b], 0x4b
mov eax, dword [eax]
mov byte [ebp - 0x1a], 0x41
mov byte [ebp - 0x19], 0x30
mov byte [ebp - 0x18], 0x20
mov byte [ebp - 0x17], 7
mov byte [ebp - 0x16], 0x1b
mov byte [ebp - 0x15], 0xd8
mov byte [ebp - 0x14], 0xeb
mov byte [ebp - 0x13], 0xc5
mov byte [ebp - 0x12], 0xcf
mov byte [ebp - 0x11], 0xa9
mov byte [ebp - 0x10], 0xbe
mov byte [ebp - 0xf], 0x9a
mov byte [ebp - 0xe], 0xff
mov byte [ebp - 0xd], 0
mov cx, word [eax + 0x14]
push ebx
push esi
lea edx, [ecx + eax + 0x18]
push edi
mov dword [ebp - 8], edx
pushal
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
popal
xor ecx, ecx
mov al, cl
mov dl, 0x11
inc al
mov bl, byte [ebp + ecx - 0x1c]
imul dl
xor bl, al
mov byte [ebp + ecx - 0x1c], bl
inc ecx
cmp ecx, 0x10
jb 0x879253
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
mov ebx, dword [edx]
cmp word [ebx + 6], 0
jbe 0x87932d
mov eax, dword [ebp - 8]
lea edi, [eax + 0x24]
mov eax, dword [edi]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x8792cc
mov ecx, dword [edi - 0x14]
mov edx, dword [edi - 0x1c]
push 0x4000
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x879310
lea ecx, [edx + ecx*2]
test eax, 0x4000000
lea edx, [esi + ecx*2]
mov esi, dword [edx*4 + 0x86b1b0]
je 0x8792e6
or esi, 0x200
mov edx, dword [edi - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x879301
test al, 0x40
je 0x8792f8
mov ecx, dword [ebx + 0x20]
jmp 0x8792ff
test al, 0x80
je 0x879310
mov ecx, dword [ebx + 0x24]
test ecx, ecx
jbe 0x879310
mov ecx, dword [edi - 0x1c]
lea eax, [ebp - 8]
push eax
push esi
push edx
push ecx
call dword [ebp - 0xc]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
xor ecx, ecx
inc eax
mov ebx, dword [edx]
add edi, 0x28
mov dword [ebp - 4], eax
mov cx, word [ebx + 6]
cmp eax, ecx
jl 0x879299
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
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.0043e6bd
add esp, 0x84
ret

Function at 0x405c60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
push 0x104
push 0
push esi
mov dword [esp + 0x18], 1
call fcn.00440ab0
mov ecx, dword [0x48546c]
add esp, 0xc
lea eax, [esp + 4]
push eax
or ecx, 0xf003f
push ecx
push 0
push 0x485578
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x405caf
xor al, al
pop esi
add esp, 0xc
ret
mov ecx, dword [esp + 4]
lea edx, [esp + 8]
push edx
push esi
lea eax, [esp + 0x14]
push eax
push 0
push str.Snapshot1
push ecx
mov dword [esp + 0x20], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 4]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
sete al
pop esi
add esp, 0xc
ret
Function at 0x405dd0
Capabilities:
Get common file path
Write file on windows

Disassembly:
sub esp, 0x268
mov eax, dword [0x4834f0]
xor eax, esp
mov dword [esp + 0x264], eax
push ebx
mov ebx, dword [esp + 0x270]
push ebp
push esi
mov esi, dword [esp + 0x27c]
push edi
mov edi, dword [esi + 4]
push edi
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, dword [esi + 8]
mov ebp, eax
push 0x46ed08
lea eax, [esp + 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x170]
push ecx
push 0
push 0
push 0x8027
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
push 0x58
lea edx, [esp + 0x18]
push 0
push edx
call fcn.00440ab0
add esp, 0xc
mov dword [esp + 0x18], ebx
lea edx, [esp + 0x14]
lea eax, [esp + 0x6c]
xor ebx, ebx
lea ecx, [esp + 0x170]
push edx
mov dword [esp + 0x18], 0x58
mov dword [esp + 0x24], 0x46f1c4
mov dword [esp + 0x54], 0x46f1bc
mov dword [esp + 0x30], 1
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], 0x104
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x48], str.Save_Picture_As
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x4c], 0x806
call dword [sym.imp.comdlg32.dll_GetSaveFileNameA]
test eax, eax
jne 0x405ec6
push 0x10
push str.ERROR
push str.Can_not_save_this_file__
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x405f21
push ebx
push ebx
push 2
push ebx
push ebx
push 0x40000000
lea eax, [esp + 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x405efe
push 0x10
push str.ERROR
push str.Can_not_save_this_file__
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x405f21
push 0
lea ecx, [esp + 0x14]
push ecx
push esi
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, 1
mov ecx, dword [esp + 0x274]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0043e6bd
add esp, 0x268
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.0043ea4c
mov esi, eax
add esp, 8
cmp esi, edi
jne 0x4074bd
push 0x46ea08
push str.C:CapImage.bmp
call fcn.0043ea4c
add esp, 8
mov esi, eax
push esi
push 1
lea eax, [esp + 0x18]
push 0xe
push eax
call fcn.0043fb2d
push esi
push 1
lea ecx, [esp + 0x38]
push 0x28
push ecx
call fcn.0043fb2d
push esi
push ebx
push 1
push ebp
call fcn.0043fb2d
push esi
call fcn.0043e73f
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 0x4078d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [0x48546c]
mov edx, dword [esp + 4]
sub esp, 0xc
lea eax, [esp]
push eax
or ecx, 0x20019
push ecx
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x407900
xor eax, eax
add esp, 0xc
ret
mov ecx, dword [esp + 0x18]
mov eax, 4
mov dword [esp + 8], eax
mov dword [esp + 4], eax
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 8]
lea edx, [esp + 0x10]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4078fa
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add esp, 0xc
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.00440ab0
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.0043e6bd
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.0043e6bd
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 0x40b4c0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [0x486c4c], 0
jne 0x40b59c
call fcn.00409720
test eax, eax
je 0x40b4eb
push str.WaitForDeviceEvent_Done_.....
push 0x487078
call fcn.00404890
add esp, 8
jmp 0x40b507
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 0x40b560
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 0x40b460
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [0x486c4c], eax
jne 0x40b59c
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 0x429f8c
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x429fc5
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.0042298e
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00422969
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x42bf28
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 0x42bf6b
call fcn.00421c0c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x42bf6b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x42bf86
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0042badf
test ebx, ebx
mov esi, eax
je 0x42bf84
test edi, edi
je 0x42bf84
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x43e6bd
Capabilities:
Terminate process

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