joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402e20
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x4302ec]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x428740
lea ecx, [ebp - 0x21c]
push 0x104
push ecx
call fcn.00419792
push str.UdSafe
lea edx, [ebp - 0x21c]
push 0x104
push edx
call fcn.00419792
add esp, 0x18
push 0
push 4
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x402efc
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [ebp - 0x220]
push ecx
push 4
lea edx, [ebp + 8]
push edx
push esi
call edi
test eax, eax
je 0x402ef5
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp + 8]
push 4
push ecx
call fcn.004024f0
add esp, 0xc
push 0
lea edx, [ebp - 0x220]
push edx
push 0x10
lea eax, [ebp - 0x14]
push eax
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418c6f
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00418c6f
mov esp, ebp
pop ebp
ret

Function at 0x402f10
Capabilities:
Get common file path
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x4302ec]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x428740
lea ecx, [ebp - 0x21c]
push 0x104
push ecx
call fcn.00419792
push str.UdSafe
lea edx, [ebp - 0x21c]
push 0x104
push edx
call fcn.00419792
add esp, 0x18
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40300e
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x403007
push esi
call fcn.0041981a
add esp, 4
push 0
lea ecx, [ebp - 0x224]
push ecx
push esi
mov edi, eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [edi]
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x220]
push 4
push ecx
mov dword [ebp - 0x220], edx
call fcn.004024f0
add esp, 0xc
xor eax, eax
lea ecx, [ecx]
mov dl, byte [ebp + eax - 0x14]
cmp dl, byte [edi + eax + 4]
jne 0x403007
inc eax
cmp eax, 0x10
jl 0x402fe0
mov eax, dword [ebp - 0x220]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418c6f
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00418c6f
mov esp, ebp
pop ebp
ret
Function at 0x403430
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x4302ec]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
push esi
lea eax, [ebp - 0x70]
push eax
mov dword [ebp - 0x68], esi
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x40354d
push ebx
push edi
mov ecx, 0x13
mov esi, str.Content_Type:_text_html__charsetUTF_8
lea edi, [ebp - 0x64]
rep movsd dword es:[edi], dword [esi]
push 0
push 0
push 0
push 0
push 0
movsw word es:[edi], word [esi]
call dword [sym.imp.WININET.dll_InternetOpenW]
push 0
push 0
push 3
push 0
push 0
push 0x50
mov edi, eax
push str.www.uudoc.com
push edi
call dword [sym.imp.WININET.dll_InternetConnectW]
push 0
push 0
push 0
push 0
push 0
push 0x42874c
mov ebx, eax
push 0x428744
push ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov esi, eax
lea eax, [ebp - 0x64]
lea edx, [eax + 2]
jmp 0x4034c0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4034c0
push 0
sub eax, edx
push 0
sar eax, 1
push eax
lea ecx, [ebp - 0x64]
push ecx
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x40352a
xor eax, eax
lea edx, [ebp - 0x6c]
push edx
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
push 0x10
lea eax, [ebp - 0x14]
push eax
push esi
mov byte [ebp - 0x14], 0
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x40352a
lea ecx, [ebp - 0x14]
push ecx
call fcn.0041983b
add esp, 4
mov dword [ebp - 0x68], eax
test eax, eax
jbe 0x40352a
push eax
call fcn.00402e20
add esp, 4
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebx
call esi
push edi
call esi
mov eax, dword [ebp - 0x68]
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418c6f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00418c6f
mov esp, ebp
pop ebp
ret
Function at 0x404250
Capabilities:
Check if file exists
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4302ec]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x20c]
mov edi, ecx
push eax
mov dword [ebp - 0x214], edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x428740
lea ecx, [ebp - 0x20c]
push 0x104
push ecx
call fcn.00419792
push str.UdSafety.dll
lea edx, [ebp - 0x20c]
push 0x104
push edx
call fcn.00419792
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40438e
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x4288c0
push 0x12c
push eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x40438e
push esi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40438e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x404388
mov ecx, dword [edi]
push esi
push 0
mov dword [ebp - 0x210], ecx
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
sub esi, 4
push esi
call fcn.0041981a
mov ebx, eax
push ebx
push str.0123456789ABCDEF
push esi
add edi, 4
push edi
call fcn.004027d0
add esp, 0x14
push 0
push 4
push 2
push 0
push 0
push 0x40000000
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40437f
mov ecx, dword [ebp - 0x210]
push 0
lea eax, [ebp - 0x210]
push eax
push ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.0041980f
add esp, 4
mov edi, dword [ebp - 0x214]
push str.UdSafety.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi + 0xc], eax
test eax, eax
je 0x40441e
push str.InstallHook
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40441e
call eax
test eax, eax
jl 0x40441e
cmp byte [edi + 0x62], 2
jb 0x404408
mov eax, dword [edi + 0x98]
lea edx, [edi + 0x98]
test eax, eax
je 0x4043e2
cmp dword [eax - 0xc], 0
jle 0x4043e2
push ecx
mov ecx, esp
push edx
call fcn.004037f0
mov ecx, edi
call fcn.00403fc0
mov eax, dword [edi + 0x9c]
lea edx, [edi + 0x9c]
test eax, eax
je 0x404408
cmp dword [eax - 0xc], 0
jle 0x404408
push ecx
mov ecx, esp
push edx
call fcn.004037f0
mov ecx, edi
call fcn.00404030
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418c6f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00418c6f
mov esp, ebp
pop ebp
ret
Function at 0x404d90
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4302ec]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.00418c80
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x404dfd
mov eax, dword [ebp - 0x114]
cmp eax, 5
jae 0x404ded
cmp eax, 4
jne 0x404dfd
cmp dword [ebp - 0x110], 0x5a
jb 0x404dfd
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418c6f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.00418c6f
mov esp, ebp
pop ebp
ret

Function at 0x4056a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test esi, esi
jne 0x4056b9
lea eax, [esi + 0xd]
pop esi
mov esp, ebp
pop ebp
ret 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
xor edi, edi
push esi
call ebx
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x4056c3
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
push edi
push eax
mov eax, dword [edx]
push 7
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x405d30
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x4302ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, ecx
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
lea esi, [ebp - 0x210]
push esi
xor edi, edi
or eax, 0x2001f
push eax
push edi
push edx
push ecx
mov dword [ebp - 0x218], edx
mov dword [ebp - 0x20c], edi
mov dword [ebp - 0x208], edi
mov dword [ebp - 0x210], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [ebp - 0x20c]
mov esi, eax
cmp esi, edi
jne 0x405db1
xor eax, eax
cmp ecx, edi
je 0x405d99
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x210]
mov dword [ebp - 0x208], edi
mov esi, eax
mov dword [ebp - 0x20c], ecx
cmp eax, edi
je 0x405dbf
cmp ecx, edi
je 0x405e80
push ecx
jmp 0x405e7a
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [ebp - 0x220]
push eax
push edi
push edi
push edi
lea edx, [ebp - 0x214]
push edx
lea eax, [ebp - 0x204]
push eax
push edi
push ecx
mov dword [ebp - 0x214], 0x100
call esi
test eax, eax
jne 0x405e40
nop
lea ecx, [ebp - 0x204]
push ecx
lea ecx, [ebp - 0x20c]
call fcn.00405d30
mov dword [ebp - 0x210], eax
cmp eax, edi
jne 0x405e95
lea edx, [ebp - 0x220]
push edx
mov edx, dword [ebp - 0x20c]
push edi
push edi
push edi
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x204]
push ecx
push edi
push edx
mov dword [ebp - 0x214], 0x100
call esi
test eax, eax
je 0x405df0
mov eax, dword [ebp - 0x20c]
cmp eax, edi
je 0x405e57
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x20c], edi
mov eax, dword [ebp - 0x218]
mov ecx, dword [ebx]
push eax
push ecx
mov dword [ebp - 0x208], edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [ebp - 0x20c]
cmp eax, edi
je 0x405e80
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418c6f
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0x20c]
cmp ecx, edi
je 0x405e82
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x210]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00418c6f
mov esp, ebp
pop ebp
ret 4
Function at 0x407720
Capabilities:
Resolve function by parsing pe exports

Disassembly:
fld1
xor eax, eax
push esi
mov esi, ecx
mov ecx, 3
fstp dword [esi + 0x58]
fld dword [0x428ca0]
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x34], ecx
fst dword [esi + 0x5c]
mov dword [esi + 0x3c], ecx
fstp dword [esi + 0x60]
movzx ecx, cl
and ecx, 1
lea edx, [esi + 0x68]
or ecx, 6
push edx
mov dword [esi + 0x28], eax
mov dword [esi + 0x30], eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x38], ecx
mov dword [esi + 0x64], eax
mov byte [esi + 0x78], al
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
call dword [sym.imp.USER32.dll_SetRectEmpty]
mov eax, esi
pop esi
ret

Function at 0x409ed0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4302ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edx, edx
push 2
push edx
push eax
mov dword [ebp - 0x40c], edx
mov dword [ebp - 0x410], ecx
mov dword [ebp - 0x414], edx
mov dword [ebp - 0x408], edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x409f25
call fcn.004054b0
mov esi, eax
jmp 0x40a004
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x409f3e
call fcn.004054b0
jmp 0x409ffb
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x409f56
call fcn.004054b0
jmp 0x409ffb
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x409fa3
lea eax, [ebp - 0x404]
cmp dword [ebp - 0x408], eax
je 0x409f80
lea ecx, [ebp - 0x408]
call fcn.0040b8e0
lea ecx, [ebp - 0x40c]
call fcn.00405c80
pop edi
pop esi
mov eax, 0x8007000e
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418c6f
mov esp, ebp
pop ebp
ret 0x10
push eax
lea ecx, [ebp - 0x408]
call fcn.004066a0
mov eax, dword [ebp - 0x408]
test eax, eax
jne 0x409fc0
mov esi, 0x8007000e
jmp 0x409ffd
push esi
push eax
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x409fd9
call fcn.004054b0
jmp 0x409ffb
mov edx, dword [ebp - 0x408]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x408]
push eax
push ecx
lea ecx, [ebp - 0x414]
call fcn.00407890
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [ebp - 0x404]
cmp dword [ebp - 0x408], edx
je 0x40a020
lea ecx, [ebp - 0x408]
call fcn.0040b8e0
lea ecx, [ecx]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00418c6f
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40af80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [0x4322c8]
push esi
push 2
push ecx
push eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ax, word [eax + 0xe]
pop esi
pop ebp
ret

Function at 0x40d2b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
lea edx, [ebp + 0x10]
push edx
mov edx, dword [ebp + 8]
push esi
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0xc]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40d322
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x40d2f1
cmp eax, 2
jne 0x40d30c
mov eax, dword [ebp + 0x10]
test esi, esi
je 0x40d31c
test eax, eax
je 0x40d317
test al, 1
jne 0x40d30c
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x40d31c
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x40d8e0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x54]
mov ecx, eax
and ecx, 0xc
push edi
mov bl, 1
cmp cl, 0xc
jne 0x40d93c
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_GetDlgCtrlID]
push eax
mov dword [ebp - 0xc], eax
call edi
mov edx, dword [esi + 4]
push edx
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0xfffffffe
call edi
mov edi, eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_GetParent]
lea ecx, [ebp - 0xc]
push ecx
push edi
push 0x4e
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
shr eax, 2
test al, 1
je 0x40d976
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov edi, eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_GetParent]
mov ecx, dword [esi + 4]
push ecx
movzx edx, di
push edx
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x28]
push 1
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
seta bl
test bl, bl
je 0x40d9a9
mov ecx, dword [esi + 4]
or byte [esi + 0x58], 2
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40f6d0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [ecx]
push ebx
push eax
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, eax
test ebx, ebx
je 0x40f732
push esi
push edi
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, dword [ebp + 0xc]
lea esi, [eax + 1]
mov eax, dword [edi]
sub eax, 0x10
mov edx, 1
sub edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, esi
or edx, eax
jge 0x40f714
push esi
mov ecx, edi
call fcn.00403130
mov eax, dword [edi]
push esi
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov esi, eax
push esi
mov ecx, edi
call fcn.0040f680
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
mov ecx, dword [ebp + 0xc]
call fcn.00403030
xor eax, eax
pop ebx
pop ebp
ret 8
Function at 0x410ec0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x4302ec]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
mov ecx, dword [ebx + 4]
lea eax, [ebp - 0xa0]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [ebp - 0x94]
sub edx, dword [ebp - 0x9c]
mov eax, dword [ebp - 0x98]
sub eax, dword [ebp - 0xa0]
push 1
push edx
lea esi, [ebx + 0x128]
push eax
mov ecx, esi
call fcn.0040ae70
mov ecx, dword [esi]
push 0x429118
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov edx, dword [esi]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push edx
call edi
mov eax, dword [ebx + 0x2c]
push 0
push eax
call edi
mov ecx, dword [ebx + 0x2c]
mov edx, dword [esi]
mov eax, dword [ebx + 0x130]
mov dword [ebp - 0x90], ecx
mov dword [ebx + 0x2c], edx
mov cl, byte [eax + 0x63]
cmp cl, 1
jne 0x410feb
xor ecx, ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], ecx
lea esi, [eax + 0x5c]
mov eax, dword [ebx + 4]
mov dword [ebp - 0x54], 0x428f38
mov ecx, 0xb
lea edi, [ebp - 0x30]
push 0
rep movsd dword es:[edi], dword [esi]
push eax
lea ecx, [ebp - 0x54]
call fcn.0040fc60
test eax, eax
mov eax, dword [ebp - 0x40]
jne 0x410fa9
test eax, eax
je 0x410f96
push eax
call fcn.004279a0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418c6f
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x410fb3
push eax
call fcn.004279a0
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [ebx + 0x128]
mov ecx, dword [ebp - 0x90]
push 0
push edx
mov dword [ebx + 0x2c], ecx
call edi
mov eax, dword [ebx + 0x2c]
push 5
push eax
call edi
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418c6f
mov esp, ebp
pop ebp
ret
cmp cl, 2
jne 0x410fb9
lea ecx, [ebp - 0x8c]
call fcn.0040f750
mov ecx, dword [ebx + 0x130]
add ecx, 0xa0
push ecx
lea ecx, [ebp - 0x10]
call fcn.0040fec0
mov edx, dword [ebx + 0x130]
add edx, 0x88
push edx
lea ecx, [ebp - 0xc]
call fcn.0040fec0
mov eax, dword [ebx + 4]
push 0
push eax
lea ecx, [ebp - 0x8c]
call fcn.0040fbd0
lea ecx, [ebp - 0x8c]
test eax, eax
jne 0x411058
call fcn.0040f7d0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00418c6f
mov esp, ebp
pop ebp
ret
call fcn.0040f7d0
jmp 0x410fb9
Function at 0x412af0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4302ec]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
mov dword [ebp - 0x118], 0x114
call fcn.00418c80
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x412b50
cmp dword [ebp - 0x114], 6
jb 0x412b50
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418c6f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.00418c6f
mov esp, ebp
pop ebp
ret
Function at 0x4154e0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, ecx
mov dword [edi], 0
mov eax, dword [esi + 0xa8]
cmp eax, 0x12
je 0x415519
cmp eax, 0x79
jne 0x41550c
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test al, al
jns 0x415519
cmp dword [esi + 0xa8], 0x20
jne 0x415599
cmp dword [ebp + 0xc], 0xf100
jne 0x415599
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, dword [esi + 4]
jne 0x415556
mov ecx, esi
call fcn.00414800
mov eax, dword [esi + 4]
push 0
push 0xffffffffffffffff
push 0x448
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
and byte [esi + 0x84], 0xbf
pop edi
xor eax, eax
pop esi
pop ebp
ret 0x10
mov eax, dword [esi + 0xa8]
cmp eax, 0x20
je 0x415599
test byte [esi + 0x84], 0x40
jne 0x41558e
mov al, byte [esi + 0x85]
test al, 2
je 0x415585
test al, 4
jne 0x415585
test al, 8
je 0x415585
push 1
mov ecx, esi
call fcn.00413a90
mov ecx, esi
call fcn.00413080
jmp 0x415593
cmp eax, 0x20
je 0x415599
mov dword [edi], 1
and byte [esi + 0x84], 0xbf
pop edi
xor eax, eax
pop esi
pop ebp
ret 0x10

Function at 0x416da0
Capabilities:
Capture webcam image

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
push esi
mov esi, ecx
cmp eax, dword [esi + 4]
je 0x416dc5
mov ecx, dword [ebp + 0x10]
pop esi
mov dword [ecx], 0
mov eax, 1
pop ebx
pop ebp
ret 0xc
push edi
mov edi, dword [sym.imp.USER32.dll_GetFocus]
call edi
cmp eax, dword [esi + 4]
je 0x416df4
test byte [esi + 0x58], 4
je 0x416dea
cmp dword [esi + 0xac], 0
jne 0x416dea
call edi
mov dword [esi + 0xac], eax
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebx + 0xc]
push 0
push eax
mov eax, dword [esi + 4]
push 0x419
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
and byte [esi + 0x84], 0xcf
push 1
push eax
mov ecx, esi
call fcn.00416a90
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0xc