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

Disassembly:
sub esp, 0x2c
mov ecx, dword [0x546560]
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 0x5068e9
lea ecx, [esp + 0x14]
push ecx
call edi
mov ecx, dword [esp + 0xc]
mov esi, eax
jmp 0x5068eb
xor esi, esi
cmp dword [ecx - 0xc], 1
jg 0x5068f6
cmp esi, dword [ecx - 4]
jle 0x506911
lea ecx, [esp + 0xc]
call fcn.00412670
push esi
lea ecx, [esp + 0x10]
call fcn.00405530
cmp eax, ebx
je 0x50692c
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 [0x546560]
mov ecx, str.control
test ecx, ecx
mov dword [esp + 0x10], eax
je 0x50698b
push ecx
call edi
mov esi, eax
cmp esi, ebx
je 0x50698b
lea edx, [esi + esi + 0xe]
push edx
call fcn.00531ba5
add esp, 4
cmp eax, ebx
je 0x50698b
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 [0x546564]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x5069d5
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x5069d5
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.00531732
add esp, 4
mov eax, dword [esp + 0xc]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x506a00
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x506a00
mov edx, dword [esp + 0xc]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x2c
ret 0x10
Function at 0x506a10
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x10
mov eax, dword [0x546560]
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 0x506a73
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov eax, dword [esp + 4]
jmp 0x506a75
xor esi, esi
cmp dword [eax - 0xc], 1
jg 0x506a80
cmp esi, dword [eax - 4]
jle 0x506a9b
lea ecx, [esp + 4]
call fcn.00412670
push esi
lea ecx, [esp + 8]
call fcn.00405530
test eax, eax
je 0x506aeb
mov eax, dword [esp + 4]
lea ecx, [esi + 1]
mov esi, eax
test ecx, ecx
jne 0x506aa8
test eax, eax
jne 0x506ac6
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 0x506ac6
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 [0x546564]
pop esi
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x506b33
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x506b33
mov edx, dword [esp]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov eax, 1
add esp, 0x10
ret 0x10
Function at 0x50b960
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 0x50ba2d
push eax
call dword [sym.imp.USER32.dll_IsMenu]
test eax, eax
je 0x50ba2d
mov ebx, dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [esp + 8]
push eax
call ebx
mov ecx, dword [0x55e488]
mov dword [esi + 0x10], ecx
mov edx, dword [0x55e484]
mov eax, ecx
mov dword [esi + 0x14], edx
test eax, eax
jne 0x50b9b1
mov eax, dword [esi + 0x60]
test eax, eax
mov dword [esi + 0x10], eax
je 0x50ba2d
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 [0x55e488]
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 0x50ba25
lea eax, [esp + 0x14]
push eax
call ebx
lea ecx, [esp + 0x14]
push ecx
push 0
push edi
mov ecx, esi
call fcn.0050cd40
mov dword [esi + 0x10], 0
pop edi
pop esi
pop ebx
add esp, 0x3c
ret 0xc
Function at 0x50cc30
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 0x50ccf4
mov eax, dword [edi + 0x70]
test eax, eax
je 0x50ccf4
test esi, esi
je 0x50ccf4
cmp esi, dword [edi + 0x60]
je 0x50ccf4
mov eax, dword [edi + 0x24]
test eax, eax
je 0x50cc7b
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x50cc7b
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 0x50ccf4
push esi
mov ecx, edi
call fcn.0050b0c0
push esi
call ebx
test eax, eax
jne 0x50cce9
lea eax, [esp + 0x10]
push 0x1876c
push eax
call fcn.004bc8d0
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 [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x50cce9
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x50cce9
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00531732
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 0x50faf0
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x2b8
mov eax, dword [0x546560]
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 0x50fba7
lea eax, [esp + 0x20]
test eax, eax
jne 0x50fb4c
xor ebx, ebx
jmp 0x50fb55
lea ecx, [esp + 0x20]
push ecx
call ebp
mov ebx, eax
mov edi, dword [esp + 0x10]
cmp dword [edi - 0xc], 1
jg 0x50fb64
cmp ebx, dword [edi - 4]
jle 0x50fb7f
lea ecx, [esp + 0x10]
call fcn.00412670
push ebx
lea ecx, [esp + 0x14]
call fcn.00405530
test eax, eax
je 0x50fba7
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 0x50fbc7
push ecx
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x50fc21
mov ecx, dword [0x546560]
mov esi, eax
test eax, eax
mov dword [ebx], ecx
jne 0x50fbd9
xor ebp, ebp
jmp 0x50fbde
push eax
call ebp
mov ebp, eax
mov eax, dword [ebx]
cmp dword [eax - 0xc], 1
jg 0x50fbeb
cmp ebp, dword [eax - 4]
jle 0x50fbfe
mov ecx, ebx
call fcn.00412670
push ebp
mov ecx, ebx
call fcn.00405530
test eax, eax
je 0x50fc21
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 [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x50fc50
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x50fc50
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x2b8
ret
Function at 0x50fc60
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x2b8
mov eax, dword [0x546560]
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 0x50fd20
lea eax, [esp + 0x228]
test eax, eax
jne 0x50fcbf
xor ebx, ebx
jmp 0x50fccb
lea ecx, [esp + 0x228]
push ecx
call ebp
mov ebx, eax
mov edi, dword [esp + 0x10]
cmp dword [edi - 0xc], 1
jg 0x50fcda
cmp ebx, dword [edi - 4]
jle 0x50fcf5
lea ecx, [esp + 0x10]
call fcn.00412670
push ebx
lea ecx, [esp + 0x14]
call fcn.00405530
test eax, eax
je 0x50fd20
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 0x50fd40
push ecx
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x50fd9a
mov ecx, dword [0x546560]
mov esi, eax
test eax, eax
mov dword [ebx], ecx
jne 0x50fd52
xor ebp, ebp
jmp 0x50fd57
push eax
call ebp
mov ebp, eax
mov eax, dword [ebx]
cmp dword [eax - 0xc], 1
jg 0x50fd64
cmp ebp, dword [eax - 4]
jle 0x50fd77
mov ecx, ebx
call fcn.00412670
push ebp
mov ecx, ebx
call fcn.00405530
test eax, eax
je 0x50fd9a
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 [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x50fdc9
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x50fdc9
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x2b8
ret

Function at 0x510680
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], 0x5409d8
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov eax, esi
pop esi
ret 8

Function at 0x510bb0
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 0x510c80
Capabilities:
Get common file path

Disassembly:
mov eax, dword [ecx + 4]
push esi
lea esi, [ecx + 4]
test eax, eax
je 0x510cd3
mov eax, dword [0x553dd0]
test eax, eax
jne 0x510ca1
push 0x553dd0
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
jmp 0x510ca7
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov ecx, dword [esi]
mov dword [esi], 0
mov eax, dword [0x553dd0]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x14]
mov eax, dword [0x553dd0]
test eax, eax
je 0x510cd3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
test eax, eax
jne 0x510cd3
mov dword [0x553dd0], 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 0x510d00
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 0x510d2f
lea eax, [edx + 4]
jmp 0x510d31
xor eax, eax
mov eax, dword [eax]
mov ecx, dword [0x553d9c]
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.00510700
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.0053239a
add esp, 8
test eax, eax
pop edi
je 0x510da3
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 [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x510de8
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x510de8
mov edx, dword [esp]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
xor eax, eax
add esp, 0x840
ret 8

Function at 0x510e00
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 0x510e2f
lea eax, [edx + 4]
jmp 0x510e31
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 0x5186e0
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 0x5186f8
mov esi, 1
push 0x11
call edi
test ax, ax
jge 0x518704
add esi, 2
push 0x12
call edi
test ax, ax
jge 0x518710
add esi, 4
mov eax, esi
pop edi
pop esi
ret

Function at 0x518d20
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 [0x553d9c]
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 0x518d97
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 0x518dbf
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 0x51cc40
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.00411d40
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.0047f170
push edi
call fcn.004755e0
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 0x51cd31
mov ecx, dword [0x55ab48]
push 0
push ebp
push 0x111
push ecx
call ebx
mov esi, dword [sym.imp.USER32.dll_DestroyMenu]
test edi, edi
je 0x51cd3e
push edi
call esi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x51cd49
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x51ce80
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 0x51cfba
push 0x34
call fcn.00531ba5
mov edi, eax
add esp, 4
test edi, edi
je 0x51ced8
mov ecx, edi
call fcn.0040f8f0
mov eax, dword [0x546560]
mov dword [edi + 0x1c], eax
mov ecx, dword [0x546560]
mov dword [edi + 0x28], ecx
mov edx, dword [0x546560]
mov dword [edi + 0x2c], edx
mov eax, dword [0x546560]
mov dword [edi + 0x30], eax
mov dword [edi], 0x542168
jmp 0x51ceda
xor edi, edi
lea ecx, [edi + 8]
push edi
push ecx
push 0x55e2f8
call fcn.0040f8b0
mov edx, dword [esp + 0x24]
mov eax, dword [0x55e300]
push 0
push 0x414350
push edx
push 0x12a
push eax
call fcn.0044a980
test eax, eax
je 0x51cfae
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 0x51cf32
mov dword [ebp], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x51cf56
mov ecx, dword [0x546560]
mov dword [ebp], ecx
mov ebx, dword [esi + 0x28]
test ebx, ebx
jne 0x51cf46
xor eax, eax
jmp 0x51cf4d
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
push eax
mov ecx, ebp
call fcn.00405870
mov ecx, edi
call fcn.0051d0b0
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 0x520670
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x40
push ebx
push ebp
push esi
push edi
push 0x3f8
call fcn.00531ba5
xor ebp, ebp
add esp, 4
cmp eax, ebp
je 0x520697
mov ecx, eax
call fcn.0051c6a0
mov dword [esp + 0x10], eax
jmp 0x52069d
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 0x55e32c
mov dword [esi + 4], eax
call ebx
mov eax, dword [0x55e360]
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esi + 8], eax
push 0x55e32c
mov dword [0x55e360], esi
call edi
mov esi, dword [0x55e300]
push 0x55e32c
call ebx
mov ebx, dword [sym.imp.USER32.dll_RegisterWindowMessageW]
push str.WM_ATLGETHOST
call ebx
push str.WM_ATLGETCONTROL
mov dword [0x553d90], eax
call ebx
lea ecx, [esp + 0x20]
mov dword [0x553d8c], eax
mov eax, dword [0x55e2fc]
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 0x52077a
mov edx, dword [0x55e2fc]
push 0x7f00
push ebp
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], 0x51d360
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 0x55e32c
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 0x5207bd
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 0x520817
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.004163f0
mov ecx, dword [esp + 0x5c]
add esp, 8
mov edi, eax
push 0
push 0x414350
push ecx
push edi
push esi
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
cmp edi, ebx
je 0x520808
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 0x52082a
test edi, edi
je 0x52082a
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 0x52083f
mov edx, dword [eax + 4]
mov dword [ecx], edx
add esp, 0x40
ret