joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e372c
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push esi
mov ebx, 0x4fecf8
mov esi, 0x4fecf4
mov byte [0x4fbfd8], 0
mov eax, dword [0x4fc868]
cmp dword [eax], 2
jne 0x4e375a
mov eax, 0x4fbfdc
mov edx, 0x4e3854
call fcn.004043e0
jmp 0x4e3777
mov eax, dword [0x4fc868]
cmp dword [eax], 1
jne 0x4e3849
mov eax, 0x4fbfdc
mov edx, 0x4e386c
call fcn.004043e0
mov edx, 0x8000
mov eax, dword [0x4fbfdc]
call fcn.0040dcb0
mov dword [esi], eax
cmp dword [esi], 1
jb 0x4e3849
push 0x4e3878
mov eax, dword [esi]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebx], eax
push 0x4e3890
mov eax, dword [esi]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebx + 8], eax
push 0x4e38ac
mov eax, dword [esi]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebx + 4], eax
push 0x4e38c8
mov eax, dword [esi]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebx + 0xc], eax
push 0x4e38dc
mov eax, dword [esi]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebx + 0x10], eax
push 0x4e38f8
mov eax, dword [esi]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebx + 0x14], eax
push 0x4e390c
mov eax, dword [esi]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebx + 0x18], eax
push 0x4e3928
mov eax, dword [esi]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebx + 0x1c], eax
cmp dword [ebx], 0
je 0x4e3833
cmp dword [ebx + 8], 0
je 0x4e3833
cmp dword [ebx + 4], 0
je 0x4e3833
cmp dword [ebx + 0xc], 0
je 0x4e3833
cmp dword [ebx + 0x10], 0
je 0x4e3833
cmp dword [ebx + 0x18], 0
jne 0x4e3842
mov eax, dword [esi]
push eax
call sub.kernel32.dll_FreeLibrary_1
xor eax, eax
mov dword [esi], eax
pop esi
pop ebx
ret
mov byte [0x4fbfd8], 1
pop esi
pop ebx
ret
Function at 0x4013a4
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x4013b6
mov eax, dword [0x4a708b]
shl eax, 2
mov dword [0x4a708f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.004842a0
pop edx
call fcn.00484204
call fcn.004842e0
push 0
call fcn.00485928
pop ecx
push 0x4a7034
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x4a7093], eax
push 0
jmp fcn.0048e48c
Function at 0x401628
Capabilities:
Copy file
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc70
mov eax, 0x4a7124
call fcn.00484c88
mov dword [ebp - 0x10], 1
lea edx, [ebp + 8]
lea eax, [ebp + 8]
call fcn.004a5580
inc dword [ebp - 0x10]
mov word [ebp - 0x1c], 8
lea edx, [ebp - 0x238]
push edx
push 0x104
call sub.KERNEL32.DLL_GetCurrentDirectoryA
lea ecx, [ebp - 0x134]
push ecx
push 0x104
call sub.KERNEL32.DLL_GetTempPathA
test eax, eax
jne 0x40169f
xor eax, eax
push eax
dec dword [ebp - 0x10]
lea eax, [ebp + 8]
mov edx, 2
call fcn.004a55bc
pop eax
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
jmp 0x40185c
mov word [ebp - 0x1c], 0x14
xor ecx, ecx
mov dword [ebp - 4], ecx
lea edx, [ebp - 4]
inc dword [ebp - 0x10]
lea eax, [ebp + 8]
call fcn.004a568c
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x134]
lea eax, [ebp - 8]
call fcn.004a5548
inc dword [ebp - 0x10]
lea edx, [ebp - 8]
pop eax
call fcn.004a5714
push eax
dec dword [ebp - 0x10]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004a55bc
dec dword [ebp - 0x10]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004a55bc
pop ecx
test ecx, ecx
je 0x40171f
xor eax, eax
push eax
dec dword [ebp - 0x10]
lea eax, [ebp + 8]
mov edx, 2
call fcn.004a55bc
pop eax
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
jmp 0x40185c
lea ecx, [ebp - 0x33c]
push ecx
push 0x7bc
push 0x4a70c4
lea eax, [ebp - 0x134]
push eax
call sub.KERNEL32.DLL_GetTempFileNameA
test eax, eax
jne 0x401763
xor eax, eax
push eax
dec dword [ebp - 0x10]
lea eax, [ebp + 8]
mov edx, 2
call fcn.004a55bc
pop eax
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
jmp 0x40185c
push 0
lea ecx, [ebp - 0x33c]
push ecx
cmp dword [ebp + 8], 0
je 0x401777
mov eax, dword [ebp + 8]
jmp 0x40177c
mov eax, 0x4a70c8
push eax
call sub.KERNEL32.DLL_CopyFileA
test eax, eax
jne 0x4017a9
xor eax, eax
push eax
dec dword [ebp - 0x10]
lea eax, [ebp + 8]
mov edx, 2
call fcn.004a55bc
pop eax
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
jmp 0x40185c
push 0x10
push 0
lea ecx, [ebp - 0x390]
push ecx
call fcn.00484750
add esp, 0xc
push 0x44
push 0
lea eax, [ebp - 0x380]
push eax
call fcn.00484750
add esp, 0xc
mov dword [ebp - 0x380], 0x44
lea edx, [ebp - 0x390]
push edx
lea ecx, [ebp - 0x380]
push ecx
lea eax, [ebp - 0x238]
push eax
push 0
push 0x4000000
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x33c]
push edx
call sub.KERNEL32.DLL_CreateProcessA
test eax, eax
jne 0x40183b
call sub.KERNEL32.DLL_GetLastError
mov dword [ebp - 0x30], eax
mov word [ebp - 0x1c], 8
xor eax, eax
push eax
dec dword [ebp - 0x10]
lea eax, [ebp + 8]
mov edx, 2
call fcn.004a55bc
pop eax
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
jmp 0x40185c
mov eax, 1
push eax
dec dword [ebp - 0x10]
lea eax, [ebp + 8]
mov edx, 2
call fcn.004a55bc
pop eax
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
mov esp, ebp
pop ebp
ret
Function at 0x401d20
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff3d4
push esi
push edi
mov esi, 0x4a7244
lea edi, [ebp - 0x408]
mov ecx, 0x100
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, 0x4a7645
lea edi, [ebp - 0x80c]
mov ecx, 0x100
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, 0x4a7a46
lea edi, [ebp - 0x914]
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, 0x4a7b4b
lea edi, [ebp - 0xa1c]
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
xor eax, eax
mov dword [ebp - 4], eax
mov esi, 0x4a7c50
lea edi, [ebp - 0xb24]
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, 0x4a7d55
lea edi, [ebp - 0xc2c]
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
cmp dword [ebp + 0x10], 0
je 0x401dbf
push 0x104
push dword [ebp + 0x10]
lea eax, [ebp - 0x914]
push eax
call fcn.00484ab4
add esp, 0xc
cmp dword [ebp + 0x14], 0
je 0x401ddc
push 0x104
push dword [ebp + 0x14]
lea edx, [ebp - 0xa1c]
push edx
call fcn.00484ab4
add esp, 0xc
push 0x4ab857
push 0x104
lea ecx, [ebp - 0xb24]
push ecx
push 0x4ab84f
push 0x4ab846
push 0x4ab83d
call sub.KERNEL32.DLL_GetPrivateProfileStringA
push 0x4ab884
push 0x104
lea eax, [ebp - 0xc2c]
push eax
push str.language.en
push str.LANGUAGE_FILE
lea edx, [ebp - 0xb24]
push edx
call sub.KERNEL32.DLL_GetPrivateProfileStringA
lea ecx, [ebp - 0xc2c]
push ecx
push 0x104
lea eax, [ebp - 0x408]
push eax
push 0x4ab897
push dword [ebp + 8]
lea edx, [ebp - 0xb24]
push edx
call sub.KERNEL32.DLL_GetPrivateProfileStringA
push 0x4ab898
push dword [ebp + 0xc]
call fcn.00484884
add esp, 8
push 0x4ab89a
lea ecx, [ebp - 0x408]
push ecx
call fcn.004849c5
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x401ecc
cmp dword [ebp + 0x10], 0
je 0x401ecc
mov eax, dword [ebp - 4]
mov byte [eax], 0
add dword [ebp - 4], 2
push dword [ebp - 4]
lea edx, [ebp - 0x914]
push edx
lea ecx, [ebp - 0x408]
push ecx
push 0x4ab89d
lea eax, [ebp - 0x80c]
push eax
call fcn.00487f0c
add esp, 0x14
push 0x400
lea edx, [ebp - 0x80c]
push edx
lea ecx, [ebp - 0x408]
push ecx
call fcn.00484ab4
add esp, 0xc
push 0x4ab8a4
lea eax, [ebp - 0x408]
push eax
call fcn.004849c5
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x401f39
cmp dword [ebp + 0x14], 0
je 0x401f39
mov edx, dword [ebp - 4]
mov byte [edx], 0
add dword [ebp - 4], 2
push dword [ebp - 4]
lea ecx, [ebp - 0xa1c]
push ecx
lea eax, [ebp - 0x408]
push eax
push 0x4ab8a7
lea edx, [ebp - 0x80c]
push edx
call fcn.00487f0c
add esp, 0x14
push 0x400
lea ecx, [ebp - 0x80c]
push ecx
lea eax, [ebp - 0x408]
push eax
call fcn.00484ab4
add esp, 0xc
lea edx, [ebp - 0x408]
push edx
call fcn.004848b4
pop ecx
cmp eax, 0x104
jb 0x401f66
push 0x103
lea ecx, [ebp - 0x408]
push ecx
push dword [ebp + 0xc]
call fcn.00484ab4
add esp, 0xc
jmp 0x401f78
lea eax, [ebp - 0x408]
push eax
push dword [ebp + 0xc]
call fcn.00484884
add esp, 8
mov eax, dword [ebp + 0xc]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401f84
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe70
lea eax, [ebp - 0x190]
push eax
push 0x101
call sub.WSOCK32.DLL_WSAStartup
test eax, eax
je 0x401fa7
or eax, 0xffffffff
jmp 0x401fa9
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x401fb8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push esi
push edi
mov esi, 0x4a7e5a
lea edi, [ebp - 0x108]
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x108]
push eax
push 0x104
call sub.KERNEL32.DLL_GetTempPathA
push dword [ebp + 8]
push 0
push 0x4ab8ae
lea edx, [ebp - 0x108]
push edx
call sub.KERNEL32.DLL_GetTempFileNameA
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x402008
Capabilities:
Create directory
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffcf0
push esi
push edi
mov esi, 0x4a7f5f
lea edi, [ebp - 0x108]
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
mov esi, 0x4a8063
lea edi, [ebp - 0x20c]
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
mov esi, 0x4a8167
lea edi, [ebp - 0x310]
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
xor eax, eax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x20c]
push edx
push 0x104
call sub.KERNEL32.DLL_GetCurrentDirectoryA
push dword [ebp + 8]
lea ecx, [ebp - 0x108]
push ecx
call fcn.00484884
add esp, 8
push 0x4ab8b2
lea eax, [ebp - 0x108]
push eax
call fcn.004849c5
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4020db
mov edx, dword [ebp - 4]
mov byte [edx], 0
inc dword [ebp - 4]
lea ecx, [ebp - 0x108]
push ecx
lea eax, [ebp - 0x310]
push eax
call fcn.00484884
add esp, 8
push 0
lea edx, [ebp - 0x310]
push edx
call sub.KERNEL32.DLL_CreateDirectoryA
lea ecx, [ebp - 0x310]
push ecx
call sub.KERNEL32.DLL_SetCurrentDirectoryA
push dword [ebp - 4]
lea eax, [ebp - 0x108]
push eax
call fcn.00484884
add esp, 8
jmp 0x402071
lea edx, [ebp - 0x108]
push edx
call fcn.004848b4
pop ecx
test eax, eax
je 0x402071
lea ecx, [ebp - 0x108]
push ecx
lea eax, [ebp - 0x310]
push eax
call fcn.00484884
add esp, 8
push 0
lea edx, [ebp - 0x310]
push edx
call sub.KERNEL32.DLL_CreateDirectoryA
lea ecx, [ebp - 0x20c]
push ecx
call sub.KERNEL32.DLL_SetCurrentDirectoryA
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4021f8
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffadc
push esi
push edi
mov esi, 0x4a8389
lea edi, [ebp - 0x114]
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
mov esi, 0x4a848d
lea edi, [ebp - 0x218]
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
mov esi, 0x4a8591
lea edi, [ebp - 0x31c]
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
mov esi, 0x4a8695
lea edi, [ebp - 0x420]
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
push 0x4ab8b9
lea eax, [ebp - 0x114]
push eax
call fcn.00484884
add esp, 8
push 0x4ab8e9
push 0x103
lea edx, [ebp - 0x420]
push edx
push 0x4ab8e1
push 0x4ab8d8
push 0x4ab8cf
call sub.KERNEL32.DLL_GetPrivateProfileStringA
lea ecx, [ebp - 0x420]
push ecx
call fcn.0048adb8
pop ecx
mov dword [ebp - 4], 1
mov dword [ebp - 8], 1
push dword [ebp - 8]
push 0x4ab8fc
lea eax, [ebp - 0x218]
push eax
call fcn.00487f0c
add esp, 0xc
lea edx, [ebp - 0x114]
push edx
push 0x104
lea ecx, [ebp - 0x31c]
push ecx
push 0x4ab915
lea eax, [ebp - 0x218]
push eax
push 0x4ab909
call sub.KERNEL32.DLL_GetPrivateProfileStringA
lea edx, [ebp - 0x31c]
push edx
call fcn.0048b6e4
pop ecx
mov dword [ebp - 0xc], eax
push dword [ebp + 8]
push 0x104
lea ecx, [ebp - 0x31c]
push ecx
push 0x4ab923
lea eax, [ebp - 0x218]
push eax
push 0x4ab917
call sub.KERNEL32.DLL_GetPrivateProfileStringA
lea edx, [ebp - 0x31c]
push edx
call fcn.0048b6e4
pop ecx
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 0x10]
jge 0x4023d5
mov esi, 0x4a8799
lea edi, [ebp - 0x524]
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
push dword [ebp - 8]
push str.group_lang__d
lea eax, [ebp - 0x218]
push eax
call fcn.00487f0c
add esp, 0xc
push dword [ebp + 8]
push 0x104
lea edx, [ebp - 0x524]
push edx
push 0x4ab93f
lea ecx, [ebp - 0x218]
push ecx
push 0x4ab933
call sub.KERNEL32.DLL_GetPrivateProfileStringA
lea eax, [ebp - 0x524]
push eax
call fcn.0048adb8
pop ecx
lea edx, [ebp - 0x524]
push edx
call fcn.004848b4
pop ecx
test eax, eax
je 0x4023ce
push 0x4ab940
lea ecx, [ebp - 0x524]
push ecx
call fcn.004849c5
add esp, 8
test eax, eax
jne 0x4023ce
lea eax, [ebp - 0x524]
push eax
lea edx, [ebp - 0x420]
push edx
call fcn.004849c5
add esp, 8
test eax, eax
je 0x4023d5
mov eax, 1
jmp 0x4023e7
inc dword [ebp - 4]
inc dword [ebp - 8]
cmp dword [ebp - 4], 0xa
jl 0x40229f
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x407638
Capabilities:
Create tcp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff20
mov dword [ebp - 4], 0xffffffff
push 6
push 1
push 2
call sub.WSOCK32.DLL_socket
mov dword [ebp - 4], eax
test eax, eax
jge 0x40767c
call sub.WSOCK32.DLL_WSAGetLastError
push eax
push 0x4ad1b0
lea edx, [ebp - 0xe0]
push edx
call fcn.00487f0c
add esp, 0xc
or eax, 0xffffffff
jmp 0x407741
push 0x10
push 0
lea edx, [ebp - 0x18]
push edx
call fcn.00484750
add esp, 0xc
mov word [ebp - 0x18], 2
mov cx, word [ebp + 0xc]
push ecx
call sub.WSOCK32.DLL_htons
mov word [ebp - 0x16], ax
mov dword [ebp - 8], 1
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0xffff
push dword [ebp - 4]
call sub.WSOCK32.DLL_setsockopt
push 0x10
lea edx, [ebp - 0x18]
push edx
push dword [ebp - 4]
call sub.WSOCK32.DLL_bind
test eax, eax
jge 0x4076f5
call sub.WSOCK32.DLL_WSAGetLastError
push eax
push str.bind_failed__errno:_d
lea ecx, [ebp - 0xe0]
push ecx
call fcn.00487f0c
add esp, 0xc
push dword [ebp - 4]
call sub.WSOCK32.DLL_closesocket
or eax, 0xffffffff
jmp 0x407741
cmp dword [ebp + 8], 0
je 0x407734
push 8
push 0x8064
push dword [ebp + 8]
push dword [ebp - 4]
call sub.WSOCK32.DLL_WSAAsyncSelect
test eax, eax
je 0x407734
push str.tcp_bind:WSAAsyncSelect_failed_
lea edx, [ebp - 0xe0]
push edx
call fcn.00487f0c
add esp, 8
push dword [ebp - 4]
call sub.WSOCK32.DLL_closesocket
mov eax, 0xfffffffe
jmp 0x407741
push 5
push dword [ebp - 4]
call sub.WSOCK32.DLL_listen
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4077b4
Capabilities:
Act as tcp client
Check for time delay via gettickcount
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff08
mov dword [ebp - 0x10], 0xffffffff
cmp dword [ebp + 0x10], 0x3e8
jae 0x4077d7
imul eax, dword [ebp + 0x10], 0x3e8
mov dword [ebp + 0x10], eax
mov dword [ebp - 0x10], 0xffffffff
push 6
push 1
push 2
call sub.WSOCK32.DLL_socket
mov dword [ebp - 0x10], eax
test eax, eax
jge 0x407812
call sub.WSOCK32.DLL_WSAGetLastError
push eax
push str.socket_failed__errno:_d
lea edx, [ebp - 0xf8]
push edx
call fcn.00487f0c
add esp, 0xc
or eax, 0xffffffff
jmp 0x407996
push 0x10
push 0
lea edx, [ebp - 0x30]
push edx
call fcn.00484750
add esp, 0xc
push dword [ebp + 8]
call sub.WSOCK32.DLL_inet_addr
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x40788a
push dword [ebp + 8]
call sub.WSOCK32.DLL_gethostbyname
mov dword [ebp - 4], eax
test eax, eax
jne 0x40786c
call sub.WSOCK32.DLL_WSAGetLastError
push eax
push str.gethostbyname_and_inet_addr_failed__errno:_d
lea edx, [ebp - 0xf8]
push edx
call fcn.00487f0c
add esp, 0xc
push dword [ebp - 0x10]
call sub.WSOCK32.DLL_closesocket
or eax, 0xffffffff
jmp 0x407996
mov edx, dword [ebp - 4]
movsx ecx, word [edx + 0xa]
push ecx
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
push dword [edx]
lea ecx, [ebp - 0x2c]
push ecx
call fcn.004846e0
add esp, 0xc
jmp 0x407890
mov eax, dword [ebp - 8]
mov dword [ebp - 0x2c], eax
mov word [ebp - 0x30], 2
mov dx, word [ebp + 0xc]
push edx
call sub.WSOCK32.DLL_htons
mov word [ebp - 0x2e], ax
mov dword [ebp - 0xc], 1
cmp dword [ebp + 0x14], 0
je 0x4078d6
lea ecx, [ebp - 0xc]
push ecx
push 0x8004667e
push dword [ebp - 0x10]
call sub.WSOCK32.DLL_ioctlsocket
test eax, eax
jge 0x4078d6
push dword [ebp - 0x10]
call sub.WSOCK32.DLL_closesocket
or eax, 0xffffffff
jmp 0x407996
call sub.KERNEL32.DLL_GetTickCount
mov dword [ebp - 0x18], eax
jmp 0x407940
call sub.KERNEL32.DLL_GetTickCount
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
sub edx, dword [ebp - 0x18]
cmp edx, dword [ebp + 0x10]
jbe 0x407903
push dword [ebp - 0x10]
call sub.WSOCK32.DLL_closesocket
or eax, 0xffffffff
jmp 0x407996
call fcn.00407b84
call sub.WSOCK32.DLL_WSAGetLastError
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x407921
cmp dword [ebp - 0x20], 0x2748
je 0x407955
jmp 0x407940
cmp dword [ebp - 0x20], 0x2733
je 0x407940
cmp dword [ebp - 0x20], 0x2735
je 0x407940
push dword [ebp - 0x10]
call sub.WSOCK32.DLL_closesocket
or eax, 0xffffffff
jmp 0x407996
push 0x10
lea edx, [ebp - 0x30]
push edx
push dword [ebp - 0x10]
call sub.WSOCK32.DLL_connect
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x4078e0
push dword [ebp + 0x10]
push 0x4ad246
push dword [ebp - 0x10]
call fcn.004070cc
add esp, 0xc
test eax, eax
jge 0x407993
call sub.WSOCK32.DLL_WSAGetLastError
push eax
push str.status:_connect___failed__error_code:__d_n
lea edx, [ebp - 0xf8]
push edx
call fcn.00487f0c
add esp, 0xc
push dword [ebp - 0x10]
call sub.WSOCK32.DLL_closesocket
or eax, 0xffffffff
jmp 0x407996
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x4079c0
Capabilities:
Check for time delay via gettickcount
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
xor eax, eax
mov dword [ebp - 8], eax
cmp dword [ebp + 0x14], 0x3e8
jae 0x4079de
imul edx, dword [ebp + 0x14], 0x3e8
mov dword [ebp + 0x14], edx
xor ecx, ecx
mov dword [ebp - 8], ecx
call sub.KERNEL32.DLL_GetTickCount
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 8]
cmp edx, dword [ebp + 0x10]
jge 0x407a69
push 0
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp - 8]
push ecx
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 8]
push eax
push dword [ebp + 8]
call sub.WSOCK32.DLL_send
mov dword [ebp - 4], eax
test eax, eax
jg 0x407a43
call sub.KERNEL32.DLL_GetLastError
mov dword [0x4ad1ac], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x407a3e
cmp dword [0x4ad1ac], 0x2733
jne 0x407a3e
call sub.KERNEL32.DLL_GetTickCount
mov dword [ebp - 0x10], eax
jmp 0x4079f1
mov eax, dword [ebp - 8]
jmp 0x407a6c
mov edx, dword [ebp - 4]
add dword [ebp - 8], edx
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp + 0x14]
jbe 0x407a59
mov eax, dword [ebp - 8]
jmp 0x407a6c
call sub.KERNEL32.DLL_GetTickCount
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 8]
cmp edx, dword [ebp + 0x10]
jl 0x4079f9
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x407a70
Capabilities:
Check for time delay via gettickcount
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
xor eax, eax
mov dword [ebp - 8], eax
cmp dword [ebp + 0x14], 0x3e8
jae 0x407a8e
imul edx, dword [ebp + 0x14], 0x3e8
mov dword [ebp + 0x14], edx
xor ecx, ecx
mov dword [ebp - 8], ecx
call sub.KERNEL32.DLL_GetTickCount
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 8]
cmp edx, dword [ebp + 0x10]
jge 0x407b58
cmp dword [ebp + 0x14], 0
jbe 0x407adb
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x14]
sub eax, ecx
push eax
push 0x4ad273
push dword [ebp + 8]
call fcn.004070cc
add esp, 0xc
test eax, eax
jge 0x407adb
mov eax, dword [ebp - 8]
jmp 0x407b5b
push 0
mov edx, dword [ebp + 0x10]
sub edx, dword [ebp - 8]
push edx
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 8]
push ecx
push dword [ebp + 8]
call sub.WSOCK32.DLL_recv
mov dword [ebp - 4], eax
test eax, eax
jg 0x407b2e
call sub.KERNEL32.DLL_GetLastError
mov dword [0x4ad1ac], eax
cmp dword [ebp + 0x14], 0
je 0x407b58
cmp dword [ebp - 4], 0xffffffff
jne 0x407b29
cmp dword [0x4ad1ac], 0x2733
jne 0x407b29
call sub.KERNEL32.DLL_GetTickCount
mov dword [ebp - 0xc], eax
jmp 0x407aa1
mov eax, dword [ebp - 8]
jmp 0x407b5b
mov edx, dword [ebp - 4]
add dword [ebp - 8], edx
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp + 0x14]
jbe 0x407b44
mov eax, dword [ebp - 8]
jmp 0x407b5b
call sub.KERNEL32.DLL_GetTickCount
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 8]
cmp edx, dword [ebp + 0x10]
jl 0x407aad
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x40816c
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffecc
push ebx
mov dword [ebp - 0x14], 0xffffffff
push 0
push 0
call fcn.00407638
add esp, 8
mov dword [ebp - 0x14], eax
test eax, eax
jge 0x408198
or eax, 0xffffffff
jmp 0x4082b2
mov dword [ebp - 0xc], 0x10
lea edx, [ebp - 0xc]
push edx
lea ecx, [ebp - 0x24]
push ecx
push dword [0x4ad294]
call sub.WSOCK32.DLL_getsockname
test eax, eax
jge 0x4081be
or eax, 0xffffffff
jmp 0x4082b2
lea edx, [ebp - 0xc]
push edx
lea ecx, [ebp - 0x34]
push ecx
push dword [ebp - 0x14]
call sub.WSOCK32.DLL_getsockname
test eax, eax
jge 0x4081da
or eax, 0xffffffff
jmp 0x4082b2
lea edx, [ebp - 0x20]
mov dword [ebp - 4], edx
lea ecx, [ebp - 0x32]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
movsx edx, byte [eax + 1]
and edx, 0xff
push edx
mov ecx, dword [ebp - 8]
movsx eax, byte [ecx]
and eax, 0xff
push eax
mov edx, dword [ebp - 4]
movsx ecx, byte [edx + 3]
and ecx, 0xff
push ecx
mov eax, dword [ebp - 4]
movsx edx, byte [eax + 2]
and edx, 0xff
push edx
mov ecx, dword [ebp - 4]
movsx eax, byte [ecx + 1]
and eax, 0xff
push eax
mov edx, dword [ebp - 4]
movsx ecx, byte [edx]
and ecx, 0xff
push ecx
push str.PORT__d__d__d__d__d__d_r_n
lea eax, [ebp - 0x134]
push eax
call fcn.00487f0c
add esp, 0x20
push 0x2710
lea edx, [ebp - 0x134]
push edx
call fcn.004848b4
pop ecx
push eax
lea ecx, [ebp - 0x134]
push ecx
push dword [ebp + 8]
call fcn.004079c0
add esp, 0x10
mov ebx, eax
lea eax, [ebp - 0x134]
push eax
call fcn.004848b4
pop ecx
cmp ebx, eax
je 0x40828f
push dword [ebp - 0x14]
call sub.WSOCK32.DLL_closesocket
or eax, 0xffffffff
jmp 0x4082b2
push dword [ebp + 8]
call fcn.004082b8
pop ecx
mov dword [ebp - 0x10], eax
cmp eax, 0xc8
je 0x4082af
push dword [ebp - 0x14]
call sub.WSOCK32.DLL_closesocket
or eax, 0xffffffff
jmp 0x4082b2
mov eax, dword [ebp - 0x14]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408c1c
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
lea eax, [ebp - 4]
push eax
push 0x28
call sub.KERNEL32.DLL_GetCurrentProcess
push eax
call sub.ADVAPI32.DLL_OpenProcessToken
test eax, eax
jne 0x408c3b
xor eax, eax
jmp 0x408c9e
lea edx, [ebp - 0xc]
push edx
push str.SeDebugPrivilege
push 0
call sub.ADVAPI32.DLL_LookupPrivilegeValueA
test eax, eax
jne 0x408c5b
push dword [ebp - 4]
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x408c9e
mov dword [ebp - 0x1c], 1
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp - 8]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], 2
push 0
push 0
push 0x10
lea ecx, [ebp - 0x1c]
push ecx
push 0
push dword [ebp - 4]
call sub.ADVAPI32.DLL_AdjustTokenPrivileges
test eax, eax
jne 0x408c99
push dword [ebp - 4]
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x408c9e
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x408ca4
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
ja 0x408cb3
xor eax, eax
pop ecx
pop ebp
ret
push dword [ebp + 8]
push 0
push 1
call sub.KERNEL32.DLL_OpenProcess
mov dword [ebp - 4], eax
push 0xffffffffffffffff
push dword [ebp - 4]
call sub.KERNEL32.DLL_TerminateProcess
pop ecx
pop ebp
ret