joyce8/EMBER2024-capa huggingface dataset:
Function at 0x507380
Capabilities:
Contain obfuscated stackstrings
Create process on windows

Disassembly:
sub esp, 0x2c
mov ecx, dword [0x547570]
push ebx
mov al, 0x65
mov bl, 0x72
mov byte [esp + 0x10], al
mov byte [esp + 0x1d], al
mov byte [esp + 0x21], al
mov byte [esp + 0x2b], al
mov byte [esp + 0x15], bl
mov byte [esp + 0x27], bl
mov byte [esp + 0x2c], bl
lea eax, [esp + 0xc]
push esi
mov dl, 0x73
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [esp + 0xc], ecx
test eax, eax
mov byte [esp + 0x14], 0x2f
mov byte [esp + 0x15], 0x6e
mov byte [esp + 0x16], 0x61
mov byte [esp + 0x17], 0x6d
mov byte [esp + 0x19], 0x20
mov byte [esp + 0x1a], 0x4d
mov byte [esp + 0x1b], 0x69
mov byte [esp + 0x1c], 0x63
mov byte [esp + 0x1e], 0x6f
mov byte [esp + 0x1f], dl
mov byte [esp + 0x20], 0x6f
mov byte [esp + 0x21], 0x66
mov byte [esp + 0x22], 0x74
mov byte [esp + 0x23], 0x2e
mov byte [esp + 0x24], 0x44
mov byte [esp + 0x26], 0x76
mov byte [esp + 0x27], 0x69
mov byte [esp + 0x28], 0x63
mov byte [esp + 0x2a], dl
mov byte [esp + 0x2b], 0x41
mov byte [esp + 0x2c], 0x6e
mov byte [esp + 0x2d], 0x64
mov byte [esp + 0x2e], 0x50
mov byte [esp + 0x30], 0x69
mov byte [esp + 0x31], 0x6e
mov byte [esp + 0x32], 0x74
mov byte [esp + 0x35], dl
mov byte [esp + 0x36], bl
je 0x507459
lea ecx, [esp + 0x14]
push ecx
call edi
mov ecx, dword [esp + 0xc]
mov esi, eax
jmp 0x50745b
xor esi, esi
cmp dword [ecx - 0xc], 1
jg 0x507466
cmp esi, dword [ecx - 4]
jle 0x507481
lea ecx, [esp + 0xc]
call fcn.004124c0
push esi
lea ecx, [esp + 0x10]
call fcn.00405530
cmp eax, ebx
je 0x50749c
mov ecx, dword [esp + 0xc]
inc esi
lea edx, [esp + 0x14]
push esi
push edx
push ecx
call fcn.00405400
add esp, 0xc
lea ecx, [esp + 0xc]
push 0xffffffffffffffff
call fcn.00405bb0
mov eax, dword [0x547570]
mov ecx, str.control
test ecx, ecx
mov dword [esp + 0x10], eax
je 0x5074fb
push ecx
call edi
mov esi, eax
cmp esi, ebx
je 0x5074fb
lea edx, [esi + esi + 0xe]
push edx
call fcn.00532695
add esp, 4
cmp eax, ebx
je 0x5074fb
mov dword [eax], 1
mov word [eax + esi*2 + 0xc], bx
mov dword [eax + 4], esi
mov dword [eax + 8], esi
add eax, 0xc
inc esi
push esi
push str.control
push eax
mov dword [esp + 0x1c], eax
call fcn.00405400
add esp, 0xc
lea ecx, [esp + 0x10]
push 0xffffffffffffffff
call fcn.00405bb0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
push 5
push ebx
push eax
push ecx
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [esp + 0x10]
mov ecx, dword [0x547574]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x507545
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x507545
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.00532222
add esp, 4
mov eax, dword [esp + 0xc]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x507570
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x507570
mov edx, dword [esp + 0xc]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x2c
ret 0x10
Function at 0x507580
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x10
mov eax, dword [0x547570]
mov cl, 0x6d
mov byte [esp + 7], cl
mov byte [esp + 9], cl
mov byte [esp + 0xc], cl
lea ecx, [esp + 4]
test ecx, ecx
push esi
mov dword [esp + 4], eax
mov byte [esp + 8], 0x64
mov byte [esp + 9], 0x65
mov byte [esp + 0xa], 0x76
mov byte [esp + 0xc], 0x67
mov byte [esp + 0xe], 0x74
mov byte [esp + 0xf], 0x2e
mov byte [esp + 0x11], 0x73
mov byte [esp + 0x12], 0x63
mov byte [esp + 0x13], 0
je 0x5075e3
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov eax, dword [esp + 4]
jmp 0x5075e5
xor esi, esi
cmp dword [eax - 0xc], 1
jg 0x5075f0
cmp esi, dword [eax - 4]
jle 0x50760b
lea ecx, [esp + 4]
call fcn.004124c0
push esi
lea ecx, [esp + 8]
call fcn.00405530
test eax, eax
je 0x50765b
mov eax, dword [esp + 4]
lea ecx, [esi + 1]
mov esi, eax
test ecx, ecx
jne 0x507618
test eax, eax
jne 0x507636
push ecx
push eax
lea eax, [esp + 0x10]
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jle 0x507636
mov word [esi + eax*2 - 2], 0
lea ecx, [esp + 4]
call fcn.004055c0
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [esp + 4]
mov dword [edx - 8], eax
mov ecx, dword [esp + 4]
mov word [ecx + eax*2], 0
mov edx, dword [esp + 4]
push 5
push 0
push 0
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [esp + 4]
mov edx, dword [0x547574]
pop esi
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x5076a3
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x5076a3
mov edx, dword [esp]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
mov eax, 1
add esp, 0x10
ret 0x10
Function at 0x50c470
Capabilities:
Check for unmoving mouse cursor

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x3c
test eax, eax
push ebx
push esi
mov esi, ecx
je 0x50c53d
push eax
call dword [sym.imp.USER32.dll_IsMenu]
test eax, eax
je 0x50c53d
mov ebx, dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [esp + 8]
push eax
call ebx
mov ecx, dword [0x55f540]
mov dword [esi + 0x10], ecx
mov edx, dword [0x55f53c]
mov eax, ecx
mov dword [esi + 0x14], edx
test eax, eax
jne 0x50c4c1
mov eax, dword [esi + 0x60]
test eax, eax
mov dword [esi + 0x10], eax
je 0x50c53d
push edi
mov ecx, 0xb
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea ecx, [esi + 0x40]
mov dword [esp + 0x1c], 0x2c
push ecx
mov dword [esp + 0x24], 0x31
call ebx
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
mov ecx, dword [0x55f540]
push edx
mov edx, dword [esi + 0x50]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_MenuItemFromPoint]
mov edx, dword [esi + 0x10]
lea ecx, [esp + 0x1c]
push ecx
push 1
push eax
push edx
mov dword [esi + 0x14], eax
call dword [sym.imp.USER32.dll_GetMenuItemInfoW]
mov eax, dword [esp + 0x3c]
test eax, eax
mov edi, eax
je 0x50c535
lea eax, [esp + 0x14]
push eax
call ebx
lea ecx, [esp + 0x14]
push ecx
push 0
push edi
mov ecx, esi
call fcn.0050d640
mov dword [esi + 0x10], 0
pop edi
pop esi
pop ebx
add esp, 0x3c
ret 0xc
Function at 0x50d530
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, ecx
push esi
call dword [sym.imp.USER32.dll_IsMenu]
test eax, eax
je 0x50d5f4
mov eax, dword [edi + 0x70]
test eax, eax
je 0x50d5f4
test esi, esi
je 0x50d5f4
cmp esi, dword [edi + 0x60]
je 0x50d5f4
mov eax, dword [edi + 0x24]
test eax, eax
je 0x50d57b
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x50d57b
push 0xd
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ebx, dword [sym.imp.USER32.dll_GetMenuItemCount]
push esi
call ebx
test eax, eax
jne 0x50d5f4
push esi
mov ecx, edi
call fcn.0050bbd0
push esi
call ebx
test eax, eax
jne 0x50d5e9
lea eax, [esp + 0x10]
push 0x1876c
push eax
call fcn.004bd990
mov eax, dword [eax]
add esp, 8
push eax
push 0
push 0x410
push esi
call dword [sym.imp.USER32.dll_AppendMenuW]
mov eax, dword [esp + 0x10]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x50d5e9
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x50d5e9
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x5103f0
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x2b8
mov eax, dword [0x547570]
push ebx
push ebp
push esi
mov edx, dword [esp + 0x2cc]
push edi
mov dword [esp + 0x10], eax
mov ecx, 0xac
xor eax, eax
lea edi, [esp + 0x18]
mov dword [esp + 0x14], 0
push 0x208
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
push 0x2b4
push ecx
push eax
push edx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x5104a7
lea eax, [esp + 0x20]
test eax, eax
jne 0x51044c
xor ebx, ebx
jmp 0x510455
lea ecx, [esp + 0x20]
push ecx
call ebp
mov ebx, eax
mov edi, dword [esp + 0x10]
cmp dword [edi - 0xc], 1
jg 0x510464
cmp ebx, dword [edi - 4]
jle 0x51047f
lea ecx, [esp + 0x10]
call fcn.004124c0
push ebx
lea ecx, [esp + 0x14]
call fcn.00405530
test eax, eax
je 0x5104a7
mov edi, dword [esp + 0x10]
lea eax, [ebx + ebx]
lea esi, [esp + 0x20]
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
mov dword [ecx - 8], ebx
mov edx, dword [esp + 0x10]
mov word [eax + edx], 0
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x2cc]
mov edx, dword [eax - 0xc]
lea ecx, [eax - 0xc]
test edx, edx
jl 0x5104c7
push ecx
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x510521
mov ecx, dword [0x547570]
mov esi, eax
test eax, eax
mov dword [ebx], ecx
jne 0x5104d9
xor ebp, ebp
jmp 0x5104de
push eax
call ebp
mov ebp, eax
mov eax, dword [ebx]
cmp dword [eax - 0xc], 1
jg 0x5104eb
cmp ebp, dword [eax - 4]
jle 0x5104fe
mov ecx, ebx
call fcn.004124c0
push ebp
mov ecx, ebx
call fcn.00405530
test eax, eax
je 0x510521
mov edi, dword [ebx]
lea eax, [ebp + ebp]
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx]
mov dword [ecx - 8], ebp
mov edx, dword [ebx]
mov word [edx + eax], 0
mov eax, dword [esp + 0x10]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x510550
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x510550
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x2b8
ret
Function at 0x510560
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x2b8
mov eax, dword [0x547570]
push ebx
push ebp
push esi
mov edx, dword [esp + 0x2cc]
push edi
mov dword [esp + 0x10], eax
mov ecx, 0xac
xor eax, eax
lea edi, [esp + 0x18]
mov dword [esp + 0x14], 0
push 0x408
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
push 0x2b4
push ecx
push eax
push edx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x510620
lea eax, [esp + 0x228]
test eax, eax
jne 0x5105bf
xor ebx, ebx
jmp 0x5105cb
lea ecx, [esp + 0x228]
push ecx
call ebp
mov ebx, eax
mov edi, dword [esp + 0x10]
cmp dword [edi - 0xc], 1
jg 0x5105da
cmp ebx, dword [edi - 4]
jle 0x5105f5
lea ecx, [esp + 0x10]
call fcn.004124c0
push ebx
lea ecx, [esp + 0x14]
call fcn.00405530
test eax, eax
je 0x510620
mov edi, dword [esp + 0x10]
lea eax, [ebx + ebx]
lea esi, [esp + 0x228]
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
mov dword [ecx - 8], ebx
mov edx, dword [esp + 0x10]
mov word [eax + edx], 0
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x2cc]
mov edx, dword [eax - 0xc]
lea ecx, [eax - 0xc]
test edx, edx
jl 0x510640
push ecx
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x51069a
mov ecx, dword [0x547570]
mov esi, eax
test eax, eax
mov dword [ebx], ecx
jne 0x510652
xor ebp, ebp
jmp 0x510657
push eax
call ebp
mov ebp, eax
mov eax, dword [ebx]
cmp dword [eax - 0xc], 1
jg 0x510664
cmp ebp, dword [eax - 4]
jle 0x510677
mov ecx, ebx
call fcn.004124c0
push ebp
mov ecx, ebx
call fcn.00405530
test eax, eax
je 0x51069a
mov edi, dword [ebx]
lea eax, [ebp + ebp]
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx]
mov dword [ecx - 8], ebp
mov edx, dword [ebx]
mov word [edx + eax], 0
mov eax, dword [esp + 0x10]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x5106c9
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x5106c9
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x2b8
ret

Function at 0x510f80
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esp + 0xc]
lea eax, [esi + 4]
push eax
mov dword [eax], 0
mov eax, dword [esp + 0xc]
push eax
push ecx
mov dword [esi], 0x5419d8
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov eax, esi
pop esi
ret 8

Function at 0x5114b0
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x2b4
mov edx, ecx
mov ecx, 0xad
xor eax, eax
push edi
lea edi, [esp + 4]
mov edx, dword [edx + 4]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x2bc]
lea ecx, [esp + 4]
or eax, 0x4008
push eax
push 0x2b4
push ecx
push 0
push edx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [esp + 8]
pop edi
add esp, 0x2b4
ret 4
Function at 0x511580
Capabilities:
Get common file path

Disassembly:
mov eax, dword [ecx + 4]
push esi
lea esi, [ecx + 4]
test eax, eax
je 0x5115d3
mov eax, dword [0x554e40]
test eax, eax
jne 0x5115a1
push 0x554e40
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
jmp 0x5115a7
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov ecx, dword [esi]
mov dword [esi], 0
mov eax, dword [0x554e40]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x14]
mov eax, dword [0x554e40]
test eax, eax
je 0x5115d3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
test eax, eax
jne 0x5115d3
mov dword [0x554e40], eax
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
push esi
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
pop esi
ret 8

Function at 0x511600
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x840
mov edx, ecx
push edi
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
test edx, edx
mov dword [esp + 8], 0x3c
mov dword [esp + 0xc], 4
je 0x51162f
lea eax, [edx + 4]
jmp 0x511631
xor eax, eax
mov eax, dword [eax]
mov ecx, dword [0x554e0c]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x44], ecx
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x48]
mov dword [esp + 0x30], 0
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
mov ecx, edx
push eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x28], 1
call fcn.00511000
mov ecx, dword [esp + 4]
lea edx, [esp + 0x44]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [esp + 0x44]
push 0x5c
push eax
call fcn.00532e8a
add esp, 8
test eax, eax
pop edi
je 0x5116a3
lea ecx, [esp + 0x40]
mov word [eax], 0
mov dword [esp + 0x1c], ecx
mov edx, dword [esp + 0x848]
lea eax, [esp + 4]
push eax
mov dword [esp + 0x14], edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov eax, dword [esp]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x5116e8
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x5116e8
mov edx, dword [esp]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
xor eax, eax
add esp, 0x840
ret 8

Function at 0x511700
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
mov edx, ecx
push edi
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
xor ecx, ecx
mov dword [esp + 4], 0x3c
cmp edx, ecx
mov dword [esp + 8], 4
pop edi
je 0x51172f
lea eax, [edx + 4]
jmp 0x511731
xor eax, eax
mov eax, dword [eax]
mov dword [esp + 0x28], ecx
mov dword [esp + 8], ecx
mov dword [esp + 0x20], ecx
lea ecx, [esp]
mov dword [esp + 0x24], eax
push ecx
mov dword [esp + 0x20], 1
mov dword [esp + 0x10], str.find
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
xor eax, eax
add esp, 0x3c
ret 4
Function at 0x519340
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
xor esi, esi
call edi
test ax, ax
jge 0x519358
mov esi, 1
push 0x11
call edi
test ax, ax
jge 0x519364
add esi, 2
push 0x12
call edi
test ax, ax
jge 0x519370
add esi, 4
mov eax, esi
pop edi
pop esi
ret

Function at 0x519980
Capabilities:
Get common file path
Get file system object information

Disassembly:
sub esp, 0x4b4
push esi
push edi
mov ecx, 0xac
xor eax, eax
lea edi, [esp + 0x20c]
mov dword [esp + 0x208], 0
rep stosd dword es:[edi], eax
mov eax, dword [0x554e0c]
mov ecx, 0x7f
mov dword [esp + 8], eax
xor eax, eax
lea edi, [esp + 0xc]
push 0xff
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov esi, dword [esp + 0x4c0]
mov edi, dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test esi, esi
je 0x5199f7
push 0x4000
lea edx, [esp + 0x20c]
push 0x2b4
push edx
lea eax, [esp + 0x14]
push 0
push eax
call edi
mov dword [esi], eax
mov esi, dword [esp + 0x4c4]
test esi, esi
je 0x519a1f
push 0x4001
lea ecx, [esp + 0x20c]
push 0x2b4
push ecx
lea edx, [esp + 0x14]
push 0
push edx
call edi
mov dword [esi], eax
pop edi
mov eax, 1
pop esi
add esp, 0x4b4
ret
Function at 0x51d900
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x1c
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push ebp
push esi
mov esi, ecx
push edi
push 0
push 0x84f3
mov eax, dword [esi + 0xe4]
push 0x419
push eax
call ebx
mov edx, dword [esi + 0xe4]
lea ecx, [esp + 0x1c]
push ecx
push eax
push 0x41d
push edx
call ebx
mov ecx, dword [esi + 0xe4]
lea eax, [esp + 0x1c]
push 2
push eax
push 0
push ecx
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov edx, dword [esp + 0x28]
mov ebp, dword [esp + 0x1c]
push ecx
mov dword [esp + 0x14], 0
mov eax, esp
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c], edx
mov dword [eax], 0xd9
call fcn.00411b90
mov eax, dword [esp + 0x10]
push 3
push eax
call dword [sym.imp.USER32.dll_GetSubMenu]
mov edi, eax
push 0
push 1
push edi
call fcn.0047fa40
push edi
call fcn.00475eb0
mov ecx, dword [esi + 0xe4]
add esp, 0x10
push 1
push 0x84f3
push 0x403
push ecx
call ebx
mov eax, dword [esi + 4]
mov edx, dword [esp + 0x18]
push 0
push eax
push 0
push edx
push ebp
push 0x100
push edi
call dword [sym.imp.USER32.dll_TrackPopupMenu]
mov ebp, eax
mov eax, dword [esi + 0xe4]
push 0
push 0x84f3
push 0x403
push eax
call ebx
test ebp, ebp
je 0x51d9f1
mov ecx, dword [0x55bbe8]
push 0
push ebp
push 0x111
push ecx
call ebx
mov esi, dword [sym.imp.USER32.dll_DestroyMenu]
test edi, edi
je 0x51d9fe
push edi
call esi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x51da09
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x51db40
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x94]
test eax, eax
jne 0x51dc7a
push 0x34
call fcn.00532695
mov edi, eax
add esp, 4
test edi, edi
je 0x51db98
mov ecx, edi
call fcn.00524330
mov eax, dword [0x547570]
mov dword [edi + 0x1c], eax
mov ecx, dword [0x547570]
mov dword [edi + 0x28], ecx
mov edx, dword [0x547570]
mov dword [edi + 0x2c], edx
mov eax, dword [0x547570]
mov dword [edi + 0x30], eax
mov dword [edi], 0x543168
jmp 0x51db9a
xor edi, edi
lea ecx, [edi + 8]
push edi
push ecx
push 0x55f3b0
call fcn.0040f710
mov edx, dword [esp + 0x24]
mov eax, dword [0x55f3b8]
push 0
push 0x4141a0
push edx
push 0x12a
push eax
call fcn.0044ab00
test eax, eax
je 0x51dc6e
mov eax, dword [esi + 0xcc]
push ecx
mov dword [edi + 0x20], eax
mov eax, dword [esi + 0x28]
mov ebp, esp
mov ecx, dword [eax - 0xc]
test ecx, ecx
jl 0x51dbf2
mov dword [ebp], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x51dc16
mov ecx, dword [0x547570]
mov dword [ebp], ecx
mov ebx, dword [esi + 0x28]
test ebx, ebx
jne 0x51dc06
xor eax, eax
jmp 0x51dc0d
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
push eax
mov ecx, ebp
call fcn.00405870
mov ecx, edi
call fcn.0051dd70
mov eax, dword [esi + 4]
lea edx, [esp + 0x10]
mov dword [esi + 0x94], edi
mov edi, dword [edi + 4]
push edx
push eax
mov dword [esi + 0xe0], edi
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
add eax, 0x18
sub ecx, eax
push 0
push ecx
mov ecx, dword [esp + 0x18]
sub edx, ecx
mov dword [esp + 0x1c], eax
push edx
push eax
push ecx
push 0
push edi
call dword [sym.imp.USER32.dll_SetWindowPos]
push 8
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0xe0]
mov dword [esi + 0x9c], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8
Function at 0x521150
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x40
push ebx
push ebp
push esi
push edi
push 0x3f8
call fcn.00532695
xor ebp, ebp
add esp, 4
cmp eax, ebp
je 0x521177
mov ecx, eax
call fcn.0051d360
mov dword [esp + 0x10], eax
jmp 0x52117d
mov dword [esp + 0x10], ebp
mov eax, ebp
lea esi, [eax + 8]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x55f3e4
mov dword [esi + 4], eax
call ebx
mov eax, dword [0x55f418]
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esi + 8], eax
push 0x55f3e4
mov dword [0x55f418], esi
call edi
mov esi, dword [0x55f3b8]
push 0x55f3e4
call ebx
mov ebx, dword [sym.imp.USER32.dll_RegisterWindowMessageW]
push str.WM_ATLGETHOST
call ebx
push str.WM_ATLGETCONTROL
mov dword [0x554e00], eax
call ebx
lea ecx, [esp + 0x20]
mov dword [0x554dfc], eax
mov eax, dword [0x55f3b4]
push ecx
mov ebx, 0x30
push str.AtlAxWin
push eax
mov dword [esp + 0x2c], ebx
call dword [sym.imp.USER32.dll_GetClassInfoExW]
test eax, eax
jne 0x52125a
mov edx, dword [0x55f3b4]
push 0x7f00
push ebp
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], 0x456e20
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], ebp
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x44], 6
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], str.AtlAxWin
mov dword [esp + 0x50], ebp
call dword [sym.imp.USER32.dll_RegisterClassExW]
push 0x55f3e4
call edi
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceW]
push 5
push 0x66
push esi
call edi
push 0xf0
push 0x66
push esi
mov ebx, eax
call edi
mov edi, eax
mov dword [esp + 0x14], ebp
test edi, edi
mov dword [esp + 0x1c], edi
je 0x52129d
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebx, ebx
je 0x5212f7
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebp
push ebx
call fcn.00416340
mov ecx, dword [esp + 0x5c]
add esp, 8
mov edi, eax
push 0
push 0x4141a0
push ecx
push edi
push esi
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
cmp edi, ebx
je 0x5212e8
push edi
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov edi, dword [esp + 0x1c]
test ebp, ebp
je 0x52130a
test edi, edi
je 0x52130a
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
test ecx, ecx
je 0x52131f
mov edx, dword [eax + 4]
mov dword [ecx], edx
add esp, 0x40
ret