joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42a004]
jne 0x40100a
repz ret
jmp fcn.00401a91

Function at 0x405ebb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42a004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040408b
and dword [ebp - 0x14], 0
cmp dword [0x42c6fc], 0
mov dword [ebp - 0x18], eax
jne 0x405f6e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x406016
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x406016
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x42c6fc], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x42c700], eax
call edi
push eax
call esi
push 0x42805c
push ebx
mov dword [0x42c704], eax
call edi
push eax
call esi
mov dword [0x42c70c], eax
test eax, eax
je 0x405f6e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x42c708], eax
mov eax, dword [0x42c708]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x405fc7
cmp dword [0x42c70c], ecx
je 0x405fc7
push eax
call esi
push dword [0x42c70c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x405fc7
test ebx, ebx
je 0x405fc7
call edi
test eax, eax
je 0x405fbe
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x405fbe
test byte [ebp - 8], 1
jne 0x405fc7
or dword [ebp + 0x10], 0x200000
jmp 0x405ffa
mov eax, dword [0x42c700]
cmp eax, dword [ebp - 0x18]
je 0x405ffa
push eax
call esi
test eax, eax
je 0x405ffa
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x405ffa
mov eax, dword [0x42c704]
cmp eax, dword [ebp - 0x18]
je 0x405ffa
push eax
call esi
test eax, eax
je 0x405ffa
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42c6fc]
call esi
test eax, eax
je 0x406016
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x406018
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret

Function at 0x426490
Capabilities:
Get disk information

Disassembly:
mov eax, dword [0x42e0dc]
push ebx
push esi
mov esi, dword [0x42ddfc]
mov ebx, eax
cmp eax, 0x5dd
jne 0x4264b2
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov eax, dword [0x42b1c0]
call fcn.00426380
cmp dword [0x42e0dc], 0x2f
jne 0x4264cd
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
push esi
call fcn.004263c0
add esp, 4
cmp dword [0x42e0dc], 0x568
pop esi
pop ebx
jne 0x4264fa
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNumaProcessorNode]
ret
Function at 0x10005880
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10037dfb
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x10045ca0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.1000fb04
push 4
mov dword [ebp - 4], 0
call fcn.10010b12
mov edi, eax
add esp, 4
test edi, edi
je 0x10005900
call fcn.1000f616
mov dword [edi], eax
call fcn.1000f357
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.1000f1c0
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x100058f6
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.1000f1e8
jmp 0x10005902
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
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 0x1000ad60
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003869b
mov eax, dword fs:[0]
push eax
sub esp, 0xfc4
mov eax, dword [0x10045ca0]
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 edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push 0xf9f
lea eax, [ebp - 0xfaf]
push ebx
push eax
mov dword [ebp - 0xfd0], ebx
mov byte [ebp - 0xfb0], bl
call fcn.100115b0
add esp, 0xc
push 0xfa0
lea ecx, [ebp - 0xfb0]
push ecx
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp byte [ebp - 0xfb0], bl
jne 0x1000ae4a
mov dword [ebp - 0xfb8], 0xf
mov dword [ebp - 0xfbc], ebx
mov byte [ebp - 0xfcc], bl
lea edx, [ebp - 0xfcc]
push edx
push esi
mov dword [ebp - 4], ebx
call fcn.100039e0
mov eax, dword [ebp - 0xfcc]
mov esi, 0x10
add esp, 8
cmp dword [ebp - 0xfb8], esi
jae 0x1000ae14
lea eax, [ebp - 0xfcc]
push 0xfa0
push eax
lea eax, [ebp - 0xfb0]
push eax
call fcn.10011ee0
add esp, 0xc
mov byte [ebp - 0x11], bl
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0xfb8], esi
jb 0x1000ae4a
mov ecx, dword [ebp - 0xfcc]
push ecx
call fcn.100103f6
add esp, 4
lea edx, [ebp - 0xfb0]
push edx
call fcn.10011545
lea eax, [ebp - 0xfb0]
add esp, 4
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1000ae62
sub eax, edx
xor ecx, ecx
cmp eax, ebx
jbe 0x1000ae88
cmp byte [ebp + ecx - 0xfb0], 0x92
jne 0x1000ae83
mov byte [ebp + ecx - 0xfb0], 0x27
inc ecx
cmp ecx, eax
jb 0x1000ae71
lea eax, [ebp - 0xfb0]
push 0xd
push eax
call fcn.10011e20
add esp, 8
cmp eax, ebx
je 0x1000aec6
lea ecx, [ecx]
lea ecx, [eax + 1]
mov edx, eax
sub edx, ecx
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
cmp al, bl
jne 0x1000aea7
lea ecx, [ebp - 0xfb0]
push 0xd
push ecx
call fcn.10011e20
add esp, 8
cmp eax, ebx
jne 0x1000aea0
lea edx, [ebp - 0xfb0]
push 0xa
push edx
call fcn.10011e20
add esp, 8
cmp eax, ebx
je 0x1000af06
jmp 0x1000aee0
lea ecx, [eax + 1]
mov edx, eax
sub edx, ecx
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
cmp al, bl
jne 0x1000aee7
lea eax, [ebp - 0xfb0]
push 0xa
push eax
call fcn.10011e20
add esp, 8
cmp eax, ebx
jne 0x1000aee0
lea ecx, [ebp - 0xfb0]
push 0x1003ad9c
push ecx
call fcn.100111b0
add esp, 8
cmp eax, ebx
je 0x1000af49
mov edi, edi
lea ecx, [eax + 1]
mov edx, eax
sub edx, ecx
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
cmp al, bl
jne 0x1000af27
lea edx, [ebp - 0xfb0]
push 0x1003ad9c
push edx
call fcn.100111b0
add esp, 8
cmp eax, ebx
jne 0x1000af20
lea eax, [ebp - 0xfb0]
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], ebx
mov byte [edi], bl
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1000af60
sub eax, edx
push eax
lea eax, [ebp - 0xfb0]
push eax
mov ecx, edi
call fcn.10007470
mov eax, edi
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.1001105b
mov esp, ebp
pop ebp
ret 8
Function at 0x1000b5eb
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [0x10047154]
test eax, eax
jne 0x1000b623
push 0x40
push 0x1000
push 0x10000
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x1000b60c
ret
mov ecx, eax
mov eax, dword [0x10047154]
mov edx, 0x800
mov dword [ecx + 0x18], eax
mov eax, ecx
add ecx, 0x20
dec edx
jne 0x1000b618
push esi
push 4
mov esi, eax
mov eax, dword [eax + 0x18]
push 0xcc
push esi
mov dword [0x10047154], eax
call fcn.100115b0
add esp, 0xc
mov eax, esi
pop esi
ret

Function at 0x1000b655
Capabilities:
Parse pe header

Disassembly:
push 0x28
push 0x1003c958
call fcn.100129a0
push 0x1c
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1000b6b0
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x34]
cmp word [ecx], 0x5a4d
jne 0x1000b6ac
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x1c], eax
cmp dword [eax], 0x4550
jne 0x1000b6ac
cmp word [eax + 0x14], 0
jne 0x1000b6a1
xor eax, eax
or dword [ebp - 4], 0xffffffff
jmp 0x1000b6b2
mov eax, ecx
jmp 0x1000b69b
or dword [ebp - 4], 0xffffffff
xor eax, eax
call fcn.100129db
ret

Function at 0x1000b727
Capabilities:
Resume thread

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1004715c], eax
je 0x1000b73d
mov eax, 0x10dd
pop ecx
ret
push ebx
push esi
mov esi, dword [0x1004716c]
xor ebx, ebx
cmp esi, ebx
push edi
je 0x1000b791
lea eax, [esp + 0xc]
push eax
mov eax, dword [esi + 0x10]
push dword [esi + 0x14]
movzx eax, byte [eax + 0x17]
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [esi + 4], ebx
jne 0x1000b782
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x1000b782
mov ecx, dword [0x10047154]
mov dword [eax + 0x18], ecx
mov dword [0x10047154], eax
mov dword [esi + 0x10], ebx
mov edi, dword [esi]
push esi
call fcn.100103f6
cmp edi, ebx
pop ecx
mov esi, edi
jne 0x1000b74c
mov esi, dword [0x10047168]
cmp esi, ebx
mov dword [0x1004716c], ebx
je 0x1000b7b9
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, dword [esi]
push esi
call fcn.100103f6
cmp edi, ebx
pop ecx
mov esi, edi
jne 0x1000b7a1
pop edi
pop esi
mov dword [0x10047168], ebx
mov dword [0x1004715c], ebx
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x1000ba15
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x10047160]
test eax, eax
jne 0x1000ba85
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, dword [esp + 8]
cmp edi, eax
jne 0x1000ba31
xor eax, eax
jmp 0x1000ba84
push esi
push 8
call fcn.10010b12
mov esi, eax
test esi, esi
pop ecx
jne 0x1000ba45
push 8
pop edi
jmp 0x1000ba60
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x1000ba71
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call fcn.100103f6
pop ecx
and dword [0x10047164], 0
mov dword [0x10047160], edi
mov eax, edi
jmp 0x1000ba83
mov eax, dword [0x10047168]
mov dword [esi], eax
mov dword [esi + 4], edi
mov dword [0x10047168], esi
xor eax, eax
pop esi
pop edi
ret 4
Function at 0x1000bca3
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1004715c], eax
je 0x1000bcc0
mov eax, 0x10dd
jmp 0x1000bd9f
mov eax, dword [0x10047160]
test eax, eax
jne 0x1000bd9f
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x1000bcdd
push 6
pop eax
jmp 0x1000bd9e
cmp dword [edi], 0
push ebx
push esi
jne 0x1000bcf1
push 6
pop eax
mov dword [0x10047160], eax
jmp 0x1000bd96
push 0x18
call fcn.10010b12
mov esi, eax
test esi, esi
pop ecx
jne 0x1000bd04
push 8
pop edi
jmp 0x1000bd80
mov ebx, dword [edi]
movzx eax, byte [ebx + 0x17]
mov edi, dword [ebx + 0x18]
sub edi, eax
test eax, eax
mov dword [ebp - 8], eax
je 0x1000bd74
cmp eax, 0x17
jae 0x1000bd74
push dword [ebp + 0xc]
call fcn.1000b6b8
cmp dword [ebx + 0x1c], eax
jne 0x1000bd74
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x40
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1000bd4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x1000bd80
mov eax, dword [ebp + 8]
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov dword [esi + 0x10], ebx
mov dword [esi + 0xc], edi
mov eax, dword [ebp - 4]
mov dword [esi + 0x14], eax
mov eax, dword [0x1004716c]
mov dword [esi], eax
mov dword [0x1004716c], esi
xor eax, eax
jmp 0x1000bd9c
cmp dword [0x10047158], 0
push 9
pop edi
jne 0x1000bd86
mov dword [0x10047160], edi
test esi, esi
je 0x1000bd91
push esi
call fcn.100103f6
pop ecx
mov eax, edi
mov edi, dword [ebp + 8]
mov dword [0x10047164], edi
pop esi
pop ebx
pop edi
leave
ret 8
Function at 0x1000bddd
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x10047194]
push edi
xor edi, edi
cmp eax, edi
jne 0x1000bf58
push 0x24
mov eax, 0x10047170
push edi
push eax
mov dword [0x10047194], eax
call fcn.100115b0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push str.dbghelp.dll
mov dword [0x10047170], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, edi
mov dword [0x10047174], eax
je 0x1000bf2c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.ImagehlpApiVersionEx
push eax
call esi
push str.SymInitialize
push dword [0x10047174]
mov dword [0x10047178], eax
call esi
push str.SymSetOptions
push dword [0x10047174]
mov dword [0x1004717c], eax
call esi
push str.SymGetOptions
push dword [0x10047174]
mov dword [0x10047180], eax
call esi
push str.SymLoadModule64
push dword [0x10047174]
mov dword [0x10047184], eax
call esi
push str.SymGetModuleInfo64
push dword [0x10047174]
mov dword [0x10047188], eax
call esi
push str.SymFromName
push dword [0x10047174]
mov dword [0x1004718c], eax
call esi
push 8
mov dword [0x10047190], eax
lea eax, [ebp - 8]
push edi
push eax
call fcn.100115b0
mov eax, dword [0x10047178]
add esp, 0xc
cmp eax, edi
mov word [ebp - 8], 9
pop esi
je 0x1000bf1c
lea ecx, [ebp - 8]
push ecx
call eax
cmp dword [0x10047178], edi
je 0x1000bf1c
cmp word [ebp - 8], 9
jb 0x1000bf1c
mov eax, dword [0x1004717c]
cmp eax, edi
je 0x1000bef6
push edi
push edi
push dword [0x10047170]
call eax
test eax, eax
je 0x1000bf1c
mov eax, dword [0x10047184]
cmp eax, edi
je 0x1000bf15
cmp dword [0x10047180], edi
je 0x1000bf15
call eax
and eax, 0x2207
push eax
call dword [0x10047180]
mov eax, dword [0x10047194]
jmp 0x1000bf58
mov eax, dword [0x10047174]
cmp eax, edi
je 0x1000bf2c
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x10047178], edi
mov dword [0x1004717c], edi
mov dword [0x10047180], edi
mov dword [0x10047184], edi
mov dword [0x10047188], edi
mov dword [0x1004718c], edi
mov dword [0x10047190], edi
xor eax, eax
pop edi
leave
ret

Function at 0x1000c0a3
Capabilities:
Parse pe header

Disassembly:
push 0x2c
push 0x1003ca00
call fcn.100129a0
mov eax, dword [ebp + 8]
test eax, eax
mov esi, 0x10000
je 0x1000c0c1
lea esi, [eax + 0x10000]
push 0x1c
push 0
lea eax, [ebp - 0x3c]
push eax
call fcn.100115b0
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x3c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jbe 0x1000c137
cmp dword [ebp - 0x2c], 0x1000
jne 0x1000c113
test byte [ebp - 0x27], 1
jne 0x1000c113
and dword [ebp - 4], 0
mov dword [ebp - 0x1c], esi
cmp word [esi], 0x5a4d
jne 0x1000c10f
mov eax, dword [esi + 0x3c]
add eax, esi
mov dword [ebp - 0x20], eax
cmp dword [eax], 0x4550
je 0x1000c11e
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x3c]
lea esi, [eax + ecx]
jmp 0x1000c0d1
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.100129db
ret 4
xor eax, eax
jmp 0x1000c124
Function at 0x1000c3b4
Capabilities:
Parse pe header

Disassembly:
push 0x20
push 0x1003ca48
call fcn.100129a0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
xor ebx, ebx
cmp eax, ebx
jne 0x1000c3d6
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
cmp word [eax], 0x5a4d
je 0x1000c3ea
push 0xc1
jmp 0x1000c499
mov esi, dword [eax + 0x3c]
add esi, eax
mov dword [ebp - 0x28], esi
cmp dword [esi], 0x4550
je 0x1000c404
push 0xbf
jmp 0x1000c499
mov ax, word [esi + 0x14]
cmp ax, bx
jne 0x1000c425
xor esi, esi
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
or dword [ebp - 4], 0xffffffff
mov eax, esi
jmp 0x1000c4a5
movzx eax, ax
lea eax, [eax + esi + 0x18]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ebx
movzx eax, word [esi + 6]
cmp ebx, eax
jae 0x1000c40d
lea eax, [ebx + ebx*4]
mov ecx, dword [ebp - 0x20]
lea edi, [ecx + eax*8]
push str..detour
push edi
call fcn.10015680
pop ecx
pop ecx
test eax, eax
jne 0x1000c48a
mov eax, dword [edi + 0xc]
test eax, eax
je 0x1000c40d
cmp dword [edi + 0x10], 0
je 0x1000c40d
mov ecx, dword [ebp - 0x1c]
lea esi, [eax + ecx]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], esi
mov eax, dword [esi]
cmp eax, 0x40
jb 0x1000c40d
cmp dword [esi + 4], 0x727444
jne 0x1000c40d
cmp dword [esi + 8], 0
jne 0x1000c486
mov dword [esi + 8], eax
push 0
jmp 0x1000c414
inc ebx
jmp 0x1000c42f
call dword [sym.imp.KERNEL32.dll_SetLastError]
or dword [ebp - 4], 0xffffffff
xor eax, eax
call fcn.100129db
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
mov eax, 0x150
cmp dword [esi], eax
jne 0x1000c6ac
cmp dword [ebp + 0xc], eax
jb 0x1000c6ac
and dword [ebp - 4], 0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp + 0xc]
push eax
push 0x40
push 0x40
push dword [esi + 4]
call edi
test eax, eax
je 0x1000c6a6
push ebx
lea eax, [ebp - 8]
push eax
push 0x40
mov ebx, 0xf8
push ebx
push dword [esi + 8]
call edi
test eax, eax
je 0x1000c697
mov eax, dword [esi + 0xc]
test eax, eax
je 0x1000c639
lea ecx, [ebp - 0xc]
push ecx
push 0x40
push 4
push eax
call edi
test eax, eax
je 0x1000c68a
push 0x40
lea eax, [esi + 0x14]
push eax
push dword [esi + 4]
call fcn.10010410
push ebx
lea eax, [esi + 0x54]
push eax
push dword [esi + 8]
call fcn.10010410
mov eax, dword [esi + 0xc]
add esp, 0x18
test eax, eax
je 0x1000c670
push 4
lea ecx, [esi + 0x14c]
push ecx
push eax
call fcn.10010410
add esp, 0xc
mov eax, dword [esi + 0xc]
test eax, eax
mov dword [ebp - 4], 1
je 0x1000c68a
lea ecx, [ebp + 8]
push ecx
push dword [ebp + 0xc]
push 4
push eax
call edi
lea eax, [ebp + 8]
push eax
push dword [ebp - 8]
push ebx
push dword [esi + 8]
call edi
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
push 0x40
push dword [esi + 4]
call edi
pop ebx
mov eax, dword [ebp - 4]
pop edi
jmp 0x1000c6b9
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
leave
ret 8
Function at 0x1000cf20
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10043110
push 0x10015bb0
mov eax, dword fs:[0]
push eax
sub esp, 0x150
mov eax, dword [0x10045ca0]
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 dword [ebp - 0x18], esp
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x154], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x148], ecx
xor ebx, ebx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x14c], edx
mov dword [ebp - 0x150], ebx
push ebx
call fcn.100159d8
add esp, 4
mov esi, eax
mov edi, edx
sub eax, dword [0x100471d0]
mov ecx, edi
sbb ecx, dword [0x100471d4]
mov dword [ebp - 0x15c], ecx
js 0x1000cfd0
jg 0x1000cfa6
cmp eax, 1
jbe 0x1000cfd0
mov eax, dword [0x100471c8]
test eax, eax
je 0x1000cfb6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [0x100471c8], eax
mov dword [0x100471d0], esi
mov dword [0x100471d4], edi
mov eax, dword [0x100471c8]
cmp eax, 0xffffffff
jne 0x1000cfe1
or eax, eax
jmp 0x1000d0d5
mov dword [ebp - 0x144], 0x128
lea edx, [ebp - 0x144]
push edx
push eax
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x1000d006
mov eax, 0x12
jmp 0x1000d0d5
mov eax, 1
lea esi, [eax - 3]
mov edi, edi
test eax, eax
je 0x1000d0c7
mov eax, dword [ebp - 0x14c]
cmp dword [ebp - 0x13c], eax
jne 0x1000d0af
mov eax, dword [ebp - 0x12c]
test eax, eax
je 0x1000d0c7
mov ecx, dword [ebp - 0x148]
cmp ebx, dword [ecx]
jae 0x1000d0a8
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x154]
mov dword [edx + ebx*4], eax
inc ebx
mov dword [ebp - 0x158], ebx
mov dword [ebp - 4], esi
mov dword [ebp - 0x14c], eax
lea eax, [ebp - 0x144]
push eax
mov ecx, dword [0x100471c8]
push ecx
call sub.KERNEL32.dll_Process32First
jmp 0x1000d010
mov eax, 0xea
jmp 0x1000d0cd
lea eax, [ebp - 0x144]
push eax
mov ecx, dword [0x100471c8]
push ecx
call sub.KERNEL32.dll_Process32Next
jmp 0x1000d010
mov eax, dword [ebp - 0x150]
mov edx, dword [ebp - 0x148]
mov dword [edx], 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.1001105b
mov esp, ebp
pop ebp
ret
Function at 0x1000d7a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100389db
mov eax, dword fs:[0]
push eax
mov eax, 0x13dc
call fcn.10011a20
mov eax, dword [0x10045ca0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, 0x100471dc
call fcn.10036879
lea eax, [ebp - 0x13dc]
push eax
push 1
push 0
push str.SoftwarecomScoreConfidence
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000d911
mov ecx, dword [ebp - 0x13dc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
push edx
push eax
push 0x3ff
lea ecx, [ebp - 0x13c8]
push 0x400
push ecx
call fcn.100162b0
add esp, 0x14
lea eax, [ebp - 0x13d8]
xor edx, edx
push eax
mov word [ebp - 0xbca], dx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [ebp - 0x13ca]
movzx eax, word [ebp - 0x13cc]
lea ecx, [ebp - 0x13c8]
push ecx
movzx ecx, word [ebp - 0x13ce]
push edx
movzx edx, word [ebp - 0x13d0]
push eax
movzx eax, word [ebp - 0x13d8]
push ecx
movzx ecx, word [ebp - 0x13d2]
push edx
movzx edx, word [ebp - 0x13d6]
push eax
push ecx
push edx
push str._02d__02d__04d__02d:_02d:_02d._03d__s_n
lea eax, [ebp - 0xbc8]
push 0x5dc
push eax
call fcn.100163d1
mov eax, dword [0x100471f4]
add esp, 0x2c
cmp dword [0x10047208], 0x10
jae 0x1000d8ac
mov eax, 0x100471f4
push 0
push 0x80
push 4
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 2
push 0
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0xbc8]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1000d8e0
sub eax, edx
push 0
sar eax, 1
lea ecx, [ebp - 0x13e0]
push ecx
lea edx, [eax + eax]
push edx
lea eax, [ebp - 0xbc8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x100471dc
mov dword [ebp - 4], 0xffffffff
call fcn.1003688e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001105b
mov esp, ebp
pop ebp
ret