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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x4698b8]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x44f82e
cmp word [ebx], dx
jne 0x44f82e
or byte [eax + edi + 0x28], 4
jmp 0x44f833
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x44f996
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x44f976
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x44f874
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x44f8aa
cmp eax, edx
jae 0x44f8b8
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x44f84f
jmp 0x44f996
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44f971
cmp dword [ebp - 0x18], 0
je 0x44f971
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4698b8]
test byte [eax + edi + 0x28], 0x48
je 0x44f947
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x44f90b
mov word [esi], cx
jmp 0x44f942
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4698b8]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x4698b8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4698b8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x44f996
pop eax
cmp word [ebp - 4], ax
jne 0x44f957
cmp esi, ebx
jne 0x44f957
mov word [esi], ax
jmp 0x44f993
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0044f4ed
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x44f996
push 0xd
pop eax
jmp 0x44f952
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4698b8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x44f990
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x44f996
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x454490
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4544bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4544bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4010d7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 8]
cmp dword [ebp + 0xc], esi
jle 0x40110a
push dword [ebp + 0x10]
call fcn.00405ee0
xor edx, edx
pop ecx
mov ecx, eax
mov eax, esi
div ecx
mov al, byte [edi + esi]
add edx, dword [ebp + 0x10]
dec al
xor al, byte [edx]
mov byte [edi + esi], al
inc esi
cmp esi, dword [ebp + 0xc]
jl 0x4010e6
pop edi
pop esi
pop ebp
ret
Function at 0x401245
Capabilities:
Execute vbscript javascript or jscript in memory

Disassembly:
sub esp, 0x5c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x68]
push ebx
mov ebx, dword [esp + 0x68]
push ebp
push esi
push edi
mov edi, dword [esp + 0x70]
mov ebp, 0x5f5e117
push ebp
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], eax
call fcn.00405f86
mov esi, eax
pop ecx
test esi, esi
je 0x40128f
push ebp
push 0
push esi
call fcn.00403780
push esi
call fcn.00405f6b
add esp, 0x10
push str.test_http_connection
call fcn.00401228
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
pop ecx
push 5
call ebp
push ebx
call fcn.00405ee0
push dword [esp + 0x1c]
push eax
push ebx
call fcn.004010d7
add esp, 0x10
push 4
call ebp
push str.currently_testing_http_connection...
call fcn.00401228
pop ecx
push 3
call ebp
lea eax, [esp + 0x58]
push eax
push edi
call dword [sym.imp.ole32.dll_CLSIDFromProgID]
xor esi, esi
push esi
push esi
call dword [sym.imp.ole32.dll_CoInitializeEx]
lea eax, [esp + 0x10]
push eax
push 0x41943c
push 1
push esi
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x48], 0x40101e
mov dword [esp + 0x4c], 0x40100f
mov dword [esp + 0x50], 0x40100f
mov dword [esp + 0x54], 0x401019
mov dword [esp + 0x58], 0x401019
mov ecx, dword [eax]
push 0x41944c
push eax
call dword [ecx]
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
push 2
call ebp
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 0x401023
mov dword [esp + 0x20], eax
lea edx, [esp + 0x20]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x30], 0x401000
mov dword [esp + 0x34], 0x40107b
mov dword [esp + 0x38], 0x40100f
mov dword [esp + 0x3c], 0x401014
mov dword [esp + 0x40], 0x40100f
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], esi
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
push esi
push 0xffffffffffffffff
push ebx
push esi
push esi
call edi
mov esi, eax
add esi, esi
push esi
call fcn.00405f86
pop ecx
push esi
mov ebx, eax
xor esi, esi
push ebx
push 0xffffffffffffffff
push dword [esp + 0x28]
push esi
push esi
call edi
push str.HTTP_connection_looks_good_
call fcn.00401228
mov eax, dword [esp + 0x18]
pop ecx
push esi
push esi
mov ecx, dword [eax]
push esi
push esi
push esi
push esi
push esi
push esi
push ebx
push eax
call dword [ecx + 0x14]
push 1
call ebp
mov eax, dword [esp + 0x10]
push 2
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push ebx
call fcn.00405f6b
pop ecx
mov ecx, dword [esp + 0x68]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040168f
add esp, 0x5c
ret
Function at 0x401b49
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401b88
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401b88
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401b88
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401b88
cmp dword [ecx + 0x74], 0xe
jbe 0x401b88
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x40b624
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41a8e0
push 0x41a8d8
push str.FlsAlloc
push 0x1f
call fcn.0040b4e3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40b658
push dword [ebp + 8]
mov ecx, esi
call dword [0x418124]
call esi
jmp 0x40b65e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40b6a2
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41a8f0
push 0x41a8e8
push str.FlsGetValue
push 0x21
call fcn.0040b4e3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40b6d9
push dword [ebp + 8]
mov ecx, esi
call dword [0x418124]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40b6e1
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41a8f8
push 0x41a8f0
push str.FlsSetValue
push 0x22
call fcn.0040b4e3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40b71b
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x418124]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40eab2
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x40eb4f
push ebx
push esi
call fcn.0040ea7b
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0040ea0f
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40eafc
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40eb4e
push edi
push eax
call fcn.0040afec
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40eb1c
call fcn.0040afb2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40eb4d
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040ea0f
add esp, 0x20
test eax, eax
jne 0x40eb3b
push edi
call fcn.0040afb2
jmp 0x40eb43
push ebx
call fcn.0040afb2
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x416de0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x416e0d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x416e0d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x100040a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x100040f9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x100040f9
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x100040e8
cmp esi, edx
jae 0x100040f9
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x100040d6
cmp esi, edx
jae 0x100040f9
cmp word [esi], 0
je 0x100040f9
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x10004ff0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008a650
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x100b400c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x220], esi
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x224], esi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x10005097
call fcn.10004310
mov ecx, eax
test ecx, ecx
je 0x100050ba
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 0
push eax
mov ecx, esi
call fcn.100039a0
test al, al
jne 0x1000509e
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10005077
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.10003db0
jmp 0x1000509e
mov ecx, esi
call fcn.10004c20
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1007fac0
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100045d0
int3
Function at 0x10005440
Capabilities:
Create pipe
Create thread
Create two anonymous pipes

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100a92b8
push 0x10080073
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x100b400c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x98], esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x94], 0xc
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 1
lea eax, [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor ebx, ebx
mov dword [ebp - 0x9c], ebx
mov dword [ebp - 4], ebx
push ebx
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x10005627
push 2
push 1
push ebx
lea eax, [ebp - 0x80]
push eax
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call edi
push eax
push dword [ebp - 0x78]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x10005627
push ebx
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x10005627
push 2
push ebx
push ebx
lea eax, [esi + 0x38]
push eax
call edi
push eax
push dword [ebp - 0x7c]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x10005627
push 2
push ebx
push ebx
lea eax, [esi + 0x34]
push eax
call edi
push eax
push dword [ebp - 0x84]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x10005627
lea eax, [ebp - 0x7c]
push eax
call fcn.10005a80
lea eax, [ebp - 0x84]
push eax
call fcn.10005a80
push dword [ebp - 0xa0]
push dword [ebp - 0x80]
push dword [ebp - 0x88]
push dword [ebp - 0x78]
push dword [ebp - 0xa4]
mov ecx, esi
call fcn.100057e0
test eax, eax
je 0x10005627
lea eax, [ebp - 0x78]
push eax
call fcn.10005a80
lea eax, [ebp - 0x88]
push eax
call fcn.10005a80
lea eax, [ebp - 0x80]
push eax
call fcn.10005a80
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 8], eax
lea eax, [ebp - 0x74]
push eax
push ebx
push esi
push 0x10005aa0
push ebx
push ebx
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 4], eax
test eax, eax
je 0x10005627
mov ebx, 1
mov dword [ebp - 0x9c], ebx
mov eax, dword [ebp - 0x74]
mov dword [esi + 0xc], eax
mov dword [ebp - 4], 0xfffffffe
call fcn.1000565f
mov eax, ebx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1007fac0
mov esp, ebp
pop ebp
ret 8
Function at 0x10005710
Capabilities:
Terminate process
Terminate thread

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 4], 0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x10005770
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [esi + 0xc]
je 0x1000575f
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x3e8
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1000575f
push 0xfffffffffffffffe
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 4]
test eax, eax
je 0x10005770
push eax
call edi
mov dword [esi + 4], 0
mov eax, dword [esi + 8]
test eax, eax
je 0x10005781
push eax
call edi
mov dword [esi + 8], 0
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x100057a2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x100057a2
push eax
call edi
mov dword [esi + 0x3c], 0
mov eax, dword [esi + 0x34]
test eax, eax
je 0x100057b3
push eax
call edi
mov dword [esi + 0x34], 0
mov eax, dword [esi + 0x38]
test eax, eax
je 0x100057c4
push eax
call edi
mov dword [esi + 0x38], 0
push ebx
mov dword [esi + 0xc], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
ret

Function at 0x100057e0
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x100b400c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0x18]
push 0x8007
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x68], eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
xor eax, eax
mov dword [ebp - 0x32], 0
mov word [ebp - 0x2e], ax
xorps xmm0, xmm0
mov word [ebp - 0x34], ax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x64]
movlpd qword [ebp - 0x60], xmm0
push eax
push dword [ebp - 0x68]
movlpd qword [ebp - 0x58], xmm0
push 0
push 0x10
push 1
push 0
push 0
push dword [ebp - 0x6c]
movlpd qword [ebp - 0x50], xmm0
push 0
movlpd qword [ebp - 0x48], xmm0
movlpd qword [ebp - 0x40], xmm0
movups xmmword [ebp - 0x18], xmm0
mov dword [ebp - 0x64], 0x44
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x38], 0x101
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x10005895
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1007fac0
mov esp, ebp
pop ebp
ret 0x14
mov edx, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
push 0x20
push ecx
mov dword [edx + 0x3c], ecx
mov dword [edx + 0x14], eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov ecx, dword [ebp - 8]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1007fac0
mov esp, ebp
pop ebp
ret 0x14
Function at 0x100058e0
Capabilities:
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x100b400c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
lea eax, [ebp - 0x108]
mov dword [ebp - 0x108], 0
push eax
push 0
mov ebx, ecx
push 0
push 0
push dword [ebx + 0x38]
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x10005a30
mov edi, 0xff
nop word [eax + eax]
mov esi, dword [ebp - 0x108]
test esi, esi
je 0x10005a53
push 0x100
lea eax, [ebp - 0x104]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x10c], 0
lea eax, [ebp - 0x10c]
cmp esi, 0xff
cmova esi, edi
push 0
push eax
push esi
lea eax, [ebp - 0x104]
push eax
push dword [ebx + 0x38]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10005a30
mov eax, dword [ebp - 0x10c]
test eax, eax
je 0x10005a30
cmp eax, 0x100
jae 0x10005a73
mov byte [ebp + eax - 0x104], 0
lea eax, [ebp - 0x104]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100059b3
sub eax, edx
lea edi, [eax + 1]
cmp edi, 0x3fffffff
jg 0x100059f7
lea eax, [edi + edi]
call fcn.10089db0
mov esi, esp
test esi, esi
je 0x100059f7
push edi
push esi
xor eax, eax
push 0xffffffffffffffff
mov word [esi], ax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb ecx, ecx
and ecx, esi
jmp 0x100059f9
xor ecx, ecx
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax + 4]
push 0
lea eax, [ebp - 0x108]
mov dword [ebp - 0x108], 0
push eax
push 0
push 0
push 0
push dword [ebx + 0x38]
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
mov edi, 0xff
test eax, eax
jne 0x10005930
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x10005a5a
cmp eax, 0xe8
je 0x10005a5a
mov eax, dword [ebx]
mov ecx, ebx
push str.Read_stdout_pipe_error_r_n
call dword [eax + 8]
or eax, 0xffffffff
jmp 0x10005a5c
mov eax, 1
jmp 0x10005a5c
xor eax, eax
lea esp, [ebp - 0x118]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007fac0
mov esp, ebp
pop ebp
ret
call fcn.100801c4
int3

Function at 0x10006d30
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x100b400c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
lea ecx, [esi + 8]
call fcn.10015760
test eax, eax
je 0x10006d84
mov eax, dword [ebp + 8]
test eax, eax
je 0x10006d84
mov dword [esi + 0x414], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x1c0], eax
lea eax, [ebp - 8]
push eax
push 0
push esi
push 0x10006b80
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1007fac0
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1000dbe0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x100b400c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
lea ecx, [esi + 8]
call fcn.10015760
test eax, eax
je 0x1000dc3d
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x1000dc3c
mov ecx, esi
call fcn.1000cb90
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x1c0], eax
lea eax, [ebp - 8]
push eax
push 0
push esi
push 0x1000dbc0
push 0
push 0
mov dword [esi + 0x414], edi
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1007fac0
mov esp, ebp
pop ebp
ret 0xc

Function at 0x1000e8f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x1000e91c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x1000e93e
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x1000e940
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x1000e9c5
jg 0x1000e955
test esi, esi
je 0x1000e9c5
test ecx, ecx
jl 0x1000e9a8
jg 0x1000e95f
test eax, eax
je 0x1000e9a8
cmp edi, ecx
jg 0x1000e973
jl 0x1000e969
cmp esi, eax
jae 0x1000e973
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov eax, dword [ebx + 0x30]
sub esi, ecx
mov edx, dword [ebp + 8]
sbb edi, dword [esp + 0x10]
add edx, ecx
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
test edi, edi
jl 0x1000e9c5
jg 0x1000e9ab
test esi, esi
je 0x1000e9c5
jmp 0x1000e9ab
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x1000e9c5
push eax
push esi
push 1
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc