joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4033f0
Capabilities:
Delete internet cache
Enumerate internet cache

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
push 0
call sub.OLE32.DLL_CoInitialize
xor eax, eax
mov dword [esp], eax
push esp
push 0x475ec8
push 3
push 0
push 0x475eb8
call sub.OLE32.DLL_CoCreateInstance
test eax, eax
jl 0x403437
mov edx, dword [esp]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x24]
mov eax, dword [esp]
push eax
mov edx, dword [eax]
call dword [edx + 8]
push str.strURL
call sub.WININET.DLL_DeleteUrlCacheEntry
call sub.OLE32.DLL_CoUninitialize
xor edi, edi
xor ebp, ebp
mov dword [esp + 4], 0x1000
mov ebx, 1
push 0x1000
call fcn.00466a80
pop ecx
mov esi, eax
mov dword [esi], 0x1000
test edi, edi
jne 0x403482
lea eax, [esp + 4]
push eax
push esi
push 0
call sub.WININET.DLL_FindFirstUrlCacheEntryA
mov edi, eax
test edi, edi
je 0x40349d
mov eax, dword [esi + 4]
push eax
call sub.WININET.DLL_DeleteUrlCacheEntry
jmp 0x40349d
lea edx, [esp + 4]
push edx
push esi
push edi
call sub.WININET.DLL_FindNextUrlCacheEntryA
mov ebx, eax
test ebx, ebx
je 0x40349d
mov eax, dword [esi + 4]
push eax
call sub.WININET.DLL_DeleteUrlCacheEntry
cmp ebx, 1
jne 0x4034e2
lea edx, [esp + 4]
push edx
push esi
push edi
call sub.WININET.DLL_FindNextUrlCacheEntryA
mov ebx, eax
test ebx, ebx
je 0x4034bd
mov eax, dword [esi + 4]
push eax
call sub.WININET.DLL_DeleteUrlCacheEntry
test ebx, ebx
je 0x4034e7
lea edx, [esp + 4]
push edx
push esi
push edi
call sub.WININET.DLL_FindNextUrlCacheEntryA
mov ebx, eax
test ebx, ebx
je 0x4034dc
mov eax, dword [esi + 4]
push eax
call sub.WININET.DLL_DeleteUrlCacheEntry
test ebx, ebx
jne 0x4034c1
jmp 0x4034e7
mov ebp, 1
push esi
call fcn.004668b8
pop ecx
test ebp, ebp
je 0x40344d
push edi
call sub.WININET.DLL_FindCloseUrlCache
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x403504
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff48
mov eax, 0x473960
push ebx
push esi
push edi
call fcn.004676dc
mov word [ebp - 0x1c], 0x14
mov edx, 0x4738b7
lea eax, [ebp - 4]
call fcn.00471740
inc dword [ebp - 0x10]
mov word [ebp - 0x1c], 8
push 0x280
call fcn.00466da4
pop ecx
mov ebx, eax
mov dword [ebp - 0x30], 0x280
lea eax, [ebp - 0x30]
push eax
push ebx
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
jne 0x40356c
push ebx
call fcn.00466db4
pop ecx
mov edx, dword [ebp - 0x30]
push edx
call fcn.00466da4
pop ecx
mov ebx, eax
lea eax, [ebp - 0x30]
push eax
push ebx
call sub.IPHLPAPI.DLL_GetAdaptersInfo
mov esi, eax
test eax, eax
jne 0x40364e
mov eax, ebx
test eax, eax
je 0x40364e
cmp dword [eax + 0x1a0], 6
jne 0x403644
push 6
add eax, 0x194
push eax
lea edx, [ebp - 0x38]
push edx
call fcn.00467350
add esp, 0xc
lea edi, [ebp - 0xb8]
mov esi, 0x473814
mov ecx, 0x20
rep movsd dword es:[edi], dword [esi]
mov word [ebp - 0x1c], 8
xor eax, eax
xor edx, edx
mov al, byte [ebp - 0x33]
xor ecx, ecx
push eax
xor eax, eax
mov dl, byte [ebp - 0x34]
push edx
xor edx, edx
mov cl, byte [ebp - 0x35]
push ecx
xor ecx, ecx
mov al, byte [ebp - 0x36]
push eax
lea eax, [ebp - 0xb8]
mov dl, byte [ebp - 0x37]
push edx
mov cl, byte [ebp - 0x38]
push ecx
push str._02X_02X_02X_02X_02X_02X
push eax
call fcn.00468fd8
add esp, 0x20
mov word [ebp - 0x1c], 0x20
lea edx, [ebp - 0xb8]
push edx
call fcn.004674a0
pop ecx
push eax
lea ecx, [ebp - 0xb8]
push ecx
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 8]
push edx
inc dword [ebp - 0x10]
call fcn.004079f4
lea edx, [ebp - 8]
lea eax, [ebp - 4]
call fcn.00471840
dec dword [ebp - 0x10]
lea eax, [ebp - 8]
mov edx, 2
call fcn.00471810
jmp 0x40364e
mov eax, dword [eax]
test eax, eax
jne 0x40358a
push ebx
call fcn.00466db4
pop ecx
lea edx, [ebp - 4]
mov word [ebp - 0x1c], 0x2c
mov eax, dword [ebp + 8]
call fcn.00471840
mov eax, dword [ebp + 8]
mov edx, 2
mov word [ebp - 0x1c], 0x38
push eax
lea eax, [ebp - 4]
dec dword [ebp - 0x10]
call fcn.00471810
pop eax
mov word [ebp - 0x1c], 0x2c
inc dword [ebp - 0x10]
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x403700
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff50
mov eax, 0x4739f0
call fcn.004676dc
mov dword [ebp - 0x30], 0x80
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp - 0xb0]
push ecx
call sub.ADVAPI32.DLL_GetUserNameA
mov word [ebp - 0x1c], 0x14
lea edx, [ebp - 0xb0]
lea eax, [ebp - 8]
call fcn.00471740
inc dword [ebp - 0x10]
xor ecx, ecx
mov dword [ebp - 4], ecx
lea edx, [ebp - 4]
inc dword [ebp - 0x10]
call fcn.004719bc
dec dword [ebp - 0x10]
lea eax, [ebp - 8]
mov edx, 2
call fcn.00471810
mov word [ebp - 0x1c], 8
mov word [ebp - 0x1c], 0x20
lea edx, [ebp - 4]
mov eax, dword [ebp + 8]
call fcn.00471840
mov eax, dword [ebp + 8]
mov edx, 2
mov word [ebp - 0x1c], 0x2c
push eax
lea eax, [ebp - 4]
dec dword [ebp - 0x10]
call fcn.00471810
pop eax
mov word [ebp - 0x1c], 0x20
inc dword [ebp - 0x10]
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
mov esp, ebp
pop ebp
ret 4
Function at 0x4037ac
Capabilities:
Initialize winsock library

Disassembly:
add esp, 0xfffffe70
mov ax, 0x202
push esp
push eax
call sub.WSOCK32.DLL_WSAStartup
add esp, 0x190
ret

Function at 0x403e44
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
mov eax, 0x473d4c
push ebx
push esi
push edi
call fcn.004676dc
mov dword [ebp - 0xc], 2
lea edx, [ebp + 0x10]
lea eax, [ebp + 0x10]
call fcn.00471778
inc dword [ebp - 0xc]
lea edx, [ebp + 8]
mov word [ebp - 0x18], 8
lea eax, [ebp + 8]
call fcn.00471778
inc dword [ebp - 0xc]
xor esi, esi
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push 0x473ca0
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x403f8f
push esi
lea edi, [ebp - 0x50]
mov esi, 0x473c2a
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
cmp dword [ebp + 8], 0
pop esi
je 0x403ec4
mov eax, dword [ebp + 8]
jmp 0x403ec9
mov eax, 0x473cab
push eax
call sub.WSOCK32.DLL_inet_addr
push eax
call sub.WSOCK32.DLL_htonl
mov dword [ebp - 0x48], eax
mov dx, word [ebp + 0xc]
mov word [ebp - 0x44], dx
cmp dword [ebp + 0x10], 0
je 0x403eeb
mov ecx, dword [ebp + 0x10]
jmp 0x403ef0
mov ecx, 0x473cac
push ecx
call sub.WSOCK32.DLL_inet_addr
push eax
call sub.WSOCK32.DLL_htonl
mov dword [ebp - 0x3c], eax
mov edx, str.000000000000
mov ax, word [ebp + 0x14]
mov word [ebp - 0x38], ax
lea eax, [ebp - 4]
mov word [ebp - 0x18], 0x20
call fcn.00471740
inc dword [ebp - 0xc]
lea edx, [ebp - 0x34]
mov word [ebp - 0x18], 0x14
push edx
cmp dword [ebp - 4], 0
je 0x403f32
mov ecx, dword [ebp - 4]
jmp 0x403f37
mov ecx, 0x473cba
push ecx
call fcn.00403ca8
push 6
lea eax, [ebp - 0x34]
push eax
lea edx, [ebp - 0x42]
push edx
call fcn.00467350
add esp, 0xc
lea eax, [ebp - 0x2c]
lea edx, [ebp - 0x50]
push 0
push eax
push 0
push 0
push 0x1a
push edx
push 0x222024
push ebx
call sub.KERNEL32.DLL_DeviceIoControl
test eax, eax
je 0x403f73
mov esi, 1
push ebx
call sub.KERNEL32.DLL_CloseHandle
dec dword [ebp - 0xc]
lea eax, [ebp - 4]
mov edx, 2
call fcn.00471810
mov word [ebp - 0x18], 8
mov eax, esi
mov edx, 2
push eax
lea eax, [ebp + 8]
dec dword [ebp - 0xc]
call fcn.00471810
dec dword [ebp - 0xc]
lea eax, [ebp + 0x10]
mov edx, 2
call fcn.00471810
pop eax
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x404900
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
mov eax, 0x474070
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
call fcn.004676dc
mov dword [ebp - 0x10], 1
lea edx, [ebp + 0xc]
lea eax, [ebp + 0xc]
call fcn.00471778
inc dword [ebp - 0x10]
lea edx, [ebp + 0xc]
mov word [ebp - 0x1c], 8
mov word [ebp - 0x1c], 0x14
lea eax, [ebp - 4]
call fcn.00471778
inc dword [ebp - 0x10]
mov word [ebp - 0x1c], 8
cmp dword [ebp + 0xc], 0
je 0x404956
mov edx, dword [ebp + 0xc]
jmp 0x40495b
mov edx, 0x473e52
push edx
call sub.WSOCK32.DLL_inet_addr
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x404a0e
cmp dword [ebp + 0xc], 0
je 0x404977
mov eax, dword [ebp + 0xc]
jmp 0x40497c
mov eax, 0x473e53
push eax
call sub.WSOCK32.DLL_gethostbyname
mov ebx, eax
test ebx, ebx
jne 0x4049bb
xor eax, eax
mov edx, 2
push eax
lea eax, [ebp - 4]
dec dword [ebp - 0x10]
call fcn.00471810
dec dword [ebp - 0x10]
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.00471810
pop eax
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
jmp 0x404b32
mov word [ebp - 0x1c], 0x20
mov ecx, dword [ebx + 0xc]
mov eax, dword [ecx]
mov edx, dword [eax]
push edx
call sub.WSOCK32.DLL_inet_ntoa
mov edx, eax
lea eax, [ebp - 8]
call fcn.00471740
inc dword [ebp - 0x10]
lea edx, [ebp - 8]
lea eax, [ebp - 4]
call fcn.00471840
dec dword [ebp - 0x10]
lea eax, [ebp - 8]
mov edx, 2
call fcn.00471810
cmp dword [ebp - 4], 0
je 0x404a01
mov ecx, dword [ebp - 4]
jmp 0x404a06
mov ecx, 0x473e54
push ecx
call sub.WSOCK32.DLL_inet_addr
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x404a46
xor eax, eax
mov edx, 2
push eax
lea eax, [ebp - 4]
dec dword [ebp - 0x10]
call fcn.00471810
dec dword [ebp - 0x10]
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.00471810
pop eax
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
jmp 0x404b32
push 6
push 1
push 2
call sub.WSOCK32.DLL_socket
mov edi, eax
mov dword [esi], edi
cmp edi, 0xffffffff
jne 0x404a8d
xor eax, eax
mov edx, 2
push eax
lea eax, [ebp - 4]
dec dword [ebp - 0x10]
call fcn.00471810
dec dword [ebp - 0x10]
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.00471810
pop eax
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
jmp 0x404b32
push esi
mov esi, 0x473e34
lea edi, [ebp - 0x3c]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
pop esi
mov word [ebp - 0x1c], 8
mov word [ebp - 0x3c], 2
mov ax, word [ebp + 0x10]
push eax
call sub.WSOCK32.DLL_htons
mov word [ebp - 0x3a], ax
mov dword [ebp - 0x38], ebx
mov eax, 0x10
push eax
lea edx, [ebp - 0x3c]
push edx
mov ecx, dword [esi]
push ecx
call sub.WSOCK32.DLL_connect
test eax, eax
je 0x404b01
xor eax, eax
mov edx, 2
push eax
lea eax, [ebp - 4]
dec dword [ebp - 0x10]
call fcn.00471810
dec dword [ebp - 0x10]
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.00471810
pop eax
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
jmp 0x404b32
mov eax, 1
mov edx, 2
push eax
lea eax, [ebp - 4]
dec dword [ebp - 0x10]
call fcn.00471810
dec dword [ebp - 0x10]
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.00471810
pop eax
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40571c
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
mov eax, 0x474494
push ebx
push esi
push edi
mov edi, 0x474124
mov ebx, dword [ebp + 8]
lea esi, [ebp - 0x3c]
call fcn.004676dc
mov word [esi + 0x10], 8
lea edx, [edi + 0xda]
lea eax, [ebp - 4]
call fcn.00471740
inc dword [esi + 0x1c]
lea edx, [ebp - 4]
lea eax, [ebx + 4]
call fcn.00471840
dec dword [esi + 0x1c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.00471810
mov word [esi + 0x10], 0x14
lea edx, [edi + 0xdb]
lea eax, [ebp - 8]
call fcn.00471740
inc dword [esi + 0x1c]
lea edx, [ebp - 8]
lea eax, [ebx + 8]
call fcn.00471840
dec dword [esi + 0x1c]
lea eax, [ebp - 8]
mov edx, 2
call fcn.00471810
mov word [esi + 0x10], 0x20
lea edx, [edi + 0xdc]
lea eax, [ebp - 0xc]
call fcn.00471740
inc dword [esi + 0x1c]
lea edx, [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.00471840
dec dword [esi + 0x1c]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00471810
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov word [esi + 0x10], 0x2c
lea edx, [edi + 0xdd]
lea eax, [ebp - 0x10]
call fcn.00471740
inc dword [esi + 0x1c]
lea edx, [ebp - 0x10]
lea eax, [ebx + 0x24]
call fcn.00471840
dec dword [esi + 0x1c]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00471810
mov word [esi + 0x10], 0x38
lea edx, [edi + 0xde]
lea eax, [ebp - 0x14]
call fcn.00471740
inc dword [esi + 0x1c]
lea edx, [ebp - 0x14]
lea eax, [ebx + 0x28]
call fcn.00471840
dec dword [esi + 0x1c]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00471810
mov word [esi + 0x10], 0x44
lea edx, [edi + 0xdf]
lea eax, [ebp - 0x18]
call fcn.00471740
inc dword [esi + 0x1c]
lea edx, [ebp - 0x18]
lea eax, [ebx + 0x2c]
call fcn.00471840
dec dword [esi + 0x1c]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00471810
mov dword [ebx + 0x30], 1
xor ecx, ecx
mov dword [ebx + 0x34], ecx
mov word [ebx + 0x38], 0
mov eax, dword [esi]
mov dword fs:[0], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4078b4
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 0x14], edx
mov dword [eax + 0x10], edx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret
Function at 0x407cf0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff54
mov eax, 0x474e54
push ebx
push esi
lea esi, [ebp - 0x2c]
call fcn.004676dc
push 0x80
push 0
lea edx, [ebp - 0xac]
push edx
call fcn.004673c0
add esp, 0xc
push 0x80
lea ecx, [ebp - 0xac]
push ecx
call sub.KERNEL32.DLL_GetWindowsDirectoryA
mov byte [ebp - 0xa9], 0
call fcn.004036a0
mov word [esi + 0x10], 0x14
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea edx, [ebp - 4]
push edx
inc dword [esi + 0x1c]
call fcn.00403700
mov word [esi + 0x10], 8
mov word [esi + 0x10], 0x20
mov edx, 0x474d5c
lea eax, [ebp - 8]
call fcn.00471740
inc dword [esi + 0x1c]
mov word [esi + 0x10], 8
cmp ebx, 6
jge 0x407d95
lea ecx, [ebp - 0xac]
lea eax, [ebp - 8]
push ecx
push str._sDocuments_and_SettingsIPFilter_
push eax
call fcn.004718d4
add esp, 0xc
jmp 0x407dad
lea edx, [ebp - 0xac]
lea ecx, [ebp - 8]
push edx
push str._sUsersIPFilter_
push ecx
call fcn.004718d4
add esp, 0xc
mov eax, dword [ebp - 8]
call fcn.0041adb0
mov word [esi + 0x10], 0x2c
lea edx, [ebp - 8]
mov eax, dword [ebp + 8]
call fcn.00471840
mov eax, dword [ebp + 8]
mov edx, 2
mov word [esi + 0x10], 0x38
push eax
lea eax, [ebp - 8]
dec dword [esi + 0x1c]
call fcn.00471810
dec dword [esi + 0x1c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.00471810
pop eax
mov word [esi + 0x10], 0x2c
inc dword [esi + 0x1c]
mov edx, dword [esi]
mov dword fs:[0], edx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x407fd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov eax, 0x474f4c
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
call fcn.004676dc
cmp dword [ebx], 0
jne 0x408040
push 0
push 0x80
push 4
lea esi, [ebx + 0x38]
push 0
push 3
push 0xc0000000
cmp dword [esi], 0
je 0x408009
mov eax, dword [esi]
jmp 0x40800e
mov eax, 0x474e9c
push eax
call sub.KERNEL32.DLL_CreateFileA
mov edi, eax
mov dword [ebx], edi
cmp edi, 0xffffffff
jne 0x408032
xor eax, eax
mov dword [ebx], eax
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
mov eax, edx
jmp 0x4080eb
push 2
push 0
push 0
mov ecx, dword [ebx]
push ecx
call sub.KERNEL32.DLL_SetFilePointer
lea eax, [ebx + 0x20]
push eax
call sub.KERNEL32.DLL_EnterCriticalSection
lea eax, [ebp + 0x10]
push eax
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebx + 0x840]
push ecx
call fcn.00469000
mov esi, eax
add esp, 0xc
lea eax, [ebx + 0x840]
xor edx, edx
mov byte [ebx + esi + 0x840], 0
push eax
lea ecx, [ebp - 4]
mov word [ebp - 0x18], 8
push ebx
mov dword [ebp - 4], edx
push ecx
inc dword [ebp - 0xc]
call fcn.00407f60
add esp, 8
cmp dword [ebp - 4], 0
je 0x408097
mov eax, dword [ebp - 4]
jmp 0x40809c
mov eax, 0x474ea5
push eax
push str._s_t_s_r_n
lea edx, [ebx + 0xc40]
push edx
call fcn.00468fd8
add esp, 0x10
mov esi, eax
dec dword [ebp - 0xc]
lea eax, [ebp - 4]
mov edx, 2
call fcn.00471810
push 0
lea ecx, [ebp - 0x2c]
push ecx
push esi
lea eax, [ebx + 0xc40]
push eax
mov edx, dword [ebx]
push edx
call sub.KERNEL32.DLL_WriteFile
add ebx, 0x20
push ebx
call sub.KERNEL32.DLL_LeaveCriticalSection
mov eax, dword [ebp - 0x28]
mov dword fs:[0], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4081b8
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
lea edi, [ebp - 0x30]
mov eax, 0x475000
call fcn.004676dc
mov word [edi + 0x10], 8
xor edx, edx
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], edx
push ecx
inc dword [edi + 0x1c]
call fcn.00407c70
cmp dword [ebp - 0xc], 0
je 0x4081f0
mov eax, dword [ebp - 0xc]
jmp 0x4081f5
mov eax, 0x474fb0
push eax
call sub.WSOCK32.DLL_gethostbyname
mov ebx, eax
dec dword [edi + 0x1c]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00471810
test ebx, ebx
jne 0x408221
xor eax, eax
mov edx, dword [edi]
mov dword fs:[0], edx
jmp 0x40836a
mov word [edi + 0x10], 0x20
mov ecx, dword [ebx + 0xc]
mov eax, dword [ecx]
mov edx, dword [eax]
push edx
call sub.WSOCK32.DLL_inet_ntoa
mov edx, eax
lea eax, [ebp - 4]
call fcn.00471740
inc dword [edi + 0x1c]
mov word [edi + 0x10], 0x14
cmp dword [ebp - 4], 0
je 0x408252
mov ecx, dword [ebp - 4]
jmp 0x408257
mov ecx, 0x474fb1
push ecx
call sub.WSOCK32.DLL_inet_addr
cmp eax, 0xffffffff
jne 0x408284
xor eax, eax
mov edx, 2
push eax
lea eax, [ebp - 4]
dec dword [edi + 0x1c]
call fcn.00471810
pop eax
mov edx, dword [edi]
mov dword fs:[0], edx
jmp 0x40836a
push 0x100
call fcn.00466a80
pop ecx
mov ebx, eax
push 0x100
push 0
push ebx
call fcn.004673c0
mov esi, ebx
add esp, 0xc
xor eax, eax
lea edx, [ebp - 8]
mov byte [esi], 0x54
mov byte [esi + 1], 0x43
mov dword [esi + 2], 1
mov word [edi + 0x10], 0x2c
mov dword [ebp - 8], eax
push edx
inc dword [edi + 0x1c]
call fcn.00403504
mov word [edi + 0x10], 0x14
cmp dword [ebp - 8], 0
je 0x4082dc
mov ecx, dword [ebp - 8]
mov eax, dword [ecx - 4]
jmp 0x4082de
xor eax, eax
mov dword [esi + 6], eax
mov dword [esi + 0xa], 0x100
cmp dword [ebp - 8], 0
lea esi, [ebx + 0x16]
je 0x4082f6
mov eax, dword [ebp - 8]
jmp 0x4082fb
mov eax, 0x474fb2
push esi
push edi
mov edi, eax
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov esi, 0x37
push esi
push ebx
call fcn.00407cac
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.00408374
mov esi, eax
push ebx
call fcn.004668b8
pop ecx
mov eax, esi
push eax
dec dword [edi + 0x1c]
lea eax, [ebp - 8]
mov edx, 2
call fcn.00471810
dec dword [edi + 0x1c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.00471810
pop eax
mov edx, dword [edi]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408374
Capabilities:
Create tcp socket
Create udp socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
mov eax, 0x475048
push ebx
push esi
push edi
call fcn.004676dc
mov dword [ebp - 8], 1
lea edx, [ebp + 8]
lea eax, [ebp + 8]
call fcn.00471778
inc dword [ebp - 8]
xor esi, esi
mov word [ebp - 0x14], 8
push 0
push 2
push 2
call sub.WSOCK32.DLL_socket
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40841e
push 0x10
push 0
lea eax, [ebp - 0x34]
push eax
call fcn.004673c0
add esp, 0xc
mov word [ebp - 0x34], 2
mov dx, word [ebp + 0xc]
push edx
call sub.WSOCK32.DLL_htons
mov word [ebp - 0x32], ax
cmp dword [ebp + 8], 0
je 0x4083e5
mov ecx, dword [ebp + 8]
jmp 0x4083ea
mov ecx, 0x474fb3
push ecx
call sub.WSOCK32.DLL_inet_addr
mov edi, eax
mov dword [ebp - 0x30], edi
cmp edi, 0xffffffff
je 0x40841e
push 0x10
lea eax, [ebp - 0x34]
push eax
push 0
mov edx, dword [ebp + 0x14]
push edx
mov ecx, dword [ebp + 0x10]
push ecx
push ebx
call sub.WSOCK32.DLL_sendto
mov word [ebp - 0x14], 8
inc eax
je 0x40841e
mov esi, 1
cmp ebx, 0xffffffff
je 0x408429
push ebx
call sub.WSOCK32.DLL_closesocket
mov eax, esi
mov edx, 2
push eax
lea eax, [ebp + 8]
dec dword [ebp - 8]
call fcn.00471810
pop eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x408470
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push 0
push 0
push 0
push 0
push 0
mov edx, dword [ebp + 0x10]
push edx
push 0
push 2
push 1
push 0xf01ff
push eax
push eax
mov eax, dword [ebp + 8]
push eax
call sub.ADVAPI32.DLL_CreateServiceA
test eax, eax
jne 0x4084a2
xor eax, eax
pop ebp
ret
push eax
call sub.ADVAPI32.DLL_CloseServiceHandle
mov eax, 1
pop ebp
ret

Function at 0x40850c
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
call sub.KERNEL32.DLL_GetVersion
and eax, 0xff
cmp eax, 5
jb 0x40853d
push ebx
push str..Global_s
lea eax, [ebp - 0x40]
push eax
call sub.USER32.DLL_wsprintfA
add esp, 0xc
jmp 0x40854f
push ebx
push str.._s
lea edx, [ebp - 0x40]
push edx
call sub.USER32.DLL_wsprintfA
add esp, 0xc
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
lea ecx, [ebp - 0x40]
push ecx
call sub.KERNEL32.DLL_CreateFileA
cmp eax, 0xffffffff
jne 0x408573
xor eax, eax
jmp 0x408586
test esi, esi
je 0x40857b
mov dword [esi], eax
jmp 0x408581
push eax
call sub.KERNEL32.DLL_CloseHandle
mov eax, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40858c
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff64
push ebx
push esi
push 0xf01ff
mov eax, dword [ebp + 0xc]
push eax
mov edx, dword [ebp + 8]
push edx
call sub.ADVAPI32.DLL_OpenServiceA
mov ebx, eax
test ebx, ebx
jne 0x4085b3
xor eax, eax
jmp 0x4085fc
lea edx, [ebp - 0x1c]
push edx
push 1
push ebx
call sub.ADVAPI32.DLL_ControlService
mov esi, eax
test esi, esi
jne 0x4085f4
call sub.KERNEL32.DLL_GetLastError
push eax
push 0x475075
lea eax, [ebp - 0x9c]
push eax
call fcn.00468fd8
add esp, 0xc
lea edx, [ebp - 0x9c]
push 0
push 0x475078
push edx
push 0
call sub.USER32.DLL_MessageBoxA
push ebx
call sub.ADVAPI32.DLL_CloseServiceHandle
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x415988
Capabilities:
Suspend thread

Disassembly:
push ebx
mov ebx, eax
mov byte [ebx + 0xe], 1
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_SuspendThread
test eax, eax
setge dl
mov eax, ebx
call fcn.0041580c
pop ebx
ret

Function at 0x4159a8
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0041580c
dec esi
jne 0x4159ca
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x417114
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x479a14
cmp dword [edi], 0
jne 0x417190
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x479a10]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x475144
mov ecx, 2
call fcn.0042bd64
mov edx, 0x4170ec
lea eax, [esi + 5]
call fcn.0041710c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041710c
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x417165
mov dword [0x479a10], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0042dcf8
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
je 0x41ada5
test al, 0x10
jne 0x41ada9
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x41da98
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x41dad1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0042d938
jmp 0x41dada
mov eax, ebx
mov edx, esi
call fcn.0042d89c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4