joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42428e
Capabilities:
Set socket configuration

Disassembly:
push 0x10
mov eax, 0x5993b6
call fcn.0055d756
mov esi, ecx
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov ecx, edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], ebx
call fcn.00407826
mov dword [ebp - 4], ebx
xor eax, eax
inc ebx
cmp byte [esi + 0x2a], al
push 4
setne al
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push ebx
push 6
push dword [esi + 0xc]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esi, 0x5e1685
mov byte [edi], bl
push esi
call fcn.0040358a
pop ecx
push eax
push esi
lea ecx, [edi + 4]
call fcn.00404259
mov eax, edi
call fcn.0055d705
ret 4
Function at 0x4242f7
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x59940f
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x60f490]
xor eax, esp
mov dword [esp + 0xc8], eax
push ebx
push esi
push edi
mov eax, dword [0x60f490]
xor eax, esp
push eax
lea eax, [esp + 0xe0]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
lea ecx, [esp + 0x8c]
xor ebx, ebx
mov dword [esp + 0x28], ebx
mov byte [esi + 0x44], bl
call fcn.00407826
push ebx
push 1
push 2
pop eax
push eax
mov dword [esp + 0xf4], ebx
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0xc], eax
cmp eax, 0xffffffff
jne 0x4243d5
mov byte [esp + 0x8c], bl
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov dword [esp + 0xc0], eax
lea ecx, [esp + 0x10]
call fcn.00404a5c
push eax
mov edx, str.create_socket_error:
mov byte [esp + 0xec], 1
lea ecx, [esp + 0x30]
call fcn.00404bcb
pop ecx
push eax
lea ecx, [esp + 0x94]
call fcn.00407101
push ebx
push 1
lea ecx, [esp + 0x34]
call fcn.004040cf
push ebx
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0xf0], bl
call fcn.004040cf
jmp 0x424524
lea eax, [esp + 0x44]
mov ecx, esi
push eax
call fcn.0042416d
push eax
lea ecx, [esp + 0x90]
mov byte [esp + 0xec], 2
call fcn.0040865c
lea ecx, [esp + 0x44]
mov byte [esp + 0xe8], bl
call fcn.004053d8
cmp byte [esp + 0x8c], 0
je 0x424524
lea eax, [esp + 0x44]
mov ecx, esi
push eax
call fcn.0042428e
lea ecx, [esp + 0x44]
call fcn.004053d8
push 0x10
call fcn.0043195a
pop ecx
mov ebx, eax
push 2
pop eax
mov word [ebx], ax
movzx ecx, word [esi + 0x28]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebx + 2], ax
lea eax, [esi + 0x10]
cmp dword [eax + 0x14], 0x10
jb 0x424453
mov eax, dword [eax]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0x10
push ebx
mov dword [ebx + 4], eax
push dword [esi + 0xc]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x42449d
mov byte [esp + 0x8c], 0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov dword [esp + 0xc0], eax
lea ecx, [esp + 0x2c]
call fcn.00404a5c
mov byte [esp + 0xe8], 3
mov edx, str.bind_error:
jmp 0x4244da
push 0x14
push dword [esi + 0xc]
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x42451d
mov byte [esp + 0x8c], 0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov dword [esp + 0xc0], eax
lea ecx, [esp + 0x2c]
call fcn.00404a5c
mov byte [esp + 0xe8], 4
mov edx, str.listen_error:
push eax
lea ecx, [esp + 0x14]
call fcn.00404bcb
pop ecx
push eax
lea ecx, [esp + 0x94]
call fcn.00407101
push 0
push 1
lea ecx, [esp + 0x18]
call fcn.004040cf
push 0
push 1
lea ecx, [esp + 0x34]
mov byte [esp + 0xf0], 0
call fcn.004040cf
push dword [esi + 0xc]
call dword [sym.imp.WS2_32.dll_closesocket]
push ebx
call fcn.00431987
pop ecx
lea eax, [esp + 0x8c]
mov ecx, edi
push eax
call fcn.0040cf8f
lea ecx, [esp + 0x8c]
call fcn.004053d8
mov eax, edi
mov ecx, dword [esp + 0xe0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.005597ea
mov esp, ebp
pop ebp
ret 4
Function at 0x427cc4
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5999b3
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x60f490]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push esi
push edi
mov eax, dword [0x60f490]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
mov dword [esp + 0x14], ecx
mov ebx, dword [ebp + 8]
lea ecx, [esp + 0x4c]
and dword [esp + 0x18], 0
call fcn.00407826
and dword [esp + 0xb8], 0
push 0
push 2
pop eax
push eax
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
jne 0x427d9b
mov byte [esp + 0x4c], 0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov dword [esp + 0x80], eax
lea ecx, [esp + 0x34]
call fcn.00404a5c
push eax
mov edx, str.create_udp_socket_error:
mov byte [esp + 0xbc], 1
lea ecx, [esp + 0x20]
call fcn.00404bcb
pop ecx
push eax
lea ecx, [esp + 0x54]
call fcn.00407101
push 0
push 1
lea ecx, [esp + 0x24]
call fcn.004040cf
push 0
push 1
lea ecx, [esp + 0x3c]
mov byte [esp + 0xc0], 0
call fcn.004040cf
jmp 0x427eba
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [esp + 0x94]
push 4
push eax
push 0x1002
push 0xffff
push edi
mov dword [esp + 0xa8], 0x40000
call esi
push 4
lea eax, [esp + 0x98]
push eax
push 0x1001
push 0xffff
push edi
call esi
mov esi, dword [esp + 0x14]
push 2
pop eax
mov word [esp + 0x98], ax
movzx eax, word [esi + 0xa4]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x9a], ax
lea eax, [esi + 0x8c]
cmp dword [eax + 0x14], 0x10
jb 0x427e0d
mov eax, dword [eax]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 0x9c], eax
lea eax, [esp + 0x98]
push 0x10
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x427e9b
mov byte [esp + 0x4c], 0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov dword [esp + 0x80], eax
lea ecx, [esp + 0x1c]
call fcn.00404a5c
push eax
mov edx, str.bind_error:
mov byte [esp + 0xbc], 2
lea ecx, [esp + 0x38]
call fcn.00404bcb
pop ecx
push eax
lea ecx, [esp + 0x54]
call fcn.00407101
push 0
push 1
lea ecx, [esp + 0x3c]
call fcn.004040cf
push 0
push 1
lea ecx, [esp + 0x24]
mov byte [esp + 0xc0], 0
call fcn.004040cf
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x427eba
mov dword [esi + 0x28], edi
mov esi, 0x5e1685
push esi
mov byte [esp + 0x50], 1
call fcn.0040358a
pop ecx
push eax
push esi
lea ecx, [esp + 0x58]
call fcn.00404259
lea eax, [esp + 0x4c]
mov ecx, ebx
push eax
call fcn.0040cf8f
lea ecx, [esp + 0x4c]
call fcn.004053d8
mov eax, ebx
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.005597ea
mov esp, ebp
pop ebp
ret 4
Function at 0x42a434
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x60f490]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
lea eax, [ebp - 0x1c]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x42a4ac
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], 1
push eax
push str.SeDebugPrivilege
xor esi, esi
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [ebp + 8]
neg eax
push esi
sbb eax, eax
push esi
and eax, 2
push 0x10
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x18]
push eax
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x1c]
neg eax
sbb esi, esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi + 1]
jmp 0x42a4ae
xor eax, eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
pop esi
call fcn.005597ea
mov esp, ebp
pop ebp
ret 4
Function at 0x42ab50
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x599ded
mov eax, dword fs:[0]
push eax
sub esp, 0x670
mov eax, dword [0x60f490]
xor eax, esp
mov dword [esp + 0x668], eax
push ebx
push esi
push edi
mov eax, dword [0x60f490]
xor eax, esp
push eax
lea eax, [esp + 0x680]
mov dword fs:[0], eax
mov ebx, edx
mov dword [esp + 0x1c], ebx
mov esi, ecx
mov dword [esp + 0x18], esi
and dword [esp + 0x20], 0
lea ecx, [esp + 0x3c]
push 0x5e1685
call fcn.00403e34
xor edi, edi
xor eax, eax
mov dword [esp + 0x688], edi
mov word [esp + 0x264], ax
test ebx, ebx
je 0x42acf0
lea eax, [esp + 0x264]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x42acf0
mov eax, dword [0x5e555c]
mov ebx, edi
mov esi, dword [esp + 0x1c]
lea edi, [esp + 0x264]
mov dword [esp + 0x54], eax
mov ax, word [0x5e5560]
mov word [esp + 0x58], ax
mov dword [esp + 0x14], edi
mov ax, word [edi]
mov word [esp + 0x54], ax
lea eax, [esp + 0x5c]
push 0x104
push eax
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
xor edx, edx
test eax, eax
je 0x42acb3
lea edi, [esp + 0x5c]
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
cmp ax, dx
jne 0x42ac38
sub edi, ecx
sar edi, 1
cmp edi, 0x104
jae 0x42acaf
push edi
lea eax, [esp + 0x60]
push eax
push esi
call fcn.0055cea4
add esp, 0xc
mov ebx, eax
neg ebx
sbb ebx, ebx
inc ebx
je 0x42acad
lea eax, [esi + edi*2]
push eax
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x474]
push 0x5e5564
push eax
call fcn.0042b7a2
add esp, 0x10
lea edx, [esp + 0x46c]
lea ecx, [esp + 0x24]
call fcn.00417a21
push eax
lea ecx, [esp + 0x40]
call fcn.00407101
xor edi, edi
lea ecx, [esp + 0x24]
push edi
push 1
call fcn.004040cf
xor edx, edx
mov edi, dword [esp + 0x14]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x42acb3
mov dword [esp + 0x14], edi
test ebx, ebx
jne 0x42accf
cmp word [edi], dx
jne 0x42ac0a
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x3c]
push eax
mov ecx, esi
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], edx
mov byte [esi], dl
call fcn.00403ea5
xor edi, edi
push edi
jmp 0x42ad0b
xor ebx, ebx
mov dword [esi + 0x14], 0xf
lea eax, [esp + 0x3c]
mov dword [esi + 0x10], ebx
push eax
mov ecx, esi
mov byte [esi], bl
call fcn.00403ea5
push ebx
push 1
lea ecx, [esp + 0x44]
call fcn.004040cf
mov eax, esi
mov ecx, dword [esp + 0x680]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x668]
xor ecx, esp
call fcn.005597ea
mov esp, ebp
pop ebp
ret
Function at 0x42ad3c
Capabilities:
Get process image filename

Disassembly:
push 0x234
mov eax, 0x599e3d
call fcn.0055d756
mov esi, edx
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
push 0x5e1685
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x224], ebx
call fcn.00403e34
push esi
push ebx
mov dword [ebp - 4], ebx
push 0x410
mov dword [ebp - 0x224], 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x42aded
xor eax, eax
push 0x208
mov word [ebp - 0x220], ax
lea eax, [ebp - 0x21e]
push ebx
push eax
call fcn.0055dbf0
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x104
push eax
push esi
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
test eax, eax
je 0x42ade6
lea edx, [ebp - 0x220]
lea ecx, [ebp - 0x240]
call fcn.0042ab50
push eax
mov ecx, edi
call fcn.00407101
push ebx
push 1
lea ecx, [ebp - 0x240]
call fcn.004040cf
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
call fcn.0055d705
ret

Function at 0x42adf5
Capabilities:
Enumerate processes

Disassembly:
push 0x284
mov eax, 0x599e80
call fcn.0055d756
mov dword [ebp - 0x260], ecx
xor esi, esi
mov dword [ebp - 4], esi
mov eax, dword [ecx]
push esi
push 2
mov dword [ecx + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push 0x5e1685
lea ecx, [ebp - 0x2c]
mov edi, eax
call fcn.00403e34
mov byte [ebp - 4], 1
cmp edi, 0xffffffff
je 0x42af00
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x25c], 0x22c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x42aef1
mov edx, dword [ebp - 0x254]
lea ecx, [ebp - 0x278]
call fcn.0042ad3c
push eax
lea ecx, [ebp - 0x2c]
call fcn.00407101
push esi
push 1
lea ecx, [ebp - 0x278]
call fcn.004040cf
lea edx, [ebp + 8]
lea ecx, [ebp - 0x290]
call fcn.00417a88
mov esi, eax
lea edx, [ebp - 0x2c]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x278]
call fcn.00417a88
mov edx, esi
mov ecx, eax
call fcn.00407687
xor esi, esi
lea ecx, [ebp - 0x278]
push esi
push 1
mov bl, al
call fcn.004040cf
push esi
push 1
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], 1
call fcn.004040cf
test bl, bl
je 0x42aee3
mov ecx, dword [ebp - 0x260]
lea eax, [ebp - 0x254]
push eax
call fcn.0040a673
lea eax, [ebp - 0x25c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x42ae56
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 1
lea ecx, [ebp - 0x2c]
call fcn.004040cf
push esi
push 1
lea ecx, [ebp + 8]
call fcn.004040cf
call fcn.0055d705
ret
Function at 0x42af1c
Capabilities:
Enumerate processes

Disassembly:
push 0x27c
mov eax, 0x599ec8
call fcn.0055d756
mov edi, ecx
and dword [ebp - 4], 0
lea ecx, [ebp + 8]
mov eax, dword [edi]
mov edx, 0x5e1685
mov dword [edi + 4], eax
call fcn.0040578d
test al, al
jne 0x42b003
lea edx, [ebp + 8]
lea ecx, [ebp - 0x40]
call fcn.00417a88
push 0
push 2
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
mov dword [ebp - 0x288], 0x22c
lea eax, [ebp - 0x288]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x42aff0
lea edx, [ebp - 0x264]
lea ecx, [ebp - 0x28]
call fcn.00417a21
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58]
call fcn.00417a88
lea edx, [ebp - 0x40]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x58]
call fcn.00407687
test al, al
je 0x42afc0
lea eax, [ebp - 0x280]
mov ecx, edi
push eax
call fcn.0040a673
lea eax, [ebp - 0x288]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
push 0
push 1
lea ecx, [ebp - 0x58]
mov esi, eax
call fcn.004040cf
push 0
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.004040cf
test esi, esi
jne 0x42af82
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.004040cf
push 0
push 1
lea ecx, [ebp + 8]
call fcn.004040cf
call fcn.0055d705
ret

Function at 0x42b0d7
Capabilities:
Terminate process

Disassembly:
push esi
push ecx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
ret

Function at 0x42b1c2
Capabilities:
Create process on windows

Disassembly:
push 0x46c
mov eax, 0x599f35
call fcn.0055d756
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
xor esi, esi
mov dword [ebp - 4], esi
push eax
call fcn.00403e0e
call fcn.0041e0e6
add esp, 0x18
test al, al
je 0x42b2aa
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp + 8]
lea edx, [ebp - 0x218]
cmovae ecx, dword [ebp + 8]
call fcn.004179cf
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.00403e0e
lea ecx, [ebp - 0x438]
call fcn.0041eacd
add esp, 0x18
lea ecx, [ebp - 0x438]
cmp dword [ebp - 0x424], 0x10
lea edx, [ebp - 0x420]
cmovae ecx, dword [ebp - 0x438]
call fcn.004179cf
lea eax, [ebp - 0x218]
mov dword [ebp - 0x474], 0x3c
mov dword [ebp - 0x464], eax
lea eax, [ebp - 0x420]
mov dword [ebp - 0x45c], eax
lea eax, [ebp - 0x474]
push eax
mov dword [ebp - 0x470], esi
mov dword [ebp - 0x46c], esi
mov dword [ebp - 0x468], esi
mov dword [ebp - 0x460], esi
mov dword [ebp - 0x458], 5
mov dword [ebp - 0x454], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push esi
push 1
lea ecx, [ebp - 0x438]
call fcn.004040cf
push esi
push 1
lea ecx, [ebp + 8]
call fcn.004040cf
call fcn.0055d705
ret
Function at 0x42b2bb
Capabilities:
Create process on windows

Disassembly:
push 0xc6c
mov eax, 0x599f6d
call fcn.0055d756
sub esp, 0x18
lea eax, [ebp + 8]
xor esi, esi
mov ecx, esp
inc esi
mov dword [ebp - 4], esi
push eax
call fcn.00403e0e
call fcn.0041e0e6
add esp, 0x18
xor edi, edi
test al, al
je 0x42b3c1
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp + 8]
lea edx, [ebp - 0x218]
cmovae ecx, dword [ebp + 8]
call fcn.004179cf
cmp dword [ebp + 0x34], 0x10
lea ecx, [ebp + 0x20]
lea edx, [ebp - 0xc20]
cmovae ecx, dword [ebp + 0x20]
call fcn.004179cf
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.00403e0e
lea ecx, [ebp - 0xc38]
call fcn.0041eacd
add esp, 0x18
lea ecx, [ebp - 0xc38]
cmp dword [ebp - 0xc24], 0x10
lea edx, [ebp - 0x420]
cmovae ecx, dword [ebp - 0xc38]
call fcn.004179cf
lea eax, [ebp - 0x218]
mov dword [ebp - 0xc74], 0x3c
mov dword [ebp - 0xc64], eax
lea eax, [ebp - 0xc20]
mov dword [ebp - 0xc60], eax
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc5c], eax
lea eax, [ebp - 0xc74]
push eax
mov dword [ebp - 0xc70], edi
mov dword [ebp - 0xc6c], edi
mov dword [ebp - 0xc68], edi
mov dword [ebp - 0xc58], 5
mov dword [ebp - 0xc54], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push edi
push esi
lea ecx, [ebp - 0xc38]
call fcn.004040cf
push edi
push esi
lea ecx, [ebp + 8]
call fcn.004040cf
push edi
push esi
lea ecx, [ebp + 0x20]
call fcn.004040cf
call fcn.0055d705
ret
Function at 0x42d6cf
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x60f490]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov ebx, edx
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 0x18]
mov esi, ecx
mov dword [ebp - 0x218], eax
push edi
mov edi, dword [ebp + 8]
test ebx, ebx
jne 0x42d709
xor eax, eax
jmp 0x42d878
lea eax, [ebp - 0x210]
push eax
push 0x5dddd4
push 1
xor eax, eax
push eax
push 0x5de0c4
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x42d702
mov eax, dword [ebp - 0x210]
lea edx, [ebp - 0x214]
push edx
push 0x5de124
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
jns 0x42d752
mov eax, dword [ebp - 0x210]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x42d702
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax]
test esi, esi
jne 0x42d766
push dword [0x61bfdc]
jmp 0x42d767
push esi
push eax
call dword [ecx + 0x50]
mov edx, dword [ebp - 0x218]
test edx, edx
je 0x42d782
mov eax, dword [ebp - 0x210]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x210]
xor edx, edx
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov edx, dword [ebp - 0x21c]
test edx, edx
je 0x42d7aa
mov eax, dword [ebp - 0x210]
push 0
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
test edi, edi
je 0x42d7c6
push edi
push ebx
lea eax, [ebp - 0x20c]
push str._s_s
push eax
call fcn.0055d072
add esp, 0x10
jmp 0x42d842
push 0x5c
test esi, esi
je 0x42d7cf
push esi
jmp 0x42d7d5
push dword [0x61bfdc]
call fcn.0055cdfe
pop ecx
pop ecx
test eax, eax
jne 0x42d7f1
mov eax, dword [ebp - 0x214]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x42d744
push eax
push ebx
lea eax, [ebp - 0x20c]
push str._s_s
push eax
call fcn.0055d072
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea edx, [ecx + 2]
xor ebx, ebx
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x42d812
push 0x6c
sub ecx, edx
sar ecx, 1
pop eax
push 0x6e
mov word [ebp + ecx*2 - 0x212], ax
pop eax
push 0x6b
mov word [ebp + ecx*2 - 0x210], ax
pop eax
mov word [ebp + ecx*2 - 0x20e], ax
mov eax, dword [ebp - 0x214]
lea edx, [ebp - 0x20c]
push 1
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov ecx, dword [ebp - 0x214]
mov esi, eax
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
mov ecx, dword [ebp - 0x210]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
xor eax, eax
test esi, esi
setns al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005597ea
mov esp, ebp
pop ebp
ret
Function at 0x42d998
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x60f490]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov dword [ebp - 0x230], ebx
mov ecx, ebx
movzx eax, word [ecx + 0x5e5668]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x212], ax
test ax, ax
jne 0x42d9b9
lea eax, [ebp - 0x22c]
push eax
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
je 0x42d9f1
push 0x5e1685
mov ecx, esi
call fcn.00403e34
jmp 0x42da66
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x22c]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x42da21
mov ecx, ebx
movzx eax, word [ecx + 0x5e5668]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x212], ax
test ax, ax
jne 0x42da0a
push dword [ebp - 0x22c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea edx, [ebp - 0x210]
lea ecx, [ebp - 0x228]
call fcn.00417a21
lea eax, [ebp - 0x228]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov ecx, esi
push eax
mov byte [esi], bl
call fcn.00403ea5
push ebx
push 1
lea ecx, [ebp - 0x228]
call fcn.004040cf
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.005597ea
mov esp, ebp
pop ebp
ret

Function at 0x42df86
Capabilities:
Receive data
Receive data on socket
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [ecx + 0x130]
sub eax, dword [ecx + 0x134]
cmp eax, 0x28
jl method.AgentAppLink.virtual_0
ret
cmp byte [ecx + 0x61], 0
jne 0x42df9b
cmp byte [ecx + 0x60], 0
je 0x42df9b
mov byte [ecx + 0x60], 0
jmp fcn.0042df9d
ret
Function at 0x42e9da
Capabilities:
Connect socket

Disassembly:
push 0xdc
mov eax, 0x59a5f0
call fcn.0055d756
mov esi, ecx
mov ebx, dword [ebp + 8]
and dword [ebp - 0x6c], 0
and dword [ebp - 4], 0
lea ecx, [ebp - 0x68]
call fcn.00407826
mov byte [ebp - 4], 1
cmp byte [esi + 0x61], 0
je 0x42ea11
mov byte [ebp - 0x68], 0
jmp 0x42eacf
lea ecx, [esi + 0x34]
lea eax, [ebp + 0x10]
cmp ecx, eax
je 0x42ea25
push 0xffffffffffffffff
push 0
push eax
call fcn.0040403b
mov ecx, dword [ebp + 0xc]
lea edi, [ebp - 0x1e]
xor eax, eax
mov word [esi + 0x4c], cx
stosd dword es:[edi], eax
push 2
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
pop eax
push ecx
mov word [ebp - 0x20], ax
call dword [sym.imp.WS2_32.dll_htons]
cmp dword [ebp + 0x24], 0x10
mov word [ebp - 0x1e], ax
lea eax, [ebp + 0x10]
cmovae eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x1c], eax
mov ecx, esi
lea eax, [ebp - 0xe8]
push eax
call fcn.0042e80a
push eax
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 2
call fcn.0040865c
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 1
call fcn.004053d8
cmp byte [ebp - 0x68], 0
je 0x42eb39
lea eax, [ebp - 0xe8]
mov ecx, esi
push eax
call fcn.0042e971
lea ecx, [ebp - 0xe8]
call fcn.004053d8
push 0x10
lea eax, [ebp - 0x20]
push eax
push dword [esi + 0x30]
call dword [sym.imp.WS2_32.dll_connect]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], eax
test esi, esi
jne 0x42eae7
mov byte [ebp - 0x68], 1
mov esi, 0x5e1685
push esi
call fcn.0040358a
pop ecx
push eax
push esi
lea ecx, [ebp - 0x64]
call fcn.00404259
jmp 0x42eb39
mov edx, eax
mov byte [ebp - 0x68], 0
lea ecx, [ebp - 0x9c]
call fcn.00404a5c
push eax
mov edx, str.connect_err._lastErr:
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x84]
call fcn.00404bcb
pop ecx
push eax
lea ecx, [ebp - 0x64]
call fcn.00407101
push 0
push 1
lea ecx, [ebp - 0x84]
call fcn.004040cf
push 0
push 1
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 1
call fcn.004040cf
lea eax, [ebp - 0x68]
mov ecx, ebx
push eax
call fcn.0040cf8f
lea ecx, [ebp - 0x68]
call fcn.004053d8
push 0
push 1
lea ecx, [ebp + 0x10]
call fcn.004040cf
mov eax, ebx
call fcn.0055d705
ret 0x20