joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45b3d0
Capabilities:
Log keystrokes via polling

Disassembly:
test bl, bl
jne 0x45b3d7
xor al, al
ret
mov eax, dword [esp + 4]
dec eax
je 0x45b3ff
dec eax
je 0x45b3f1
movzx eax, bl
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
ret
movzx ecx, bl
push ecx
call dword [sym.imp.USER32.dll_GetKeyState]
and eax, 1
ret
lea edx, [ebx - 1]
cmp dl, 5
ja 0x45b40c
cmp bl, 3
jne 0x45b413
lea eax, [ebx + 0x66]
cmp al, 5
ja 0x45b439
cmp dword [0x4bb5e0], 0
je 0x45b429
movzx ecx, bl
mov al, byte [ecx + 0x4bb4d0]
shr al, 7
ret
movzx edx, bl
push edx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
ret
cmp dword [0x4bb5dc], 0
je 0x45b468
xor ecx, ecx
xor edx, edx
mov al, bl
call fcn.0041ab30
test al, al
je 0x45b45b
push 1
call fcn.0041a900
add esp, 4
movzx eax, bl
mov al, byte [eax + 0x4bb4d0]
shr al, 7
ret
movzx ecx, bl
push ecx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
ret
Function at 0x45b9b0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x108
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
push ebp
push esi
push edi
mov esi, ecx
push esi
push 0
mov edi, eax
push 0x410
mov byte [edi], 0
call ebx
mov ebp, eax
test ebp, ebp
jne 0x45b9f1
push esi
push eax
push 0x1000
call ebx
mov ebp, eax
test ebp, ebp
jne 0x45b9f1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
cmp byte [esp + 0x11c], 0
push 0x104
push edi
push 0
push ebp
je 0x45ba0c
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameA]
jmp 0x45ba12
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExA]
test byte [0x4bd5e8], 1
mov ebx, eax
jne 0x45ba42
or dword [0x4bd5e8], 1
push str.GetProcessImageFileNameA
push str.psapi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4bd5e4], eax
jmp 0x45ba47
mov eax, dword [0x4bd5e4]
test ebx, ebx
jne 0x45bb44
test eax, eax
je 0x45bb44
push 0x104
push edi
push ebp
call eax
mov ebx, eax
test ebx, ebx
je 0x45bb44
cmp byte [esp + 0x11c], 0
je 0x45bab9
push 0x5c
push edi
call fcn.0049406c
add esp, 8
test eax, eax
je 0x45bb44
mov ecx, eax
lea esi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x45ba90
sub ecx, esi
push ecx
inc eax
push eax
push edi
call fcn.00494250
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x108
ret
mov word [esp + 0x11], 0x3a
mov byte [esp + 0x10], 0x41
push 0x104
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
mov esi, eax
cmp esi, 2
jbe 0x45bafd
sub esi, 2
push esi
lea edx, [esp + 0x18]
push edi
push edx
call fcn.00495b33
add esp, 0xc
test eax, eax
jne 0x45bafd
cmp byte [esi + edi], 0x5c
je 0x45bb1f
mov al, byte [esp + 0x10]
inc al
mov byte [esp + 0x10], al
cmp al, 0x5a
jle 0x45bac5
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x108
ret
mov al, byte [esp + 0x10]
mov cl, byte [esp + 0x11]
sub ebx, esi
lea edx, [ebx + 1]
push edx
add esi, edi
mov byte [edi], al
mov byte [edi + 1], cl
push esi
add edi, 2
push edi
call fcn.00494250
add esp, 0xc
add ebx, 2
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x108
ret
Function at 0x45e5b0
Capabilities:
Delete file

Disassembly:
sub esp, 0x130
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x45e665
cmp byte [eax], bl
je 0x45e665
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x30]
push edx
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea eax, [esp + 0x2c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x45e5e6
sub eax, edx
cmp eax, ebx
je 0x45e600
cmp byte [esp + eax + 0x2b], 0x5c
lea eax, [esp + eax + 0x2b]
jne 0x45e600
mov byte [eax], bl
lea eax, [esp + 0x2c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x45e607
sub eax, edx
mov byte [esp + eax + 0x2d], bl
lea edx, [esp + 8]
lea eax, [esp + 0x2c]
mov ecx, 0x4054
push edx
mov dword [esp + 0x22], ebx
mov dword [esp + 0x26], ebx
mov dword [esp + 0x1e], ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 3
mov word [esp + 0x1c], cx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
setne al
movzx ecx, al
push ecx
mov ebx, esi
call fcn.0043b1a0
pop ebx
add esp, 0x130
ret
mov edx, dword [0x4b7a70]
test byte [edx + 0xe0], 1
jne 0x45e691
mov eax, dword [0x4bbcb4]
push 1
push ebx
push 0xffffffffffffffff
push 0x4a7de4
push eax
call fcn.00482f60
pop ebx
add esp, 0x130
ret
push 0x4a78b1
push ebx
push 0x4a7de4
mov ebx, esi
call fcn.0043b0a0
pop ebx
add esp, 0x130
ret
Function at 0x45e6b0
Capabilities:
Get file version info

Disassembly:
sub esp, 0x94
push ebx
push ebp
push esi
mov ebx, ecx
mov ecx, dword [0x4bb3e8]
push edi
mov edi, eax
call fcn.0041c270
test edi, edi
je 0x45e805
cmp byte [edi], 0
je 0x45e805
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov esi, eax
test esi, esi
jne 0x45e729
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4b7a70]
test byte [ecx + 0xe0], 1
mov dword [ecx + 0x30], eax
jne 0x45e83c
mov ecx, dword [0x4bbcb4]
push 1
push esi
push 0xffffffffffffffff
push 0x4a7de4
push ecx
call fcn.00482f60
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret
push esi
call fcn.004938a9
add esp, 4
mov ebp, eax
push ebp
push esi
push 0
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x45e7dd
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
push 0x4aaf8c
push ebp
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x45e7dd
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
movzx edx, cx
push edx
shr ecx, 0x10
push ecx
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
push str._u._u._u._u
mov esi, 0x80
lea edi, [esp + 0x34]
call fcn.0047fde0
add esp, 0x14
push ebp
call fcn.004932d8
mov eax, dword [0x4bbcb4]
mov edx, dword [0x4b7a70]
add esp, 4
push 1
push 0
push 0xffffffffffffffff
push 0x4a7940
push eax
mov dword [edx + 0x30], 0
call fcn.00482f60
mov edx, dword [0x4bb3e8]
push 1
push 0
push 0xffffffffffffffff
mov ecx, edi
push ecx
push edx
call fcn.00482f60
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4b7a70]
push ebp
mov dword [ecx + 0x30], eax
call fcn.004932d8
add esp, 4
call fcn.0043d080
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret
mov eax, dword [0x4b7a70]
test byte [eax + 0xe0], 1
mov dword [eax + 0x30], 0x57
jne 0x45e83c
mov edx, dword [0x4bbcb4]
push 1
push 0
push 0xffffffffffffffff
push 0x4a7de4
push edx
call fcn.00482f60
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret
push 0x4a78b1
push 0
push 0x4a7de4
call fcn.0043b0a0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret
Function at 0x45eaf0
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
sub esp, 0x12c
push ebx
xor ebx, ebx
cmp byte [eax], bl
jne 0x45eb07
xor al, al
pop ebx
add esp, 0x12c
ret
cmp byte [esp + 0x134], bl
jne 0x45eb24
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
setne al
pop ebx
add esp, 0x12c
ret
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x2c]
push edx
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea eax, [esp + 0x28]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x45eb41
sub eax, edx
cmp eax, ebx
je 0x45eb5b
cmp byte [esp + eax + 0x27], 0x5c
lea eax, [esp + eax + 0x27]
jne 0x45eb5b
mov byte [eax], bl
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x45eafd
test al, 0x10
je 0x45eafd
lea eax, [esp + 0x28]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x45eb76
sub eax, edx
mov byte [esp + eax + 0x29], bl
lea eax, [esp + 4]
lea ecx, [esp + 0x28]
mov edx, 0x614
push eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1e], ebx
mov dword [esp + 0x22], ebx
mov dword [esp + 0x1a], ebx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 3
mov word [esp + 0x18], dx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
neg eax
sbb eax, eax
inc eax
pop ebx
add esp, 0x12c
ret
Function at 0x45f080
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x18
lea eax, [esp + 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x45f0a1
xor al, al
add esp, 0x18
ret
lea ecx, [esp + 0xc]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp + 4]
push 0
push 0
push 0
lea edx, [esp + 0x14]
push edx
push 0
push eax
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x45f09b
mov ecx, dword [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
setne al
add esp, 0x18
ret

Function at 0x45f100
Capabilities:
Terminate process

Disassembly:
sub esp, 8
push esi
mov esi, eax
lea eax, [esp + 8]
push eax
push 0x1f4
push 2
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
test eax, eax
jne 0x45f15f
lea ecx, [esp + 4]
push ecx
push esi
mov dword [esp + 0xc], eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [esp + 4]
test eax, eax
je 0x45f15f
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x45f15f
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
add esp, 8
ret
Function at 0x45f290
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x550
push ebp
push esi
push edi
push 0
push 2
mov dword [esp + 0x18], 0x128
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
lea eax, [esp + 0x10]
push eax
push esi
mov dword [esp + 0x14], esi
call dword [sym.imp.KERNEL32.dll_Process32First]
push 0
push 0
push 1
push 0
mov eax, ebx
call fcn.0047fc70
add esp, 0x10
test eax, eax
je 0x45f2fc
mov eax, ebx
call fcn.00404050
test al, al
je 0x45f2ef
push 0x10
push 0
push ebx
call fcn.0049381b
add esp, 0xc
mov ebp, eax
jmp 0x45f2fe
push ebx
call fcn.00493893
add esp, 4
mov ebp, eax
jmp 0x45f2fe
xor ebp, ebp
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
je 0x45f3b0
test ebp, ebp
je 0x45f320
cmp ebp, dword [esp + 0x18]
je 0x45f3c3
lea edx, [esp + 0x240]
push edx
lea eax, [esp + 0x13c]
push eax
lea ecx, [esp + 0x458]
push ecx
lea edx, [esp + 0x354]
push edx
lea eax, [esp + 0x44]
push eax
call fcn.004963ef
lea eax, [esp + 0x254]
add esp, 0x14
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x45f356
lea edi, [esp + 0x138]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x45f367
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x138]
push ebx
push ecx
call fcn.004932c1
add esp, 8
test eax, eax
je 0x45f3d6
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_Process32Next]
mov esi, dword [esp + 0xc]
test eax, eax
jne 0x45f312
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x550
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebp
pop edi
pop esi
pop ebp
add esp, 0x550
ret
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x550
ret
Function at 0x4668b0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, ecx
movzx ecx, byte [edi + 1]
xor eax, eax
xor ebx, ebx
mov dword [esp + 0x18], eax
cmp ecx, eax
jle 0x466aa5
mov dword [esp + 0x1c], eax
mov edx, dword [edi + 8]
add eax, edx
mov dl, byte [eax]
cmp dl, 2
jne 0x466902
push 1
push ebx
push edi
call fcn.0042e330
mov ecx, dword [esp + 0x24]
mov dword [ecx + ebx*4], eax
test eax, eax
jne 0x466a8d
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
cmp byte [eax + 1], 0
mov ebp, dword [esp + 0x24]
mov dword [ebp + ebx*4], 0
je 0x466935
movzx eax, word [eax + 2]
mov edx, 0xff
cmp ax, dx
jae 0x466924
mov eax, edx
mov ecx, dword [esp + 0x18]
lea edx, [ecx + eax + 1]
mov dword [esp + 0x18], edx
jmp 0x466a8d
cmp dl, 1
jne 0x46694b
push 0
push ebx
push edi
call fcn.0042e330
mov esi, eax
test esi, esi
je 0x4668f5
jmp 0x466993
cmp ebx, ecx
jge 0x466a8d
mov cl, byte [eax]
test cl, cl
jne 0x46696b
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x466965
cmp dword [ecx], 0
jne 0x466979
cmp byte [eax + 1], 0
jmp 0x466973
cmp cl, 1
sete cl
test cl, cl
je 0x466a8d
mov ecx, dword [eax + 8]
cmp dword [ecx + 0xc], 0
jne 0x4669ca
mov dx, word [ecx + 0xa]
cmp dx, word [eax + 2]
jne 0x4669ca
mov esi, dword [ecx + 4]
test esi, esi
je 0x4669ca
push ebp
push ebx
push esi
mov dword [ebp + ebx*4], esi
call fcn.00466ad0
test eax, eax
je 0x4668f5
cmp eax, 4
je 0x466a8d
push 0
mov ecx, esi
call fcn.00483330
mov ecx, dword [esp + 0x18]
lea edx, [ecx + eax + 1]
mov dword [esp + 0x18], edx
jmp 0x466a8d
movzx eax, word [eax + 2]
mov edx, dword [esp + 0x18]
lea eax, [edx + eax + 1]
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x466a8d
mov ebp, ecx
cmp dword [ebp], 0
je 0x466a8d
mov edi, edi
mov esi, dword [ebp + 4]
movzx ecx, word [ebp + 0xa]
movzx eax, byte [esi + 0x17]
sub dword [esp + 0x18], ecx
cmp eax, 3
ja case.default.0x466a04
jmp dword [eax*4 + 0x466ab4]
mov eax, esi
call fcn.004011b0
cmp dword [0x4bb618], 0
jne 0x466a4d
cmp dword [esi + 0xc], 0
jne 0x466a4d
mov eax, dword [esi + 0x18]
push 0
lea edx, [esp + 0x1b]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x466a43
mov dword [0x4bd578], 0
dec eax
jmp 0x466a7c
mov dword [0x4bd578], esi
xor eax, eax
jmp 0x466a7c
mov eax, dword [esi + 0xc]
jmp 0x466a7c
mov ecx, dword [esi + 0xc]
push 0
call fcn.00483330
jmp 0x466a7c
xor ecx, ecx
call fcn.00404ec0
cmp eax, 0xffffffff
jne 0x466a7c
xor eax, eax
jmp 0x466a7c
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x10]
push ecx
push 0
call edx
add esp, 8
add dword [esp + 0x18], eax
add ebp, 0xc
cmp dword [ebp], 0
jne 0x4669f0
mov eax, dword [esp + 0x1c]
movzx ecx, byte [edi + 1]
inc ebx
add eax, 0x10
mov dword [esp + 0x1c], eax
cmp ebx, ecx
jl 0x4668d1
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
Function at 0x4708f0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [eax + 4]
test eax, eax
je 0x470900
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
ret

Function at 0x470910
Capabilities:
Hide graphical window

Disassembly:
cmp dword [eax + 0x24], 0
mov eax, dword [eax + 4]
jne 0x47092c
test eax, eax
je 0x47093f
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
ret
push 0
push 0x2af80006
push 0x414
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, 1
ret

Function at 0x470980
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x34
cmp dword [edi + 4], 0
push ebx
push ebp
push esi
je 0x470ad5
xor ebp, ebp
cmp dword [edi + 0x10], ebp
jbe 0x4709c5
xor esi, esi
mov eax, dword [edi + 0x18]
cmp dword [eax + esi + 8], 0
je 0x4709bc
cmp byte [eax + esi + 4], 6
je 0x4709bc
lea edx, [esi + eax]
mov eax, dword [edx + 8]
push eax
push edi
mov ecx, str.Submit
call fcn.00470b80
inc ebp
add esi, 0x14
cmp ebp, dword [edi + 0x10]
jb 0x470999
xor esi, esi
xor ebx, ebx
xor ebp, ebp
cmp esi, dword [edi + 0x10]
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], esi
je 0x4709fa
mov ecx, dword [edi + 0x18]
mov edx, dword [esp + 0x14]
mov eax, dword [ecx + edx]
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x20000
je 0x470a43
cmp dword [esp + 0x10], 1
jne 0x470a32
cmp ebx, 1
jle 0x470a32
cmp ebp, 0xffffffff
jne 0x470a0d
xor ebp, ebp
push 0xa
lea ecx, [esp + 0x24]
push ecx
push ebp
call fcn.00492f52
mov eax, dword [esp + 0x24]
add esp, 0xc
push 1
push 0
push 0xffffffffffffffff
lea edx, [esp + 0x2c]
push edx
push eax
call fcn.00482f60
cmp esi, dword [edi + 0x10]
je 0x470ac2
xor ebx, ebx
xor ebp, ebp
mov dword [esp + 0x10], ebx
mov eax, dword [edi + 0x18]
mov edx, dword [esp + 0x14]
cmp byte [eax + edx + 4], 6
jne 0x470aab
mov esi, dword [eax + edx + 8]
inc ebx
test esi, esi
je 0x470a62
inc dword [esp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax + edx]
push 0
push 0
push 0xf0
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 1
jne 0x470a96
test ebp, ebp
je 0x470a83
or ebp, 0xffffffff
jmp 0x470a85
mov ebp, ebx
test esi, esi
je 0x470aab
push 1
push 0
push 0xffffffffffffffff
push 0x4a7de4
jmp 0x470aa5
test esi, esi
je 0x470aab
push 1
push 0
push 0xffffffffffffffff
push 0x4a7940
push esi
call fcn.00482f60
mov esi, dword [esp + 0x1c]
add dword [esp + 0x14], 0x14
inc esi
mov dword [esp + 0x1c], esi
cmp esi, dword [edi + 0x10]
jbe 0x4709de
cmp byte [esp + 0x44], 0
je 0x470ad5
mov ecx, dword [edi + 4]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x34
ret 4
Function at 0x473510
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 8
push esi
mov esi, eax
cmp byte [esi], 0
jne 0x473522
xor eax, eax
pop esi
add esp, 8
ret
push ebx
xor bl, bl
mov byte [esp + 0xa], bl
cmp byte [esi + 1], bl
je 0x473556
mov edi, edi
mov al, byte [esi]
cmp al, 0x21
je 0x473548
cmp al, 0x2b
je 0x473543
cmp al, 0x5e
jne 0x473552
or bl, 2
jmp 0x47354b
or bl, 1
jmp 0x47354b
or bl, 4
inc esi
cmp byte [esi + 1], 0
jne 0x473530
mov byte [esp + 0xa], bl
push 0
mov byte [esp + 0xf], 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
lea eax, [esp + 0xf]
push 0
push eax
mov eax, esi
call fcn.0041b230
add esp, 0xc
mov byte [esp + 0xc], al
test al, al
jne 0x473585
pop ebx
xor eax, eax
pop esi
add esp, 8
ret
mov al, byte [esp + 0xb]
test al, 0xc
je 0x473594
or bl, 4
mov byte [esp + 0xa], bl
test al, 3
je 0x47359f
or bl, 2
mov byte [esp + 0xa], bl
test al, 0x30
je 0x4735aa
or bl, 1
mov byte [esp + 0xa], bl
xor ebx, ebx
mov eax, esi
call fcn.0041b180
movzx eax, ax
test ax, ax
jne 0x4735cd
mov ecx, dword [esp + 0xc]
push ecx
xor bl, bl
call fcn.0041b790
add esp, 4
movzx eax, ax
test eax, 0x100
je 0x4735d9
or byte [esp + 0xa], 8
movzx eax, byte [esp + 0xa]
movzx edx, byte [esp + 0xc]
shl eax, 8
pop ebx
or eax, edx
pop esi
add esp, 8
ret
Function at 0x474b90
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x10
movzx eax, byte [esi + 4]
push ebp
mov ebp, dword [esp + 0x18]
add eax, 0xfffffff7
push edi
mov dword [esp + 8], connect
cmp eax, 8
ja case.0x474bb1.12
jmp dword [eax*4 + 0x474cb0]
mov eax, dword [esi]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x19f
push eax
call edi
cmp eax, 0xffffffff
je 0x474c5e
mov edx, dword [esi]
lea ecx, [esp + 8]
push ecx
push eax
push 0x198
push edx
call edi
jmp 0x474c5e
mov eax, dword [esi]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 1
push 0xffffffffffffffff
push 0x100c
push eax
call edi
cmp eax, 0xffffffff
je 0x474c5e
mov edx, dword [esi]
lea ecx, [esp + 8]
push ecx
push eax
push 0x100e
push edx
mov dword [esp + 0x18], 2
call edi
jmp 0x474c5e
mov eax, dword [esi]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 9
push 0x110a
push eax
call edi
test eax, eax
je 0x474c5e
mov edx, dword [esi]
lea ecx, [esp + 8]
push ecx
push 1
push 0x1104
push edx
mov dword [esp + 0x18], eax
call edi
jmp 0x474c5e
mov ecx, dword [esi]
lea eax, [esp + 8]
push eax
push 0
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [esp + 8], 0x80000000
jne 0x474c78
mov eax, dword [esi]
lea edx, [esp + 8]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
jmp 0x474c8a
mov edx, dword [esi]
push 2
lea ecx, [esp + 0xc]
push ecx
push 0
push edx
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [ebp], eax
mov eax, dword [esp + 0x14]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
lea ecx, [eax + ecx + 2]
pop edi
mov dword [ebp + 4], ecx
pop ebp
add esp, 0x10
ret 4
Function at 0x475230
Capabilities:
Get keyboard layout

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, eax
lea esp, [esp]
mov al, byte [esi]
cmp al, 0x20
je 0x47524a
cmp al, 9
jne 0x47524d
inc esi
jmp 0x475240
mov cl, byte [esi]
test cl, cl
jne 0x475259
pop esi
xor al, al
pop ebp
pop ecx
ret
cmp byte [esi + 1], 0
lea eax, [esi + 1]
jne 0x475273
movzx eax, cl
mov word [ebp + 2], ax
pop esi
mov byte [ebp], 0
mov al, 1
pop ebp
pop ecx
ret
push ebx
push edi
push 0x2b
push eax
mov byte [ebp], 1
mov byte [esp + 0x1b], 0
call fcn.004949a1
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x47532f
lea eax, [ebx - 1]
cmp eax, esi
jbe 0x4752b1
lea ebx, [ebx]
mov cl, byte [eax]
cmp cl, 0x20
je 0x4752ac
cmp cl, 9
jne 0x4752b1
dec eax
cmp eax, esi
ja 0x4752a0
sub eax, esi
lea edi, [eax + 1]
push edi
push str.Ctrl
push esi
call fcn.00493bee
add esp, 0xc
test eax, eax
jne 0x4752d0
or byte [esp + 0x13], 1
jmp 0x475302
push edi
push 0x4a8e88
push esi
call fcn.00493bee
add esp, 0xc
test eax, eax
jne 0x4752ea
or byte [esp + 0x13], 4
jmp 0x475302
push edi
push str.Shift
push esi
call fcn.00493bee
add esp, 0xc
test eax, eax
jne 0x475361
or byte [esp + 0x13], 0x10
lea esi, [ebx + 1]
mov al, byte [esi]
cmp al, 0x20
je 0x47530f
cmp al, 9
jne 0x475312
inc esi
jmp 0x475305
cmp byte [esi], 0
je 0x475361
lea ecx, [esi + 1]
push 0x2b
push ecx
call fcn.004949a1
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x475293
cmp byte [esi + 1], 0
jne 0x475369
push 1
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
movzx edx, byte [esi]
push eax
push edx
call dword [sym.imp.USER32.dll_CharLowerA]
lea edi, [esp + 0x1b]
mov bl, al
call fcn.0041b310
movzx eax, al
add esp, 8
mov word [ebp + 2], ax
jmp 0x475387
pop edi
pop ebx
pop esi
xor al, al
pop ebp
pop ecx
ret
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 0
push 0
mov eax, esi
call fcn.0041b230
movzx ecx, al
add esp, 0xc
mov word [ebp + 2], cx
mov al, byte [esp + 0x13]
test al, 1
je 0x475393
or byte [ebp], 8
test al, 4
je 0x47539b
or byte [ebp], 0x10
test al, 0x10
je 0x4753a3
or byte [ebp], 4
cmp word [ebp + 2], 0
pop edi
pop ebx
pop esi
setne al
pop ebp
pop ecx
ret