joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004df00
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 0x1004df59
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1004df59
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x1004df48
cmp esi, edx
jae 0x1004df59
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x1004df36
cmp esi, edx
jae 0x1004df59
cmp word [esi], 0
je 0x1004df59
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 0x10050fe0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x1026500c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
lea esi, [eax + 5]
mov dword [ebp - 0xc], ecx
push esi
mov ebx, edx
mov dword [ebp - 0x10], eax
call fcn.100786b9
add esp, 4
mov edi, eax
lea eax, [ebp - 8]
push eax
push 0x40
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push edi
call esi
lea eax, [ebp - 8]
push eax
push 0x40
push dword [ebp - 0x10]
push dword [ebp - 0xc]
call esi
push dword [ebp - 0x10]
push dword [ebp - 0xc]
push edi
call sub.VCRUNTIME140.dll_memcpy
mov edx, dword [ebp - 0x10]
add esp, 0xc
mov esi, dword [ebp - 0xc]
lea ecx, [edx + edi]
mov eax, edx
mov byte [ecx], 0xe9
sub eax, ecx
add esi, 0xfffffffb
add eax, esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ecx + 1], eax
lea ecx, [ebp - 8]
mov eax, dword [ebp - 0xc]
sub ebx, eax
push ecx
push dword [ebp - 8]
sub ebx, 5
push edx
push eax
mov byte [eax], 0xe9
mov dword [eax + 1], ebx
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10077e95
mov esp, ebp
pop ebp
ret
Function at 0x10051200
Capabilities:
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007b014
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x1026500c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov esi, ecx
cmp dword [0x10265570], 0
jne 0x1005124a
push 0x10051090
push 0
call dword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
mov dword [0x10265570], eax
test esi, esi
je 0x100512c9
push 0xc
call fcn.10078689
mov edi, eax
add esp, 4
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], 0
mov dword [edi], esi
mov dword [edi + 8], ebx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x10265908]
mov dword [ebp - 0x14], edi
cmp eax, dword [0x1026590c]
je 0x1005128b
mov dword [eax], edi
add dword [0x10265908], 4
jmp 0x10051295
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.100513c0
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0x18]
push eax
push 0x40
push 1
push dword [edi]
mov dword [ebp - 0x14], 0x40
call esi
mov ecx, dword [edi]
mov al, byte [ecx]
mov byte [edi + 4], al
lea eax, [ebp - 0x14]
push eax
mov byte [ecx], 0xcc
push dword [ebp - 0x18]
push 1
push dword [edi]
call esi
mov al, 1
jmp 0x100512cb
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10077e95
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x1026500c]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [0x10265908]
xor al, al
push esi
mov esi, dword [0x10265904]
push edi
mov edi, ecx
cmp esi, edx
je 0x100513a4
push ebx
nop dword [eax + eax]
mov ebx, dword [esi]
mov ecx, dword [ebx]
cmp ecx, edi
je 0x10051340
add esi, 4
cmp esi, edx
jne 0x10051320
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10077e95
mov esp, ebp
pop ebp
ret
test ebx, ebx
jne 0x10051349
mov byte [ebp - 0xd], al
jmp 0x1005137b
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0xc]
push eax
push 0x40
push 1
push ecx
mov dword [ebp - 8], 0x40
call edi
mov ecx, dword [ebx]
mov al, byte [ebx + 4]
mov byte [ecx], al
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
push 1
push dword [ebx]
call edi
mov ebx, dword [esi]
mov byte [ebp - 0xd], 1
push 0xc
push ebx
call fcn.100785fd
mov ecx, dword [0x10265908]
lea edx, [esi + 4]
sub ecx, edx
push ecx
push edx
push esi
call sub.VCRUNTIME140.dll_memmove
mov al, byte [ebp - 0xd]
add esp, 0x14
sub dword [0x10265908], 4
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10077e95
mov esp, ebp
pop ebp
ret
Function at 0x10058d70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 8]
mov ebx, eax
mov edi, eax
and ebx, 7
je 0x10058d9d
cmp eax, ebx
jge 0x10058d91
call fcn.100585b0
mov eax, dword [esi + 8]
mov ecx, ebx
shr dword [esi + 0x10], cl
sub eax, ebx
mov dword [esi + 8], eax
mov edi, eax
xor ecx, ecx
test eax, eax
jle 0x10058dc0
mov edx, dword [esi + 0x10]
mov al, byte [esi + 0x10]
mov byte [ebp + ecx - 4], al
inc ecx
lea eax, [edi - 8]
shr edx, 8
mov dword [esi + 0x10], edx
mov edi, eax
test eax, eax
jg 0x10058da6
mov dword [esi + 8], edi
jns 0x10058de4
mov ecx, dword [0x10265504]
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ecx*4]
mov dword [eax + 0xc], str.zlib_corrupt
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp ecx, 4
jge 0x10058e07
mov edi, dword [esi + 4]
mov eax, dword [esi]
nop
cmp eax, edi
jb 0x10058df8
xor dl, dl
jmp 0x10058dfd
mov dl, byte [eax]
inc eax
mov dword [esi], eax
mov byte [ebp + ecx - 4], dl
inc ecx
cmp ecx, 4
jl 0x10058df0
mov eax, dword [ebp - 4]
movzx ecx, byte [ebp - 1]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [ebp - 2]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
jne 0x10058dc2
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x10058e58
mov ecx, dword [0x10265504]
mov eax, dword fs:[0x2c]
pop edi
pop esi
pop ebx
mov eax, dword [eax + ecx*4]
mov dword [eax + 0xc], str.read_past_buffer
xor eax, eax
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x14]
lea eax, [edx + edi]
cmp eax, dword [esi + 0x1c]
jbe 0x10058e76
push edi
mov ecx, esi
call fcn.100586f0
add esp, 4
test eax, eax
je 0x10058ddb
push edi
push dword [esi]
push dword [esi + 0x14]
call sub.VCRUNTIME140.dll_memcpy
add dword [esi], edi
add esp, 0xc
add dword [esi + 0x14], edi
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10061c40
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007b060
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x1026500c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
wait
mov eax, dword [0x10265568]
test eax, eax
je 0x10061c81
mov eax, dword [eax + 0x7c]
jmp 0x10061c83
xor eax, eax
cmp dword [eax + 0xc], 0
jne 0x10061c8e
call fcn.10038c30
call fcn.1003a1e0
call fcn.100096c0
mov eax, dword [0x10265674]
test eax, eax
je 0x10061ca5
call eax
jmp 0x10061d01
push 0
xor edx, edx
mov ecx, str.imdx9
call fcn.1000f510
add esp, 4
push str.hello____
call fcn.1003df10
add esp, 4
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push 0
lea edx, [ebp - 0x18]
mov ecx, 0x1025b618
call fcn.1003ec50
add esp, 4
test al, al
je 0x10061cfc
push 0
push 0
push 0
push 0x10061d70
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
call fcn.10012190
call fcn.1000b640
call fcn.1000bb50
mov eax, dword [0x10265568]
mov eax, dword [eax + 0x48e8]
mov ecx, dword [eax]
sub ecx, 0xffffff80
xor eax, eax
cmp byte [ecx], al
cmove ecx, eax
call fcn.10038500
wait
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100620d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe8
mov eax, dword [0x1026500c]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [0x1026565c]
push 0x1025bd54
push 0x65
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x100622d8
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xe4], eax
test eax, eax
je 0x100622d8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0xd0]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0xd8]
push ecx
push eax
lea eax, [ebp - 0xd4]
mov dword [ebp - 0xac], 0
push eax
lea ecx, [ebp - 0xcc]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x20], esi
call fcn.10051f10
add esp, 0xc
mov dword [ebp - 0xd8], 4
mov ebx, eax
push dword [ebp - 0xe4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [0x10265668]
push 0
push 0x10266e08
push 0
mov edx, dword [ecx]
push 0x15
push 0x200
push 1
push dword [ebp - 0xd4]
push dword [ebp - 0xd0]
push ecx
call dword [edx + 0x5c]
mov eax, dword [ebp - 0xd0]
imul eax, dword [ebp - 0xd4]
shl eax, 2
push eax
call fcn.100786b9
mov edx, dword [ebp - 0xd4]
add esp, 4
xor esi, esi
mov edi, eax
test edx, edx
jle 0x10062256
mov ecx, dword [ebp - 0xd0]
nop
xor eax, eax
test ecx, ecx
jle 0x10062251
mov edx, esi
imul edx, ecx
add edx, eax
movzx ecx, byte [ebx + edx*4 + 2]
mov byte [edi + edx*4], cl
mov edx, esi
imul edx, dword [ebp - 0xd0]
add edx, eax
movzx ecx, byte [ebx + edx*4 + 1]
mov byte [edi + edx*4 + 1], cl
mov edx, esi
imul edx, dword [ebp - 0xd0]
add edx, eax
movzx ecx, byte [ebx + edx*4]
mov byte [edi + edx*4 + 2], cl
mov edx, esi
imul edx, dword [ebp - 0xd0]
add edx, eax
inc eax
movzx ecx, byte [ebx + edx*4 + 3]
mov byte [edi + edx*4 + 3], cl
mov ecx, dword [ebp - 0xd0]
cmp eax, ecx
jl 0x100621f6
mov edx, dword [ebp - 0xd4]
inc esi
cmp esi, edx
jl 0x100621f0
mov eax, dword [0x10266e08]
lea edx, [ebp - 0xe0]
push 0
push 0
push edx
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x4c]
xor esi, esi
cmp dword [ebp - 0xd4], esi
jle 0x100622c2
nop dword [eax + eax]
mov eax, dword [ebp - 0xd0]
imul eax, dword [ebp - 0xd8]
push eax
mov eax, esi
imul eax, dword [ebp - 0xd0]
imul eax, dword [ebp - 0xd8]
add eax, edi
push eax
mov eax, dword [ebp - 0xe0]
imul eax, esi
add eax, dword [ebp - 0xdc]
push eax
call sub.VCRUNTIME140.dll_memcpy
inc esi
add esp, 0xc
cmp esi, dword [ebp - 0xd4]
jl 0x10062280
mov eax, dword [0x10266e08]
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
push edi
call fcn.10078684
add esp, 4
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10077e95
mov esp, ebp
pop ebp
ret
Function at 0x100640b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007b3a7
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1026500c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], edx
push 0xa4
call fcn.10078689
mov ebx, eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], 0
push 0xa4
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
mov esi, dword [ebp + 8]
lea edi, [ebx + 4]
mov eax, dword [ebp + 0xc]
mov ecx, 0x1e
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x10]
add esp, 0x10
mov dword [ebx + 0x7c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0x88], eax
mov eax, dword [ebp + 0x14]
mov dword [ebx + 0x84], eax
mov eax, dword [ebp + 0x18]
mov dword [ebx + 0x80], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebx + 0x8c], eax
mov eax, dword [ebp + 0x20]
mov dword [ebx + 0x90], eax
mov eax, dword [ebp + 0x24]
mov dword [ebx + 0x94], eax
mov al, byte [ebp + 0x28]
mov dword [ebx], 0
mov dword [ebx + 0x98], edi
mov byte [ebx + 0x9c], al
mov dword [ebp - 4], 0xffffffff
test al, al
je 0x100641b9
mov ecx, ebx
call fcn.10063f40
mov esi, eax
test esi, esi
je 0x10064197
mov dword [ebx + 0xa0], esi
test edi, edi
je 0x1006418a
mov byte [edi], 1
mov dword [edi + 4], esi
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x10064197
push ebx
call eax
add esp, 4
push 0xa4
push ebx
call fcn.100785fd
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push ebx
push 0x100641f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x100641d8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10065710
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [0x10266dfc]
test eax, eax
jne 0x100658d7
cmp dword [0x10266dd8], eax
jne 0x100658d7
push str.mono.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x10266dd8], eax
test eax, eax
je 0x100658d2
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.mono_get_root_domain
push eax
call esi
push str.mono_thread_attach
push dword [0x10266dd8]
mov dword [0x102656b0], eax
call esi
push str.mono_thread_detach
push dword [0x10266dd8]
mov dword [0x102656bc], eax
call esi
push str.mono_assembly_foreach
push dword [0x10266dd8]
call esi
push str.mono_assembly_get_image
push dword [0x10266dd8]
mov dword [0x10265694], eax
call esi
push str.mono_image_get_name
push dword [0x10266dd8]
mov dword [0x102656b8], eax
call esi
push str.mono_class_from_name_case
push dword [0x10266dd8]
mov dword [0x102656a8], eax
call esi
push str.mono_class_from_name
push dword [0x10266dd8]
call esi
push str.mono_class_vtable
push dword [0x10266dd8]
mov dword [0x1026568c], eax
call esi
push str.mono_vtable_get_static_field_data
push dword [0x10266dd8]
mov dword [0x102656b4], eax
call esi
push str.mono_class_get_method_from_name
push dword [0x10266dd8]
mov dword [0x102656ac], eax
call esi
push str.mono_method_get_class
push dword [0x10266dd8]
call esi
push str.mono_class_is_generic
push dword [0x10266dd8]
mov dword [0x10265688], eax
call esi
push str.mono_class_get_methods
push dword [0x10266dd8]
mov dword [0x1026569c], eax
call esi
push str.mono_compile_method
push dword [0x10266dd8]
mov dword [0x10265698], eax
call esi
push str.mono_method_get_name
push dword [0x10266dd8]
mov dword [0x10265690], eax
call esi
push str.mono_method_signature
push dword [0x10266dd8]
mov dword [0x102656c0], eax
call esi
push str.mono_method_get_param_names
push dword [0x10266dd8]
call esi
push str.mono_signature_get_param_count
push dword [0x10266dd8]
call esi
push str.mono_string_new_utf16
push dword [0x10266dd8]
call esi
push str.mono_string_new
push dword [0x10266dd8]
mov dword [0x102656a0], eax
call esi
push str.mono_string_new_size
push dword [0x10266dd8]
call esi
push str.mono_class_get_property_from_name
push dword [0x10266dd8]
call esi
push str.mono_property_get_set_method
push dword [0x10266dd8]
call esi
push 1
call fcn.10078689
add esp, 4
mov dword [0x10266dfc], eax
pop esi
ret
mov eax, dword [0x10266dfc]
ret
Function at 0x10065e00
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007b930
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1026500c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi], edx
test edx, edx
je 0x10065eeb
mov dword [ebp - 4], 0
mov eax, dword [edx]
mov eax, dword [eax + 8]
mov dword [esi + 4], eax
mov eax, dword [edx]
mov eax, dword [eax + 0xc]
mov dword [esi + 8], eax
mov eax, dword [edx]
mov eax, dword [eax + 0xb4]
add eax, 0xc
mov dword [esi + 0xc], eax
push eax
lea eax, [esi + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10067f90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007bfe8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x1026500c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov edx, dword [edi + 4]
cmp edx, dword [edi + 8]
je 0x10068039
mov dword [ebp - 0x10], edx
lea esi, [edx + 0x2c]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov eax, dword [ecx + 8]
mov dword [edx + 8], eax
mov eax, dword [ecx + 0xc]
mov dword [edx + 0xc], eax
mov eax, dword [ecx + 0x10]
mov dword [edx + 0x10], eax
mov eax, dword [ecx + 0x14]
mov dword [edx + 0x14], eax
mov eax, dword [ecx + 0x18]
mov dword [edx + 0x18], eax
mov eax, dword [ecx + 0x1c]
mov dword [edx + 0x1c], eax
mov eax, dword [ecx + 0x20]
mov dword [edx + 0x20], eax
mov eax, dword [ecx + 0x24]
mov dword [edx + 0x24], eax
mov al, byte [ecx + 0x28]
mov byte [edx + 0x28], al
mov dword [ebp + 8], esi
mov ecx, dword [ecx + 0x2c]
sub ecx, 0x10
call fcn.100503f0
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0xffffffff
add dword [edi + 4], 0x30
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push dword [ebp + 8]
push edx
call fcn.10068f50
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x1006c7a0
Capabilities:
Execute command
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp byte [0x102659bc], 0
je 0x1006c9f9
inc dword [0x1026597c]
cmp dword [0x10265964], 0
jne 0x1006c95b
inc dword [0x102659b0]
cmp byte [0x1026598e], 0
mov byte [0x102656d6], 0
je 0x1006c83c
mov eax, dword [0x102659a0]
cmp eax, dword [0x102659a4]
jl 0x1006c83c
mov eax, dword [0x102659ac]
test eax, eax
jne 0x1006c808
mov eax, dword [0x1026599c]
add eax, 0xfffffffe
mov byte [0x10265993], 1
mov dword [0x102659ac], eax
je 0x1006c83c
sub eax, 1
mov dword [0x102659ac], eax
jne 0x1006c83c
mov eax, dword [0x102659a8]
sub eax, 0
je 0x1006c8c1
sub eax, 1
je 0x1006c8ae
sub eax, 1
jne 0x1006c83c
push str.shutdown__s__t_0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
add esp, 4
call fcn.1006d0f0
cmp dword [0x10265960], 0
je 0x1006c98f
mov ecx, dword [0x102659b0]
cmp ecx, 2
jne 0x1006c86d
cmp byte [0x1026598b], 0
je 0x1006c86d
call fcn.10066470
mov ecx, dword [0x102659b0]
movzx eax, byte [0x1026596e]
sub eax, 1
je 0x1006c920
sub eax, 1
je 0x1006c8d4
sub eax, 1
jne 0x1006c98f
cmp byte [0x10265988], al
je 0x1006c985
mov eax, dword [0x10265998]
cmp eax, dword [0x1026599c]
jl 0x1006c8c9
call fcn.10066360
jmp 0x1006c985
mov byte [0x10265988], 0
mov byte [0x1026598e], 0
jmp 0x1006c83c
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
inc eax
mov dword [0x10265998], eax
jmp 0x1006c98f
cmp byte [0x10265989], 0
je 0x1006c98f
mov eax, 0x66666667
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax + eax*4]
sub ecx, eax
jne 0x1006c98f
mov dword [ebp - 0x14], ecx
lea edx, [ecx + 0x14]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x83111222
mov dword [ebp - 0x18], 0x20eef
call fcn.10066190
jmp 0x1006c98f
cmp byte [0x1026598a], 0
je 0x1006c98f
mov edx, 0x14
mov dword [ebp - 0x1c], 0x83111222
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x18], 0x10eef
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0x20000
mov dword [ebp - 0xc], 0
call fcn.10066190
jmp 0x1006c98f
cmp byte [0x102656d6], 0
jne 0x1006c98f
mov eax, dword [0x10265cf0]
inc dword [0x102659a0]
mov byte [0x102656d6], 1
mov dword [0x102659b0], 0
mov dword [0x10265cf4], eax
mov dword [0x10265998], 0
call fcn.1006cf80
cmp byte [0x10265995], 0
je 0x1006c9f9
mov eax, dword [0x10265980]
test eax, eax
je 0x1006c9b0
dec eax
mov dword [0x10265980], eax
mov esp, ebp
pop ebp
ret
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
xor ebx, ebx
mov dword [ebp - 8], 0x87040522
mov word [ebp - 4], 0x1f1
nop word [eax + eax]
lea eax, [ebx + 1]
mov edx, 7
lea ecx, [ebp - 8]
mov byte [ebp - 2], al
call fcn.10066190
push 0x14
call esi
inc ebx
cmp ebx, 5
jb 0x1006c9d0
pop esi
mov dword [0x10265980], 0x258
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1006ca00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007d155
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x1026500c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x10266e00], 0
jne 0x1006caf5
mov byte [0x10266e00], 1
mov dl, 0x43
mov dword [ebp - 0x1c], 5
mov bl, 0xfe
mov dword [ebp - 0x18], 0x1e15390b
xor ecx, ecx
mov dword [ebp - 0x14], 0xfe434129
mov al, byte [ebp + ecx - 0x18]
sub al, bl
xor al, dl
mov byte [ebp + ecx - 0x18], al
inc ecx
mov eax, dword [ebp - 0x1c]
cmp ecx, eax
jae 0x1006ca73
mov bl, byte [ebp - 0x11]
mov dl, byte [ebp - 0x12]
jmp 0x1006ca57
mov byte [ebp + eax - 0x18], 0
lea ecx, [ebp - 0x10]
lea eax, [ebp - 0x18]
push eax
call fcn.1004fb40
mov dword [ebp - 4], 0
push dword [ebp - 0x10]
push 0
push 0xf001f
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov ebx, eax
test ebx, ebx
je 0x1006cad3
push 0
push 0
push 0
push 0xf001f
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x1006cacc
mov esi, eax
mov ecx, 0x9e
mov edi, 0x10265d08
rep movsd dword es:[edi], dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1006caf5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push 0
push 0
push 0x1006cce0
push 0
push 0
mov byte [0x102656d5], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x102656d0], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret