joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e103
Capabilities:
Manipulate safe mode programs

Disassembly:
mov eax, 0x47b890
call fcn.00478530
push ecx
push ecx
add ecx, 4
lea eax, [ebp - 0x10]
push ecx
push str.SYSTEMCurrentControlSetControlSafeBootNetwork_
push eax
call fcn.004287fe
add esp, 0xc
and dword [ebp - 4], 0
cmp byte [ebp + 8], 0
je 0x41e186
lea ecx, [ebp + 8]
call fcn.00425190
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00428c5a
push eax
push reloc.WS2_32.dll_bind
lea ecx, [ebp + 8]
call fcn.004263db
push 0x49bb08
lea ecx, [ebp - 0x14]
call fcn.00428530
push eax
push 0
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.0042664f
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.004284bd
and byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00426379
jmp 0x41e19b
lea ecx, [ebp - 0x10]
call fcn.00428c5a
push eax
push reloc.WS2_32.dll_bind
call fcn.004266a1
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004284bd
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 4
Function at 0x41e1b5
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, ecx
push esi
push edi
push 0xf01ff
lea ecx, [ebx + 4]
call fcn.00428c5a
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
je 0x41e329
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea eax, [ebp - 0x24]
push eax
push edi
call esi
test eax, eax
jne 0x41e221
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
lea eax, [ebp - 8]
push str.ERROR__d_QueryServiceStatus__
push eax
call fcn.004253a6
add esp, 0xc
lea eax, [ebp - 8]
push 0x483c5c
push eax
call sub.MSVCRT.dll__CxxThrowException
cmp dword [ebp - 0x20], 1
je 0x41e2af
lea eax, [ebp - 0x24]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x41e279
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
lea eax, [ebp - 8]
push str.ERROR__d_ControlService__
push eax
call fcn.004253a6
add esp, 0xc
lea eax, [ebp - 8]
push 0x483c5c
push eax
call sub.MSVCRT.dll__CxxThrowException
cmp dword [ebp - 0x20], 3
jne 0x41e284
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x24]
push eax
push edi
call esi
test eax, eax
jne 0x41e26b
cmp dword [ebp - 0x20], 1
je 0x41e2af
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea eax, [ebp - 8]
push str.The_Ammyy_service_could_not_be_stopped
push eax
call fcn.004253a6
pop ecx
lea eax, [ebp - 8]
pop ecx
push 0x483c5c
push eax
call sub.MSVCRT.dll__CxxThrowException
cmp dword [ebp + 0xc], 0
je 0x41e31b
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x41e312
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp esi, 0x430
lea eax, [ebp - 8]
jne 0x41e2f5
push str.The_Ammyy_service_is_already_marked_for_removing
push eax
call fcn.004253a6
pop ecx
lea eax, [ebp - 8]
pop ecx
push 0x483c5c
push eax
call sub.MSVCRT.dll__CxxThrowException
push esi
push str.The_Ammyy_service_could_not_be_removed__error_d
push eax
call fcn.004253a6
add esp, 0xc
lea eax, [ebp - 8]
push 0x483c5c
push eax
call sub.MSVCRT.dll__CxxThrowException
push 0
mov ecx, ebx
call fcn.0041e103
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
pop ebx
leave
ret 8
lea eax, [ebp - 8]
push str.The_Ammyy_service_could_not_be_found
push eax
call fcn.004253a6
pop ecx
lea eax, [ebp - 8]
pop ecx
push 0x483c5c
push eax
call sub.MSVCRT.dll__CxxThrowException
Function at 0x41e347
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push 0xf01ff
add ecx, 4
call fcn.00428c5a
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x41e388
lea eax, [ebp - 8]
push str.The_Ammyy_service_could_not_be_found
push eax
call fcn.004253a6
pop ecx
lea eax, [ebp - 8]
pop ecx
push 0x483c5c
push eax
call sub.MSVCRT.dll__CxxThrowException
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x41e3c8
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
lea eax, [ebp - 8]
push str.ERROR__d_while_starting_the_AMMYY_service
push eax
call fcn.004253a6
add esp, 0xc
lea eax, [ebp - 8]
push 0x483c5c
push eax
call sub.MSVCRT.dll__CxxThrowException
pop edi
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
leave
ret 4
Function at 0x41e62b
Capabilities:
Delete service
Query service status
Start service

Disassembly:
mov eax, 0x47b8f0
call fcn.00478530
sub esp, 0x78
push ebx
push esi
push edi
xor ebx, ebx
cmp dword [ebp + 8], ebx
mov edi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], edi
jge 0x41e668
lea eax, [ebp - 0x30]
push str.JustLunch___Invalid_Session
push eax
call fcn.004253a6
pop ecx
lea eax, [ebp - 0x30]
pop ecx
push 0x483c5c
push eax
call sub.MSVCRT.dll__CxxThrowException
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp eax, ebx
mov dword [ebp - 0x14], eax
jne 0x41e6a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x38]
push str.OpenSCManager___error__d
push eax
call fcn.004253a6
add esp, 0xc
lea eax, [ebp - 0x38]
push 0x483c5c
push eax
call sub.MSVCRT.dll__CxxThrowException
push 1
push eax
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.0041e1b5
jmp 0x41e6bc
push dword [ebp - 0x14]
mov ecx, edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 2
call fcn.0041df87
lea ecx, [edi + 4]
call fcn.00428c5a
push 0xf01ff
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x18], esi
jne 0x41e716
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x40]
push str.OpenService___error__d
push eax
call fcn.004253a6
add esp, 0xc
lea eax, [ebp - 0x40]
push 0x483c5c
push eax
call sub.MSVCRT.dll__CxxThrowException
push dword [ebp + 8]
lea eax, [ebp - 0x68]
push 0x49c4c0
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [ebp - 0x68]
add esp, 0xc
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x41e768
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x48]
push str.StartService___error__d
push eax
call fcn.004253a6
add esp, 0xc
lea eax, [ebp - 0x48]
push 0x483c5c
push eax
call sub.MSVCRT.dll__CxxThrowException
lea eax, [ebp - 0x84]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x41e7a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x50]
push str.QueryServiceStatus___error__d
push eax
call fcn.004253a6
add esp, 0xc
lea eax, [ebp - 0x50]
push 0x483c5c
push eax
call sub.MSVCRT.dll__CxxThrowException
cmp dword [ebp - 0x80], 1
je 0x41e7b0
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x41e768
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x41e7e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x58]
push str.DeleteService___error__d
push eax
call fcn.004253a6
add esp, 0xc
lea eax, [ebp - 0x58]
push 0x483c5c
push eax
call sub.MSVCRT.dll__CxxThrowException
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push dword [ebp - 0x14]
call esi
push ebx
mov ecx, edi
call fcn.0041e103
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x420d34
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x47bd68
call fcn.00478530
push ecx
lea eax, [ebp - 0x10]
push eax
call fcn.00427c76
and dword [ebp - 4], 0
push 1
push 0
push 0
lea ecx, [ebp - 0x10]
call fcn.00428c5a
push eax
push 0x493ee0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004284bd
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret

Function at 0x420f23
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
cmp dword [esi], 0xffffffff
je 0x420f4e
lea eax, [ebp - 8]
push str.CreateInternal__1
push eax
call fcn.004253a6
pop ecx
lea eax, [ebp - 8]
pop ecx
push 0x483c5c
push eax
call sub.MSVCRT.dll__CxxThrowException
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x420f87
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 8]
push str.Error__d_socket__
push eax
call fcn.004253a6
add esp, 0xc
lea eax, [ebp - 8]
push 0x483c5c
push eax
call sub.MSVCRT.dll__CxxThrowException
pop esi
leave
ret

Function at 0x42109f
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
xor edx, edx
mov ecx, 0x3e8
push edi
div ecx
xor edi, edi
mov dword [ebp - 0x114], 1
mov dword [ebp - 0x10], eax
mov eax, dword [esi]
imul edx, edx, 0x3e8
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp - 0x114]
push edi
push eax
push edi
mov dword [ebp - 0xc], edx
call dword [sym.imp.WS2_32.dll_select]
cmp eax, edi
jne 0x4210f9
or eax, 0xffffffff
pop edi
pop esi
leave
ret 4
jle 0x421142
lea eax, [ebp - 0x114]
push eax
push dword [esi]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x421142
push edi
push edi
push dword [esi]
call dword [sym.imp.WS2_32.dll_accept]
cmp eax, 0xffffffff
jne 0x4210f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 8]
push str.accept___error_d
push eax
call fcn.004253a6
add esp, 0xc
lea eax, [ebp - 8]
push 0x483c5c
push eax
call sub.MSVCRT.dll__CxxThrowException
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 8]
push str.select___error_d
push eax
call fcn.004253a6
add esp, 0xc
lea eax, [ebp - 8]
push 0x483c5c
push eax
call sub.MSVCRT.dll__CxxThrowException

Function at 0x421168
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push esi
push dword [ebp + 0xc]
mov esi, ecx
mov dword [ebp - 0xc], eax
mov word [ebp - 0x10], 2
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0xe], ax
lea eax, [ebp - 0x10]
push 0x10
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
pop esi
je 0x4211a3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
leave
ret 8
Function at 0x4211fa
Capabilities:
Connect socket
Get socket status

Disassembly:
mov eax, 0x47be0c
call fcn.00478530
sub esp, 0x22c
push ebx
push esi
push edi
lea ecx, [ebp - 0x10]
call fcn.00420f18
xor ebx, ebx
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.00420f23
push ebx
push dword [ebp - 0x10]
call fcn.00421f11
mov eax, dword [ebp + 8]
pop ecx
pop ecx
mov dword [ebp - 0x2c], eax
push dword [ebp + 0xc]
mov word [ebp - 0x30], 2
call dword [sym.imp.WS2_32.dll_htons]
mov edi, dword [ebp - 0x10]
mov word [ebp - 0x2e], ax
lea eax, [ebp - 0x30]
push 0x10
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
xor esi, esi
inc esi
test eax, eax
je 0x42131b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x421330
mov eax, dword [ebp + 0x10]
mov ecx, 0x3e8
cdq
idiv ecx
mov dword [ebp - 0x234], edi
mov dword [ebp - 0x238], esi
mov dword [ebp - 0x130], edi
mov dword [ebp - 0x134], esi
mov dword [ebp - 0x20], eax
imul edx, edx, 0x3e8
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1c], edx
push eax
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x238]
push eax
push ebx
push ebx
call dword [sym.imp.WS2_32.dll_select]
cmp eax, ebx
jl 0x421357
cmp eax, esi
jg 0x421357
cmp eax, ebx
je 0x42134d
cmp eax, esi
jne 0x4212e4
lea eax, [ebp - 0x134]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x42134d
lea eax, [ebp - 0x238]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x42131b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x18]
push str.select___error_d
push eax
call fcn.004253a6
add esp, 0xc
lea eax, [ebp - 0x18]
push 0x483c5c
push eax
call sub.MSVCRT.dll__CxxThrowException
push esi
push dword [ebp - 0x10]
call fcn.00421f11
pop ecx
pop ecx
lea ecx, [ebp - 0x10]
call fcn.00420ff8
mov ebx, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00420f1e
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
lea ecx, [ebp - 0x10]
call fcn.00420f8a
jmp 0x421330
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x18]
push str.select___error_d
push eax
call fcn.004253a6
add esp, 0xc
lea eax, [ebp - 0x18]
push 0x483c5c
push eax
call sub.MSVCRT.dll__CxxThrowException

Function at 0x42137d
Capabilities:
Set socket configuration

Disassembly:
push dword [esp + 4]
call fcn.0042138c
pop ecx
jmp fcn.004213d6

Function at 0x42138c
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
xor eax, eax
lea ecx, [ebp - 4]
inc eax
push 4
push ecx
push eax
push 6
mov dword [ebp - 4], eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x4213d4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea eax, [ebp - 0xc]
push str.ERROR__d_disabling_Nagles_algorithm
push eax
call fcn.004253a6
add esp, 0xc
lea eax, [ebp - 0xc]
push 0x483c5c
push eax
call sub.MSVCRT.dll__CxxThrowException
leave
ret
Function at 0x4215be
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
cmp dword [0x4a7ab4], 0
mov dword [ebp - 0x18], str.getaddrinfo
mov dword [ebp - 0x14], 0x421757
mov dword [ebp - 0x10], str.getnameinfo
mov dword [ebp - 0xc], 0x421c88
mov dword [ebp - 8], str.freeaddrinfo
mov dword [ebp - 4], fcn.0042171b
jne 0x42170c
push ebx
push esi
push edi
lea eax, [ebp - 0x22c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x4216ff
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x124]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x124]
push str.ws2_32
push eax
call sub.MSVCRT.dll_strcat
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0x10
lea eax, [ebp - 0x124]
push eax
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x421676
push str.getaddrinfo
push esi
call edi
test eax, eax
jne 0x421672
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
test esi, esi
jne 0x4216c5
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x124]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x124]
push str.wship6
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
lea eax, [ebp - 0x124]
push eax
call ebx
mov esi, eax
test esi, esi
je 0x4216ff
push str.getaddrinfo
push esi
call edi
test eax, eax
jne 0x4216c1
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
test esi, esi
je 0x4216ff
xor ebx, ebx
push dword [ebp + ebx*8 - 0x18]
push esi
call edi
test eax, eax
mov dword [ebp + ebx*8 - 0x14], eax
je 0x4216de
inc ebx
cmp ebx, 3
jl 0x4216c7
jmp 0x4216e7
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
test esi, esi
je 0x4216ff
xor eax, eax
mov ecx, dword [ebp + eax - 0x14]
mov dword [eax + 0x49c7cc], ecx
add eax, 8
cmp eax, 0x18
jl 0x4216ed
pop edi
pop esi
mov dword [0x4a7ab4], 1
pop ebx
movzx eax, word [ebp + 8]
mov eax, dword [eax*8 + 0x49c7cc]
leave
ret 4

Function at 0x421ba1
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x18]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x1c]
push dword [ebp + 8]
and dword [edi], 0
and byte [eax], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x421c1b
cmp word [ebx + 8], 2
jne 0x421bf7
cmp word [ebx + 0xa], 4
jne 0x421bf7
mov esi, dword [ebx + 0xc]
jmp 0x421bf1
push dword [eax]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00421a3a
test eax, eax
mov dword [edi], eax
je 0x421c16
lea edi, [eax + 0x1c]
add esi, 4
mov eax, dword [esi]
test eax, eax
jne 0x421bd5
mov esi, dword [ebp + 0x18]
push 0x400
push dword [ebx]
push esi
call dword [sym.imp.MSVCRT.dll_strncpy]
and byte [esi + 0x400], 0
add esp, 0xc
xor eax, eax
jmp 0x421c41
push 8
pop eax
jmp 0x421c41
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov eax, 0x2af9
sub ecx, eax
je 0x421c41
dec ecx
je 0x421c3c
dec ecx
je 0x421c35
dec ecx
jmp 0x421c41
mov eax, 0x2afb
jmp 0x421c41
mov eax, 0x2afa
pop edi
pop esi
pop ebx
pop ebp
ret 0x18
Function at 0x421f11
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
xor eax, eax
cmp byte [ebp + 0xc], al
sete al
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push 0x8004667e
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
je 0x421f60
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 8]
push str.Error_d_in_SetBlockingMode__u_
push eax
call fcn.004253a6
add esp, 0x10
lea eax, [ebp - 8]
push 0x483c5c
push eax
call sub.MSVCRT.dll__CxxThrowException
leave
ret

Function at 0x421f62
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
xor eax, eax
push 4
cmp byte [ebp + 0xc], al
setne al
mov word [ebp + 0xc], ax
mov ax, word [ebp + 0x10]
mov word [ebp + 0xe], ax
lea eax, [ebp + 0xc]
push eax
push 0x80
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x421fbe
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 8]
push str.setsockopt_SO_LINGER___u
push eax
call fcn.004253a6
add esp, 0xc
lea eax, [ebp - 8]
push 0x483c5c
push eax
call sub.MSVCRT.dll__CxxThrowException
leave
ret

Function at 0x421fc0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
push 4
push eax
push 0x1001
push 0xffff
mov dword [ebp - 4], 0x10000
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x422010
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xc]
push str.Error_d_setsockopt__
push eax
call fcn.004253a6
add esp, 0xc
lea eax, [ebp - 0xc]
push 0x483c5c
push eax
call sub.MSVCRT.dll__CxxThrowException
leave
ret

Function at 0x422012
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [ebp + 0x10]
push esi
mov esi, ecx
xor edx, edx
mov ecx, 0x3e8
mov dword [ebp - 0x114], 1
div ecx
mov dword [ebp - 8], eax
mov eax, dword [esi]
imul edx, edx, 0x3e8
mov dword [ebp - 0x110], eax
lea eax, [ebp - 8]
push eax
push 0
lea eax, [ebp - 0x114]
push 0
push eax
push 0
mov dword [ebp - 4], edx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jl 0x42209a
cmp eax, 1
jg 0x42209a
lea eax, [ebp - 0x114]
push eax
push dword [esi]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x422096
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x422091
or eax, 0xffffffff
pop esi
leave
ret 0xc
xor eax, eax
jmp 0x422091
push dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x10]
push str.ERROR__d_in_TCP::TryRead__1__d_socket_X
push eax
call fcn.004226a9
add esp, 0x14
lea eax, [ebp - 0x10]
push 0x48822c
push eax
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [esp + 4]
push esi
mov esi, ecx
add eax, 4
push eax
lea ecx, [esi + 4]
call fcn.004281cd
mov dword [esi], 0x47fe20
mov eax, esi
pop esi
ret 4
Function at 0x4225ae
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ecx + 8]
mov ecx, 0x3e8
cdq
idiv ecx
mov dword [ebp - 0x110], esi
mov dword [ebp - 0x114], 1
imul edx, edx, 0x3e8
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0
lea eax, [ebp - 0x114]
push 0
push eax
lea eax, [esi + 1]
push eax
mov dword [ebp - 4], edx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jl 0x42261c
cmp eax, 2
jg 0x42261c
lea eax, [ebp - 0x114]
push eax
push esi
call sub.WS2_32.dll___WSAFDIsSet
neg eax
sbb eax, eax
pop esi
neg eax
leave
ret 4
push eax
lea eax, [ebp - 0x10]
push str.ERROR_in_TransportTCP1::IsReadyForRead__1__d
push eax
call fcn.004226a9
add esp, 0xc
lea eax, [ebp - 0x10]
push 0x48822c
push eax
call sub.MSVCRT.dll__CxxThrowException
Function at 0x422c82
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x47bf64
call fcn.00478530
sub esp, 0x48
push esi
push str.Elevate__
push 0x4a7870
call fcn.0042635b
xor esi, esi
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.0040b2bf
add esp, 0x10
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], esi
mov dword [ebp - 0x54], 0x3c
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], str.runas
call fcn.00428c5a
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 0x40], str._elevated
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], 5
mov dword [ebp - 0x34], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x422d33
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x4c7
jne 0x422d11
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00429a78
xor al, al
jmp 0x422d41
call esi
push eax
lea eax, [ebp - 0x18]
push str.Error__d_in_Elevate__
push eax
call fcn.004253a6
add esp, 0xc
lea eax, [ebp - 0x18]
push 0x483c5c
push eax
call sub.MSVCRT.dll__CxxThrowException
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00429a78
mov al, 1
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x422df8
Capabilities:
Log keystrokes

Disassembly:
push ebx
push esi
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push 0
push eax
call esi
push 0
mov edi, eax
push dword [esp + 0x14]
call esi
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
mov ebx, eax
push 1
push ebx
push edi
call esi
test eax, eax
jne 0x422e36
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetForegroundWindow__1_Error__d
jmp 0x422e84
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x422e52
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetForegroundWindow__2_Error__d
jmp 0x422e84
push 0
push ebx
push edi
call esi
test eax, eax
jne 0x422e6a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetForegroundWindow__3_Error__d
jmp 0x422e84
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_SetActiveWindow]
test eax, eax
jne 0x422e95
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetForegroundWindow__4_Error__d
push 0x4a7870
call fcn.00426343
add esp, 0xc
xor eax, eax
jmp 0x422e98
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
ret

Function at 0x424e61
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [ecx + 0x1db4]
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jle 0x424e89
mov edx, dword [esp + 8]
push edi
movzx edi, byte [edx]
xor edi, eax
movzx eax, byte [edi + ecx + 0x1cb4]
mov byte [edx], al
inc edx
dec esi
jne 0x424e75
pop edi
mov dword [ecx + 0x1db4], eax
pop esi
ret 8
Function at 0x424eb6
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
push edi
mov edi, ecx
test edx, edx
mov ecx, dword [edi + 0x1db4]
jle 0x424ee3
push ebx
push esi
mov esi, dword [esp + 0x10]
movzx eax, byte [esi]
mov bl, byte [edi + eax + 0x1cb4]
xor bl, cl
mov ecx, eax
mov byte [esi], bl
inc esi
dec edx
jne 0x424ecd
pop esi
pop ebx
mov dword [edi + 0x1db4], ecx
pop edi
ret 8

Function at 0x424f4f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov eax, edx
push esi
shr eax, 2
test eax, eax
jle 0x424f78
mov esi, eax
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ecx]
add ecx, 4
xor dword [eax], edi
add eax, 4
dec esi
jne 0x424f68
pop edi
jmp 0x424f7b
mov eax, dword [ebp + 8]
and edx, 3
jle 0x424f8b
mov esi, edx
mov dl, byte [ecx]
xor byte [eax], dl
inc eax
inc ecx
dec esi
jne 0x424f82
pop esi
pop ebp
ret