joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000c150
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1001ad10
push 0x10012429
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x1001d008]
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 eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x28], 0
xor esi, esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x2c], esi
xor ebx, ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x20], 0x100
mov eax, dword [ecx]
mov edi, dword [eax + 0x28]
mov dword [ebp - 0x40], edi
test edi, edi
jne 0x1000c1b9
xor eax, eax
jmp 0x1000c32f
mov dword [ebp - 4], ebx
push str.InitializeSecurityDescriptor
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000c2fa
push 1
push dword [ebp - 0x34]
call eax
test eax, eax
je 0x1000c2fa
push str.AllocateAndInitializeSid
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000c2fa
lea ecx, [ebp - 0x28]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 1
lea ecx, [ebp - 0x24]
push ecx
call eax
test eax, eax
je 0x1000c2fa
push str.GetLengthSid
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000c2fa
push dword [ebp - 0x28]
call eax
add eax, 0x10
mov dword [ebp - 0x30], eax
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x3c], esi
test esi, esi
je 0x1000c2fa
push str.InitializeAcl
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000c2fa
push 2
push dword [ebp - 0x30]
push esi
call eax
test eax, eax
je 0x1000c2fa
push str.AddAccessAllowedAce
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000c2fa
push dword [ebp - 0x28]
push 0x10000000
push 2
push esi
call eax
test eax, eax
je 0x1000c2fa
push str.SetSecurityDescriptorDacl
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x1000c2fa
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x1000c2e3
push 0
push ecx
push 1
push dword [ebp - 0x34]
call eax
test eax, eax
je 0x1000c2d0
mov ebx, 1
mov dword [ebp - 0x38], ebx
cmp dword [ebp - 0x2c], 0
je 0x1000c2e0
jmp 0x1000c2fa
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x30]
push 0
push esi
push 1
push dword [ebp - 0x34]
call eax
mov ecx, 1
test eax, eax
cmovne ebx, ecx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 4], 0xfffffffe
call fcn.1000c356
test ebx, ebx
jne 0x1000c32d
test esi, esi
je 0x1000c31f
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x1000c32d
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
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.10012071
mov esp, ebp
pop ebp
ret 0xc
Function at 0x403990
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e5378
mov eax, dword fs:[0]
push eax
sub esp, 0x174
mov eax, dword [0x66ee94]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x168], eax
mov eax, dword [ebp + 0xc]
push eax
mov dword [ebp - 0x164], eax
lea eax, [ebp - 0x34]
push 0x510008
push eax
movups xmmword [ebp - 0x34], xmm0
mov byte [ebp - 0x14], 0
movups xmmword [ebp - 0x24], xmm0
call fcn.00406100
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x3c], 0
add esp, 0xc
mov dword [ebp - 0x38], 0xf
mov byte [ebp - 0x4c], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403a08
sub ecx, edx
lea eax, [ebp - 0x34]
push ecx
push eax
lea ecx, [ebp - 0x4c]
call fcn.004033e0
lea eax, [ebp - 0x4c]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x180]
call fcn.004036a0
mov eax, dword [ebp - 0x170]
lea ecx, [ebp - 0x150]
cmp dword [ebp - 0x16c], 0x10
mov edx, 0x100
mov dword [ebp - 0x160], eax
lea eax, [ebp - 0x180]
cmovae eax, dword [ebp - 0x180]
mov dword [ebp - 0x15c], eax
xor eax, eax
mov byte [ecx], al
inc eax
inc ecx
cmp ax, dx
jl 0x403a67
xor dl, dl
mov word [ebp - 0x50], 0
xor cl, cl
mov dword [ebp - 0x158], 0x100
lea edi, [ebp - 0x150]
nop word [eax + eax]
mov eax, dword [ebp - 0x15c]
lea edi, [edi + 1]
movzx esi, dl
mov dl, byte [edi - 1]
mov al, byte [esi + eax]
add al, dl
add cl, al
movzx eax, cl
mov byte [ebp - 0x151], cl
lea ecx, [ebp - 0x150]
add ecx, eax
mov al, byte [ecx]
mov byte [edi - 1], al
lea eax, [esi + 1]
mov byte [ecx], dl
mov cl, byte [ebp - 0x151]
cdq
idiv dword [ebp - 0x160]
sub dword [ebp - 0x158], 1
jne 0x403a90
mov edi, dword [ebp - 0x164]
xor esi, esi
mov al, byte [ebp - 0x50]
mov cl, byte [ebp - 0x4f]
test edi, edi
jle 0x403b52
nop dword [eax]
inc al
lea edx, [ebp - 0x150]
mov byte [ebp - 0x152], al
movzx eax, al
add edx, eax
mov al, byte [edx]
add cl, al
mov byte [ebp - 0x151], al
movzx eax, cl
mov byte [ebp - 0x153], cl
lea ecx, [ebp - 0x150]
add ecx, eax
mov ah, byte [ebp - 0x151]
mov al, byte [ecx]
mov byte [edx], al
mov byte [ecx], ah
mov al, byte [edx]
mov ecx, dword [ebp - 0x168]
add al, ah
movzx eax, al
mov al, byte [ebp + eax - 0x150]
xor byte [esi + ecx], al
inc esi
mov al, byte [ebp - 0x152]
mov cl, byte [ebp - 0x153]
cmp esi, edi
jl 0x403af0
mov edx, dword [ebp - 0x16c]
cmp edx, 0x10
jb 0x403b88
mov ecx, dword [ebp - 0x180]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x403b7e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403bd7
push edx
push ecx
call fcn.004ba5b1
add esp, 8
mov edx, dword [ebp - 0x38]
cmp edx, 0x10
jb 0x403bb8
mov ecx, dword [ebp - 0x4c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x403bae
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403bdc
push edx
push ecx
call fcn.004ba5b1
add esp, 8
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ba87e
mov esp, ebp
pop ebp
ret 8
call fcn.004c0839
call fcn.004c0839
int3
Function at 0x403f10
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 0x403f3b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00404ba0
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 0x403f5d
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x403f5f
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x403fe3
jg 0x403f74
test esi, esi
je 0x403fe3
test ecx, ecx
jl 0x403fbd
jg 0x403f7e
test eax, eax
je 0x403fbd
cmp edi, ecx
jg 0x403f92
jl 0x403f88
cmp esi, eax
jae 0x403f92
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call fcn.004bc650
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x403fc0
mov edx, dword [ebp + 8]
test edi, edi
jl 0x403fe3
jg 0x403fca
test esi, esi
je 0x403fe3
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x403fe3
push eax
push esi
push 1
push edx
call fcn.004c9cc4
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
Function at 0x404000
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x40402b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00404c80
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x1c]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
test eax, eax
je 0x40404d
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x40404f
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test ebx, ebx
jl 0x4040ee
jg 0x40406c
test esi, esi
je 0x4040ee
test ecx, ecx
jl 0x4040b9
jg 0x404076
test eax, eax
je 0x4040b9
cmp ebx, ecx
jg 0x40408a
jl 0x404080
cmp esi, eax
jae 0x40408a
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
push eax
push dword [esp + 0x18]
push dword [ebp + 8]
call fcn.004bc650
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edi + 0x2c]
add edx, ecx
sub esi, ecx
mov dword [esp + 0xc], edx
sbb ebx, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x4040c0
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
test ebx, ebx
jl 0x4040ee
jg 0x4040ca
test esi, esi
je 0x4040ee
cmp dword [edi + 0x4c], 0
je 0x4040ee
mov ecx, edi
call fcn.004055c0
push dword [edi + 0x4c]
push esi
push 1
push dword [esp + 0x18]
call fcn.004cab57
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
pop edi
pop esi
sbb edx, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x404500
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x66ee94]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x404530
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ba87e
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40456c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x40456c
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ba87e
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x404638
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x404594
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4045c7
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.004ca887
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ba87e
mov esp, ebp
pop ebp
ret 4
mov byte [ebp - 0x28], bl
mov edx, dword [ecx]
cmp edx, vtable.std::codecvt_char__char__struct__Mbstatet_.0
jne 0x40464e
lea eax, [ebp - 0x28]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x2c], eax
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.004038e0
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ba87e
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x404628
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.004c9cc4
add esp, 0x10
cmp edi, eax
jne 0x404638
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x404557
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ba87e
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x404638
cmp eax, 1
jle 0x40460b
cmp eax, 3
jne 0x404638
jmp 0x4045e0
Function at 0x405680
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x66ee94]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x405717
cmp byte [esi + 0x3d], 0
je 0x405717
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x4056d0
mov ecx, dword [esi + 0x38]
mov edx, dword [ecx]
cmp edx, vtable.std::codecvt_char__char__struct__Mbstatet_.0
jne 0x405729
lea edi, [ebp - 0x24]
xor eax, eax
mov dword [ebp - 0x28], edi
sub eax, 0
je 0x4056e2
sub eax, 1
je 0x4056e6
sub eax, 2
je 0x405717
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ba87e
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
lea eax, [ebp - 0x24]
sub edi, eax
je 0x405700
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.004c9cc4
add esp, 0x10
cmp edi, eax
jne 0x4056d0
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ba87e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.004ba87e
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
mov edi, dword [ebp - 0x28]
jmp 0x4056c1

Function at 0x405e40
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e55e0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x66ee94]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004ba581
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.004a6f7f
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x409890
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e58f6
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x66ee94]
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, ecx
mov eax, dword [0x673354]
mov edi, dword [ebp + 0xc]
test al, 1
jne 0x40990a
or eax, 1
mov dword [0x673354], eax
mov dword [ebp - 4], 0
mov dword [0x673358], 0
mov dword [0x67335c], 0
call fcn.0040a970
push 0x4eb3d0
mov dword [0x673358], eax
call fcn.004bac54
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0x1c
call fcn.004ba581
mov ecx, dword [ebp + 8]
mov esi, eax
mov eax, dword [ebp + 0x1c]
add esp, 4
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x1c], 0
mov dword [esi], ecx
mov ecx, dword [ebp + 0x10]
mov dword [esi + 8], ecx
mov ecx, dword [ebp + 0x14]
mov dword [esi + 0xc], ecx
mov ecx, dword [ebp + 0x18]
mov dword [esi + 0x10], ecx
mov ecx, edi
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x20]
mov dword [esi + 4], edi
mov dword [esi + 0x18], eax
lea edx, [ecx + 1]
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409956
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x2c]
call fcn.004033e0
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 1
lea eax, [ebp - 0x2c]
push dword [ebp - 0x60]
push eax
push ecx
lea eax, [ebp - 0x64]
mov ecx, 0x673358
push eax
call fcn.0040b890
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x4099c0
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4099b6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4099e6
push edx
push ecx
call fcn.004ba5b1
add esp, 8
cmp byte [ebp - 0x60], 0
je 0x4099eb
mov eax, ebx
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.004ba87e
mov esp, ebp
pop ebp
ret 0x1c
call fcn.004c0839
push edi
lea ecx, [ebp - 0x5c]
call fcn.00403550
push str.more_than_one_flags_defined_with_the_same_name
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 2
call fcn.00403550
lea edx, [ebp - 0x5c]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x44]
call fcn.00409210
lea ecx, [ebp - 0x44]
call fcn.00401f10
lea ecx, [ebp - 0x5c]
call fcn.00401f10
push 0
call fcn.004cd096
int3
Function at 0x40a510
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e5a02
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x66ee94]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0
mov dword [edi], 0x5100b4
mov dword [edi + 0x68], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
lea esi, [edi + 4]
mov eax, dword [edi]
push 0
push esi
mov dword [ebp - 0x10], 1
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
mov ecx, dword [eax + 4]
add ecx, edi
call fcn.00405f00
mov dword [ebp - 4], 2
mov eax, dword [edi]
mov dword [ebp - 0x18], esi
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ecx + edi - 4], eax
mov ecx, esi
call fcn.00405e40
lea eax, [esi + 4]
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov dword [esi + 0xc], eax
lea ecx, [esi + 8]
lea eax, [esi + 0x14]
mov byte [esi + 0x48], 0
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x28]
mov dword [esi + 0x30], eax
mov byte [esi + 0x3d], 0
mov dword [esi + 0x10], ecx
mov dword [ecx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov eax, dword [esi + 0xc]
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov dword [esi + 0x4c], 0
mov eax, dword [0x67331c]
mov dword [esi + 0x40], eax
mov eax, dword [0x673320]
mov dword [esi + 0x44], eax
mov dword [esi + 0x38], 0
mov eax, dword [ebp + 0xc]
push ecx
or eax, 2
mov byte [ebp - 4], 3
push eax
push dword [ebp + 8]
mov ecx, esi
call fcn.0040a710
test eax, eax
jne 0x40a66f
mov eax, dword [edi]
push 0
mov ecx, dword [eax + 4]
xor eax, eax
add ecx, edi
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.00407050
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40c080
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e5b5f
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
mov eax, dword [0x66ee94]
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 eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x260], eax
mov eax, dword [ebp + 0xc]
push 0x228
mov dword [ebp - 0x258], eax
lea eax, [ebp - 0x250]
push edi
push eax
mov dword [ebp - 0x25c], edi
call fcn.004bd150
add esp, 0xc
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
mov dword [ebp - 0x268], ebx
cmp ebx, 0xffffffff
jne 0x40c0f9
xor al, al
jmp 0x40c263
lea eax, [ebp - 0x254]
mov dword [ebp - 0x254], 0x22c
push eax
push ebx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40c25a
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 0
push eax
push 0
or edi, 1
mov dword [ebp - 0x18], 0
push 0x3a8
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x25c], edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
lea ecx, [ebp - 0x28]
lea esi, [eax - 1]
push esi
call fcn.0040c000
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
push 0
cmovae ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x230]
push 0
push esi
push ecx
push 0xffffffffffffffff
push eax
push 0
push 0x3a8
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebp - 0x260]
mov ecx, eax
cmp dword [eax + 0x14], 0x10
jb 0x40c19d
mov ecx, dword [eax]
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push ecx
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40c20b
mov eax, dword [ebp - 0x24c]
lea ecx, [ebp - 0x264]
mov dword [ebp - 0x264], eax
mov eax, dword [ebp - 0x258]
push ecx
mov ecx, eax
mov esi, dword [eax]
mov ebx, dword [esi + 4]
push ebx
push esi
call fcn.00410d10
mov ecx, dword [ebp - 0x258]
mov edx, dword [ecx + 4]
mov ecx, 0x15555554
sub ecx, edx
cmp ecx, 1
jb 0x40c284
lea ecx, [edx + 1]
mov edx, dword [ebp - 0x258]
mov dword [edx + 4], ecx
mov dword [esi + 4], eax
mov dword [ebx], eax
mov ebx, dword [ebp - 0x268]
mov dword [ebp - 4], 0xffffffff
and edi, 0xfffffffe
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x40c245
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40c23b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c27f
push edx
push ecx
call fcn.004ba5b1
add esp, 8
lea eax, [ebp - 0x254]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40c118
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
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.004ba87e
mov esp, ebp
pop ebp
ret
call fcn.004c0839
push str.list_T__too_long
call fcn.004a6a0d
int3