joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e064
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x601ae4
call fcn.00474a88
sub esp, 0x104
push esi
mov esi, ecx
and dword [ebp - 4], 0
mov eax, dword [0x7815b4]
mov dword [ebp - 0x10], eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 2
push 0x69df64
push eax
call fcn.005dbdfb
add esp, 0xc
lea eax, [ebp - 0x110]
push dword [esi + 4]
push 0x100
push eax
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x110]
push eax
call fcn.0047526a
pop ecx
mov esi, eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.005e3750
and byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.005e3750
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.005e3750
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 0xc

Function at 0x40e764
Capabilities:
Access peb ldr_data
Initialize winsock library

Disassembly:
mov eax, 0x601b84
call fcn.00474a88
sub esp, 0x194
push ebx
push esi
mov esi, ecx
push 0xa
mov eax, 0x6381cc
xor ebx, ebx
pop ecx
mov dword [esi + 0x40], eax
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ecx
mov dword [esi + 0x5c], eax
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], ecx
lea eax, [ebp - 0x1a0]
mov dword [esi], 0x6381c4
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
lea eax, [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push ebx
push ebx
push 1
push ebx
mov dword [esi + 0x80], ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x7c], eax
lea eax, [ebp - 0x10]
push 3
push eax
lea eax, [esi + 0x3a]
mov dword [esi + 0x30], ebx
push eax
mov byte [esi + 0x88], bl
mov byte [esi + 0x39], bl
mov dword [esi + 0x78], ebx
mov dword [esi + 0x84], ebx
mov byte [esi + 0x38], bl
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x94], ebx
mov dword [esi + 0x2c], 0x2710
mov dword [esi + 0x8c], 0x3a98
mov dword [esi + 0x90], 0xbb8
mov dword [esi + 8], ebx
mov byte [ebp - 0x10], 0x53
mov byte [ebp - 0xf], 0x56
mov byte [ebp - 0xe], 9
call fcn.00473fd0
mov ecx, dword [ebp - 0xc]
add esp, 0xc
mov eax, esi
mov dword fs:[0], ecx
pop esi
pop ebx
leave
ret
Function at 0x40e8d1
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov esi, ecx
push 1
push edi
push edi
mov dword [esi + 4], eax
mov eax, dword [ebp + 0xc]
push edi
push 1
push 2
mov dword [esi + 0x2c], eax
call dword [sym.imp.WS2_32.dll_WSASocketA]
cmp eax, 0xffffffff
mov dword [esi + 0x30], eax
je 0x40e964
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
cmp eax, edi
mov dword [esi + 0x78], eax
je 0x40e95b
push 8
push eax
push dword [esi + 0x30]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x40e95b
push dword [ebp + 0x10]
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0xe], ax
lea eax, [ebp - 0x10]
push 0x10
push eax
push dword [esi + 0x30]
mov word [ebp - 0x10], 2
mov dword [ebp - 0xc], edi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x40e95b
push bind
push dword [esi + 0x30]
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x40e96c
push dword [esi + 0x30]
call dword [sym.imp.WS2_32.dll_closesocket]
xor al, al
pop edi
pop esi
leave
ret 0xc
lea eax, [ebp + 8]
mov dword [ebp + 8], edi
push eax
push edi
push esi
push 0x40ea17
push edi
push edi
call fcn.00475b0f
add esp, 0x18
cmp eax, 0xffffffff
mov dword [esi + 0x80], eax
je 0x40e964
mov ecx, esi
call fcn.0040eca3
mov byte [esi + 0x38], 1
mov al, 1
jmp 0x40e966

Function at 0x40eca3
Capabilities:
Create thread
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
xor edi, edi
push edi
push 1
mov esi, ecx
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40ed5d
push edi
push edi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
cmp eax, edi
mov dword [esi + 0x84], eax
push ebx
jne 0x40ece3
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x40ed5d
call dword [sym.imp.WS2_32.dll_closesocket]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x1c]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x34], edi
mov dword [ebp - 4], edi
lea eax, [eax + eax + 2]
cmp eax, edi
mov dword [ebp - 8], eax
jbe 0x40ed37
lea eax, [ebp - 0xc]
push eax
push edi
push esi
push 0x40ed6b
push edi
push edi
call fcn.00475b0f
add esp, 0x18
cmp eax, edi
je 0x40ed55
inc dword [esi + 0x34]
push eax
call ebx
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jb 0x40ed0d
cmp dword [esi + 8], edi
je 0x40ed64
lea eax, [ebp - 0xc]
push eax
push edi
push esi
push 0x40e99e
push edi
push edi
call fcn.00475b0f
add esp, 0x18
cmp eax, edi
jne 0x40ed61
push dword [esi + 0x84]
call ebx
xor al, al
jmp 0x40ed66
push eax
call ebx
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40eedd
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov dword [ebp - 8], ecx
push 0x18
call fcn.005dec8c
pop ecx
mov esi, eax
push 1
test esi, esi
pop edi
je 0x40ef0b
push 0x18
push 0
push esi
call fcn.00473f70
add esp, 0xc
mov dword [esi + 0x14], edi
jmp 0x40ef0d
xor esi, esi
push 0
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 4], 0x8000
push eax
push edi
mov edi, dword [ebp + 8]
lea eax, [edi + 0x50]
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
jne 0x40ef57
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x40ef57
mov ecx, dword [ebp - 8]
push 0
push edi
call fcn.0040f794
test esi, esi
je 0x40ef57
push esi
call fcn.005decb5
pop ecx
pop edi
pop esi
leave
ret 4

Function at 0x40ef5d
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
cmp dword [esp + 8], ecx
jle 0x40ef7c
mov dl, byte [ecx + eax]
xor dl, 0x15
add dl, 0x79
mov byte [ecx + eax], dl
inc ecx
cmp ecx, dword [esp + 8]
jl 0x40ef69
ret

Function at 0x40f1bb
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
cmp dword [esp + 8], ecx
jle 0x40f1da
mov dl, byte [ecx + eax]
sub dl, 0x79
xor dl, 0x15
mov byte [ecx + eax], dl
inc ecx
cmp ecx, dword [esp + 8]
jl 0x40f1c7
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov ebx, ecx
push 0x18
mov dword [ebp - 8], ebx
call fcn.005dec8c
mov esi, eax
xor edi, edi
cmp esi, edi
pop ecx
je 0x40f5f3
push 0x18
push edi
push esi
call fcn.00473f70
add esp, 0xc
mov dword [esi + 0x14], 2
mov dword [ebp - 4], esi
jmp 0x40f5f6
mov dword [ebp - 4], edi
mov esi, dword [ebp + 8]
push 3
push esi
call dword [ebx + 4]
lea ebx, [esi + 4]
push edi
mov ecx, ebx
call fcn.004025ce
mov ecx, ebx
mov dword [esi + 0x1905c], eax
lea edi, [esi + 0x19058]
call fcn.0040244b
xor ebx, ebx
mov dword [edi], eax
push ebx
push dword [ebp - 4]
push 0x8000
push edi
push 1
push edi
push dword [esi]
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x40f660
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x40f660
mov ecx, dword [ebp - 8]
push ebx
push esi
call fcn.0040f794
cmp dword [ebp - 4], ebx
je 0x40f660
push dword [ebp - 4]
call fcn.005decb5
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40f667
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, 0x601cd8
call fcn.00474a88
push ecx
and dword [ebp - 4], 0
push ebx
test byte [0x796c30], 1
push esi
push edi
mov dword [ebp - 0x10], esp
mov ebx, ecx
jne 0x40f699
or byte [0x796c30], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x796c28], eax
mov edi, dword [ebp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
add dword [0x796c38], edi
call esi
sub eax, dword [0x796c28]
cmp eax, 0x3e8
jb 0x40f6d5
call esi
push dword [0x796c38]
mov dword [0x796c28], eax
lea eax, [ebx + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
and dword [0x796c38], 0
test edi, edi
jbe 0x40f70f
mov edi, dword [ebp + 8]
push dword [ebp + 0xc]
lea esi, [edi + 4]
mov ecx, esi
call fcn.004025d8
mov ecx, esi
call fcn.0040244b
test eax, eax
jbe 0x40f6fe
push edi
mov ecx, ebx
call fcn.0040f5be
jmp 0x40f705
mov ecx, esi
call fcn.004025a8
mov al, 1
jmp 0x40f711
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8

Function at 0x40f794
Capabilities:
Set socket configuration

Disassembly:
mov eax, 0x601d04
call fcn.00474a88
sub esp, 0x10
push esi
push edi
mov edi, ecx
push str.RemoveStaleClient
lea ecx, [ebp - 0x10]
call fcn.005e37be
mov eax, dword [0x7815b4]
and dword [ebp - 4], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x18]
push eax
mov byte [ebp - 4], 1
call fcn.005e3889
lea eax, [edi + 0xc]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
call fcn.0040ec49
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.005e3750
cmp dword [ebp + 0xc], 0
mov esi, dword [ebp + 8]
jne 0x40f814
and word [ebp - 0x12], 0
lea eax, [ebp - 0x14]
push 4
push eax
push 0x80
push 0xffff
push dword [esi]
mov word [ebp - 0x14], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [edi + 0x44]
test eax, eax
je 0x40f824
cmp dword [eax + 8], esi
je 0x40f826
mov eax, dword [eax]
jmp 0x40f817
xor eax, eax
test eax, eax
je 0x40f84b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CancelIo]
push dword [esi]
call dword [sym.imp.WS2_32.dll_closesocket]
or dword [esi], 0xffffffff
push 2
push esi
call dword [edi + 4]
push esi
mov ecx, edi
call fcn.0040f8e2
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 4
call fcn.0040ec40
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.005e3750
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 8

Function at 0x4111c7
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
mov eax, 0x602073
call fcn.00474a88
sub esp, 0x194
and dword [ebp - 0x10], 0
push esi
push 1
lea eax, [ebp - 0x1a0]
pop esi
push eax
push 0x202
mov dword [ebp - 4], esi
call dword [sym.imp.WS2_32.dll_WSAStartup]
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov ecx, dword [ebp + 8]
push eax
call fcn.005e37be
mov dword [ebp - 0x10], esi
and byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.005e3750
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x413305
Capabilities:
Encode data using xor

Disassembly:
movzx eax, byte [esp + 0xc]
cdq
mov ecx, 0x5ab
push esi
idiv ecx
mov esi, dword [esp + 0xc]
add dl, 0x3d
test esi, esi
jbe 0x41332e
mov eax, dword [esp + 8]
mov cl, byte [eax]
xor cl, dl
add cl, dl
mov byte [eax], cl
inc eax
dec esi
jne 0x413322
pop esi
ret
Function at 0x415e76
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x4168d2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x478
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push bind
push dword [ebp + 8]
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4169bf
lea eax, [ebp - 0x78]
push eax
call fcn.00415e76
pop ecx
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp - 0x478]
push 0x400
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 4], edi
je 0x416945
push dword [ebp - 4]
lea eax, [ebp - 0x478]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.00415e9e
add esp, 0xc
jmp 0x416910
lea eax, [ebp - 0x20]
push ebx
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.00416829
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
mov dword [ebp + 8], edi
and byte [ebp - 0x10], 0
xor eax, eax
lea edi, [ebp - 0xf]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
mov edi, 0x739900
lea esi, [ebp + eax - 0x20]
movzx eax, byte [ebp + eax - 0x20]
shr eax, 4
push eax
lea eax, [ebp - 0x10]
push edi
push eax
call ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
call fcn.004745d0
mov al, byte [esi]
and eax, 0xf
push eax
lea eax, [ebp - 0x10]
push edi
push eax
call ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
call fcn.004745d0
add esp, 0x28
inc dword [ebp + 8]
cmp dword [ebp + 8], 0x10
jl 0x416965
pop ebx
pop edi
pop esi
leave
ret

Function at 0x417c16
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
push 0x80
push 3
push 0
push 1
push bind
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x417c90
push esi
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
call fcn.005dec8c
mov edi, eax
pop ecx
test edi, edi
je 0x417c85
lea eax, [ebp - 4]
push 0
push eax
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x417c7e
cmp dword [ebp - 4], esi
jne 0x417c7e
push esi
push edi
push dword [ebp + 0xc]
call fcn.00417ab4
add esp, 0xc
push edi
call fcn.005decb5
pop ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
push 1
pop eax
leave
ret 8
Function at 0x41e332
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x74], edi
je 0x41e372
call fcn.0041ec87
test eax, eax
je 0x41e378
lea eax, [ebp - 8]
push eax
push 4
push esi
push 0x41e6e8
push edi
push edi
call fcn.00475b0f
add esp, 0x18
cmp eax, edi
mov dword [esi + 0x90], eax
je 0x41e372
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
pop edi
pop esi
leave
ret
mov eax, dword [esi + 0x98]
cmp eax, edi
je 0x41e372
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [esi + 0x98]
lea edx, [ebp - 4]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov edx, dword [ebp - 4]
push edi
neg edx
push edx
mov eax, dword [esi + 0x98]
push dword [ebp - 8]
mov ecx, dword [eax]
push dword [ebp - 4]
push edi
push dword [esi + 0x50]
push dword [esi + 0x4c]
push edi
push edi
push dword [esi + 0x78]
push eax
call dword [ecx + 0x20]
test eax, eax
jne 0x41e372
push edi
push edi
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_InvalidateRect]
push 1
pop eax
jmp 0x41e374

Function at 0x41e3d5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov dword [ebp - 4], ecx
call fcn.005f9649
push dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x41e47e
call fcn.005f9649
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp + 0xc], eax
je 0x41e47e
call fcn.005f9649
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push edi
push 0x22
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x41e47e
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [ebp + 0xc]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x41e47a
test ebx, ebx
je 0x41e47a
push edi
push eax
push ebx
call fcn.00473fd0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [ebp - 4]
push edi
push esi
call fcn.0041dee6
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
pop ebx
jmp 0x41e480
xor edi, edi
jmp 0x41e46e
xor eax, eax
pop edi
pop esi
leave
ret 8
Function at 0x420265
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x9ce0], 0
je 0x420415
mov ecx, dword [esi + 0x9cd8]
push 0
add ecx, 0x24
call fcn.004025ce
mov edi, eax
movzx eax, byte [edi]
mov ebx, dword [edi + 1]
sub eax, 4
je 0x420389
dec eax
je 0x420300
dec eax
jne 0x420415
mov ecx, dword [esi + 0x9cd8]
add ecx, 0x24
call fcn.0040244b
mov ecx, dword [esi + 0x9ce0]
sub eax, 5
add edi, 5
push eax
push edi
push dword [esi + ebx*4 + 0x98]
call fcn.004201ad
mov ecx, dword [esi + 0x9cd8]
add ecx, 0x24
call fcn.0040244b
sub eax, 5
push eax
push ebx
lea eax, [ebp - 0xd8]
push str._d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x420407
push ebx
lea eax, [ebp - 0xd8]
push str._d_TOKEN_PROXY_CLOSE_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0xd8]
mov ecx, esi
push eax
call fcn.00420430
mov eax, dword [esi + ebx*4 + 0x98]
lea esi, [esi + ebx*4 + 0x98]
mov ecx, dword [eax]
test ecx, ecx
je 0x420415
cmp ecx, 0xffffffff
je 0x420415
lea ecx, [ebp - 0x10]
push 4
push ecx
push 0x80
push 0xffff
mov word [ebp - 0x10], 1
mov word [ebp - 0xe], 1
push dword [eax]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [esi]
push 1
push dword [eax]
call dword [sym.imp.WS2_32.dll_shutdown]
mov eax, dword [esi]
push dword [eax]
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [esi]
and dword [eax], 0
jmp 0x420415
cmp byte [edi + 9], 0
mov byte [ebp - 0xc], 5
jne 0x42039f
cmp byte [edi + 0xa], 0
jne 0x42039f
mov byte [ebp - 0xb], 5
jmp 0x4203a3
and byte [ebp - 0xb], 0
and byte [ebp - 0xa], 0
add edi, 5
push 6
lea eax, [ebp - 8]
push edi
push eax
mov byte [ebp - 9], 1
call fcn.00473fd0
add esp, 0xc
cmp byte [ebp - 0xb], 0
jne 0x4203d9
mov eax, dword [esi + ebx*4 + 0x98]
push ebx
push str._d_l
mov byte [eax + 0x19094], 2
jmp 0x4203df
push ebx
push 0x73dbfc
lea eax, [ebp - 0xd8]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [esi + 0x9ce0]
add esp, 0xc
lea eax, [ebp - 0xc]
push 0xa
push eax
push dword [esi + ebx*4 + 0x98]
call fcn.004201ad
lea eax, [ebp - 0xd8]
mov ecx, esi
push eax
call fcn.00420430
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42255c
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4225c7
push esi
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov edi, dword [esp + 0xc]
mov eax, dword [edi]
mov eax, dword [eax - 8]
inc eax
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4225bf
mov eax, dword [edi]
mov ecx, edi
push dword [eax - 8]
push 0
call fcn.005e3b80
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
call fcn.00473fd0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
ret
Function at 0x4237ae
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, dword [esi + 0x150]
add ecx, 0x24
call fcn.0040244b
mov edi, eax
mov eax, dword [esi + 0x8c]
xor ebx, ebx
dec edi
cmp eax, ebx
je 0x42395b
mov ecx, dword [eax + 8]
mov ebp, dword [eax + 4]
push eax
mov dword [esp + 0x14], ecx
call fcn.005decb5
push dword [esi + 0x90]
call fcn.005decb5
push edi
call fcn.005dec8c
push edi
mov dword [esi + 0x8c], eax
call fcn.005dec8c
mov ecx, dword [esi + 0x150]
add esp, 0x10
add ecx, 0x24
mov dword [esi + 0x90], eax
push edi
push 1
call fcn.004025ce
push eax
push dword [esi + 0x8c]
call fcn.00473fd0
mov ecx, dword [esi + 0x150]
add esp, 0xc
add ecx, 0x24
push edi
push 1
call fcn.004025ce
push eax
push dword [esi + 0x90]
call fcn.00473fd0
add esp, 0xc
push dword [esi + 0x80]
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebx
lea eax, [esi + 0x84]
push ebx
push eax
push ebx
push dword [esi + 0x8c]
push dword [esi + 0x78]
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov dword [esi + 0x80], eax
mov eax, dword [esi + 0x88]
cmp eax, ebx
je 0x42389f
push eax
call fcn.005decb5
mov eax, dword [esi + 0x90]
push dword [eax + 0x14]
call fcn.005dec8c
pop ecx
mov dword [esi + 0x88], eax
pop ecx
push dword [esi + 0x80]
push dword [esi + 0x7c]
call dword [sym.imp.GDI32.dll_SelectObject]
mov edi, 0x797158
mov ecx, edi
call fcn.0043275a
mov eax, dword [esi + 0x8c]
movzx ecx, word [eax + 0xe]
push ecx
mov ecx, edi
push dword [eax + 8]
push dword [eax + 4]
call fcn.00432673
mov eax, dword [esi + 0x8c]
cmp ebp, dword [eax + 4]
jne 0x4238e6
mov ecx, dword [esp + 0x10]
cmp ecx, dword [eax + 8]
je 0x42395b
cmp byte [esi + 0x14d], bl
je 0x4238fe
mov ecx, esi
call fcn.004234f8
mov ecx, esi
call fcn.004234f8
jmp 0x423927
lea edi, [esi + 0x60]
push 0x10
push ebx
push edi
call fcn.00473f70
pop ecx
mov eax, esp
push 2
mov ecx, esi
mov dword [eax], ebx
mov dword [eax + 4], ebx
call fcn.00424165
push 0x10
push ebx
push edi
call fcn.00473f70
add esp, 0xc
push 0x91
call dword [sym.imp.USER32.dll_GetKeyState]
test al, 1
je 0x42395b
lea eax, [esp + 0x14]
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [esp + 0x14]
mov ecx, esi
push eax
call fcn.005e78ff
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_ClipCursor]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret

Function at 0x424e00
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x424e5b
push esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
push dword [esp + 0xc]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x424e54
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [esp + 0xc]
push dword [esp + 0xc]
push eax
call fcn.00473fd0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
ret 8