joyce8/EMBER2024-capa huggingface dataset:
Function at 0x458820
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b65b5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push esi
push edi
push 7
mov esi, ecx
mov dword [ebp - 0x40], 0
xor eax, eax
mov dword [ebp - 0x30], 0
push str.Global_
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.004496e0
mov edi, dword [ebp + 8]
mov ecx, edi
mov dword [ebp - 4], 0
lea edx, [ecx + 2]
jmp 0x458880
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x458880
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x40]
call fcn.0044bde0
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
push 0
push 0xf001f
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [esi], eax
test eax, eax
jne 0x4589cb
push 6
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x28]
push str.Local_
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.004496e0
mov ecx, edi
mov byte [ebp - 4], 1
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4588e5
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x28]
call fcn.0044bde0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0
push 0xf001f
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov ecx, dword [ebp - 0x14]
mov dword [esi], eax
test eax, eax
jne 0x458996
cmp ecx, 8
jb 0x458957
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x45894d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x458a3d
push ecx
push edx
call fcn.00583877
add esp, 8
xor esi, esi
mov ecx, dword [ebp - 0x2c]
cmp ecx, 8
jb 0x458a24
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x458a1a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x458a38
jmp 0x458a1a
cmp ecx, 8
jb 0x4589cb
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4589bf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x458a3d
push ecx
push edx
call fcn.00583877
mov eax, dword [esi]
add esp, 8
mov edi, dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push 4
push 0
push 0
push 0xf001f
push eax
call edi
test eax, eax
je 0x458957
mov ecx, dword [eax]
push eax
mov dword [esi + 8], ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esi + 8]
add eax, 4
push eax
push 0
push 0
push 0xf001f
push dword [esi]
call edi
mov dword [esi + 4], eax
test eax, eax
je 0x458957
lea esi, [eax + 4]
jmp 0x458959
push ecx
push edx
call fcn.00583877
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
call fcn.00591c98
call fcn.00591c98
int3
Function at 0x46b930
Capabilities:
Hash data using sha256

Disassembly:
push ecx
mov edx, ecx
lea eax, [edx + 0x10]
mov dword [esp], edx
lea ecx, [edx + 0x68]
push esi
mov dword [edx + 4], 0
mov esi, 0x5f1944
mov dword [edx + 8], 0
mov byte [eax + 0x41], 1
mov dword [eax + 0x48], 0x3fffffff
mov dword [eax + 0x4c], 0x10
mov dword [eax + 0x50], eax
mov eax, ecx
neg eax
mov byte [ecx + 0x49], 1
and eax, 0xf
mov dword [ecx + 0x50], 0x3fffffff
add eax, ecx
mov dword [ecx + 0x54], 0x10
mov dword [ecx + 0x58], eax
mov ecx, 8
push edi
mov edi, dword [edx + 0xc0]
mov eax, edx
rep movsd dword es:[edi], dword [esi]
pop edi
mov dword [edx], vtable.CryptoPP::SHA256.0
pop esi
pop ecx
ret

Function at 0x46e670
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x10]
mov dword [edi], vtable.TcpIpMessageChannel.0
call fcn.00436910
cmp byte [edi + 6], 0
jne 0x46e6d8
push 4
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x10001
push eax
push 0x80
push 0xffff
push dword [edi + 0x44]
call dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
push 0x8004667e
push dword [edi + 0x44]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
push dword [edi + 0x44]
call dword [sym.imp.WS2_32.dll_closesocket]
lea ecx, [edi + 8]
call fcn.00470430
mov eax, dword [edi + 8]
push 8
push eax
mov dword [edi + 8], 0
call fcn.00583877
add esp, 8
mov dword [edi], vtable.MessageChannel.0
test byte [ebp + 8], 1
je 0x46e70c
push 0x48
push edi
call fcn.00583877
add esp, 8
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x46f646
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
push esi
mov esi, ecx
cmp byte [esi + 4], 0
jne 0x46f696
mov eax, dword [esi + 0x44]
lea ecx, [esp + 4]
push ecx
push 0
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], eax
push ecx
push 0
inc eax
mov dword [esp + 0x1c], 1
push eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jg 0x46f692
xor al, al
pop esi
add esp, 0x10c
ret
mov byte [esi + 4], 1
mov al, 1
pop esi
add esp, 0x10c
ret
Function at 0x473f40
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5b890b
push eax
mov dword fs:[0], esp
sub esp, 0x9c
push esi
push 0
push 0
push 0
push 0
push dword [ebp + 0xc]
mov esi, ecx
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.WS2_32.dll_WSAConnect]
cmp eax, 0xffffffff
jne 0x474165
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp + 0xc], eax
fild dword [ebp + 0xc]
mov dword [ebp - 0x40], 0xf
mov dword [ebp - 0x44], 4
mov dword [ebp - 0x54], 0x65646f63
mov byte [ebp - 0x50], 0
fstp qword [ebp - 0x5c]
lea eax, [ebp - 0x54]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0xa8]
call fcn.00447260
fld qword [ebp - 0x5c]
mov dword [ebp - 0x90], 0
fstp qword [ebp - 0x78]
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0xf
mov byte [ebp - 0x90], 0
mov byte [ebp - 0x70], 0
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 1
push ecx
lea eax, [ebp - 0x68]
push eax
push ecx
lea ecx, [ebp - 0x68]
call fcn.004456c0
mov eax, dword [str.Connect_]
mov dword [ebp - 0x3c], 0
mov byte [ebp - 0x3c], 0
mov dword [ebp - 0x3c], eax
mov eax, dword [0x5ea0dc]
mov dword [ebp - 0x38], eax
movzx eax, word [0x5ea0e0]
mov dword [ebp - 0x28], 0xf
mov dword [ebp - 0x2c], 0xa
mov word [ebp - 0x34], ax
mov byte [ebp - 0x32], 0
mov eax, dword [str.wsa_connect]
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x24], 0
mov dword [ebp - 0x24], eax
mov eax, dword [0x5ea100]
mov dword [ebp - 0x20], eax
movzx eax, word [0x5ea104]
mov word [ebp - 0x1c], ax
mov al, byte [0x5ea106]
mov dword [ebp - 0x10], 0xf
mov dword [ebp - 0x14], 0xb
mov byte [ebp - 0x1a], al
mov byte [ebp - 0x19], 0
lea eax, [ebp - 0x68]
mov byte [ebp - 4], 4
push eax
push 0x2a
lea eax, [ebp - 0x3c]
mov ecx, 2
push str.raii_socket.h
push eax
lea edx, [ebp - 0x24]
call fcn.004d4b60
mov byte [ebp - 4], 3
add esp, 0x10
mov ecx, dword [ebp - 0x10]
cmp ecx, 0x10
jb 0x4740d2
mov edx, dword [ebp - 0x24]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4740c8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x474176
push ecx
push edx
call fcn.00583877
add esp, 8
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x28]
cmp ecx, 0x10
jb 0x474106
mov edx, dword [ebp - 0x3c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4740fc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x474176
push ecx
push edx
call fcn.00583877
add esp, 8
lea ecx, [ebp - 0x68]
call fcn.00449240
push fcn.00438e00
push 1
push 0x40
lea eax, [ebp - 0xa8]
mov byte [ebp - 4], 0
push eax
call fcn.00583d37
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x40]
cmp ecx, 0x10
jb 0x47415e
mov edx, dword [ebp - 0x54]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x474154
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x474176
push ecx
push edx
call fcn.00583877
add esp, 8
mov ecx, esi
call fcn.004743d0
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
call fcn.00591c98
int3
Function at 0x474180
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b895b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x9c
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 1
push eax
push 0x8004667e
push dword [ecx]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4743ab
mov eax, dword [str.error]
mov dword [ebp - 0x5c], 0
mov byte [ebp - 0x5c], 0
mov dword [ebp - 0x5c], eax
mov al, byte [0x5e7ec4]
mov dword [ebp - 0x48], 0xf
mov dword [ebp - 0x4c], 5
mov byte [ebp - 0x58], al
mov byte [ebp - 0x57], 0
lea eax, [ebp - 0x5c]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0xa8]
call fcn.00447260
fild dword [ebp - 0x14]
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0xf
mov byte [ebp - 0x90], 0
fstp qword [ebp - 0x78]
mov byte [ebp - 0x70], 0
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 1
push ecx
lea eax, [ebp - 0x68]
push eax
push ecx
lea ecx, [ebp - 0x68]
call fcn.004456c0
mov eax, dword [str.ioctlsocket_]
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x2c], 0
mov dword [ebp - 0x2c], eax
mov eax, dword [0x5e838c]
mov dword [ebp - 0x28], eax
mov eax, dword [0x5e8390]
mov dword [ebp - 0x24], eax
mov ax, word [0x5e8394]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0xe
mov word [ebp - 0x20], ax
mov byte [ebp - 0x1e], 0
mov eax, dword [str.ioctlsocket2]
mov dword [ebp - 0x44], 0
mov byte [ebp - 0x44], 0
mov dword [ebp - 0x44], eax
mov eax, dword [0x5ea0f0]
mov dword [ebp - 0x40], eax
mov eax, dword [0x5ea0f4]
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0xc
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0
lea eax, [ebp - 0x68]
mov byte [ebp - 4], 4
push eax
push 0x32
lea eax, [ebp - 0x2c]
mov ecx, 2
push str.raii_socket.h
push eax
lea edx, [ebp - 0x44]
call fcn.004d4b60
mov byte [ebp - 4], 3
add esp, 0x10
mov ecx, dword [ebp - 0x30]
cmp ecx, 0x10
jb 0x474314
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x47430a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4743bd
push ecx
push edx
call fcn.00583877
add esp, 8
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x10
jb 0x474348
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x47433e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4743bd
push ecx
push edx
call fcn.00583877
add esp, 8
lea ecx, [ebp - 0x68]
call fcn.00449240
push fcn.00438e00
push 1
push 0x40
lea eax, [ebp - 0xa8]
mov byte [ebp - 4], 0
push eax
call fcn.00583d37
mov ecx, dword [ebp - 0x48]
cmp ecx, 0x10
jb 0x474399
mov edx, dword [ebp - 0x5c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x47438f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4743bd
push ecx
push edx
call fcn.00583877
add esp, 8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0xc]
mov al, 1
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
call fcn.00591c98
int3
Function at 0x47e480
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b9724
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
push edi
push 0x1c
mov eax, dword [esi + 8]
mov dword [esi], vtable.CryptoPP::PKCS8PrivateKey.2.0
mov dword [esi + 4], vtable.CryptoPP::PKCS8PrivateKey.0
mov eax, dword [eax + 4]
mov dword [eax + esi + 8], vtable.CryptoPP::PKCS8PrivateKey.1.0
xor eax, eax
mov dword [esi + 0x14], eax
mov dword [esi + 0xc], vtable.CryptoPP::ByteQueue.1.0
mov dword [esi + 0x10], vtable.CryptoPP::ByteQueue.0
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [esi + 0x18], 1
mov dword [esi + 0x1c], 0x100
call fcn.005838a8
mov edi, eax
add esp, 4
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 0
mov ecx, dword [esi + 0x1c]
mov dword [edi + 8], 0xffffffff
mov dword [edi + 0xc], ecx
test ecx, ecx
jne 0x47e515
xor eax, eax
jmp 0x47e51a
call fcn.004f5600
mov ecx, dword [ebp - 0xc]
mov dword [edi + 0x10], eax
mov eax, esi
mov dword [edi + 0x18], 0
mov dword [edi + 0x14], 0
mov dword [edi], 0
mov dword [esi + 0x24], edi
mov dword [esi + 0x20], edi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x483230
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b4c5d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x28], 0
push edi
mov bl, dl
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea edx, [ebp - 0x28]
mov dword [ebp - 4], eax
call fcn.005182e0
mov edi, dword [ebp - 0x28]
test bl, bl
mov ebx, dword [ebp - 0x14]
je 0x4832ec
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4832ec
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [ebp - 0x18]
lea eax, [eax*2 + 2]
push eax
push 2
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4832e6
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4832df
push dword [ebp - 0x10]
cmp ebx, 8
lea ecx, [ebp - 0x28]
cmovae ecx, edi
push ecx
push eax
call fcn.005854c0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
call dword [sym.imp.USER32.dll_CloseClipboard]
cmp ebx, 8
jb 0x48331c
lea ecx, [ebx*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x483312
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48332d
push ecx
push edi
call fcn.00583877
add esp, 8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00591c98
int3
Function at 0x487aa0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ba360
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [ebp - 4], 0
mov dword [esi], vtable.CryptoPP::BaseN_Decoder.0
mov dword [esi + 4], vtable.CryptoPP::BaseN_Decoder.1.0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x30], 0xffffffff
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov byte [ebp - 4], 1
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x487b33
mov eax, dword [ecx]
push 1
call dword [eax]
lea eax, [ebp + 8]
mov dword [esi + 0xc], 0
push 1
push eax
mov edx, str.DecodingLookupArray
lea ecx, [ebp - 0x1c]
call fcn.00488440
add esp, 8
mov byte [ebp - 4], 2
movzx ecx, byte [eax + 8]
push ecx
lea ecx, [ebp + 0xc]
push ecx
push str.Log2Base
mov ecx, eax
call fcn.00481150
push eax
mov ecx, esi
call fcn.0050f340
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x487b82
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [ebp - 0xc]
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x48e1b0
Capabilities:
Capture microphone audio

Disassembly:
sub esp, 0x14
mov eax, dword [0x6d2364]
push ebx
push ebp
push esi
mov ebp, dword [eax + 0x18]
mov eax, 1
shl ebp, 4
mov word [esp + 0xc], ax
push edi
push 0x30000
movzx ecx, word [ebp + 0x6acfbc]
movzx eax, word [ebp + 0x6acfb8]
mov edx, dword [ebp + 0x6acfb4]
mov word [esp + 0x22], cx
shr cx, 3
movzx ecx, cx
imul ecx, eax
mov word [esp + 0x16], ax
push 0
push 0x48dec0
mov dword [0x6d4238], 0x1e0
movzx eax, cx
imul eax, edx
mov dword [esp + 0x20], edx
mov word [esp + 0x28], cx
mov dword [esp + 0x24], eax
xor eax, eax
mov word [esp + 0x2c], ax
imul eax, dword [ebp + 0x6acfb8], 0x3c0
mov dword [0x6d423c], eax
lea eax, [esp + 0x1c]
push eax
push 0xffffffffffffffff
push 0x6d42a4
call dword [sym.imp.WINMM.dll_waveInOpen]
mov ebx, dword [sym.imp.WINMM.dll_waveInPrepareHeader]
xor edi, edi
mov esi, 0x6d4240
push dword [0x6d423c]
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
call fcn.00599b4f
add esp, 4
mov dword [esi], eax
mov eax, dword [0x6d423c]
mov dword [esi + 4], eax
mov dword [esi + 0xc], edi
push 0x20
push esi
push dword [0x6d42a4]
call ebx
push 0x20
push esi
push dword [0x6d42a4]
call dword [sym.imp.WINMM.dll_waveInAddBuffer]
add esi, 0x20
inc edi
cmp esi, 0x6d42a0
jl 0x48e252
mov edi, dword [ebp + 0x6acfb4]
mov ebx, dword [ebp + 0x6acfb8]
cmp edi, 0xbb80
je 0x48e2e0
cmp edi, 0x5dc0
je 0x48e2e0
cmp edi, 0x3e80
je 0x48e2e0
cmp edi, 0x2ee0
je 0x48e2e0
cmp edi, 0x1f40
jne 0x48e337
cmp ebx, 1
je 0x48e2ea
cmp ebx, 2
jne 0x48e337
push ecx
call fcn.0055d600
mov edx, eax
mov eax, dword [edx + 8]
lea ecx, [eax + eax*2]
mov eax, dword [edx + 4]
add ecx, 0x400
add eax, ecx
imul eax, ebx
lea eax, [eax*4 + 0x7048]
push eax
call fcn.00599b4f
mov esi, eax
add esp, 8
test esi, esi
je 0x48e337
push ecx
push ebx
mov edx, edi
mov ecx, esi
call fcn.00547f70
add esp, 8
test eax, eax
je 0x48e339
push esi
call fcn.00591a4c
add esp, 4
xor esi, esi
push 0xa
push 0xfaa
push esi
mov dword [0x6d42a0], esi
call fcn.0054a260
push 0xfffffc18
push 0xfa2
push dword [0x6d42a0]
call fcn.0054a260
push 0xfffffc18
push 0xfb8
push dword [0x6d42a0]
call fcn.0054a260
add esp, 0x24
push dword [0x6d42a4]
call dword [sym.imp.WINMM.dll_waveInStart]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
Function at 0x492070
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5b43f0
push eax
mov dword fs:[0], esp
lea eax, [ebp - 0x24]
sub esp, 0x18
mov dword [0x6c5544], 0
push esi
mov esi, ecx
push edi
push eax
push dword [esi + 0x10]
mov dword [esi], vtable.DialogMain.0
call dword [sym.imp.USER32.dll_GetWindowRect]
push 0
lea eax, [ebp - 0x10]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWAREAeroAdmin
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4920fa
mov ecx, dword [ebp - 0x20]
movzx eax, word [ebp - 0x24]
push 4
shl ecx, 0x10
or ecx, eax
lea eax, [ebp - 0x14]
push eax
push 4
push 0
push 0x5ec424
push dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [0x6c54cc], 0
jne 0x492116
mov al, byte [0x6c5541]
mov byte [0x6c5540], al
mov ecx, dword [esi + 0x124]
mov dword [0x6ad088], 0xffffffff
test ecx, ecx
je 0x49212f
call fcn.004369e0
lea ecx, [esi + 0x160]
call fcn.00449550
mov eax, dword [esi + 0x15c]
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
je 0x49214d
push eax
call edi
mov eax, dword [esi + 0x124]
test eax, eax
je 0x49216c
cmp dword [eax + 4], 0
jne 0x492243
push 8
push eax
call fcn.00583877
add esp, 8
mov ecx, dword [esi + 0x114]
cmp ecx, 0x10
jb 0x4921a6
mov eax, dword [esi + 0x100]
inc ecx
cmp ecx, 0x1000
jb 0x49219c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49223e
mov eax, edx
push ecx
push eax
call fcn.00583877
add esp, 8
mov dword [esi + 0x110], 0
mov dword [esi + 0x114], 0xf
mov byte [esi + 0x100], 0
mov eax, dword [esi + 0xec]
test eax, eax
je 0x4921ce
push eax
call edi
mov eax, dword [esi + 0xe8]
test eax, eax
je 0x4921db
push eax
call edi
mov eax, dword [esi + 0xe4]
test eax, eax
je 0x4921e8
push eax
call edi
mov eax, dword [esi + 0xe0]
test eax, eax
je 0x4921f5
push eax
call edi
mov eax, dword [esi + 0xdc]
test eax, eax
je 0x492202
push eax
call edi
mov eax, dword [esi + 0xd8]
test eax, eax
je 0x49220f
push eax
call edi
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x49221c
push eax
call edi
lea ecx, [esi + 0x98]
call fcn.00449550
mov ecx, esi
call fcn.0053dd10
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.00591c98
call fcn.00591a51
int3
Function at 0x492250
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5bb2cd
push eax
mov dword fs:[0], esp
sub esp, 0x1c
cmp byte [0x6c5530], 0
push esi
push edi
mov edi, ecx
je 0x4922e6
cmp byte [edi + 0xd0], 0
je 0x4922e6
cmp dword [ebp + 8], 0xd
jne 0x4922e6
mov ecx, dword [edi + 0x128]
lea eax, [ebp - 0x28]
push eax
call fcn.005403c0
push eax
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.00493980
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x4922e6
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4922dc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4923da
push ecx
push edx
call fcn.00583877
add esp, 8
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x11
call esi
test ax, ax
jns 0x4923a5
push 0x12
call esi
test ax, ax
jns 0x4923a5
push 0x7b
call esi
test ax, ax
je 0x4923a5
mov edx, dword [0x6c553c]
lea ecx, [ebp - 0x28]
call fcn.00436850
mov dword [ebp - 4], 1
call fcn.005201a0
sub esp, 0x18
mov ecx, esp
mov dword [ebp + 8], esp
push ecx
mov ecx, eax
call fcn.00458a80
sub esp, 0x18
mov byte [ebp - 4], 2
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
call fcn.00446f20
mov byte [ebp - 4], 1
call fcn.0053aa40
mov ecx, dword [ebp - 0x14]
add esp, 0x30
cmp ecx, 8
jb 0x492391
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x492387
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4923df
push ecx
push edx
call fcn.00583877
add esp, 8
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
cmp dword [ebp + 8], 9
jne 0x4923c6
mov ecx, edi
call fcn.0053f4d0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0xc]
xor al, al
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 8
call fcn.00591c98
call fcn.00591c98
int3