joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10007a23
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 0x10], 0
push ebx
push 0xf00
call fcn.1001071e
mov ebx, eax
mov dword [ebp - 0xc], ebx
test ebx, ebx
je 0x10007b0c
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
lea esi, [eax + ebx - 1]
push 0x1002edbb
mov dword [ebp - 4], eax
mov byte [esi], 0
call fcn.1000785a
test eax, eax
jne 0x10007afc
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push ebx
mov byte [esi], 0x31
call fcn.10010070
test eax, eax
jne 0x10007af5
push edi
mov edi, dword [ebp - 8]
lea eax, [ebp - 8]
push eax
mov esi, 0x1002edec
push esi
push dword [ebp - 4]
push edi
call fcn.1001399c
add esp, 0x10
test eax, eax
je 0x10007ae5
mov ecx, dword [ebp - 8]
sub ecx, edi
add ecx, eax
mov ebx, eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
sub eax, ecx
push esi
push eax
add ecx, edi
push ecx
call fcn.1001399c
add esp, 0x10
test eax, eax
jne 0x10007a9d
test ebx, ebx
je 0x10007ae2
mov eax, dword [ebp - 8]
push str._s:_r
push ebx
mov byte [eax + ebx], 0
call dword [sym.imp.SHLWAPI.dll_StrTrimA]
push ebx
xor eax, eax
call fcn.1001282f
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0xc]
push edi
push 0
push dword [0x1002d128]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
push 0
push dword [0x1002d128]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
mov eax, dword [ebp - 0x10]
pop ebx
leave
ret

Function at 0x10007b6e
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jne 0x10007c05
push edi
cmp dword [ebp + 0x10], ebx
je 0x10007be8
mov esi, dword [ebp + 0x14]
cmp esi, ebx
je 0x10007be8
push esi
call fcn.100012ea
mov edi, eax
cmp edi, ebx
je 0x10007be3
push esi
push dword [ebp + 0x10]
push edi
call sub.ntdll.dll_memcpy
add esp, 0xc
cmp dword [ebp + 0x18], ebx
je 0x10007bc8
push ebx
push dword [0x1002d240]
mov eax, esi
mov edx, edi
call fcn.10014147
push esi
push edi
push 3
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push edi
mov esi, eax
call fcn.100012ff
jmp 0x10007bfb
push 8
pop esi
jmp 0x10007bfb
push ebx
push ebx
push 3
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x10008532
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
or dword [ebp - 8], 0xffffffff
cmp byte [0x1002d22c], 5
push ebx
push edi
ja 0x10008552
mov dword [ebp - 8], 0x1388
mov edi, 0x4000
push edi
push 0
push dword [0x1002d128]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x100085f1
lea eax, [ebp - 4]
push eax
push edi
push ebx
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x100085ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x100085d0
push dword [ebp - 8]
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x100085a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x102
je 0x100085e0
test eax, eax
jne 0x100085d0
mov eax, dword [esi + 0x30]
cmp eax, 1
je 0x100085d0
cmp dword [ebp - 4], 0
je 0x100085d9
mov eax, dword [esi]
mov ecx, dword [eax]
push 0
push dword [ebp - 4]
push ebx
push eax
call dword [ecx + 0x10]
jmp 0x10008570
mov dword [esi + 0x30], 1
jmp 0x100085e0
mov dword [esi + 0x30], 2
push ebx
push 0
push dword [0x1002d128]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x100085f8
mov dword [esi + 0x30], 1
mov eax, dword [esi]
call fcn.10001454
pop edi
pop ebx
leave
ret 4
Function at 0x10008a43
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
push esi
push edi
mov esi, eax
push 0x22
xor ebx, ebx
push esi
mov dword [esp + 0x24], ebx
mov byte [esp + 0x2c], 0x55
mov byte [esp + 0x2d], 0x52
mov byte [esp + 0x2e], 0x4c
mov byte [esp + 0x2f], 0x3a
mov byte [esp + 0x30], 0x20
mov byte [esp + 0x31], 0x25
mov byte [esp + 0x32], 0x73
mov byte [esp + 0x33], 0xd
mov byte [esp + 0x34], 0xa
mov byte [esp + 0x35], 0x75
mov byte [esp + 0x36], 0x73
mov byte [esp + 0x37], 0x65
mov byte [esp + 0x38], 0x72
mov byte [esp + 0x39], 0x3d
mov byte [esp + 0x3a], 0x25
mov byte [esp + 0x3b], 0x73
mov byte [esp + 0x3c], 0xd
mov byte [esp + 0x3d], 0xa
mov byte [esp + 0x3e], 0x70
mov byte [esp + 0x3f], 0x61
mov byte [esp + 0x40], 0x73
mov byte [esp + 0x41], 0x73
mov byte [esp + 0x42], 0x3d
mov byte [esp + 0x43], 0x25
mov byte [esp + 0x44], 0x73
mov byte [esp + 0x45], bl
call fcn.10008393
mov dword [esp + 0x10], eax
cmp eax, ebx
je 0x10008be6
push esi
call fcn.10008806
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.100089b1
push 0x1c
push esi
mov dword [esp + 0x24], eax
call fcn.10008393
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esp + 0x18], eax
cmp eax, ebx
je 0x10008bd8
push 0x1d
push esi
call fcn.10008393
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [esp + 0x14], eax
cmp eax, ebx
je 0x10008b3a
push eax
call esi
mov ebx, eax
push dword [esp + 0x18]
call esi
push dword [esp + 0x10]
mov dword [esp + 0x24], eax
call esi
mov ecx, dword [esp + 0x20]
add ecx, ebx
lea eax, [eax + ecx + 0x39]
push eax
push 0
push dword [0x1002d128]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x10008bb6
push 1
push esi
call fcn.10012462
mov ebx, eax
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x10008b80
mov eax, 0x10027417
push eax
push dword [esp + 0x1c]
lea eax, [esp + 0x2c]
push dword [esp + 0x18]
push eax
lea eax, [esi + ebx]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push 0
add ebx, eax
push ebx
push esi
push 0x11e
call fcn.1000be88
push esi
push 0
push dword [0x1002d128]
call edi
xor esi, esi
cmp dword [esp + 0x14], esi
je 0x10008bcb
push dword [esp + 0x14]
push esi
push dword [0x1002d128]
call edi
push dword [esp + 0x18]
push esi
push dword [0x1002d128]
call edi
push dword [esp + 0x10]
push 0
push dword [0x1002d128]
call edi
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10008e7b
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
and dword [ebp + 8], 0
push esi
push edi
mov edi, ebx
mov esi, eax
call fcn.100086dd
mov edi, eax
test edi, edi
je 0x10008ecc
push ebx
call fcn.10008677
lea eax, [esi + 0x18]
mov ecx, dword [eax]
push eax
push ecx
push dword [esi + 0x14]
mov dword [esi + 0x1c], ecx
mov edx, dword [edi]
mov ebx, dword [edx]
push edx
call dword [ebx + 0xc]
test eax, eax
jne 0x10008ebb
xor esi, esi
inc esi
jmp 0x10008ebe
mov esi, dword [ebp + 8]
push 0
lea eax, [edi - 0x1c]
push 0
call fcn.10019c08
jmp 0x10008eea
cmp dword [ebp + 0x14], 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
push ebx
je 0x10008ee2
call dword [sym.imp.WININET.dll_InternetReadFileExW]
jmp 0x10008ee8
call dword [sym.imp.WININET.dll_InternetReadFileExA]
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x10009401
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
test dword [ebp + 0xc], 0x80000000
push edi
mov dword [ebp + 8], esi
jne 0x100094f2
push ebx
call fcn.10008247
mov edi, eax
cmp edi, esi
je 0x100094f2
mov eax, dword [edi + 0x34]
test al, 0x40
je 0x10009455
mov esi, dword [edi + 0x38]
test esi, esi
je 0x10009453
cmp dword [esi + 0xc], 0
jne 0x10009449
call fcn.10016a7e
test eax, eax
jne 0x10009453
mov ebx, dword [esi + 0x18]
mov dword [ebp + 8], 1
xor esi, esi
push esi
lea eax, [edi - 0x1c]
push esi
call fcn.10019c08
cmp dword [ebp + 8], esi
je 0x100094f2
cmp dword [ebp + 0xc], 0xffff
mov dword [ebp + 8], esi
jne 0x1000948b
cmp dword [ebp + 0x1c], esi
jne 0x10009485
push dword [ebp + 0x10]
xor eax, eax
call fcn.100128d1
jmp 0x10009488
mov eax, dword [ebp + 0x10]
mov dword [ebp + 8], eax
push dword [ebp + 0x18]
mov edi, dword [ebp + 0x14]
push edi
push dword [ebp + 0x10]
push dword [ebp + 8]
push dword [ebp + 0xc]
push ebx
call sub.WINHTTP.dll_WinHttpQueryHeaders
mov ebx, eax
cmp dword [ebp + 0x1c], esi
jne 0x10009514
cmp ebx, esi
je 0x100094db
test dword [ebp + 0xc], 0x60000000
jne 0x100094db
cmp dword [ebp + 0x10], esi
je 0x100094db
mov eax, dword [edi]
cmp eax, esi
je 0x100094db
shr eax, 1
mov esi, eax
lea eax, [esi + 1]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0x10]
call dword [sym.imp.ntdll.dll_wcstombs]
add esp, 0xc
mov dword [edi], esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x10009514
push dword [ebp + 8]
push esi
push dword [0x1002d128]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x10009514
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
cmp dword [ebp + 0x1c], esi
je 0x1000950c
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
jmp 0x10009512
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
mov ebx, eax
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0x18
Function at 0x10009e94
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, 0x104
xor ebx, ebx
push esi
push ebx
push dword [0x1002d128]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x24], ebx
call edi
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x1000a041
push esi
push ebx
push dword [0x1002d128]
call edi
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x10009ffe
cmp dword [0x1002d2d8], ebx
je 0x10009ffe
lea eax, [ebp - 0x2c]
push eax
push dword [0x1002d1ec]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x10009fee
mov dword [ebp - 0x18], ebx
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x20]
push ebx
push ebx
push eax
push dword [ebp - 8]
push dword [ebp - 0x18]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov dword [ebp - 0x30], eax
cmp eax, 0xea
jne 0x10009f92
push dword [ebp - 4]
push ebx
push dword [0x1002d128]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 8]
push ebx
push dword [0x1002d128]
call dword [sym.imp.KERNEL32.dll_HeapFree]
add dword [ebp - 0xc], esi
push dword [ebp - 0xc]
push ebx
push dword [0x1002d128]
call edi
push dword [ebp - 0xc]
mov dword [ebp - 4], eax
push ebx
push dword [0x1002d128]
call edi
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 4], ebx
je 0x10009fe5
cmp dword [ebp - 8], ebx
jne 0x10009f18
cmp dword [ebp - 0x30], ebx
jne 0x10009fe5
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call fcn.10009d2f
test eax, eax
jne 0x10009fdd
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
je 0x10009fca
push eax
push ebx
push dword [0x1002d128]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x14], 1
inc dword [ebp - 0x18]
jmp 0x10009f18
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.100095bb
or dword [ebp - 0x14], eax
cmp dword [ebp - 4], ebx
je 0x1000a013
push dword [ebp - 4]
push ebx
push dword [0x1002d128]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 8], ebx
je 0x1000a028
push dword [ebp - 8]
push ebx
push dword [0x1002d128]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 0x14], ebx
je 0x1000a041
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov eax, dword [ebp + 0x14]
cmp eax, ebx
je 0x1000a041
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x1000a886
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
push 8
pop ebx
push dword [ebp + 8]
call esi
add eax, 5
push eax
push 0
push dword [0x1002d128]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x1000a911
push dword [ebp + 8]
push 0x1002e3c9
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 4]
push eax
push dword [0x1002d1ec]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov ebx, eax
test ebx, ebx
jne 0x1000a902
push dword [ebp + 0xc]
call esi
inc eax
push eax
push dword [ebp + 0xc]
push 1
push ebx
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push 0
push dword [0x1002d128]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8

Function at 0x1000b4a1
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
xor ebx, ebx
push 6
xor eax, eax
pop ecx
lea edi, [ebp - 0x1c]
mov dword [ebp - 0x20], ebx
rep stosd dword es:[edi], eax
cmp dword [ebp + 8], ebx
je 0x1000b4c9
push dword [ebp + 8]
call esi
push ebx
push 4
mov dword [ebp - 0x20], 0x1c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x1000b54b
push 0x1002efc2
push 0x1002e01d
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
call sub.KERNEL32.dll_Thread32First
jmp 0x1000b542
mov eax, dword [ebp - 0x14]
cmp eax, dword [0x1002d228]
jne 0x1000b536
push dword [ebp - 0x18]
push ebx
push 0x1f03ff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
cmp edi, ebx
je 0x1000b536
push ebx
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
push edi
call esi
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x1000b508
push dword [ebp + 8]
call esi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1000b552
Capabilities:
Create thread

Disassembly:
push ecx
mov eax, dword [0x1002d1d8]
push esi
push edi
xor edi, edi
xor esi, esi
cmp eax, 0x79405f4
je 0x1000b5e4
cmp eax, 0x1545f149
je 0x1000b5dd
cmp eax, 0x4e1dcf8f
je 0x1000b5be
cmp eax, 0x5afb7e2a
je 0x1000b5b7
cmp eax, 0x7a4ab374
je 0x1000b5b7
cmp eax, 0xaf9402f0
je 0x1000b5ad
cmp eax, 0xbb272c80
je 0x1000b597
mov dword [0x1002d1d8], edi
jmp 0x1000b5a7
call fcn.10006469
mov esi, eax
cmp esi, edi
jne 0x1000b5a7
call fcn.10004968
pop edi
mov eax, esi
pop esi
pop ecx
ret
push edi
push edi
push edi
call fcn.1000b4a1
jmp 0x1000b5a7
call fcn.100082b7
jmp 0x1000b59c
push 2
pop esi
push 0x1002e7f2
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, edi
je 0x1000b59e
push 0x1002e1e5
push eax
call fcn.1000633b
jmp 0x1000b59c
call fcn.10006f78
jmp 0x1000b59c
lea eax, [esp + 8]
push eax
push edi
push edi
push 0x10006c9b
push edi
push edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
je 0x1000b607
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1000b5a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1000b5a7

Function at 0x1000bab7
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor esi, esi
mov dword [ebp - 0x1c], esi
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push esi
push esi
stosd dword es:[edi], eax
push 1
push esi
stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebp - 0xc], eax
cmp eax, esi
je 0x1000bb7e
mov ecx, dword [0x1002d23c]
mov dword [ebp + 0xc], esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
cmp dword [ebp + 0x14], esi
je 0x1000bb12
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1000bb18
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, esi
jne 0x1000bb57
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x3e5
jne 0x1000bb6c
push 0x2710
push esi
lea eax, [ebp - 8]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov edi, eax
cmp edi, 1
jne 0x1000bb63
push esi
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov eax, dword [ebp + 0xc]
add ebx, eax
sub dword [ebp + 0x10], eax
jne 0x1000baf6
jmp 0x1000bb71
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CancelIo]
cmp dword [ebp + 0x10], esi
jne 0x1000bb73
xor edi, edi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1000bb86
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x1000be88
Capabilities:
Connect pipe
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0x10]
push ebx
add eax, 0x10
push esi
push edi
mov dword [ebp - 4], eax
xor esi, esi
xor eax, eax
mov dword [ebp - 0x18], esi
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor ebx, ebx
push 8
stosd dword es:[edi], eax
pop edi
cmp dword [ebp + 0x14], esi
je 0x1000bf51
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
inc ebx
add dword [ebp - 4], ebx
push dword [ebp - 4]
push esi
push dword [0x1002d128]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x1000bf73
mov eax, dword [0x1002d228]
mov edi, dword [ebp + 0x10]
mov dword [esi + 4], eax
movzx eax, word [ebp + 8]
mov dword [esi], eax
lea eax, [ebx + edi]
mov dword [esi + 8], eax
mov dword [esi + 0xc], ebx
test ebx, ebx
je 0x1000bf0c
push ebx
push dword [ebp + 0x14]
lea eax, [esi + 0x10]
push eax
call sub.ntdll.dll_memcpy
add esp, 0xc
cmp dword [ebp + 0xc], 0
je 0x1000bf27
test edi, edi
je 0x1000bf27
push edi
push dword [ebp + 0xc]
lea eax, [esi + ebx + 0x10]
push eax
call sub.ntdll.dll_memcpy
add esp, 0xc
push 1
lea eax, [ebp - 8]
push eax
push 0x10
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 4]
push esi
push dword [0x1002d1dc]
call dword [sym.imp.KERNEL32.dll_CallNamedPipeA]
test eax, eax
jne 0x1000bf62
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x1000bf64
cmp dword [ebp + 8], 0x119
jne 0x1000bec4
xor eax, eax
jmp 0x1000bf75
xor edi, edi
push esi
push 0
push dword [0x1002d128]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x1000bfee
Capabilities:
Create pipe
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0x1002d284
xor edi, edi
push edi
mov eax, 0x100
push eax
push eax
push 0xff
push 4
push 0x40000003
push dword [0x1002d1dc]
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov esi, eax
cmp esi, 0xffffffff
je 0x1000c051
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x1000bcd2
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
je 0x1000c040
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x1000c059
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1000c059
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, edi
pop edi
pop esi
leave
ret 4
Function at 0x1000c877
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0xc], 1
cmp dword [edi + 0x28], ebx
jne 0x1000c89f
mov eax, dword [edi + 0x34]
test al, 0x40
je 0x1000ca19
mov eax, dword [edi + 0x34]
test al, 1
je 0x1000c9cf
mov eax, dword [edi + 0x34]
test al, 6
jne 0x1000c92f
mov eax, dword [edi + 0x34]
test al, 0x40
jne 0x1000c927
or dword [esp + 0xc], 0xffffffff
cmp dword [edi + 0x28], ebx
je 0x1000c940
mov ecx, dword [edi + 0x28]
mov eax, dword [edi + 4]
mov edx, dword [eax]
lea esi, [esp + 0xc]
push esi
mov esi, dword [edi + 0x24]
sub esi, ecx
add esi, dword [edi + 0x20]
push ecx
push esi
push eax
call dword [edx + 0x10]
mov esi, dword [ebp + 8]
mov eax, dword [esi + 4]
push ebx
push 0x4000
push dword [edi + 0x20]
push dword [esi]
call dword [eax + 4]
add esp, 0x10
cmp eax, ebx
mov dword [edi + 0x24], eax
jle 0x1000c900
mov dword [edi + 0x28], eax
jmp 0x1000c920
je 0x1000c917
mov eax, dword [0x1002cad0]
cmp eax, 0xffffffff
je 0x1000c91a
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, ebx
je 0x1000c91a
mov dword [edi + 0x2c], ebx
mov dword [edi + 0x24], ebx
mov dword [edi + 0x28], ebx
cmp dword [edi + 0x28], ebx
jne 0x1000c8c2
jmp 0x1000c93a
mov dword [edi + 0x2c], ebx
mov dword [edi + 0x28], ebx
jmp 0x1000c93a
push edi
push esi
call fcn.1000c1f5
mov dword [esp + 0xc], eax
cmp dword [esp + 0xc], ebx
jge 0x1000c94b
mov eax, dword [edi + 0x34]
test al, 0x40
je 0x1000ca19
mov eax, dword [edi + 0xc]
cmp eax, ebx
je 0x1000c96c
push eax
push dword [edi + 4]
call fcn.1000b803
cmp eax, 0xe8
jne 0x1000c96c
or dword [esp + 0xc], 0xffffffff
jmp 0x1000ca19
mov eax, dword [edi + 0x30]
push dword [edi + 0x38]
not eax
mov ebx, 0x100
and eax, ebx
push eax
mov eax, dword [esi + 0x10]
mov esi, dword [edi + 0x40]
and eax, 0x80
push eax
push dword [edi + 0x18]
push dword [edi + 8]
push dword [edi + 4]
call fcn.10005d6c
mov dword [edi + 0x30], eax
or dword [edi + 0x30], ebx
mov eax, dword [edi + 4]
call fcn.10001454
test eax, eax
jne 0x1000c9ad
cmp dword [edi + 0x2c], eax
jne 0x1000c9b3
push edi
call fcn.1000c45b
mov eax, dword [edi + 0x30]
test al, 1
jne 0x1000c9c7
mov eax, dword [edi + 0x34]
test al, 2
jne 0x1000ca19
cmp dword [edi + 0x2c], 0
jne 0x1000ca19
push edi
call fcn.1000c45b
jmp 0x1000ca19
mov esi, dword [edi + 0x24]
mov eax, dword [edi + 0x28]
add esi, dword [edi + 0x20]
mov ebx, dword [edi]
mov ecx, ebx
mov dword [esp + 0x10], eax
sub esi, eax
call fcn.100081b4
mov edx, dword [ebx]
xor ecx, ecx
push ecx
push 2
mov dword [esp + 0x1c], eax
push ecx
xor eax, eax
push eax
push ebx
call dword [edx + 0x14]
mov eax, dword [ebx]
push 0
push dword [esp + 0x14]
push esi
push ebx
call dword [eax + 0x10]
mov eax, dword [ebx]
xor esi, esi
push esi
push esi
push esi
push dword [esp + 0x20]
push ebx
call dword [eax + 0x14]
mov dword [edi + 0x28], esi
mov eax, dword [esp + 0xc]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4