joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1007e9a0
Capabilities:
Resume thread

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x10140fb4], eax
je 0x1007e9b6
mov eax, 0x10dd
pop ecx
ret
push ebx
push esi
mov esi, dword [0x10140fc4]
push edi
test esi, esi
je 0x1007ea10
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
lea eax, [esp + 0xc]
push eax
xor eax, eax
mov al, byte [edx + 0x17]
push ecx
mov ecx, dword [esi + 0xc]
push eax
push ecx
call ebx
mov eax, dword [esi + 4]
test eax, eax
jne 0x1007e9ff
mov eax, dword [esi + 0x10]
test eax, eax
je 0x1007e9ff
push eax
call fcn.1007eaa0
add esp, 4
mov dword [esi + 0x10], 0
mov edi, dword [esi]
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov esi, edi
test edi, edi
jne 0x1007e9c9
mov dword [0x10140fc4], 0
call fcn.1007ea70
mov esi, dword [0x10140fc0]
test esi, esi
je 0x1007ea54
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esi + 4]
push edx
call ebx
mov eax, dword [esi + 4]
push eax
call ebp
mov edi, dword [esi]
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov esi, edi
test edi, edi
jne 0x1007ea36
pop ebp
xor eax, eax
pop edi
pop esi
mov dword [0x10140fc0], eax
mov dword [0x10140fb4], eax
pop ebx
pop ecx
ret
Function at 0x1007f1d0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Hook routines via microsoft detours

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
cmp esi, 0x7ff80000
push edi
jbe 0x1007f1ef
lea ebx, [esi - 0x7ff80000]
mov dword [esp + 0x34], ebx
jmp 0x1007f1fb
mov dword [esp + 0x34], 0x10000
mov ebx, dword [esp + 0x34]
cmp esi, 0x80000000
jae 0x1007f20f
lea edi, [esi + 0x7ff80000]
mov dword [esp + 0x10], edi
jmp 0x1007f21b
mov dword [esp + 0x10], 0xfff80000
mov edi, dword [esp + 0x10]
mov eax, dword [0x10140fac]
mov edx, dword [0x10140fa8]
test eax, eax
jne 0x1007f235
test edx, edx
je 0x1007f248
mov eax, edx
mov dword [0x10140fac], eax
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x1007f248
cmp ecx, ebx
jb 0x1007f248
cmp ecx, edi
jbe 0x1007f3ad
mov eax, edx
test edx, edx
mov dword [0x10140fac], eax
je 0x1007f276
test eax, eax
je 0x1007f26a
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x1007f26a
cmp ecx, ebx
jb 0x1007f26a
cmp ecx, edi
jbe 0x1007f3ad
mov eax, dword [eax + 4]
test eax, eax
mov dword [0x10140fac], eax
jne 0x1007f257
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov eax, esi
and eax, 0xffff
sub esi, eax
cmp esi, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, esi
jbe 0x1007f2ef
cmp edi, 0x70000000
jb 0x1007f2a6
cmp edi, 0x80000000
ja 0x1007f2a6
mov edi, 0x6fff0000
lea ecx, [esp + 0x14]
push 0x1c
push ecx
push edi
call ebp
test eax, eax
je 0x1007f2ef
mov ecx, dword [esp + 0x24]
mov eax, 0x10000
cmp ecx, eax
jne 0x1007f2c7
cmp dword [esp + 0x20], eax
jae 0x1007f2db
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x34]
lea edi, [edx - 0x10000]
cmp edi, eax
ja 0x1007f291
jmp 0x1007f2ef
push 0x40
push 0x3000
push eax
push edi
call ebx
test eax, eax
mov dword [0x10140fac], eax
jne 0x1007f35a
mov edi, dword [esp + 0x10]
cmp esi, edi
jae 0x1007f350
cmp esi, 0x70000000
jb 0x1007f30c
cmp esi, 0x80000000
ja 0x1007f30c
mov esi, 0x80010000
lea eax, [esp + 0x14]
push 0x1c
push eax
push esi
call ebp
test eax, eax
je 0x1007f350
mov ecx, dword [esp + 0x24]
mov eax, 0x10000
cmp ecx, eax
jne 0x1007f341
cmp dword [esp + 0x20], eax
jb 0x1007f341
push 0x40
push 0x3000
push eax
push esi
call ebx
test eax, eax
mov dword [0x10140fac], eax
jne 0x1007f35a
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
lea esi, [ecx + edx]
cmp esi, edi
jb 0x1007f2f7
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret
mov dword [eax], 0x52727464
mov eax, dword [0x10140fac]
xor ecx, ecx
mov dword [eax + 8], ecx
mov edx, dword [0x10140fac]
mov eax, dword [0x10140fa8]
mov dword [edx + 4], eax
mov eax, dword [0x10140fac]
mov dword [0x10140fa8], eax
add eax, 0xffe0
mov edx, 0x7fd
mov dword [eax + 0x18], ecx
mov ecx, eax
sub eax, 0x20
dec edx
jne 0x1007f38c
mov edx, dword [0x10140fac]
mov ebx, dword [esp + 0x34]
mov edi, dword [esp + 0x10]
mov dword [edx + 8], ecx
mov eax, dword [0x10140fac]
mov edx, dword [eax + 8]
cmp edx, ebx
jb 0x1007f350
cmp edx, edi
ja 0x1007f350
mov ecx, dword [edx + 0x18]
mov edi, edx
mov dword [eax + 8], ecx
mov ecx, 8
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop edi
pop esi
pop ebp
mov eax, edx
pop ebx
add esp, 0x20
ret
Function at 0x1007f3e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a9aa8
push 0x1007e3d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1007f46a
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x34]
cmp word [eax], 0x5a4d
jne 0x1007f463
mov ecx, dword [eax + 0x3c]
add ecx, eax
mov dword [ebp - 0x3c], ecx
cmp dword [ecx], 0x4550
jne 0x1007f463
cmp word [ecx + 0x14], 0
mov dword [ebp - 4], 0xffffffff
je 0x1007f46a
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10089a30
Capabilities:
Create pipe
Create two anonymous pipes

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0xfffffffffffffff5
mov dword [esp + 0x2c], 0xc
mov dword [esp + 0x34], 1
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
lea eax, [esp + 0x28]
push 0
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x1c]
or ebx, 0xffffffff
push ecx
push edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x10089a87
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 0
lea eax, [esp + 0x28]
push 0
push eax
mov dword [esp + 0x30], ebx
call edi
mov ecx, dword [esp + 0x24]
push eax
push ecx
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push eax
call ebp
test eax, eax
push 1
push 1
jne 0x10089add
lea edx, [esp + 0x1c]
mov ecx, esi
push edx
call fcn.1008a3d0
push 1
lea eax, [esp + 0x14]
push 1
push eax
mov ecx, esi
call fcn.1008a3d0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.1008a3d0
lea edx, [esp + 0x28]
push 0
lea eax, [esp + 0x20]
push edx
lea ecx, [esp + 0x20]
push eax
push ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x10089b14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
push 2
push 0
lea edx, [esp + 0x2c]
push 0
push edx
mov dword [esp + 0x34], ebx
call edi
push eax
mov eax, dword [esp + 0x30]
push eax
call edi
push eax
call ebp
test eax, eax
push 1
push 1
jne 0x10089b7e
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.1008a3d0
push 1
lea edx, [esp + 0x14]
push 1
push edx
mov ecx, esi
call fcn.1008a3d0
push 1
lea eax, [esp + 0x1c]
push 1
push eax
mov ecx, esi
call fcn.1008a3d0
push 1
lea ecx, [esp + 0x20]
push 1
push ecx
mov ecx, esi
call fcn.1008a3d0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret
lea edx, [esp + 0x24]
mov ecx, esi
push edx
call fcn.1008a3d0
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
push ecx
mov ecx, esi
call fcn.10089c50
test eax, eax
jne 0x10089be9
push 1
lea edx, [esp + 0x24]
push 1
push edx
mov ecx, esi
call fcn.1008a3d0
push 1
lea eax, [esp + 0x14]
push 1
push eax
mov ecx, esi
call fcn.1008a3d0
push 1
lea ecx, [esp + 0x1c]
push 1
push ecx
mov ecx, esi
call fcn.1008a3d0
push 1
lea edx, [esp + 0x28]
push 1
push edx
mov ecx, esi
call fcn.1008a3d0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
push ecx
mov ecx, esi
call fcn.10089d10
push 1
lea edx, [esp + 0x24]
push 1
push edx
mov ecx, esi
mov edi, eax
call fcn.1008a3d0
push 1
lea eax, [esp + 0x14]
push 1
push eax
mov ecx, esi
call fcn.1008a3d0
push 1
lea ecx, [esp + 0x1c]
push 1
push ecx
mov ecx, esi
call fcn.1008a3d0
push 1
lea edx, [esp + 0x28]
push 1
push edx
mov ecx, esi
call fcn.1008a3d0
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
Function at 0x10089c50
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x54
mov edx, dword [eax]
push esi
cmp edx, 0xffffffff
push edi
je 0x10089cf8
mov ecx, dword [esp + 0x64]
mov esi, dword [ecx]
cmp esi, 0xffffffff
je 0x10089cf8
xor eax, eax
mov ecx, 0x11
mov dword [esp + 8], eax
lea edi, [esp + 0x18]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x58], edx
or ecx, 0x101
mov dword [esp + 0x54], edx
mov dword [esp + 0x44], ecx
lea ecx, [esp + 8]
lea edx, [esp + 0x18]
push ecx
push edx
push eax
push eax
push eax
push 1
push eax
push eax
push 0x10136820
push eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], 0x44
mov dword [esp + 0x78], esi
mov word [esp + 0x70], ax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
test esi, esi
je 0x10089cf8
mov eax, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 0xc]
push ecx
call edi
mov eax, esi
pop edi
pop esi
add esp, 0x54
ret 8
pop edi
xor eax, eax
pop esi
add esp, 0x54
ret 8
Function at 0x1008ccc0
Capabilities:
Create pipe
Create two anonymous pipes

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0xfffffffffffffff5
mov dword [esp + 0x2c], 0xc
mov dword [esp + 0x34], 1
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
lea eax, [esp + 0x28]
push 0
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x1c]
or ebx, 0xffffffff
push ecx
push edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x1008cd17
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 0
lea eax, [esp + 0x28]
push 0
push eax
mov dword [esp + 0x30], ebx
call edi
mov ecx, dword [esp + 0x24]
push eax
push ecx
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push eax
call ebp
test eax, eax
push 1
push 1
jne 0x1008cd6d
lea edx, [esp + 0x1c]
mov ecx, esi
push edx
call fcn.1008d400
push 1
lea eax, [esp + 0x14]
push 1
push eax
mov ecx, esi
call fcn.1008d400
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.1008d400
lea edx, [esp + 0x28]
push 0
lea eax, [esp + 0x20]
push edx
lea ecx, [esp + 0x20]
push eax
push ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x1008cda4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
push 2
push 0
lea edx, [esp + 0x2c]
push 0
push edx
mov dword [esp + 0x34], ebx
call edi
push eax
mov eax, dword [esp + 0x30]
push eax
call edi
push eax
call ebp
test eax, eax
push 1
push 1
jne 0x1008ce0e
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.1008d400
push 1
lea edx, [esp + 0x14]
push 1
push edx
mov ecx, esi
call fcn.1008d400
push 1
lea eax, [esp + 0x1c]
push 1
push eax
mov ecx, esi
call fcn.1008d400
push 1
lea ecx, [esp + 0x20]
push 1
push ecx
mov ecx, esi
call fcn.1008d400
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret
lea edx, [esp + 0x24]
mov ecx, esi
push edx
call fcn.1008d400
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
push ecx
mov ecx, esi
call fcn.1008d120
test eax, eax
jne 0x1008ce79
push 1
lea edx, [esp + 0x24]
push 1
push edx
mov ecx, esi
call fcn.1008d400
push 1
lea eax, [esp + 0x14]
push 1
push eax
mov ecx, esi
call fcn.1008d400
push 1
lea ecx, [esp + 0x1c]
push 1
push ecx
mov ecx, esi
call fcn.1008d400
push 1
lea edx, [esp + 0x28]
push 1
push edx
mov ecx, esi
call fcn.1008d400
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
push ecx
mov ecx, esi
call fcn.1008d1e0
push 1
lea edx, [esp + 0x24]
push 1
push edx
mov ecx, esi
mov edi, eax
call fcn.1008d400
push 1
lea eax, [esp + 0x14]
push 1
push eax
mov ecx, esi
call fcn.1008d400
push 1
lea ecx, [esp + 0x1c]
push 1
push ecx
mov ecx, esi
call fcn.1008d400
push 1
lea edx, [esp + 0x28]
push 1
push edx
mov ecx, esi
call fcn.1008d400
mov ecx, esi
call fcn.1008de50
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
Function at 0x1008cef0
Capabilities:
Create pipe
Create two anonymous pipes

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0xfffffffffffffff5
mov dword [esp + 0x2c], 0xc
mov dword [esp + 0x34], 1
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
lea eax, [esp + 0x28]
push 0
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x1c]
or ebx, 0xffffffff
push ecx
push edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x1008cf47
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 0
lea eax, [esp + 0x28]
push 0
push eax
mov dword [esp + 0x30], ebx
call edi
mov ecx, dword [esp + 0x24]
push eax
push ecx
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push eax
call ebp
test eax, eax
push 1
push 1
jne 0x1008cf9d
lea edx, [esp + 0x1c]
mov ecx, esi
push edx
call fcn.1008d400
push 1
lea eax, [esp + 0x14]
push 1
push eax
mov ecx, esi
call fcn.1008d400
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.1008d400
lea edx, [esp + 0x28]
push 0
lea eax, [esp + 0x20]
push edx
lea ecx, [esp + 0x20]
push eax
push ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x1008cfd4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
push 2
push 0
lea edx, [esp + 0x2c]
push 0
push edx
mov dword [esp + 0x34], ebx
call edi
push eax
mov eax, dword [esp + 0x30]
push eax
call edi
push eax
call ebp
test eax, eax
push 1
push 1
jne 0x1008d03e
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.1008d400
push 1
lea edx, [esp + 0x14]
push 1
push edx
mov ecx, esi
call fcn.1008d400
push 1
lea eax, [esp + 0x1c]
push 1
push eax
mov ecx, esi
call fcn.1008d400
push 1
lea ecx, [esp + 0x20]
push 1
push ecx
mov ecx, esi
call fcn.1008d400
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret
lea edx, [esp + 0x24]
mov ecx, esi
push edx
call fcn.1008d400
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
push ecx
mov ecx, esi
call fcn.1008d120
test eax, eax
jne 0x1008d0a9
push 1
lea edx, [esp + 0x24]
push 1
push edx
mov ecx, esi
call fcn.1008d400
push 1
lea eax, [esp + 0x14]
push 1
push eax
mov ecx, esi
call fcn.1008d400
push 1
lea ecx, [esp + 0x1c]
push 1
push ecx
mov ecx, esi
call fcn.1008d400
push 1
lea edx, [esp + 0x28]
push 1
push edx
mov ecx, esi
call fcn.1008d400
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
push ecx
mov ecx, esi
call fcn.1008d1e0
push 1
lea edx, [esp + 0x24]
push 1
push edx
mov ecx, esi
mov edi, eax
call fcn.1008d400
push 1
lea eax, [esp + 0x14]
push 1
push eax
mov ecx, esi
call fcn.1008d400
push 1
lea ecx, [esp + 0x1c]
push 1
push ecx
mov ecx, esi
call fcn.1008d400
push 1
lea edx, [esp + 0x28]
push 1
push edx
mov ecx, esi
call fcn.1008d400
mov ecx, esi
call fcn.1008ee60
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
Function at 0x1008d120
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x54
mov edx, dword [eax]
push esi
cmp edx, 0xffffffff
push edi
je 0x1008d1c8
mov ecx, dword [esp + 0x64]
mov esi, dword [ecx]
cmp esi, 0xffffffff
je 0x1008d1c8
xor eax, eax
mov ecx, 0x11
mov dword [esp + 8], eax
lea edi, [esp + 0x18]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x58], edx
or ecx, 0x101
mov dword [esp + 0x54], edx
mov dword [esp + 0x44], ecx
lea ecx, [esp + 8]
lea edx, [esp + 0x18]
push ecx
push edx
push eax
push eax
push eax
push 1
push eax
push eax
push 0x10136820
push eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], 0x44
mov dword [esp + 0x78], esi
mov word [esp + 0x70], ax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
test esi, esi
je 0x1008d1c8
mov eax, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 0xc]
push ecx
call edi
mov eax, esi
pop edi
pop esi
add esp, 0x54
ret 8
pop edi
xor eax, eax
pop esi
add esp, 0x54
ret 8
Function at 0x1008f7c0
Capabilities:
Hash data with md5

Disassembly:
mov edx, dword [esp + 4]
push edi
mov ecx, 0x17
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [edx], 0x67452301
mov dword [edx + 4], 0xefcdab89
mov dword [edx + 8], 0x98badcfe
mov dword [edx + 0xc], 0x10325476
mov dword [edx + 0x10], eax
mov dword [edx + 0x14], eax
mov dword [edx + 0x58], eax
pop edi
ret
Function at 0x10091b40
Capabilities:
Copy file
Delete file
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x100a7932
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
lea eax, [esp + 0x14]
push 0
push eax
xor bl, bl
call fcn.10091e80
add esp, 8
mov eax, dword [esp + 0x18]
mov dword [esp + 0x2c], 0
test eax, eax
jne 0x10091b7f
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0
push 3
push 0
push 1
push bind
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x10091c5d
lea ecx, [esp + 0xc]
push 1
push ecx
call fcn.10091e80
lea edx, [esp + 0x24]
mov byte [esp + 0x3c], 1
push edx
call fcn.10092940
add esp, 0xc
test al, al
jne 0x10091c13
lea eax, [esp + 0xc]
push eax
call fcn.10092940
add esp, 4
test al, al
je 0x10091c13
mov ecx, dword [esp + 0x20]
mov edx, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
test ecx, ecx
jne 0x10091be7
mov ecx, edx
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x10091bf1
mov eax, edx
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x10091c13
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x10091c0c
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x10091c20
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push 0
push 0
push 3
push 0
push 1
push bind
push eax
call edi
mov ecx, dword [esp + 0x10]
mov esi, eax
test ecx, ecx
je 0x10091c58
mov al, byte [ecx - 1]
test al, al
je 0x10091c4e
cmp al, 0xff
je 0x10091c4e
dec al
mov byte [ecx - 1], al
jmp 0x10091c58
dec ecx
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp esi, 0xffffffff
je 0x10091c94
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0x10
jb 0x10091c8d
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x3c]
push 0
push ecx
push edi
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10091c8d
cmp dword [esp + 0x3c], edi
jne 0x10091c8d
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x20]
pop edi
test ecx, ecx
pop esi
je 0x10091ccc
mov al, byte [ecx - 1]
test al, al
je 0x10091cc2
cmp al, 0xff
je 0x10091cc2
dec al
mov byte [ecx - 1], al
mov al, bl
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
dec ecx
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [esp + 0x24]
mov al, bl
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
Function at 0x10091ce0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x100a7949
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
lea eax, [esp + 0x14]
push 0
push eax
xor bl, bl
call fcn.10091e80
add esp, 8
mov eax, dword [esp + 0x18]
mov dword [esp + 0x2c], 0
test eax, eax
jne 0x10091d1f
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0
push 2
push 0
push 1
push 0x40000000
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x10091d99
lea ecx, [esp + 0xc]
push 1
push ecx
call fcn.10091e80
mov eax, dword [esp + 0x18]
add esp, 8
test eax, eax
jne 0x10091d5c
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push 0
push 0
push 2
push 0
push 1
push 0x40000000
push eax
call edi
mov ecx, dword [esp + 0x10]
mov esi, eax
test ecx, ecx
je 0x10091d94
mov al, byte [ecx - 1]
test al, al
je 0x10091d8a
cmp al, 0xff
je 0x10091d8a
dec al
mov byte [ecx - 1], al
jmp 0x10091d94
dec ecx
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp esi, 0xffffffff
je 0x10091dc2
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x3c]
push 0
push edx
push 0x10
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10091dbb
cmp dword [esp + 0x3c], 0x10
jne 0x10091dbb
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x20]
pop edi
test ecx, ecx
pop esi
je 0x10091dfa
mov al, byte [ecx - 1]
test al, al
je 0x10091df0
cmp al, 0xff
je 0x10091df0
dec al
mov byte [ecx - 1], al
mov al, bl
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
dec ecx
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [esp + 0x24]
mov al, bl
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 4