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

Disassembly:
push ebx
push esi
xor ebx, ebx
push edi
mov esi, eax
cmp dword [0x1003cff4], ebx
jne 0x10004522
push 0x80004
call fcn.100158ef
pop ecx
mov dword [0x1003cff4], eax
push dword [esi]
call sub.WS2_32.dll_htonl
mov ecx, dword [0x1003cff4]
mov dword [ecx], eax
mov edi, dword [esi + 4]
mov eax, 0x40000
cmp edi, eax
jbe 0x10004562
mov edi, eax
push dword [esi + 8]
mov eax, dword [0x1003cff4]
push edi
lea eax, [eax + ebx + 4]
push 1
push eax
call fcn.10016c0c
add esp, 0x10
test eax, eax
je 0x10004568
add ebx, eax
sub edi, eax
sub dword [esi + 4], eax
test edi, edi
ja 0x1000453f
jmp 0x1000456c
and dword [esi + 4], 0
push 8
add ebx, 4
push ebx
push dword [0x1003cff4]
call fcn.100012c1
push fcn.100012c1
call fcn.1000458e
add esp, 0x10
pop edi
pop esi
pop ebx
ret

Function at 0x10004647
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.10007324
lea eax, [ebp - 0x10]
push 0x80
push eax
call fcn.10001371
lea eax, [ebp - 0x20]
push eax
call fcn.1000733d
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.100013c1
add esp, 0x20
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
push eax
lea eax, [ebp - 0x10]
push 0x1002e584
push eax
call fcn.100014cb
add esp, 0xc
push 0x16
lea eax, [ebp - 0x10]
call fcn.1000152d
push eax
lea eax, [ebp - 0x10]
call fcn.1000152a
push eax
call fcn.100012c1
lea eax, [ebp - 0x10]
push eax
call fcn.1000150a
add esp, 0x10
leave
ret

Function at 0x100046bf
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 0x100047a0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0x4000
call fcn.100072b2
mov edi, 0x2000
mov esi, eax
push edi
push esi
call fcn.1000746f
mov ebx, eax
push edi
push esi
mov dword [ebp - 8], ebx
call fcn.1000746f
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
call fcn.10007324
lea eax, [ebp - 0x18]
push edi
push eax
call fcn.10007513
mov ebx, dword [ebp - 4]
lea eax, [ebp - 0x18]
push edi
push eax
call fcn.10007513
add esp, 0x30
push 0
push ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x10004819
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xd
call fcn.10002216
pop ecx
pop ecx
call fcn.100072fd
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100048a4
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.100158ef
push esi
mov ebx, eax
push 0
push ebx
call fcn.1001d4e0
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push dword [ebp + 8]
push eax
call fcn.10007324
lea eax, [ebp - 0x10]
push eax
call fcn.1000733d
mov edi, eax
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.10007513
lea eax, [ebp - 0x10]
push 0x200000
push eax
call fcn.10001371
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.100013c1
push esi
push 0x1002e590
push ebx
call fcn.10016d38
add esp, 0x44
test eax, eax
jne 0x1000492e
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 2
push 0x1002e594
push esi
push ebx
call fcn.10016035
add esp, 0x10
push ebx
lea eax, [ebp - 0x10]
push 0x1002e500
push eax
call fcn.100014cb
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 0x10004997
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x34
call fcn.10002244
add esp, 0xc
push 0x16
lea eax, [ebp - 0x10]
call fcn.1000152d
push eax
lea eax, [ebp - 0x10]
call fcn.1000152a
push eax
call fcn.100012c1
push ebx
call fcn.10015812
lea eax, [ebp - 0x10]
push eax
call fcn.1000150a
add esp, 0x14
jmp 0x10004a86
push ebx
call fcn.10015812
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 0x10004a00
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.100014cb
add esp, 0x24
jmp 0x10004a44
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.100014cb
add esp, 0x2c
lea eax, [ebp - 0x170]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1000499e
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x16
lea eax, [ebp - 0x10]
call fcn.1000152d
push eax
lea eax, [ebp - 0x10]
call fcn.1000152a
push eax
call fcn.100012c1
lea eax, [ebp - 0x10]
push eax
call fcn.1000150a
add esp, 0x10
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10004a8b
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 0x10004aa9
xor eax, eax
jmp 0x10004aca
lea eax, [edi + 1]
cmp eax, dword [ebp + 0x10]
jae 0x10004aa5
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
call fcn.1001d4e0
add esp, 0xc
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
pop edi
pop esi
pop ebp
ret

Function at 0x10004b2d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [0x1003cffc], edi
je 0x10004b4a
xor eax, eax
jmp 0x10004c66
push dword [0x10035194]
xor esi, esi
inc esi
mov dword [0x1003cffc], esi
call sub.WS2_32.dll_ntohl
lea edx, [eax + 8]
mov dword [ebp - 8], edx
cmp edx, 0x4000
jbe 0x10004b76
push 0x51
call fcn.10002279
pop ecx
jmp 0x10004b43
push 8
pop ecx
cmp edx, ecx
jbe 0x10004b93
mov ebx, ecx
and ebx, 3
mov bl, byte [ebx + str.SSSSLLLLEEEEPPPPMMMMAAAASSSSKKKK]
xor byte [ecx + str.SSSSLLLLEEEEPPPPMMMMAAAASSSSKKKK], bl
inc ecx
cmp ecx, edx
jb 0x10004b7d
push esi
push eax
push 0x10035198
lea esi, [ebp - 0x68]
call fcn.10001a8e
add esp, 0xc
test eax, eax
jne 0x10004bb6
push 0x51
call fcn.10002279
pop ecx
jmp 0x10004c44
lea ebx, [ebp - 0x68]
call fcn.10001e73
test eax, eax
jne 0x10004bcd
push dword [ebp - 0x1c]
call fcn.10004b18
pop ecx
jmp 0x10004ba9
push dword [ebp - 0x30]
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x68]
push edi
push dword [ebp - 0x34]
mov dword [ebp - 4], esi
mov dword [0x1003d00c], eax
call fcn.1001d4e0
mov ebx, dword [ebp - 0x60]
add esp, 0xc
push esi
push edi
push 0x20
lea esi, [ebp - 0xc]
pop edi
call fcn.1000a5e4
pop ecx
pop ecx
test eax, eax
jne 0x10004c1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x52
call fcn.10002216
push dword [ebp - 4]
call fcn.10004b18
add esp, 0xc
and dword [ebp - 4], 0
jmp 0x10004c44
mov eax, dword [ebp - 0x14]
push fcn.10004b18
push 0
mov dword [0x1003d000], eax
mov eax, dword [ebp - 0x18]
push 3
push eax
push dword [ebp - 4]
mov dword [0x1003d004], eax
call fcn.1000bc38
add esp, 0x14
push 8
pop eax
cmp dword [ebp - 8], eax
jbe 0x10004c63
mov ecx, eax
and ecx, 3
mov cl, byte [ecx + str.SSSSLLLLEEEEPPPPMMMMAAAASSSSKKKK]
xor byte [eax + str.SSSSLLLLEEEEPPPPMMMMAAAASSSSKKKK], cl
inc eax
cmp eax, dword [ebp - 8]
jb 0x10004c4c
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10005183
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push esi
push edi
push dword [ebp + 0x2c]
call fcn.1000b0cf
pop ecx
push 0x44
pop esi
push esi
lea eax, [ebp - 0x70]
push 0
push eax
call fcn.1001d4e0
and dword [ebp - 0x10], 0
xor eax, eax
lea edi, [ebp - 0x24]
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 - 0x14]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x14], 0xc
mov dword [ebp - 0xc], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
and dword [ebp - 0x38], 0
xor eax, eax
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x70]
push eax
push dword [ebp + 0x2c]
mov dword [ebp - 0x44], 0x101
push dword [ebp + 0x28]
call fcn.1000a043
add esp, 0x10
test eax, eax
jne 0x10005224
push dword [ebp + 0x2c]
call fcn.1000b0f1
pop ecx
jmp 0x10005290
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp + 0x20]
mov eax, dword [ebp - 0x1c]
push dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x24]
push dword [ebp + 0x10]
lea edx, [ebp - 0x24]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.100055d9
add esp, 0x14
cmp dword [ebp + 0xc], 0
jbe 0x1000525f
push dword [ebp + 0xc]
push dword [ebp - 8]
call fcn.100063d3
pop ecx
pop ecx
mov eax, dword [ebp - 4]
cmp dword [ebp - 0x34], eax
je 0x1000526a
or eax, 0xffffffff
push dword [ebp + 0x24]
lea esi, [ebp - 0x24]
push eax
push dword [ebp - 8]
push dword [ebp + 8]
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.10005fc1
push dword [ebp + 0x2c]
call fcn.1000b0f1
add esp, 0x24
pop edi
pop esi
leave
ret
Function at 0x100057dd
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 0x10005904
lea eax, [ebp - 0x18]
push eax
push dword [ebx + 8]
push dword [ebx]
call fcn.10005756
mov edi, eax
add esp, 0xc
cmp edi, esi
je 0x10005904
push esi
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp + 8], eax
cmp eax, esi
je 0x10005904
lea ecx, [ebp - 0x34]
push ecx
push eax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x10005904
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebx + 8]
jne 0x100058a5
push dword [ebp - 0x2c]
call fcn.1000a9ff
pop ecx
mov dword [ebp - 8], eax
cmp eax, esi
je 0x100058a5
push esi
push esi
push edi
lea ecx, [edi + 0x10]
push ecx
push eax
call dword [ebp + 0xc]
mov edx, dword [ebp - 8]
call fcn.1000aab2
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x1000587a
mov edx, dword [ebp + 8]
call fcn.1000aab2
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x10
lea eax, [ebp - 0x18]
push eax
push edi
push dword [ebx]
lea esi, [ebp - 4]
call fcn.1000ae0e
add esp, 0x10
test eax, eax
je 0x10005904
cmp dword [ebp - 4], 0x10
jne 0x10005904
cmp dword [ebp - 0xc], 0
jne 0x1000590a
push 0x10
lea eax, [ebp - 0x18]
push eax
push edi
push dword [ebx]
mov dword [ebp - 0xc], 1
call fcn.1000ae9f
add esp, 0x10
xor eax, eax
pop edi
pop esi
leave
ret
xor eax, eax
inc eax
jmp 0x10005906
Function at 0x10005d3b
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
push esi
push 0x90
xor esi, esi
lea eax, [ebp - 0x94]
push esi
push eax
call fcn.1001d4e0
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 0x10005d7e
xor eax, eax
jmp 0x10005e3a
cmp dword [ebp - 0x94], 5
jne 0x10005d9a
cmp dword [ebp - 0x90], 2
jne 0x10005d9a
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10005d77
push ebx
push edi
push 0x4c
push esi
push 0x40
pop ebx
call fcn.1000a525
mov edi, eax
pop ecx
pop ecx
mov dword [ebp - 4], edi
cmp edi, esi
je 0x10005e15
push 0x149
push esi
call fcn.1000a525
mov ebx, eax
pop ecx
pop ecx
cmp ebx, esi
je 0x10005e15
mov eax, dword [ebp + 8]
push 0x13
pop ecx
push 0x4a
mov esi, 0x10035010
rep movsd dword es:[edi], dword [esi]
pop ecx
mov esi, 0x10035060
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 4]
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 edi
test eax, eax
jne 0x10005e06
push 5
jmp 0x10005e0f
mov esi, dword [esi + 0x18]
test esi, esi
jne 0x10005e19
push 6
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10005e38
push esi
call fcn.1000a803
mov esi, 0x4000
push esi
call fcn.1000a697
push esi
mov edi, ebx
call fcn.1000a697
xor eax, eax
add esp, 0xc
inc eax
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1000627d
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 0x100062d7
or eax, 0xffffffff
jmp 0x100062df
cmp dword [ebp - 4], 0x80000
jae 0x100062dc
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 0x10006293
cmp dword [ebp - 8], esi
ja 0x100062a9
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret

Function at 0x100065d4
Capabilities:
Encode data using xor

Disassembly:
cmp byte [ecx], 0
mov eax, 0x62964ee9
je 0x100065f5
push esi
movzx edx, word [ecx]
mov esi, eax
movzx edx, dx
ror esi, 8
add esi, edx
inc ecx
xor eax, esi
cmp byte [ecx], 0
jne 0x100065df
pop esi
ret
Function at 0x10006ab7
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 0x10006b27
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 0x10006b53
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x10006b14
push 0x2710
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
jmp 0x10006b1f
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
call esi
cmp eax, edi
jb 0x10006ad6
jmp 0x10006b2a
mov ebx, dword [ebp - 8]
cmp ebx, 0xffffffff
jne 0x10006b53
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x79
jne 0x10006b45
push 4
call fcn.10002279
jmp 0x10006b50
call esi
push eax
push 0x14
call fcn.10002216
pop ecx
pop ecx
jmp 0x10006bb4
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 0x10006b7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x14
call fcn.10002216
pop ecx
pop ecx
jmp 0x10006ba6
mov ecx, ebx
lea eax, [ebp - 0x2c]
call fcn.10006d27
sub esp, 0x20
push 8
pop ecx
mov esi, eax
mov edi, esp
push 0x1bd
rep movsd dword es:[edi], dword [esi]
call fcn.100066f5
add esp, 0x24
test eax, eax
jne 0x10006bb4
push ebx
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov edx, ebx
call fcn.1000aab2
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10006bc9
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 0x10006c03
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 0x10006c0c
cmp dword [ebp - 4], 0
je 0x10006c0c
add esi, dword [ebp - 4]
cmp esi, edi
jl 0x10006bd8
cmp esi, edi
jne 0x10006c0c
mov eax, esi
pop esi
leave
ret
or eax, 0xffffffff
jmp 0x10006c09

Function at 0x10006c11
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 0x10006c5a
mov eax, dword [ebp + 0x10]
sub eax, esi
cmp eax, 0x2000
jle 0x10006c34
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 0x10006c58
add esi, dword [ebp - 4]
cmp esi, dword [ebp + 0x10]
jl 0x10006c23
jmp 0x10006c5a
xor eax, eax
pop esi
leave
ret
Function at 0x10006d54
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 0x10006dbd
xor eax, eax
jmp 0x10006dec
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 0x10006dce
jg 0x10006dc5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x10006dce
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
call edi
cmp eax, esi
jb 0x10006d91
jmp 0x10006dd2
mov dword [ebp + 0xc], 1
jmp 0x10006dd2
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 0x10006e1b
Capabilities:
Receive data
Receive data on socket

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

Function at 0x10006f1c
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.1001ade7
mov dword [esi + 0x14], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 4], edi
mov dword [esi + 8], 0x10006e58
mov dword [esi + 0xc], 0x10006ead
mov dword [esi + 0x10], 0x10006eea
mov dword [esi + 0x18], 0x10006f07
mov eax, esi
leave
ret
Function at 0x10007014
Capabilities:
Get hostname
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0x494
call fcn.100072b2
mov esi, 0x94
push esi
push eax
mov dword [ebp - 4], eax
call fcn.1000746f
lea edi, [esi + 0x6c]
push edi
push dword [ebp - 4]
mov ebx, eax
call fcn.1000746f
push edi
push dword [ebp - 4]
mov dword [ebp - 0xc], eax
call fcn.1000746f
push edi
push dword [ebp - 4]
mov dword [ebp - 0x18], eax
call fcn.1000746f
push edi
push dword [ebp - 4]
mov dword [ebp - 0x14], eax
call fcn.1000746f
add esp, 0x2c
mov dword [ebp - 0x10], 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]
call fcn.10002396
push edi
push dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x100070bc
push 0x5c
push dword [ebp - 0x10]
call fcn.10016f60
pop ecx
pop ecx
test eax, eax
je 0x100070bc
inc eax
mov dword [ebp - 0x10], eax
jne 0x100070c3
mov dword [ebp - 0x10], 0x1002e68e
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 [0x10040e2c], eax
movzx eax, al
push eax
call fcn.100020b6
movzx eax, byte [ebx + 8]
push eax
call fcn.100020b6
movzx eax, word [ebx + 0xc]
push eax
call fcn.10002096
push 0
call fcn.10002079
push dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call fcn.10002079
push dword [sym.imp.KERNEL32.dll_GetProcAddress]
call fcn.10002079
push dword [ebp - 0x1c]
call fcn.10002079
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push str._s_t_s_t_s
push edi
push dword [ebp - 0xc]
call fcn.10015c4b
mov eax, dword [ebp - 0xc]
add esp, 0x34
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10007139
sub eax, ecx
cmp eax, 0x3a
jle 0x1000714a
push 0x3a
pop eax
push dword [ebp - 0xc]
mov ecx, eax
call fcn.100020c8
mov esi, dword [ebp - 4]
pop ecx
call fcn.100072fd
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10007599
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 0x100075c7
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 0x100075cd
cmp esi, dword [ebp + 0xc]
jl 0x100075a7
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 0x100075c9