joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100f10a
Capabilities:
Delete file

Disassembly:
push 4
mov eax, 0x1021551
call fcn.01013512
mov esi, ecx
xor edi, edi
cmp dword [ebp + 8], edi
je 0x100f127
mov eax, dword [esi]
call dword [eax + 0xd8]
push 0x1002f1c
lea ecx, [ebp + 8]
mov dword [esi + 0xb4], edi
call sub.MFC42u.dll_CString::CString_1
lea eax, [ebp + 8]
push eax
push 0x1002f10
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 4], edi
call fcn.01011241
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.01012a9e
mov eax, dword [ebp - 0x10]
cmp dword [eax - 8], edi
je 0x100f16a
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
lea ecx, [esi + 0x90]
call fcn.010044ec
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.01012a9e
call fcn.010135fe
ret 4

Function at 0x1010dad
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1025588]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
push esi
push esi
mov dword [ebp - 0x14], ecx
call dword [sym.imp.ole32.dll_CoInitializeEx]
cmp eax, esi
jl 0x1010e90
call sub.MFC42u.dll_AfxGetModuleState
mov eax, dword [eax + 8]
push esi
push eax
mov ebx, 0x10255c8
push 0x102566c
mov ecx, ebx
call fcn.01010c00
cmp eax, esi
jl 0x1010e8a
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x102564c], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, 0x100320c
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
mov ecx, eax
movsw word es:[edi], word [esi]
xor eax, eax
lea edi, [ebp - 0xa]
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
push ecx
mov ecx, ebx
call fcn.01010aa2
mov edi, eax
test edi, edi
je 0x1010e72
mov esi, dword [sym.imp.KERNEL32.dll_CompareStringW]
push 0xffffffffffffffff
push 0x10031f4
push 0xffffffffffffffff
push edi
push 1
push 0x7f
call esi
cmp eax, 2
je 0x1010e9d
push 0xffffffffffffffff
push 0x10031e0
push 0xffffffffffffffff
push edi
push 1
push 0x7f
call esi
cmp eax, 2
je 0x1010eb7
lea eax, [ebp - 0x10]
push eax
push edi
mov ecx, ebx
call fcn.01010aa2
mov edi, eax
test edi, edi
jne 0x1010e36
xor esi, esi
inc esi
push esi
push 4
push ebx
call dword [sym.imp.ATL.DLL_AtlModuleRegisterClassObjects]
test eax, eax
jge 0x1010ed2
push ebx
call dword [sym.imp.ATL.DLL_AtlModuleTerm]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x14]
add eax, 0xc4
and dword [eax], 0
jmp 0x1010edc
xor esi, esi
push esi
push esi
push esi
push 0x73
push ebx
call dword [sym.imp.ATL.DLL_AtlModuleUpdateRegistryFromResourceD]
push esi
push 1
push ebx
call dword [sym.imp.ATL.DLL_AtlModuleUnregisterServerEx]
jmp 0x1010e83
xor esi, esi
push esi
push esi
push 1
push 0x73
push ebx
call dword [sym.imp.ATL.DLL_AtlModuleUpdateRegistryFromResourceD]
push esi
push 1
push ebx
call dword [sym.imp.ATL.DLL_AtlModuleRegisterServer]
jmp 0x1010e83
mov eax, dword [ebp - 0x14]
add eax, 0xc4
mov dword [eax], esi
mov ecx, dword [ebp - 4]
mov eax, dword [eax]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010134fd
leave
ret
Function at 0x1011241
Capabilities:
Create directory
Query environment variable

Disassembly:
push 0x234
mov eax, 0x10217ee
call fcn.01013585
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
and dword [ebp - 0x230], 0
mov dword [ebp - 0x224], eax
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x240], esi
mov dword [ebp - 0x238], eax
call sub.MFC42u.dll_CString::CString
xor ebx, ebx
inc ebx
lea ecx, [ebp - 0x220]
mov dword [ebp - 4], ebx
call sub.MFC42u.dll_CString::CString
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 2
call sub.MFC42u.dll_CString::CString
mov eax, dword [0x102575c]
cmp dword [eax - 8], 0
mov byte [ebp - 4], 3
mov edi, 0x102575c
jne 0x1011304
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0x1003214
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, 0x104
ja 0x1011379
test eax, eax
je 0x1011379
lea eax, [ebp - 0x218]
push eax
mov ecx, edi
call fcn.01012aaa
push edi
call fcn.010109c8
test eax, eax
jne 0x1011304
push eax
push dword [0x102575c]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x1011379
push dword [ebp - 0x224]
lea ecx, [ebp - 0x21c]
call fcn.01012aaa
push 0x5c
lea ecx, [ebp - 0x21c]
call sub.MFC42u.dll_CString::ReverseFind
test eax, eax
jl 0x101135b
inc eax
push eax
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x21c]
call sub.MFC42u.dll_CString::Mid
push eax
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 4
call fcn.01012b16
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 3
call fcn.01012a9e
jmp 0x101136d
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x220]
call fcn.01012b16
mov eax, dword [ebp - 0x220]
cmp dword [eax - 8], 0
jne 0x10113b0
lea ecx, [ebp - 0x22c]
call sub.MFC42u.dll_CString::CString
lea eax, [ebp - 0x22c]
push eax
mov ecx, esi
mov byte [ebp - 4], 8
call sub.MFC42u.dll_CString::CString_2
lea ecx, [ebp - 0x22c]
mov dword [ebp - 0x230], ebx
mov byte [ebp - 4], 3
call fcn.01012a9e
jmp 0x1011442
push 0x1001b88
push edi
lea eax, [ebp - 0x23c]
push eax
call sub.MFC42u.dll_operator_1
lea ecx, [ebp - 0x220]
push ecx
push eax
lea eax, [ebp - 0x234]
push eax
mov byte [ebp - 4], 5
call sub.MFC42u.dll_operator
push dword [ebp - 0x238]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x224]
push eax
call sub.MFC42u.dll_operator
push eax
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 7
call fcn.01012b16
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 6
call fcn.01012a9e
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 5
call fcn.01012a9e
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 3
call fcn.01012a9e
lea eax, [ebp - 0x228]
push eax
mov ecx, esi
call sub.MFC42u.dll_CString::CString_2
mov dword [ebp - 0x230], ebx
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 2
call fcn.01012a9e
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], bl
call fcn.01012a9e
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 0
call fcn.01012a9e
mov eax, esi
call fcn.01013617
ret 0xc
Function at 0x10134bb
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x1022f08
call fcn.01013a14
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x1025c18
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1013276
cmp eax, esi
jne 0x1013269
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1013279
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1013250
xor esi, esi
inc esi
mov eax, dword [0x1025c14]
cmp eax, esi
jne 0x101328c
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x10132bb
mov eax, dword [0x1025c14]
test eax, eax
jne 0x10132b5
mov dword [0x1025c14], esi
push 0x1001728
push 0x100171c
call fcn.010131b2
pop ecx
pop ecx
test eax, eax
je 0x10132bb
jmp 0x10133df
mov dword [0x10257a8], esi
mov eax, dword [0x1025c14]
cmp eax, esi
jne 0x10132df
push 0x1001718
push 0x1001704
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1025c14], 2
cmp dword [ebp - 0x20], ebx
jne 0x10132ec
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1025c24], ebx
je 0x101330d
push 0x1025c24
call fcn.01013989
pop ecx
test eax, eax
je 0x101330d
push ebx
push 2
push ebx
call dword [0x1025c24]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x10133df
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x1013377
cmp cx, bx
je 0x1013332
cmp dword [ebp - 0x1c], ebx
jne 0x1013377
movzx ecx, word [eax]
cmp cx, bx
je 0x1013347
cmp cx, 0x20
ja 0x1013347
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x1013332
test byte [ebp - 0x40], 1
je 0x1013353
movzx ecx, word [ebp - 0x3c]
jmp 0x1013356
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x10257a4], eax
cmp dword [0x1025798], ebx
jne 0x10133bc
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x1013388
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x101331c
cmp dword [0x10257a8], ebx
jne 0x10133ca
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x10257a4]
jmp 0x10133eb
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01013a59
ret
call fcn.01013b61
jmp 0x1013213
Function at 0x10154d8
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov ecx, 0x101ff74
xor esi, esi
mov eax, ecx
push edi
mov dword [ebp - 8], esi
lea edx, [eax + 2]
mov di, word [eax]
inc eax
inc eax
cmp di, si
jne 0x10154f2
mov edi, dword [ebp + 8]
sub eax, edx
sar eax, 1
mov ebx, eax
push ebx
push ecx
push edi
call sub.msvcrt.dll__wcsnicmp
add esp, 0xc
test eax, eax
jne 0x101567e
lea eax, [edi + ebx*2]
push 0x5c
push eax
call sub.msvcrt.dll_wcschr
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
test eax, eax
je 0x101567e
mov ecx, dword fs:[0x18]
mov ebx, dword [sym.imp.ntdll.dll_RtlAllocateHeap]
sub eax, edi
sar eax, 1
lea edi, [eax + eax]
lea eax, [edi + 2]
push eax
mov eax, dword [ecx + 0x30]
push 0
push dword [eax + 0x18]
call ebx
mov dword [ebp - 4], eax
test eax, eax
jne 0x1015565
mov dword [ebp - 8], 0xc000009a
jmp 0x101563a
push edi
push dword [ebp + 8]
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 4]
add esp, 0xc
xor ecx, ecx
mov word [edi + eax], cx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x101557e
sub eax, edx
sar eax, 1
lea ecx, [eax + eax + 0x16]
mov eax, dword [ebp - 0xc]
lea edx, [eax + 2]
mov si, word [eax]
inc eax
inc eax
test si, si
jne 0x1015596
sub eax, edx
sar eax, 1
lea edi, [eax + eax + 0x2e]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
add ecx, edi
push ecx
push 0
push dword [eax + 0x18]
mov dword [ebp + 8], ecx
call ebx
mov esi, eax
test esi, esi
je 0x1015559
push dword [ebp + 8]
push 0
push esi
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 0xc]
add esp, 0xc
lea ebx, [edi + esi]
mov dword [esi], 3
mov dword [esi + 0x14], edi
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x10155e4
push dword [ebp - 0xc]
sub eax, ecx
sar eax, 1
inc eax
push eax
lea eax, [esi + 0x18]
push eax
call sub.msvcrt.dll_wcscpy_s
mov eax, dword [ebp - 4]
add esp, 0xc
push 2
pop edx
mov dword [ebx], edx
lea ecx, [eax + 2]
mov di, word [eax]
add eax, edx
test di, di
jne 0x101560e
push dword [ebp - 4]
sub eax, ecx
sar eax, 1
inc eax
push eax
add ebx, 0x14
push ebx
call sub.msvcrt.dll_wcscpy_s
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [eax], esi
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov dword [eax], ecx
cmp dword [ebp - 4], 0
mov edi, dword [sym.imp.ntdll.dll_RtlFreeHeap]
je 0x1015659
push dword [ebp - 4]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call edi
cmp dword [ebp - 8], 0
jge 0x1015674
test esi, esi
je 0x1015674
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push 0
push dword [eax + 0x18]
call edi
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0xc
mov dword [ebp - 8], 0xc000000d
jmp 0x1015674
Function at 0x1019c2c
Capabilities:
Access peb ldr_data
Query or enumerate registry key

Disassembly:
push 0x14
push 0x1023028
call fcn.01013a14
xor ebx, ebx
mov dword [ebp - 0x24], ebx
xor esi, esi
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0x20]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 8]
mov edi, dword [sym.imp.ntdll.dll_NtQueryKey]
call edi
mov dword [ebp - 0x1c], eax
cmp eax, 0xc0000023
je 0x1019c6f
cmp eax, ebx
jl 0x1019ce8
mov dword [ebp - 0x1c], 0xc000000d
jmp 0x1019ce8
mov eax, dword fs:[0x18]
push dword [ebp - 0x20]
push ebx
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
cmp esi, ebx
jne 0x1019c94
mov dword [ebp - 0x1c], 0xc000009a
jmp 0x1019ce8
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x20]
push esi
push ebx
push dword [ebp + 8]
call edi
mov dword [ebp - 0x1c], eax
cmp eax, ebx
jl 0x1019ce8
mov eax, dword fs:[0x18]
mov ecx, dword [esi + 0xc]
inc ecx
inc ecx
push ecx
push ebx
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
cmp edi, ebx
je 0x1019c8b
push dword [esi + 0xc]
lea eax, [esi + 0x10]
push eax
push edi
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [esi + 0xc]
shr eax, 1
xor ecx, ecx
mov word [edi + eax*2], cx
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
cmp esi, ebx
je 0x1019d00
mov eax, dword fs:[0x18]
push esi
push ebx
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp dword [ebp - 0x1c], 0xc000017d
jne 0x1019d3b
mov dword [ebp - 4], ebx
int3
mov eax, dword [ebp - 0x1c]
call fcn.01013a59
ret 8
Function at 0x101a4be
Capabilities:
Get process heap flags
Query or enumerate registry value

Disassembly:
push 0x20
push 0x1023088
call fcn.01013a14
xor esi, esi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 0x24], esi
mov eax, dword [ebp + 0x18]
mov dword [eax], esi
mov eax, dword [ebp + 0x1c]
mov dword [eax], esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
cmp dword [ebp + 0x10], esi
je 0x101a510
lea eax, [ebp - 0x24]
push eax
push 0x20019
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.0101a318
mov dword [ebp - 0x1c], eax
cmp eax, esi
jl 0x101a5cb
jmp 0x101a516
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x20]
push eax
push esi
push esi
push 2
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
mov dword [ebp - 0x1c], eax
cmp eax, 0xc0000023
jne 0x101a5cb
mov eax, dword fs:[0x18]
push dword [ebp - 0x20]
push esi
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
cmp edi, esi
jne 0x101a55e
mov dword [ebp - 0x1c], 0xc000009a
jmp 0x101a5cb
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x20]
push edi
push 2
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
mov dword [ebp - 0x1c], eax
cmp eax, esi
jl 0x101a5cb
mov eax, dword [edi + 4]
cmp eax, dword [ebp + 0x14]
je 0x101a58d
mov dword [ebp - 0x1c], 0xc0000024
jmp 0x101a5cb
sub dword [ebp - 0x20], 0xc
mov eax, dword fs:[0x18]
push dword [ebp - 0x20]
push esi
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
cmp eax, esi
je 0x101a555
push dword [ebp - 0x20]
lea ecx, [edi + 0xc]
push ecx
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], eax
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp + 8]
je 0x101a5de
cmp eax, esi
je 0x101a5de
push eax
call dword [sym.imp.ntdll.dll_NtClose]
cmp edi, esi
je 0x101a5f6
mov eax, dword fs:[0x18]
push edi
push esi
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp dword [ebp - 0x1c], 0xc000017d
jne 0x101a62a
mov dword [ebp - 4], esi
int3
mov eax, dword [ebp - 0x1c]
call fcn.01013a59
ret 0x18
Function at 0x101ed92
Capabilities:
Get process heap flags
Get storage device properties

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x1025588]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x44], esi
call fcn.0101fcb0
test al, al
jne 0x101edbd
xor eax, eax
jmp 0x101ef08
push ebx
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x3c]
push eax
push 1
push 0x10201a6
push 0x10204a6
push esi
call fcn.0101f4c8
mov ebx, dword [sym.imp.ntdll.dll_RtlFreeHeap]
test eax, eax
jl 0x101eeed
cmp dword [ebp - 0x40], 4
jb 0x101eeed
push dword [ebp - 0x3c]
shr dword [ebp - 0x40], 1
call sub.msvcrt.dll__wcslwr
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x54]
push eax
push 0x1020470
push dword [ebp - 0x40]
push dword [ebp - 0x3c]
call sub.msvcrt.dll__snwscanf_s
add esp, 0x1c
cmp eax, 3
jne 0x101eeed
cmp dword [ebp - 0x54], esi
jne 0x101eeed
cmp dword [ebp - 0x4c], esi
jne 0x101eeed
cmp dword [ebp - 0x48], esi
jne 0x101eeed
lea eax, [ebp - 0x50]
push eax
push 0x102042e
call fcn.0101f614
test eax, eax
jl 0x101eeed
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push dword [ebp - 0x3c]
push esi
push dword [eax + 0x18]
call ebx
mov edx, dword [ebp - 0x50]
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0xa
stosd dword es:[edi], eax
pop ecx
xor eax, eax
push 0x28
lea edi, [ebp - 0x38]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x38]
push eax
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x2d1400
push edx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call fcn.0101fbbc
cmp eax, esi
pop edi
jge 0x101eea8
cmp eax, 0xc000003a
jmp 0x101eeac
cmp dword [ebp - 0x1c], 7
jne 0x101eeed
push 0x10203ec
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea eax, [ebp - 0x74]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x6c]
push eax
push 0x20001
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x6c], 0x18
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x60], 0x40
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], esi
call dword [sym.imp.ntdll.dll_NtOpenSymbolicLinkObject]
cmp dword [ebp - 0x3c], esi
je 0x101ef04
push dword [ebp - 0x3c]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push dword [eax + 0x18]
call ebx
mov eax, dword [ebp - 0x44]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.010134fd
leave
ret
Function at 0x101ef46
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov esi, dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push edi
push 0x102042e
lea eax, [ebp - 0x14]
xor edi, edi
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call esi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x2c]
push eax
push 0x20001
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x2c], 0x18
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], 0x40
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
call dword [sym.imp.ntdll.dll_NtOpenSymbolicLinkObject]
mov ebx, eax
cmp ebx, edi
jge 0x101efc2
cmp ebx, 0xc0000017
je 0x101f056
cmp ebx, 0xc000009a
je 0x101f056
mov ebx, 0xc0000452
jmp 0x101f056
push dword [ebp - 4]
call fcn.0101ef1a
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0xc], edi
call esi
mov esi, dword [sym.imp.ntdll.dll_NtQuerySymbolicLinkObject]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call esi
mov ebx, eax
cmp ebx, 0xc0000023
je 0x101efff
cmp ebx, edi
jl 0x101f056
mov ebx, 0xc0000001
jmp 0x101f056
mov eax, dword fs:[0x18]
mov ecx, dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
add ecx, 2
push ecx
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 8], eax
cmp eax, edi
jne 0x101f027
mov ebx, 0xc000009a
jmp 0x101f056
mov dword [ebp - 0x10], eax
mov ax, word [ebp - 0xc]
mov word [ebp - 0x12], ax
push edi
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call esi
mov ebx, eax
cmp ebx, edi
jl 0x101f056
movzx ecx, word [ebp - 0x14]
mov eax, dword [ebp - 8]
shr ecx, 1
xor edx, edx
mov word [eax + ecx*2], dx
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
cmp dword [ebp - 4], edi
je 0x101f064
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
cmp ebx, edi
jge 0x101f083
cmp dword [ebp - 8], edi
je 0x101f083
push dword [ebp - 8]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4
Function at 0x101f258
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword fs:[0x18]
push ebx
push esi
xor ebx, ebx
push 0x6a
mov dword [ebp - 0x18], ebx
mov dword [ebp - 8], ebx
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
mov byte [ebp - 1], bl
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
cmp eax, ebx
jne 0x101f299
mov esi, 0xc0000017
jmp 0x101f3c2
test byte [ebp + 0xc], 1
push edi
je 0x101f2b7
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0101f1ca
mov esi, eax
cmp esi, ebx
jge 0x101f409
push ebx
push 0x18
lea eax, [ebp - 0x34]
push eax
push 7
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov esi, eax
cmp esi, ebx
jl 0x101f3ab
mov dword [ebp + 0xc], ebx
cmp dword [ebp - 0x34], ebx
jbe 0x101f3a6
push ebx
push dword [ebp + 0xc]
push 0x101ffa2
push 0x35
push dword [ebp - 0x14]
call sub.msvcrt.dll_swprintf_s
add esp, 0x14
cmp dword [ebp - 8], ebx
je 0x101f310
push dword [ebp - 8]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov dword [ebp - 8], ebx
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x14]
call fcn.0101f894
test eax, eax
jl 0x101f392
mov eax, dword [ebp - 8]
cmp dword [eax], 1
jne 0x101f392
mov dword [ebp - 0x1c], ebx
cmp dword [eax + 4], ebx
jbe 0x101f392
add eax, 0x48
push 4
pop ecx
mov edi, 0x1003550
lea esi, [eax + 8]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
jne 0x101f358
cmp byte [ebp - 1], bl
jne 0x101f36d
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax]
mov byte [ebp - 1], 1
mov dword [ebp - 0xc], ecx
inc dword [ebp - 0x1c]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
add eax, 0x90
cmp edx, dword [ecx + 4]
jb 0x101f333
jmp 0x101f392
lea eax, [ebp - 0x18]
push eax
call fcn.0101fd10
test eax, eax
jl 0x101f400
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x18]
call fcn.0101f77c
test eax, eax
jl 0x101f400
inc dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x34]
jb 0x101f2dc
cmp byte [ebp - 1], bl
jne 0x101f407
mov esi, 0xc0000452
push dword [ebp - 0x14]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
cmp dword [ebp - 8], ebx
je 0x101f3dd
push dword [ebp - 8]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp dword [ebp - 0x18], ebx
je 0x101f3f8
push dword [ebp - 0x18]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
mov esi, 0xc0000451
jmp 0x101f3ab
xor esi, esi
cmp dword [ebp + 8], ebx
jne 0x101f411
mov dword [ebp - 0xc], ebx
push dword [ebp - 0xc]
mov edi, dword [ebp - 0x14]
push dword [ebp - 0x10]
push 0x101ffa2
push 0x35
push edi
call sub.msvcrt.dll_swprintf_s
mov eax, dword [ebp + 0x10]
add esp, 0x14
mov dword [eax], edi
jmp 0x101f3c1