joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4033e5
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
cmp dword [ebp + 8], 0
mov byte [ebp - 0x50], 0
je 0x40340a
push 0x50
lea eax, [ebp - 0x50]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp byte [ebp - 0x50], 0
jne 0x40341e
push 0x50
lea eax, [ebp - 0x50]
push eax
push 0x50
push dword [0x430234]
call dword [sym.imp.USER32.dll_LoadStringA]
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x50]
or ecx, 0x30
test byte [ebp + 0x10], 0x70
cmovne ecx, dword [ebp + 0x10]
or ecx, 0x2000
push ecx
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MessageBoxA]
leave
ret 0xc

Function at 0x403461
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 2
pop esi
push dword [ebp + 0xc]
call fcn.004041d7
push 0x35
lea ebx, [eax + 1]
lea eax, [ebx*2 + 0xa0]
push eax
call fcn.00401286
mov edi, eax
test edi, edi
je 0x4034e4
push ebx
push edi
push dword [ebp + 0xc]
lea esi, [edi + ebx*2]
call fcn.00407a59
mov ebx, dword [ebp + 8]
xor eax, eax
mov word [esi], ax
test ebx, ebx
je 0x4034b3
push 0x50
push esi
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [esi], 0
jne 0x4034c4
push 0x50
push esi
push 0x50
push dword [0x430234]
call dword [sym.imp.USER32.dll_LoadStringW]
mov ecx, dword [ebp + 0x10]
or ecx, 0x30
test byte [ebp + 0x10], 0x70
cmovne ecx, dword [ebp + 0x10]
or ecx, 0x2000
push ecx
push esi
push edi
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov esi, eax
push edi
call fcn.00404070
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x403a63
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 0xc]
push esi
push eax
movzx eax, word [ebp + 0x10]
push 0x42873c
push eax
call fcn.004063a5
mov esi, eax
test esi, esi
je 0x403aab
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x403aa4
push 0
lea eax, [ebp - 0xc]
push eax
push 2
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00403adf
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop esi
leave
ret 0xc

Function at 0x404558
Capabilities:
Get graphical window text

Disassembly:
push ebx
push ebp
push esi
xor esi, esi
push edi
cmp dword [esp + 0x18], esi
je 0x404576
push dword [esp + 0x18]
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, eax
jmp 0x40457a
mov ebx, dword [esp + 0x14]
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
push 0x5c
lea ebp, [eax + 2]
imul eax, ebp, 6
push eax
call fcn.00401286
mov edi, eax
test edi, edi
je 0x4045b9
push ebp
push edi
push ebx
lea esi, [edi + ebp*2]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push esi
xor eax, eax
push edi
mov dword [esi - 2], eax
call fcn.0040790a
push dword [esp + 0x1c]
push esi
call fcn.00402bba
mov esi, eax
push edi
call fcn.00404070
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x404642
Capabilities:
Get file attributes

Disassembly:
push esi
push edi
push 0x1b
push dword [esp + 0x10]
or edi, 0xffffffff
call fcn.00407b57
mov esi, eax
test esi, esi
je 0x40466b
push 0x5c
push 0x2f
push esi
call fcn.004021e3
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
push esi
call fcn.00404070
mov eax, edi
pop edi
pop esi
ret 4
Function at 0x404bc4
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 0x404be0
push 8
call fcn.00404ac5
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push dword [esp + 0x84]
lea ebp, [eax + 1]
mov dword [esp + 0x84], ebp
call fcn.00404177
mov esi, dword [esp + 0x7c]
mov dword [esp + 0x14], eax
add eax, ebp
add eax, esi
push 0x26
lea eax, [eax*2 + 0x410]
push eax
call fcn.00401286
mov ebp, eax
test ebp, ebp
je 0x404dd5
mov eax, dword [esp + 0x80]
lea edi, [ebp + 0x30c]
lea ecx, [edi + esi*2]
push esi
push edi
push dword [esp + 0x80]
lea ecx, [ecx + eax*2]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1c], ecx
lea eax, [ecx + eax*2]
mov dword [esp + 0x20], eax
call fcn.00407a59
push 0x5c
push 0x2f
push edi
call fcn.004021e3
push dword [esp + 0x80]
lea eax, [edi + esi*2]
push eax
push ebx
call fcn.00407a59
mov ebx, dword [esp + 0x84]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x80], eax
cmp byte [ebx], 0
je 0x404cba
mov esi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push esi
push ebx
call fcn.00407a59
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 0x404c86
mov esi, dword [esp + 0x7c]
mov ebx, dword [esp + 0x14]
push 0x82
push ebx
push dword [esp + 0x90]
call fcn.00407a59
push 0x58
lea eax, [esp + 0x1c]
push 0
push eax
call sub.ntdll.dll_memset
mov eax, dword [esp + 0x1c]
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 + 0x84], eax
test eax, eax
je 0x404d96
dec esi
jmp 0x404d83
test esi, esi
jle 0x404d8e
push 0x30c
push ebp
push edi
call fcn.00407976
push 0x2f
push 0x5c
push ebp
call fcn.004021b6
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebx, [eax + 1]
cmp esi, ebx
jl 0x404d8c
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 0x404d34
jmp 0x404d8e
xor ecx, ecx
mov eax, dword [esp + 0x78]
mov byte [eax], cl
jmp 0x404dce
call dword [sym.imp.COMDLG32.dll_CommDlgExtendedError]
cmp eax, 0x3002
jne 0x404daf
push str.GetOpenFileName__:_Invalid_File_Name
call fcn.004067a2
jmp 0x404dcd
cmp eax, 0x3003
jne 0x404dbd
push str.GetOpenFileName__:_Selected_too_many_files
jmp 0x404da8
test eax, eax
je 0x404dce
push eax
push str.GetOpenFileName___Err_d
call fcn.004067a2
pop ecx
pop ecx
mov edi, dword [esp + 0x84]
push ebp
call fcn.00404070
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret 0x1c
Function at 0x406f5f
Capabilities:
Set file attributes

Disassembly:
push esi
push edi
push 0x1c
push dword [esp + 0x10]
xor edi, edi
call fcn.00407b57
mov esi, eax
test esi, esi
je 0x406f8b
push 0x5c
push 0x2f
push esi
call fcn.004021e3
push dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edi, eax
push esi
call fcn.00404070
mov eax, edi
pop edi
pop esi
ret 8
Function at 0x4081a7
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.00401286
mov edi, eax
test edi, edi
je 0x4082cb
push ebx
mov ebx, dword [esp + 0x68]
push ebp
push esi
push 1
push ebx
lea esi, [edi + 0x10000]
call fcn.0040660b
mov ebp, eax
cmp byte [ebp], 0
jne 0x4081f9
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x5c
push 0x2f
push esi
call fcn.004021b6
jmp 0x408217
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.004021b6
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x8000
push edi
push esi
call fcn.00407a59
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 0x4082c8
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 0x4082b6
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.00404070
mov eax, dword [esp + 4]
pop edi
add esp, 0x5c
ret 0xc
Function at 0x4082dc
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push ebx
push edi
push 0x13
push 0x18000
xor edi, edi
call fcn.00401286
mov ebx, eax
test ebx, ebx
je 0x4083c0
push ebp
mov ebp, dword [esp + 0x64]
push esi
push 1
push ebp
lea esi, [ebx + 0x10000]
call fcn.0040660b
mov dword [esp + 0x68], eax
cmp byte [eax], 0
jne 0x40832a
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x5c
push 0x2f
push esi
call fcn.004021b6
jmp 0x40834b
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.004021b6
push dword [esp + 0x68]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x8000
push ebx
push esi
call fcn.00407a59
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 0x4083be
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.00404070
mov eax, edi
pop edi
pop ebx
add esp, 0x54
ret 8

Function at 0x40a164
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x1c]
test ebp, ebp
je 0x40a243
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 0x40a19d
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret 0x14
Function at 0x40bc0f
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.0040c521
cmp eax, 0xc8
jne 0x40bca2
push ebx
push dword [esp + 0x3c]
call fcn.00403edb
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40bca1
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.004066f4
mov ebp, eax
lea eax, [esp + 0x2c]
push eax
call fcn.004066f4
sub ebp, eax
cmp esi, dword [esp + 0x10]
jne 0x40bc96
mov eax, ebp
neg eax
test ebp, ebp
cmovns eax, ebp
cmp eax, 1
jle 0x40bc99
xor edi, edi
inc edi
push ebx
call fcn.00403e76
pop esi
pop ebp
pop ebx
mov eax, edi
pop edi
add esp, 0x2c
ret 8

Function at 0x40c062
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.0040c931
mov edi, eax
test edi, edi
jg 0x40c0ab
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebp
cmp eax, 0x1388
jb 0x40c072
cmp edi, 0xc
jl 0x40c0c3
push dword [esp + 0x2c]
call fcn.0040677a
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 0x40c19c
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 0x40c1e2
push 0x2e
push dword [esp + 0xc]
call fcn.00406dcb
test eax, eax
jns 0x40c1cd
push dword [esp + 8]
call fcn.0040c373
mov esi, eax
cmp esi, 0xffffffff
jne 0x40c1e2
push dword [esp + 8]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x40c1e2
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov esi, dword [eax]
mov eax, esi
pop esi
ret 4

Function at 0x40c931
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 0x40c994
cmp dword [ebp + 0x14], 0
je 0x40c97f
push dword [ebp - 0x10]
push dword [ebp + 0x14]
call fcn.0040c6e1
mov esi, dword [ebp + 0x18]
test esi, esi
je 0x40c994
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 0x40c99c
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 0x14], 0
jne 0x40c9dc
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.0040cd45
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.0040c19c
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
jne 0x40c9b3
or eax, eax
jmp 0x40c9d8

Function at 0x40c9f0
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 0x40ca20
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x40ca3c
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 0x40ca37
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 0x40c9fe
jmp 0x40ca3f
or eax, 0xffffffff
jmp 0x40ca3f
push 0xfffffffffffffffe
pop eax
pop ebx
pop ebp
ret 0x10

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

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x14]
xor esi, esi
test edi, edi
jle 0x40ca8e
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 0x40ca70
add esi, eax
sub edi, eax
jmp 0x40ca85
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x40ca8b
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
test edi, edi
jg 0x40ca55
jmp 0x40ca8d
xor esi, esi
pop ebx
pop edi
mov eax, esi
pop esi
ret 0xc

Function at 0x40cd2e
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 0x40cd76
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 0x40cdbd
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040c19c
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040cd45
cmp dword [ebp - 0xc], 0xffffffff
je 0x40cdbd
push 0x10
lea eax, [ebp - 0x10]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x40cdc6
push esi
call fcn.0040ce1e
or esi, 0xffffffff
mov eax, esi
pop esi
leave
ret 8
Function at 0x40ce2e
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 0x40ce65
cmp word [edi], bx
je 0x40ce77
call dword [sym.imp.WS2_32.dll_WSACleanup]
push esi
push 0x20
push esi
call fcn.00403447
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
xor esi, esi
inc esi
jmp 0x40ce6e

Function at 0x40ce82
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 0x40cec8
cmp dword [esp + 0xc], 0
je 0x40ced1
push dword [esp + 0xc]
push dword [esp + 0xc]
push esi
call fcn.0040c909
cmp eax, 0xffffffff
jne 0x40ced1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push dword [esp + 0x10]
push str.MyBind_Port_d__Err_d
call fcn.004067a2
add esp, 0xc
push esi
call fcn.0040ce1e
or esi, 0xffffffff
mov eax, esi
pop esi
ret 8
Function at 0x40d404
Capabilities:
Terminate thread

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
xor esi, esi
cmp dword [edi + 0x24], esi
je 0x40d4ae
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 0x40d44e
push str.Wait_For_Finish_CommThread_Timeout
call fcn.004067a2
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 0x40d468
push str.EscapeCommFunction_CLRDTR__Error
call fcn.004067a2
pop ecx
lea eax, [edi + 0x48]
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_SetCommTimeouts]
test eax, eax
jne 0x40d484
push str.SetCommTimeouts_Restoration_to_original__Error
call fcn.004067a2
pop ecx
push 0xf
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_PurgeComm]
test eax, eax
jne 0x40d49e
push str.PurgeComm___Error
call fcn.004067a2
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 0x40d5b8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp dword [esi + 0x24], ebx
jne 0x40d690
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.0040dd3b
mov ecx, eax
mov dword [esi + 8], ecx
cmp ecx, 0xffffffff
jne 0x40d61c
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 ebx
push eax
push edi
call fcn.004033e5
jmp 0x40d68f
lea eax, [esi + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetCommTimeouts]
test eax, eax
jne 0x40d636
push str.GetCommTimeouts___Error
call fcn.004067a2
pop ecx
push esi
call fcn.0040d78c
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 0x40d666
push str.EscapeCommFunction_SETDTR__Error
call fcn.004067a2
pop ecx
push dword [esi + 0xa8]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp + 8]
push eax
push ebx
push esi
push 0x40d8c3
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0xc], eax
mov dword [esi + 0x24], 1
pop edi
mov eax, dword [esi + 0x24]
pop esi
pop ebx
leave
ret 0xc
Function at 0x410a69
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 [0x430d30]
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 [0x430d30]
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 [0x430d30]
lea eax, [esp + 0x18]
push ebx
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_SetRect]
push dword [0x430d28]
lea eax, [esp + 0x18]
push eax
push ebp
call dword [sym.imp.USER32.dll_FillRect]
push dword [0x430d30]
push 0
push ebp
push dword [esp + 0x34]
call fcn.00410eb8
mov eax, dword [esp + 0x28]
push dword [eax + 0x28]
push eax
call fcn.0040ee3e
push eax
mov eax, dword [esp + 0x2c]
push dword [eax + 0x28]
push 0
push ebp
push eax
call fcn.00410b8e
push dword [0x430d30]
push 0
push ebp
push dword [esp + 0x34]
call fcn.00410979
push 0xcc0020
xor eax, eax
push eax
push eax
push ebp
push dword [0x430d30]
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