joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404891
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x60
xor eax, eax
push ebx
mov ebx, dword [esp + 0x74]
push ebp
push esi
push edi
mov edi, eax
test ebx, ebx
jne 0x4048ad
push 8
call fcn.004047a7
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, dword [esp + 0x7c]
push 0x26
lea eax, [eax*2 + 2]
mov dword [esp + 0x84], eax
lea eax, [eax + esi*2]
add eax, 0xc10
push eax
call fcn.00401224
mov ebp, eax
test ebp, ebp
je 0x404a72
mov eax, dword [esp + 0x80]
lea edi, [ebp + 0x30c]
lea ecx, [edi + esi*2]
add eax, ecx
push edi
push dword [esp + 0x7c]
mov dword [esp + 0x88], eax
add eax, 0x800
mov dword [esp + 0x1c], eax
call fcn.00407514
push 0x5c
push 0x2f
push edi
call fcn.0040203f
lea eax, [edi + esi*2]
push eax
push ebx
call fcn.00407514
mov ebx, dword [esp + 0x84]
mov eax, dword [esp + 0x80]
mov dword [esp + 0x10], eax
cmp byte [ebx], 0
je 0x404964
mov esi, eax
push esi
push ebx
call fcn.00407514
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push esi
add ebx, eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2]
xor eax, eax
add esi, 2
mov word [esi], ax
cmp byte [ebx], al
jne 0x404939
mov esi, dword [esp + 0x7c]
mov ebx, dword [esp + 0x14]
push ebx
push dword [esp + 0x8c]
call fcn.00407514
push 0x58
lea eax, [esp + 0x1c]
push 0
push eax
call sub.ntdll.dll_memset
mov eax, dword [esp + 0x8c]
add esp, 0xc
mov dword [esp + 0x24], eax
lea eax, [edi + esi*2]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], 0x58
mov dword [esp + 0x3c], 0x104
mov dword [esp + 0x58], ebx
mov dword [esp + 0x38], edi
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameW]
mov dword [esp + 0x7c], eax
test eax, eax
je 0x404a36
dec esi
jmp 0x404a23
test esi, esi
jle 0x404a2e
push ebp
push edi
call fcn.004073ca
push 0x2f
push 0x5c
push ebp
call fcn.00402015
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebx, [eax + 1]
cmp esi, ebx
jl 0x404a2c
push ebx
push ebp
push dword [esp + 0x80]
call sub.ntdll.dll_memcpy
add dword [esp + 0x84], ebx
add esp, 0xc
sub esi, ebx
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [edi + eax*2]
add edi, 2
xor ecx, ecx
cmp word [edi], cx
jne 0x4049d9
jmp 0x404a2e
xor ecx, ecx
mov eax, dword [esp + 0x78]
mov byte [eax], cl
jmp 0x404a6e
call dword [sym.imp.COMDLG32.dll_CommDlgExtendedError]
cmp eax, 0x3002
jne 0x404a4f
push str.GetOpenFileName__:_Invalid_File_Name
call fcn.004062bb
jmp 0x404a6d
cmp eax, 0x3003
jne 0x404a5d
push str.GetOpenFileName__:_Selected_too_many_files
jmp 0x404a48
test eax, eax
je 0x404a6e
push eax
push str.GetOpenFileName___Err_d
call fcn.004062bb
pop ecx
pop ecx
mov edi, dword [esp + 0x7c]
push ebp
call fcn.00403dae
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret 0x1c
Function at 0x406951
Capabilities:
Set file attributes

Disassembly:
push esi
push edi
push 0x1c
push dword [esp + 0x10]
xor edi, edi
call fcn.004075f0
mov esi, eax
test esi, esi
je 0x40697d
push 0x5c
push 0x2f
push esi
call fcn.0040203f
push dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edi, eax
push esi
call fcn.00403dae
mov eax, edi
pop edi
pop esi
ret 8

Function at 0x406b54
Capabilities:
Create process on windows

Disassembly:
push ecx
push ecx
push esi
push edi
push 0x45
push 0x8820
xor esi, esi
call fcn.00401224
mov edi, eax
test edi, edi
je 0x406bfb
push ebx
lea ebx, [edi + 0x208]
lea eax, [ebx + 0x208]
push ebp
lea ebp, [eax + 0x208]
mov dword [esp + 0x14], eax
lea eax, [ebp + 0x8000]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x20], esi
je 0x406ba4
push ebx
push dword [esp + 0x24]
call fcn.00407514
jmp 0x406ba6
mov ebx, esi
push dword [esp + 0x14]
push dword [esp + 0x28]
call fcn.00407514
cmp dword [esp + 0x28], esi
je 0x406bc5
push ebp
push dword [esp + 0x2c]
call fcn.00407514
jmp 0x406bc7
mov ebp, esi
cmp dword [esp + 0x2c], esi
je 0x406be0
push dword [esp + 0x10]
push dword [esp + 0x30]
call fcn.00407514
mov eax, dword [esp + 0x10]
jmp 0x406be2
mov eax, esi
push dword [esp + 0x30]
push eax
push ebp
push dword [esp + 0x20]
push ebx
push dword [esp + 0x30]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop ebp
mov esi, eax
pop ebx
push edi
call fcn.00403dae
pop edi
mov eax, esi
pop esi
pop ecx
pop ecx
ret 0x18
Function at 0x407c3d
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x5c
push edi
push 0x13
or eax, 0xffffffff
push 0x18000
mov dword [esp + 0xc], eax
call fcn.00401224
mov edi, eax
test edi, edi
je 0x407d5c
push ebx
mov ebx, dword [esp + 0x68]
push ebp
push esi
push 1
push ebx
lea esi, [edi + 0x10000]
call fcn.00406126
mov ebp, eax
cmp byte [ebp], 0
jne 0x407c8f
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x5c
push 0x2f
push esi
call fcn.00402015
jmp 0x407cad
sub eax, ebx
inc eax
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x5c
push 0x2f
push esi
call fcn.00402015
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push edi
push esi
call fcn.00407514
push 0x44
pop ebx
push ebx
mov esi, eax
xor ebp, ebp
lea eax, [esp + 0x2c]
push ebp
push eax
call sub.ntdll.dll_memset
mov ax, word [esp + 0x80]
mov dword [esp + 0x34], ebx
xor ebx, ebx
push 0x10
mov word [esp + 0x68], ax
inc ebx
lea eax, [esp + 0x28]
mov dword [esp + 0x64], ebx
push ebp
push eax
call sub.ntdll.dll_memset
add esp, 0x18
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x2c]
push eax
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x407d59
push dword [esp + 0x78]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push ebp
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x407d47
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [esp + 0x10]
test eax, eax
push 0xffffffffffffffff
pop eax
cmove ecx, eax
mov dword [esp + 0x10], ecx
push dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [esp + 0x1c]
call esi
pop esi
pop ebp
pop ebx
push edi
call fcn.00403dae
mov eax, dword [esp + 4]
pop edi
add esp, 0x5c
ret 0xc
Function at 0x407d6d
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push ebx
push edi
push 0x13
push 0x18000
xor edi, edi
call fcn.00401224
mov ebx, eax
test ebx, ebx
je 0x407e4c
push ebp
mov ebp, dword [esp + 0x64]
push esi
push 1
push ebp
lea esi, [ebx + 0x10000]
call fcn.00406126
mov dword [esp + 0x68], eax
cmp byte [eax], 0
jne 0x407dbb
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x5c
push 0x2f
push esi
call fcn.00402015
jmp 0x407ddc
sub eax, ebp
inc eax
push eax
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x5c
push 0x2f
push esi
call fcn.00402015
push dword [esp + 0x68]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebx
push esi
call fcn.00407514
push 0x44
pop ebp
push ebp
mov esi, eax
lea eax, [esp + 0x24]
push edi
push eax
call sub.ntdll.dll_memset
mov ax, word [esp + 0x78]
push 0x10
mov word [esp + 0x60], ax
lea eax, [esp + 0x20]
push edi
push eax
mov dword [esp + 0x38], ebp
mov dword [esp + 0x64], 1
call sub.ntdll.dll_memset
add esp, 0x18
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x24]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
test edi, edi
je 0x407e4a
push dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [esp + 0x14]
call esi
pop esi
pop ebp
push ebx
call fcn.00403dae
mov eax, edi
pop edi
pop ebx
add esp, 0x54
ret 8

Function at 0x409be4
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x1c]
test ebp, ebp
je 0x409cc3
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x14]
push ebx
mov ebx, dword [esp + 0x14]
add edx, 2
push esi
lea ecx, [eax + 2]
mov dword [esp + 0xc], edx
push edi
lea esi, [ebx + 1]
mov dword [esp + 0x20], ecx
sub ebx, eax
mov dword [esp + 0x28], esi
mov eax, 0xff
movzx esi, byte [esi + 2]
mov edi, eax
movzx eax, byte [ebx + ecx - 2]
sub edi, esi
movzx ecx, byte [edx - 2]
imul eax, esi
imul ecx, edi
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
mov ecx, dword [esp + 0x20]
mov byte [ecx - 2], al
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x28]
movzx eax, byte [eax - 1]
movzx ecx, byte [ecx]
imul ecx, esi
imul eax, edi
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
mov ecx, dword [esp + 0x20]
mov byte [ecx - 1], al
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
movzx eax, byte [eax + 1]
movzx ecx, byte [ecx]
imul eax, esi
imul ecx, edi
mov esi, dword [esp + 0x28]
add esi, 4
mov dword [esp + 0x28], esi
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
add edx, dword [esp + 0x24]
mov dword [esp + 0x10], edx
mov byte [ecx], al
mov eax, 0xff
mov byte [ecx + 1], 0
add ecx, 4
mov dword [esp + 0x20], ecx
sub ebp, 1
jne 0x409c1d
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret 0x14
Function at 0x40b720
Capabilities:
Get file size

Disassembly:
sub esp, 0x2c
lea eax, [esp + 0xc]
push edi
push eax
lea eax, [esp + 8]
xor edi, edi
push eax
push dword [esp + 0x3c]
call fcn.0040c030
cmp eax, 0xc8
jne 0x40b7b1
push ebx
push dword [esp + 0x3c]
call fcn.00403c19
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40b7b0
push ebp
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea eax, [esp + 0x14]
push eax
push edi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea eax, [esp + 0x1c]
push eax
call fcn.0040620d
mov ebp, eax
lea eax, [esp + 0x2c]
push eax
call fcn.0040620d
sub ebp, eax
cmp esi, dword [esp + 0x10]
jne 0x40b7a5
mov eax, ebp
cdq
xor eax, edx
sub eax, edx
cmp eax, 1
jle 0x40b7a8
xor edi, edi
inc edi
push ebx
call fcn.00403bb4
pop esi
pop ebp
pop ebx
mov eax, edi
pop edi
add esp, 0x2c
ret 8

Function at 0x40bb71
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x18
push ebp
push esi
push edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebp, eax
push esi
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
call fcn.0040c440
mov edi, eax
test edi, edi
jg 0x40bbba
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebp
cmp eax, 0x1388
jb 0x40bb81
cmp edi, 0xc
jl 0x40bbd2
push dword [esp + 0x2c]
call fcn.00406293
xor ecx, ecx
inc ecx
cmp eax, dword [esp + 0x34]
cmove esi, ecx
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x18
ret 0x10

Function at 0x40bcab
Capabilities:
Resolve dns

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.WS2_32.dll_inet_addr]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40bcf1
push 0x2e
push dword [esp + 0xc]
call fcn.0040682c
test eax, eax
jns 0x40bcdc
push dword [esp + 8]
call fcn.0040be82
mov esi, eax
cmp esi, 0xffffffff
jne 0x40bcf1
push dword [esp + 8]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x40bcf1
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov esi, dword [eax]
mov eax, esi
pop esi
ret 4

Function at 0x40c440
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
push 0x10
pop esi
push esi
lea eax, [ebp - 0x14]
push 0
push eax
call sub.ntdll.dll_memset
add esp, 0xc
mov dword [ebp - 4], esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x1c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov edi, eax
test edi, edi
jle 0x40c4a3
cmp dword [ebp + 0x14], 0
je 0x40c48e
push dword [ebp - 0x10]
push dword [ebp + 0x14]
call fcn.0040c1f0
mov esi, dword [ebp + 0x18]
test esi, esi
je 0x40c4a3
push dword [ebp - 0x12]
call dword [sym.imp.WS2_32.dll_htons]
movzx eax, ax
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
leave
ret 0x18
Function at 0x40c4ab
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 0x14], 0
jne 0x40c4eb
push 0xffffffffffffffff
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0xc], eax
push dword [ebp + 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040c854
push 0x10
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x1c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_sendto]
leave
ret 0x18
push dword [ebp + 0x14]
call fcn.0040bcab
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
jne 0x40c4c2
or eax, eax
jmp 0x40c4e7

Function at 0x40c4ff
Capabilities:
Check for time delay via gettickcount
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
jmp 0x40c52f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x40c54b
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebx
cmp eax, dword [ebp + 0x14]
jae 0x40c546
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x40c50d
jmp 0x40c54e
or eax, 0xffffffff
jmp 0x40c54e
push 0xfffffffffffffffe
pop eax
pop ebx
pop ebp
ret 0x10

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

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x14]
xor esi, esi
test edi, edi
jle 0x40c59d
push ebx
mov ebx, dword [esp + 0x14]
push 0
push edi
lea eax, [esi + ebx]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x40c57f
add esi, eax
sub edi, eax
jmp 0x40c594
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x40c59a
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
test edi, edi
jg 0x40c564
jmp 0x40c59c
xor esi, esi
pop ebx
pop edi
mov eax, esi
pop esi
ret 0xc

Function at 0x40c83d
Capabilities:
Set socket configuration

Disassembly:
lea eax, [esp + 8]
push eax
push 0x8004667e
push dword [esp + 0xc]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
ret 8

Function at 0x40c885
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x40c8cc
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040bcab
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040c854
cmp dword [ebp - 0xc], 0xffffffff
je 0x40c8cc
push 0x10
lea eax, [ebp - 0x10]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x40c8d5
push esi
call fcn.0040c99b
or esi, 0xffffffff
mov eax, esi
pop esi
leave
ret 8
Function at 0x40c9ab
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
push ebx
push esi
push edi
xor esi, esi
lea edi, [ebp - 0x190]
cmp dword [ebp + 8], esi
mov ebx, 0x202
cmovne edi, dword [ebp + 8]
push edi
push ebx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x40c9e2
cmp word [edi], bx
je 0x40c9f4
call dword [sym.imp.WS2_32.dll_WSACleanup]
push esi
push 0x20
push esi
call fcn.004031b2
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
xor esi, esi
inc esi
jmp 0x40c9eb

Function at 0x40c9ff
Capabilities:
Create udp socket

Disassembly:
push esi
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x40ca49
cmp dword [esp + 0xc], 0
je 0x40ca52
push dword [esp + 0xc]
push dword [esp + 0xc]
push esi
call fcn.0040c418
cmp eax, 0xffffffff
jne 0x40ca52
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push dword [esp + 0x10]
push str.MyBind_Port_d__Err_d
push 0xffffffffffffffff
push 0
call fcn.00402d52
add esp, 0x14
push esi
call fcn.0040c99b
or esi, 0xffffffff
mov eax, esi
pop esi
ret 8
Function at 0x40d677
Capabilities:
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
xor edx, edx
test esi, esi
jle 0x40d6f8
push edi
mov edi, dword [0x4306d8]
test edi, edi
je 0x40d6f7
mov eax, dword [0x4306d4]
push ebx
test eax, eax
jne 0x40d6d9
mov ebx, edx
push ebp
mov esi, dword [esp + 0x18]
mov ebp, edx
movzx eax, bl
mov dword [esp + 0x10], eax
mov dl, byte [ebx + esi]
mov eax, dword [esp + 0x20]
mov ecx, ebp
shl ecx, 3
shr eax, cl
movzx eax, al
shl eax, 8
add eax, dword [esp + 0x10]
xor dl, byte [eax + edi]
inc ebp
mov byte [ebx + esi], dl
cmp ebp, 4
jl 0x40d6ab
inc ebx
push 0
pop edx
cmp ebx, dword [esp + 0x1c]
jl 0x40d69b
pop ebp
jmp 0x40d6f3
cmp eax, dword [esp + 0x1c]
jne 0x40d6f6
mov ebx, dword [esp + 0x14]
movzx eax, dl
lea ecx, [edx + ebx]
mov al, byte [eax + edi]
xor byte [ecx], al
inc edx
cmp edx, esi
jl 0x40d6e3
xor edx, edx
inc edx
pop ebx
pop edi
mov eax, edx
pop esi
pop ecx
ret 0xc

Function at 0x40d8df
Capabilities:
Terminate thread

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
xor esi, esi
cmp dword [edi + 0x24], esi
je 0x40d989
push dword [edi + 0xa8]
mov dword [edi + 0x24], esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x2710
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40d929
push str.Wait_For_Finish_CommThread_Timeout
call fcn.004062bb
pop ecx
push esi
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 6
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_EscapeCommFunction]
test eax, eax
jne 0x40d943
push str.EscapeCommFunction_CLRDTR__Error
call fcn.004062bb
pop ecx
lea eax, [edi + 0x48]
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_SetCommTimeouts]
test eax, eax
jne 0x40d95f
push str.SetCommTimeouts_Restoration_to_original__Error
call fcn.004062bb
pop ecx
push 0xf
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_PurgeComm]
test eax, eax
jne 0x40d979
push str.PurgeComm___Error
call fcn.004062bb
pop ecx
push dword [edi + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [edi + 0xc]
call esi
pop edi
pop esi
ret 4
Function at 0x40da93
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x24]
test eax, eax
jne 0x40db6f
mov eax, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
mov dword [esi + 4], eax
movzx eax, byte [esi + 0x40]
push eax
mov dword [esi], edi
call fcn.0040e21c
mov ecx, eax
mov dword [esi + 8], ecx
cmp ecx, 0xffffffff
jne 0x40dafa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
movzx eax, byte [esi + 0x40]
push eax
lea eax, [ebp - 0x80]
push str.COM_d_device_not_ready_or_busy__Err_X_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x80]
push 0
push eax
push edi
call fcn.00403150
mov eax, dword [esi + 0x24]
jmp 0x40db6e
lea eax, [esi + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetCommTimeouts]
test eax, eax
jne 0x40db14
push str.GetCommTimeouts___Error
call fcn.004062bb
pop ecx
push esi
call fcn.0040dc67
mov eax, 0x400
push eax
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetupComm]
push 5
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_EscapeCommFunction]
test eax, eax
jne 0x40db44
push str.EscapeCommFunction_SETDTR__Error
call fcn.004062bb
pop ecx
push dword [esi + 0xa8]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp + 8]
push eax
xor eax, eax
push eax
push esi
push 0x40dd9e
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0xc], eax
xor eax, eax
inc eax
mov dword [esi + 0x24], eax
pop edi
pop esi
leave
ret 0xc
Function at 0x410e31
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x18
push ebx
push ebp
mov ebp, dword [esp + 0x24]
push esi
push dword [ebp]
call dword [sym.imp.USER32.dll_HideCaret]
push dword [ebp]
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, dword [ebp + 0x10]
mov esi, eax
mov eax, dword [ebp + 0x28]
sub eax, dword [ebp + 0xc]
imul eax, dword [0x430e88]
add ebx, dword [ebp + 4]
push esi
mov dword [esp + 0x14], esi
add eax, 4
mov dword [esp + 0x10], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [0x430e88]
mov ebp, eax
push ebx
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
push 1
push ebp
mov esi, eax
call dword [sym.imp.GDI32.dll_SetBkMode]
push dword [0x430e88]
lea eax, [esp + 0x18]
push ebx
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_SetRect]
push dword [0x430e80]
lea eax, [esp + 0x18]
push eax
push ebp
call dword [sym.imp.USER32.dll_FillRect]
push dword [0x430e88]
push 0
push ebp
push dword [esp + 0x34]
call fcn.004112af
mov eax, dword [esp + 0x28]
push dword [eax + 0x28]
push eax
call fcn.0040f2dd
push eax
mov eax, dword [esp + 0x2c]
push dword [eax + 0x28]
push 0
push ebp
push eax
call fcn.00410f56
push dword [0x430e88]
push 0
push ebp
push dword [esp + 0x34]
call fcn.00410d41
push 0xcc0020
xor eax, eax
push eax
push eax
push ebp
push dword [0x430e88]
push ebx
push dword [esp + 0x24]
mov ebx, dword [esp + 0x2c]
push eax
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
push esi
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebp
call dword [sym.imp.GDI32.dll_DeleteDC]
push ebx
mov ebx, dword [esp + 0x2c]
push dword [ebx]
call dword [sym.imp.USER32.dll_ReleaseDC]
push dword [ebx]
call dword [sym.imp.USER32.dll_ShowCaret]
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 4
Function at 0x413569
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push esi
mov esi, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
push 1
call esi
test eax, eax
jne 0x413584
push 0xd
call esi
test eax, eax
je 0x41363f
mov esi, dword [esp + 8]
push esi
call fcn.004123b3
test eax, eax
je 0x413598
push esi
call fcn.00410c87
push esi
call fcn.00413773
test eax, eax
je 0x41363f
push edi
push dword [esi]
call dword [sym.imp.USER32.dll_OpenClipboard]
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
test edi, edi
je 0x413638
push ebx
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [esi + 0x24]
mov ebp, eax
push ebp
push 0
call fcn.004114b4
push 0x7e1
lea ecx, [eax + eax]
push ecx
call fcn.00401224
mov ebx, eax
test ebx, ebx
je 0x41362f
push dword [esi + 0x24]
push ebp
push ebx
call fcn.004114b4
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push ebx
push dword [esi + 0x28]
push dword [esi + 0x24]
push 0
push esi
call fcn.0041f6d6
push dword [esi + 0x34]
push esi
call fcn.0041f96f
push dword [esi + 0x34]
push ebx
push esi
call fcn.00412148
push dword [esi + 0x28]
push dword [esi + 0x24]
push 0
push esi
call fcn.0041f69c
push ebx
call fcn.00403dae
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
pop ebp
pop ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
ret 4

Function at 0x4142f1
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
xor edi, edi
call fcn.004123b3
test eax, eax
je 0x414357
push edi
push esi
call fcn.00411a87
test eax, eax
je 0x414357
push ebx
add eax, eax
push eax
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x414356
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
push esi
call fcn.00411a87
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [esi]
call dword [sym.imp.USER32.dll_OpenClipboard]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push ebx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
inc edi
pop ebx
mov eax, edi
pop edi
pop esi
ret 4