joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44c288
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x30
push ebx
push esi
push dword [ebp + 8]
mov esi, ecx
mov eax, dword [esi + 8]
lea ecx, [esi + 8]
call dword [eax + 4]
mov eax, dword [ebp + 0xc]
xor edx, edx
sub eax, edx
je 0x44c1ca
sub eax, 1
je 0x44c1c3
sub eax, 1
jne 0x44c1cf
mov edx, 0xc0000000
jmp 0x44c1cf
mov edx, 0x40000000
jmp 0x44c1cf
mov edx, bind
mov eax, dword [ebp + 0x10]
xor bl, bl
cmp eax, 5
ja case.default.0x44c1d9
jmp dword [eax*4 + 0x44c288]
mov bl, 1
mov eax, 4
jmp 0x44c209
mov eax, 2
jmp 0x44c209
mov eax, 1
jmp 0x44c209
mov eax, 3
jmp 0x44c209
mov eax, 5
jmp 0x44c209
mov eax, dword [esp + 0xc]
push 0
push 0x80
push eax
movzx eax, byte [ebp + 0x14]
push 0
push eax
push edx
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x44c254
test bl, bl
je 0x44c24c
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, 0xffffffff
jne 0x44c24c
test eax, eax
jne 0x44c26c
and byte [esi + 0x5b], bl
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea ecx, [esp + 0x10]
call fcn.0041ce10
push 0x55221c
lea eax, [esp + 0x14]
push eax
call fcn.0049c518
push eax
lea ecx, [esp + 0x14]
call fcn.0041ced0
push 0x55221c
lea eax, [esp + 0x14]
push eax
call fcn.0049c518
nop dword [eax]
loopne 0x44c24b
inc esp
add cl, ch
rol dword [eax + eax - 0x10], 0xc1
inc esp
add bh, dh
rol dword [eax + eax - 0x1e], 0xc1
inc esp
add dh, bh
rol dword [eax + eax + 0x55], 0x8b
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
push esi
mov esi, ecx
lea eax, [esp + 0x10]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
cmp dword [esp + 0x14], ecx
jg 0x44c2ce
jl 0x44c301
cmp dword [esp + 0x10], eax
jb 0x44c301
push 1
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x10]
push ecx
push eax
push dword [esi + 4]
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 8], eax
cmp eax, 0xffffffff
jne 0x44c2fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x44c322
pop esi
mov esp, ebp
pop ebp
ret 8
lea eax, [esp + 0x18]
push str.Specified_file_pointer_position_is_more_than_file_length
push eax
call fcn.00403f20
add esp, 8
lea eax, [esp + 0x18]
push 0x5520f0
push eax
call fcn.0049c518
push str.Cannot_set_file_pointer_to_specified_position
lea ecx, [esp + 0x1c]
call fcn.0041cf90
push 0x55221c
lea eax, [esp + 0x1c]
push eax
call fcn.0049c518
int3
Function at 0x458450
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1b0
mov eax, dword [0x554008]
xor eax, esp
mov dword [esp + 0x1ac], eax
cmp byte [0x558e2e], 0
jne 0x4584a0
lea eax, [esp + 0x18]
push eax
push 0x102
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4584c1
mov ecx, dword [esp + 0x1ac]
xor ecx, esp
mov byte [0x558e2e], 1
call fcn.0049a89b
mov esp, ebp
pop ebp
ret
lea eax, [esp + 4]
push str.WindowsSocket_already_initialized.
push eax
call fcn.00403f20
add esp, 8
lea eax, [esp + 4]
push 0x5520f0
push eax
call fcn.0049c518
lea eax, [esp + 4]
push str.Failed_to_initialize_WindowsSocket.
push eax
call fcn.00403f20
add esp, 8
lea eax, [esp + 4]
push 0x5520f0
push eax
call fcn.0049c518
int3

Function at 0x458560
Capabilities:
Access peb ldr_data
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c01e6
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
mov eax, dword [0x554008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
sub esp, 8
mov dword [esi], vtable.SocketIPv4.0
lea ecx, [esi + 4]
call fcn.00421810
lea eax, [esi + 0xc]
mov dword [ebp - 4], 0
push eax
mov dword [esi + 8], vtable.LocalMutex.0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 6
mov byte [ebp - 4], 1
push 1
push 2
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov byte [esi + 0x34], 0
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], 0
cmp eax, 0xffffffff
je 0x4585f4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x28]
call fcn.00459400
push 0x552414
lea eax, [ebp - 0x28]
push eax
call fcn.0049c518
int3
Function at 0x4587a0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c0237
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x554008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x24], edi
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x3c]
sub esp, 8
call fcn.00421810
push dword [ebp + 0xc]
mov edx, esi
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.004591e0
mov ax, word [ebp - 0x2c]
add esp, 4
mov esi, dword [ebp - 0x28]
mov dword [ebp - 0x34], esi
mov word [ebp - 0x38], ax
mov dword [ebp - 0x30], vtable.WsaStartup.0
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov dword [ebp - 4], 1
push esi
mov word [ebp - 0x20], ax
call dword [sym.imp.WS2_32.dll_htonl]
push dword [ebp - 0x38]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x1e], ax
lea eax, [ebp - 0x20]
push 0x10
push eax
push dword [edi + 0x24]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x4588de
mov eax, dword [edi + 8]
lea esi, [edi + 8]
mov ecx, esi
mov dword [ebp - 0x48], vtable.AutoLock.0
mov dword [ebp - 0x44], esi
call dword [eax + 4]
mov byte [ebp - 4], 2
mov edi, dword [edi + 0x30]
test edi, edi
je 0x458885
mov dword [edi], vtable.WsaStartup.0
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 0xc
push edi
call fcn.0049ade4
add esp, 8
push 0xc
call fcn.0049adb4
mov dword [ebp - 0x40], eax
sub esp, 0xc
mov byte [ebp - 4], 3
movups xmm0, xmmword [ebp - 0x20]
mov edx, esp
mov ecx, eax
movups xmmword [edx], xmm0
call fcn.00459140
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x30], eax
mov byte [ecx + 0x34], 0
mov byte [ebp - 4], 4
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 8]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049a89b
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x60]
call fcn.00459400
push 0x552414
lea eax, [ebp - 0x60]
push eax
call fcn.0049c518
int3
Function at 0x458b80
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x13c
mov eax, dword [0x554008]
xor eax, esp
mov dword [esp + 0x138], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_select]
push esi
push edi
mov edi, dword [sym.imp.WS2_32.dll___WSAFDIsSet]
mov esi, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0x10
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0x30d40
nop word [eax + eax]
mov eax, dword [esi + 0x24]
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
lea ecx, [esp + 0x44]
mov dword [esp + 0x48], eax
push ecx
inc eax
mov dword [esp + 0x48], 1
push eax
call ebx
cmp byte [esi + 0x28], 0
jne 0x458c54
cmp eax, 0xffffffff
je 0x458c54
test eax, eax
jle 0x458bd0
lea eax, [esp + 0x38]
push eax
push dword [esi + 0x24]
call edi
test eax, eax
je 0x458bd0
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x18]
push dword [esi + 0x24]
call dword [sym.imp.WS2_32.dll_accept]
cmp eax, 0xffffffff
je 0x458c3c
mov ecx, dword [esp + 0x144]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0049a89b
mov esp, ebp
pop ebp
ret 4
lea ecx, [esp + 0x20]
call fcn.00459400
push 0x552414
lea eax, [esp + 0x24]
push eax
call fcn.0049c518
lea ecx, [esp + 0x20]
call fcn.00459400
push 0x552414
lea eax, [esp + 0x24]
push eax
call fcn.0049c518
int3
Function at 0x458e30
Capabilities:
Create thread
Resume thread
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c0346
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push edi
mov eax, dword [0x554008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
lea eax, [edi + 8]
mov dword [edi], vtable.Thread.0
push eax
push 4
push edi
push 0x472140
push 0
mov byte [edi + 0xc], 0
push 0
mov byte [edi + 0xd], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 4], eax
mov dword [ebp - 4], 0
lea ecx, [edi + 0x10]
mov dword [edi], vtable.TcpServer.0
call fcn.00458560
push dword [ebp + 8]
lea ecx, [edi + 0x48]
mov byte [ebp - 4], 1
call fcn.00403030
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x20]
mov edx, dword [ebp + 8]
mov byte [ebp - 4], 2
push eax
mov word [edi + 0x58], ax
call fcn.004591e0
add esp, 4
cmp byte [ebp + 0x14], 0
mov byte [ebp - 4], 3
je 0x458eed
push 4
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 1
push eax
push 0xfffffffffffffffb
push 0xffff
push dword [edi + 0x34]
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x458f43
lea eax, [ebp - 0x20]
push eax
lea ecx, [edi + 0x10]
call fcn.00458900
push 0xa
push dword [edi + 0x34]
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x458f59
cmp byte [ebp + 0x10], 0
je 0x458f21
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
setne al
mov byte [edi + 0xc], al
mov dword [ebp - 0x20], vtable.WsaStartup.0
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea ecx, [ebp - 0x38]
call fcn.00459400
push 0x552414
lea eax, [ebp - 0x38]
push eax
call fcn.0049c518
lea ecx, [ebp - 0x50]
call fcn.00459400
push 0x552414
lea eax, [ebp - 0x50]
push eax
call fcn.0049c518
int3
Function at 0x4591e0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c0431
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push esi
push edi
mov eax, dword [0x554008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x14], edi
sub esp, 8
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
call fcn.00421810
xor eax, eax
mov dword [edi + 8], 0
mov word [edi + 4], ax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x2c]
push esi
mov dword [ebp - 0x10], 1
call fcn.00403030
mov dword [ebp - 4], 1
mov ecx, 0x55553c
mov eax, dword [vtable.LocalMutex.0]
mov dword [ebp - 0x1c], vtable.AutoLock.0
mov dword [ebp - 0x18], 0x55553c
call dword [eax + 4]
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x3c]
call fcn.0044f110
mov byte [ebp - 4], 3
push dword [ebp - 0x38]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x4592da
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.WS2_32.dll_ntohl]
lea ecx, [ebp - 0x3c]
mov dword [edi + 8], eax
call fcn.0044f1c0
mov byte [ebp - 4], 4
mov ecx, 0x55553c
mov eax, dword [vtable.LocalMutex.0]
call dword [eax + 8]
mov ax, word [ebp + 8]
lea ecx, [ebp - 0x28]
mov word [edi + 4], ax
mov dword [ebp - 0x2c], vtable.StringStorage.0
call fcn.004039c0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x54]
call fcn.00459400
push 0x552414
lea eax, [ebp - 0x54]
push eax
call fcn.0049c518
int3

Function at 0x45b450
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c05e0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x554008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx + 0x160]
lea ecx, [ebx + 0x160]
mov dword [ebp - 0x14], vtable.AutoLock.0
mov dword [ebp - 0x10], ecx
call dword [eax + 4]
mov dword [ebp - 4], 0
lea edi, [ebx + 0x134]
mov eax, dword [edi]
mov ecx, edi
mov dword [ebp - 0x1c], vtable.AutoLock.0
mov dword [ebp - 0x18], edi
call dword [eax + 4]
mov esi, dword [ebp + 8]
lea ecx, [ebx + 0xf8]
mov byte [ebp - 4], 1
mov eax, dword [esi]
mov dword [ebx + 0xdc], eax
mov eax, dword [esi + 8]
mov dword [ebx + 0xe4], eax
mov eax, dword [esi + 0xc]
mov dword [ebx + 0xe8], eax
mov eax, dword [esi + 0x10]
mov dword [ebx + 0xec], eax
mov eax, dword [esi + 0x14]
mov dword [ebx + 0xf0], eax
mov eax, dword [esi + 0x18]
mov dword [ebx + 0xf4], eax
mov eax, dword [ecx]
push dword [esi + 0x20]
call dword [eax + 4]
movzx eax, byte [esi + 0x2c]
mov byte [ebx + 0x108], al
movzx eax, byte [esi + 0x2d]
mov byte [ebx + 0x109], al
mov eax, dword [esi + 0x30]
mov dword [ebx + 0x10c], eax
mov byte [ebp - 4], 2
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 8]
lea ecx, [ebx + 0x160]
mov dword [ebp - 4], 3
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4721e0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c1be8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push esi
mov eax, dword [0x554008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
mov dword [esi], vtable.GlobalMutex.0
mov dword [ebp - 0x20], vtable.StringStorage.0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 1
push eax
push 1
mov ecx, eax
call fcn.00403af0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x524da8
push ecx
call fcn.0049dfe0
push dword [ebp + 8]
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 2
push 0x53714c
push str._s_s
push eax
call fcn.004038c0
add esp, 0x1c
push dword [ebp - 0x1c]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 4], eax
test eax, eax
je 0x4722cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [esi + 4]
cmp eax, 0xb7
je 0x4722c6
call fcn.00472350
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x20], vtable.StringStorage.0
call fcn.004039c0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x48]
call fcn.0041ce10
push 0x55221c
lea eax, [ebp - 0x48]
push eax
call fcn.0049c518
int3

Function at 0x4724e0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c1c5e
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x554008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea eax, [edi + 8]
mov dword [edi], vtable.Thread.0
push eax
push 4
push edi
push 0x472140
push 0
mov byte [edi + 0xc], 0
push 0
mov byte [edi + 0xd], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 4], eax
mov dword [ebp - 4], 0
lea esi, [edi + 0x10]
push 0
mov dword [edi], vtable.ThreadCollector.0
push 0
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0040cd10
mov dword [esi], eax
lea eax, [edi + 0x1c]
mov dword [edi + 0x18], vtable.LocalMutex.0
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push ecx
lea ecx, [edi + 0x34]
mov byte [ebp - 4], 2
call fcn.0041e0f0
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
setne al
mov byte [edi + 0xc], al
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x474420
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c1e78
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push esi
push edi
mov eax, dword [0x554008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [0x558fa4]
push str.Try_allow_to_receive_the__u_windows_message
push dword [esi]
mov dword [ebp - 0x10], ebx
call fcn.00405ec0
add esp, 8
cmp dword [0x558e38], 0
jne 0x47448a
push 0x558e38
mov dword [0x558e38], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
neg eax
sbb eax, eax
and dword [0x558e38], eax
cmp dword [0x558e3c], 6
jb 0x474585
push str.user32.dll
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], vtable.DynamicLibrary.0
mov dword [ebp - 0x18], 0
call fcn.00420700
mov dword [ebp - 4], 0
push str.user32.dll_successfully_loaded.
push dword [esi]
call fcn.00405ec0
mov edi, dword [ebp - 0x18]
add esp, 8
push str.ChangeWindowMessageFilterEx
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x47451a
push str.ChangeWindowMessageFilter
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x4745a8
push str.The_ChangeWindowMessageFilter___function_successfully_found.
push dword [esi]
call fcn.00405ec0
add esp, 8
push 1
push dword [ebp - 0x10]
call ebx
cmp eax, 1
jne 0x4745c7
push str.The_ChangeWindowMessageFilter___function_successfully_executed.
jmp 0x47455c
push str.The_ChangeWindowMessageFilterEx___function_successfully_found.
push dword [esi]
call fcn.00405ec0
add esp, 8
push 0
push 1
push ebx
push dword [ebp + 0xc]
call dword [ebp - 0x14]
cmp eax, 1
je 0x474557
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.00402fa0
mov byte [ebp - 4], 2
push str.Cant_allow_to_receive_the__d_windows_message_by_the_ChangeWindowMessageFilterEx___function.
jmp 0x4745e0
push str.The_ChangeWindowMessageFilterEx___function_successfully_executed.
push dword [esi]
call fcn.00405ec0
add esp, 8
test edi, edi
je 0x474594
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.The_allowMessage___function_call_is_ignored.
push dword [esi]
call fcn.00405ec0
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0x30]
push str.Cant_load_the_ChangeWindowMessageFilterEx___or_ChangeWindowMessageFilter___functions.
push eax
call fcn.00403f20
add esp, 8
lea eax, [ebp - 0x30]
push 0x5520f0
push eax
call fcn.0049c518
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.00402fa0
mov byte [ebp - 4], 1
push str.Cant_allow_to_receive_the__d_windows_message_by_the_ChangeWindowMessageFilter___function.
lea eax, [ebp - 0x2c]
push eax
call fcn.004038c0
add esp, 8
lea ecx, [ebp - 0x2c]
push esi
call fcn.00403150
push eax
lea ecx, [ebp - 0x58]
call fcn.0041d050
push 0x55221c
lea eax, [ebp - 0x58]
push eax
call fcn.0049c518
int3
Function at 0x406660
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
push ebx
push esi
mov ebx, ecx
mov ecx, 0x51022b
push edi
mov dword [ebp - 0x18], ebx
call fcn.004b781d
mov edi, dword [ebx + 4]
lea eax, [ebp - 0x14]
push eax
or edi, 0x2001f
mov dword [ebp - 0xc], 0
push edi
push 0
push dword [ebp + 8]
mov dword [ebp - 8], 0
push dword [ebx]
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
mov eax, dword [ebp - 0xc]
test esi, esi
jne 0x406770
xor esi, esi
test eax, eax
je 0x4066d0
push eax
call ebx
mov esi, eax
mov eax, dword [ebp - 0x14]
and edi, 0x300
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edi
test esi, esi
jne 0x406770
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea ecx, [ebp - 0x20]
push ecx
push esi
push esi
push esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0x100
push ecx
lea ecx, [ebp - 0x220]
push ecx
push esi
push eax
call edi
test eax, eax
jne 0x406748
nop
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0xc]
call fcn.00406660
mov esi, eax
test esi, esi
jne 0x40676d
lea eax, [ebp - 0x20]
mov dword [ebp - 0x10], 0x100
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x220]
push eax
push esi
push dword [ebp - 0xc]
call edi
test eax, eax
je 0x406710
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x406759
push eax
call ebx
mov dword [ebp - 0xc], 0
push dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 8], 0
call fcn.00404d30
mov esi, eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x406777
push eax
call ebx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x407260
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dcd46
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov ecx, 0x510279
mov dword [ebp - 0x10], 0
call fcn.004b781d
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 0
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x4e490c
call fcn.00403ac0
mov eax, dword [ebp + 8]
push ecx
mov esi, esp
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], esi
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.00404990
add esp, 4
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 0
call fcn.0040b640
mov ebx, dword [ebp - 0x20]
add esp, 0xc
sub ebx, dword [ebp - 0x24]
sar ebx, 2
call fcn.004058f0
mov ecx, eax
test ecx, ecx
je 0x407470
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
xor edi, edi
mov byte [ebp - 4], 2
or ecx, 0xffffffff
test ebx, ebx
je 0x407400
nop
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + edi*4]
lea esi, [eax + edi*4]
mov eax, dword [ecx - 0xc]
test edi, edi
jne 0x4073cd
cmp eax, 1
jl 0x40747f
cmp word [ecx + 2], 0x3a
jne 0x4073fa
mov ecx, dword [ecx - 0x10]
mov byte [ebp - 4], 4
test ecx, ecx
je 0x40735e
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x407374
call fcn.004058f0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x407470
mov eax, dword [ecx]
call dword [eax + 0xc]
or dword [ebp - 0x10], 1
add eax, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [esi]
push 1
push 0x4e4834
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00404a70
mov esi, dword [ebp - 0x14]
lea ecx, [ebp + 8]
add esp, 0x14
push dword [esi - 0xc]
push esi
call fcn.00404660
and dword [ebp - 0x10], 0xfffffffe
add esi, 0xfffffff0
mov byte [ebp - 4], 2
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4073f1
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4073f1
push eax
push ecx
lea ecx, [ebp + 8]
call fcn.00404660
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 1
push 0x4e4834
lea ecx, [ebp + 8]
call fcn.00404660
inc edi
cmp edi, ebx
jb 0x407320
mov eax, dword [ebp + 8]
or ecx, 0xffffffff
mov byte [ebp - 4], 0
lea edx, [eax - 0x10]
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x407419
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x40745f
lea ecx, [ebp - 0x24]
push ecx
push dword [ebp - 0x20]
push eax
call fcn.004037c0
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
mov edx, dword [ebp - 0x24]
sub ecx, edx
and ecx, 0xfffffffc
mov eax, edx
cmp ecx, 0x1000
jb 0x407455
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40747a
push ecx
push edx
call fcn.004b780f
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
push 0x80004005
call fcn.00404870
call fcn.004be73f
push 0x80070057
call fcn.00404870
int3