joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002dd0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edx, dword [esp + 0x30]
add edx, dword [esi + ebp*4]
cmp byte [edx], 0
je 0x10003137
xor ebx, ebx
inc ebx
cmp byte [ebx + edx], 0
jne 0x10002db7
xor ecx, ecx
test ebx, ebx
je 0x10002dff
mov dword [esp + 0x24], ebp
xor eax, eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], esi
and al, 0x20
and al, 0x20
mov ebp, dword [esp + 0x18]
movzx esi, byte [eax + edx]
xor ebx, ebx
test ebp, ebp
jbe 0x10002de9
xor edi, edi
inc edi
add ebx, ecx
cmp edi, ebp
jb 0x10002de2
inc eax
lea ecx, [ebx + esi]
cmp eax, dword [esp + 0x28]
jb 0x10002dd6
mov ebp, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
invalid
Function at 0x402370
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov esi, ecx
jmp 0x4023ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 1]
dec ecx
je 0x4023a4
sub ecx, 0xe5
jne 0x4023fe
push 0xffffffffffffffff
push str..pipezenreportingpipe
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
jne 0x4023ac
or eax, 0xffffffff
jmp 0x4023fe
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0x80
push 3
push 0
push 3
push 0x40000000
push str..pipezenreportingpipe
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40237a
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0
lea ecx, [ebp - 4]
push ecx
lea eax, [eax*2 + 2]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
test esi, esi
setne al
dec eax
pop edi
pop esi
leave
ret

Function at 0x4029df
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x419080
call fcn.00418fa0
sub esp, 0x10
and dword [ebp - 0x10], 0
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [edi], 0x420880
mov dword [edi + 0x50], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
and dword [ebp - 4], 0
mov eax, dword [edi]
lea esi, [edi + 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], 1
mov dword [edi + eax], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push ecx
lea eax, [ecx - 8]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
push esi
mov ecx, dword [eax + 4]
add ecx, edi
call fcn.00403af1
mov dword [ebp - 4], 2
mov eax, dword [edi]
push 4
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ecx + edi - 4], eax
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0040612f
mov ebx, eax
pop ecx
test ebx, ebx
je 0x402a7a
push 1
call fcn.004053e6
pop ecx
mov dword [ebx], eax
xor edx, edx
jmp 0x402a7e
xor edx, edx
mov ebx, edx
lea eax, [esi + 4]
mov dword [esi + 0xc], eax
lea eax, [esi + 0x14]
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], eax
mov dword [esi + 0x34], ebx
lea ecx, [esi + 8]
mov dword [esi + 0x10], ecx
lea eax, [esi + 0x28]
mov dword [esi + 0x30], eax
mov dword [ecx], edx
mov eax, dword [esi + 0x20]
mov dword [eax], edx
mov eax, dword [esi + 0x30]
mov dword [eax], edx
mov eax, dword [esi + 0xc]
mov dword [eax], edx
mov eax, dword [esi + 0x1c]
mov dword [eax], edx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword [esi], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [esi + 0x38], edx
mov dword [esi + 0x3c], 4
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8
Function at 0x404f0e
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
push ebx
push esi
push edi
lea eax, [esp + 0x10]
xor esi, esi
push eax
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
test edi, edi
jne 0x404f4f
push 0x10
push esi
push 0x420908
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
or eax, 0xffffffff
jmp 0x40506f
cmp dword [esp + 0x10], 3
jne 0x404ffd
mov eax, dword [edi + 4]
mov ecx, str.__reportInstallProgress
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x404f88
test dx, dx
je 0x404f84
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x404f88
add eax, 4
add ecx, 4
test dx, dx
jne 0x404f62
mov eax, esi
jmp 0x404f8d
sbb eax, eax
or eax, 1
test eax, eax
jne 0x405010
push str.UPDATE
lea ecx, [esp + 0x1c]
call fcn.004029ae
push ecx
push dword [edi + 8]
call fcn.00406556
pop ecx
push eax
sub esp, 0xc
lea ecx, [esp + 0x44]
call fcn.00402259
add esp, 0x14
lea ecx, [esp + 0x18]
push 0xffffffffffffffff
push esi
push eax
call fcn.004013a6
push esi
push 1
lea ecx, [esp + 0x38]
call fcn.004012e7
cmp dword [esp + 0x2c], 8
mov ecx, dword [esp + 0x18]
jae 0x404fe1
lea ecx, [esp + 0x18]
call fcn.00402370
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
push 1
lea ecx, [esp + 0x20]
call fcn.004012e7
xor eax, eax
jmp 0x40506f
cmp dword [esp + 0x10], 2
jge 0x405010
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x404f47
mov ecx, dword [edi + 4]
lea eax, [esp + 0x14]
push eax
mov edx, 0x7fffffff
call fcn.00404e20
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
add eax, eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x405041
or esi, 0xffffffff
jmp 0x405066
push dword [esp + 0x14]
mov ecx, dword [edi + 4]
mov edx, ebx
call fcn.00404e7b
pop ecx
push 1
push ebx
push esi
push dword [edi + 4]
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x411458
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x423578]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00408ec0
mov dword [ebp - 0x14], eax
cmp dword [0x4259bc], edi
jne 0x411549
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x4114d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x411629
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x411629
push 0x41f720
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x411629
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x4259bc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x4259c0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x4259c4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4259cc], eax
test eax, eax
je 0x411546
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4259c8], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x41156e
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x411561
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x411583
push 4
pop eax
jmp 0x41162b
cmp dword [ebp - 0x14], edi
je 0x411583
push dword [0x4259bc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x411568
mov eax, dword [0x4259c8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x4115e1
cmp dword [0x4259cc], esi
je 0x4115e1
push eax
call ebx
push dword [0x4259cc]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4115e1
test eax, eax
je 0x4115e1
call ecx
test eax, eax
je 0x4115d6
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4115d6
test byte [ebp - 8], 1
jne 0x4115e1
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x411611
mov eax, dword [0x4259c0]
cmp eax, esi
je 0x41160e
push eax
call ebx
test eax, eax
je 0x41160e
call eax
mov edi, eax
test edi, edi
je 0x41160e
mov eax, dword [0x4259c4]
cmp eax, esi
je 0x41160e
push eax
call ebx
test eax, eax
je 0x41160e
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x4259bc]
call ebx
test eax, eax
je 0x411629
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x41162b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406ddb
leave
ret
Function at 0x41577f
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0040c12e
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x4157b7
xor eax, eax
jmp 0x4157e3
cmp esi, dword [ebp - 4]
je 0x4157e0
cmp dword [ebp + 0xc], 0
je 0x4157e0
push dword [edi + 0x9c]
call fcn.0041538d
push dword [edi + 0x9c]
mov esi, eax
call fcn.00409373
pop ecx
pop ecx
cmp esi, eax
je 0x4157b3
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0xde2f00
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x434
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
push esi
mov byte [esp + 0x2f], bl
call dword [0x415210]
mov edi, eax
mov dword [esp + 0x24], edi
cmp edi, 0xffffffff
je 0xde309b
push ebx
push edi
call dword [0x415120]
push ebx
push ebx
push ebx
push 2
push ebx
push edi
call dword [0x415174]
mov dword [esp + 0x20], eax
cmp eax, ebx
je 0xde3092
push ebx
push ebx
push ebx
push 4
push eax
call dword [0x415128]
mov edi, eax
mov dword [esp + 0x18], edi
cmp edi, ebx
je 0xde3089
push esi
call dword [0x415338]
sub eax, esi
sar eax, 1
push eax
push esi
lea eax, [esp + 0x240]
push eax
call dword [0x415158]
mov eax, dword [edi + 0x3c]
add eax, edi
movzx ecx, word [eax + 6]
mov dword [esp + 0x2c], ecx
cmp ecx, ebx
je 0xde307f
cmp dword [eax + 0x84], ebx
je 0xde307f
movzx edx, word [eax + 0x14]
mov esi, dword [eax + 0x80]
lea edx, [edx + eax + 0x18]
push ecx
mov dword [esp + 0x20], edx
call fcn.00de2400
add eax, edi
add eax, 0xc
pop ecx
cmp dword [eax], ebx
je 0xde307f
mov dword [esp + 0x14], eax
cmp dword [eax + 4], ebx
je 0xde3069
push dword [esp + 0x2c]
mov esi, dword [eax]
mov edx, dword [esp + 0x20]
call fcn.00de2400
mov edi, eax
add edi, dword [esp + 0x1c]
pop ecx
push edi
call fcn.00deb83b
pop ecx
mov esi, eax
push esi
call fcn.00de949f
pop ecx
mov dword [esp + 0x28], eax
call fcn.00de81e5
cmp dword [esp + 0x28], ebx
jne 0xde3065
push edi
lea eax, [esp + 0x23c]
push eax
push 0x17f62b80
push 5
push 0x415c78
call fcn.00de9b1a
add esp, 0xc
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.00debd1e
lea eax, [esp + 0x40]
push eax
call fcn.00de9cd9
add esp, 0x14
test eax, eax
je 0xde3065
lea eax, [esp + 0x30]
push eax
push dword [ebp + 8]
call fcn.00de2c6e
pop ecx
pop ecx
test al, al
jne 0xde307a
mov eax, dword [esp + 0x14]
add eax, 0x14
mov dword [esp + 0x14], eax
cmp dword [eax], ebx
jne 0xde2fdb
jmp 0xde307f
mov byte [esp + 0x13], 1
push dword [esp + 0x18]
call dword [0x41512c]
mov esi, dword [esp + 0x20]
call fcn.00de8e17
mov esi, dword [esp + 0x24]
call fcn.00de8e17
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xde9f89
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
push esi
mov esi, eax
push edi
push esi
call fcn.00decbe6
pop ecx
pop ecx
test al, al
jne 0xde9f9d
xor eax, eax
pop esi
ret
mov eax, edi
shr eax, 2
xor edx, edx
lea ecx, [esi + eax*4]
neg eax
je 0xde9fce
mov esi, dword [ecx + eax*4]
imul esi, esi, 0xcc9e2d51
rol esi, 0xf
imul esi, esi, 0x1b873593
xor edx, esi
rol edx, 0xd
imul edx, edx, 5
add edx, 0xe6546b64
inc eax
jne 0xde9fab
mov eax, edi
and eax, 3
xor esi, esi
dec eax
je 0xde9fee
dec eax
je 0xde9fe5
dec eax
jne 0xdea004
movzx esi, byte [ecx + 2]
shl esi, 0x10
movzx eax, byte [ecx + 1]
shl eax, 8
xor esi, eax
movzx eax, byte [ecx]
xor eax, esi
imul eax, eax, 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor edx, eax
xor edx, edi
mov eax, edx
shr eax, 0x10
xor eax, edx
imul eax, eax, 0x85ebca6b
mov ecx, eax
shr ecx, 0xd
xor ecx, eax
imul ecx, ecx, 0xc2b2ae35
mov eax, ecx
shr eax, 0x10
xor eax, ecx
pop esi
ret

Function at 0xdea230
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
call dword [0x4151f4]
mov esi, dword [ebp + 0x10]
xor edx, edx
mov edi, eax
cmp esi, edx
je 0xdea266
xor eax, eax
cmp dword [ebp + 0x14], edx
jbe 0xdea266
push ebx
movzx ebx, byte [edx + esi]
mov ecx, eax
shl ecx, 3
shl ebx, cl
xor edi, ebx
inc edx
inc eax
and eax, 3
cmp edx, dword [ebp + 0x14]
jb 0xdea24e
pop ebx
cmp dword [ebp + 0xc], 0
je 0xdea282
mov esi, dword [ebp + 8]
dec dword [ebp + 0xc]
mov eax, edi
call fcn.00dea029
mov byte [esi], al
inc esi
cmp dword [ebp + 0xc], 0
jne 0xdea26f
pop edi
xor eax, eax
pop esi
pop ebp
ret

Function at 0xdeb388
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push esi
push dword [ebp + 0xc]
xor esi, esi
push dword [ebp + 8]
call fcn.00decbe6
pop ecx
pop ecx
test al, al
je 0xdeb43d
push 0x10
push dword [ebp + 0x10]
call fcn.00decc0d
pop ecx
pop ecx
test al, al
je 0xdeb43d
push dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], esi
lea esi, [ebp - 0x64]
mov dword [ebp - 0x64], 0x67452301
mov dword [ebp - 0x60], 0xefcdab89
mov dword [ebp - 0x5c], 0x98badcfe
mov dword [ebp - 0x58], 0x10325476
call fcn.00deac26
lea eax, [ebp - 0x54]
push eax
push 8
pop edx
lea ecx, [ebp - 0xc]
call fcn.00deb353
pop ecx
pop ecx
mov ecx, dword [ebp - 0x54]
shr ecx, 3
push 0x38
and ecx, 0x3f
pop eax
cmp ecx, eax
jb 0xdeb40e
push 0x78
pop eax
sub eax, ecx
push 0x419820
lea esi, [ebp - 0x64]
call fcn.00deac26
lea eax, [ebp - 0xc]
push eax
push 8
pop eax
call fcn.00deac26
mov ecx, dword [ebp + 0x10]
mov eax, esi
push eax
push 0x10
pop edx
call fcn.00deb353
xor esi, esi
add esp, 0xc
inc esi
mov eax, esi
pop esi
leave
ret
Function at 0xdef5e3
Capabilities:
Encode data using xor

Disassembly:
push ecx
cmp dword [0x41bdcc], 1
push ebx
push ebp
push esi
push edi
jne 0xdef68b
xor eax, eax
mov dword [esp + 0x10], eax
cmp dword [esp + 0x1c], eax
jle 0xdef68b
mov ecx, dword [esp + 0x18]
lea edx, [ecx + eax*8]
mov esi, dword [edx + 4]
xor edi, edi
or edi, dword [edx]
xor ecx, ecx
or esi, ecx
mov ebp, edi
mov ecx, edi
mov ebx, esi
shld ebp, ebx, 0x10
mov eax, esi
shrd eax, ecx, 0x10
shld edi, esi, 0x10
shl ebx, 0x10
xor eax, ebx
shr ecx, 0x10
xor ecx, ebp
shl esi, 0x10
mov ebx, 0xffff
and eax, ebx
and ecx, ebx
xor eax, esi
xor ecx, edi
mov esi, eax
mov ebx, eax
mov ebp, ecx
shld ebp, esi, 8
mov edi, ecx
shrd ebx, edi, 8
shl esi, 8
xor ebx, esi
shr edi, 8
shld ecx, eax, 8
xor edi, ebp
mov esi, 0xff00ff
shl eax, 8
and ebx, esi
xor ebx, eax
mov eax, dword [esp + 0x10]
and edi, esi
xor edi, ecx
inc eax
mov dword [edx], ebx
mov dword [edx + 4], edi
mov dword [esp + 0x10], eax
cmp eax, dword [esp + 0x1c]
jl 0xdef605
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0xdef691
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0xdef7a3
push ebx
push esi
mov ecx, eax
xor esi, esi
xor edx, edx
and ecx, 7
je 0xdef6c6
mov ebx, dword [ebp + 8]
mov edx, ecx
mov esi, eax
shr esi, 3
mov bl, byte [esi + ebx]
mov cl, 8
sub cl, dl
shr bl, cl
movzx esi, bl
shr eax, 3
mov dword [ebp - 8], eax
lea eax, [edi + 7]
shr eax, 3
xor edi, edi
mov dword [ebp - 0x10], eax
test eax, eax
jle 0xdef7a1
lea ecx, [eax - 1]
cmp edi, ecx
je 0xdef6fb
mov ecx, dword [ebp + 0xc]
movzx ecx, byte [edi + ecx]
shl esi, 8
xor cx, si
movzx esi, cx
add edx, 8
jmp 0xdef72b
mov ecx, dword [ebp + 0x10]
and ecx, 7
mov dword [ebp - 4], 8
je 0xdef70d
mov dword [ebp - 4], ecx
mov ebx, dword [ebp + 0xc]
mov bl, byte [edi + ebx]
mov cl, 8
sub cl, byte [ebp - 4]
shr bl, cl
mov ecx, dword [ebp - 4]
shl si, cl
movzx ebx, bl
or bx, si
movzx esi, bx
add edx, ecx
xor ebx, ebx
lea ecx, [eax - 1]
cmp edi, ecx
setne bl
mov dword [ebp - 0xc], ebx
xor ecx, ecx
cmp edx, 8
setge cl
test dword [ebp - 0xc], ecx
jne 0xdef75a
xor ebx, ebx
lea ecx, [eax - 1]
cmp edi, ecx
sete bl
xor ecx, ecx
test edx, edx
setg cl
test ecx, ebx
je 0xdef798
push 8
pop eax
mov dword [ebp - 4], eax
cmp edx, eax
jg 0xdef767
mov dword [ebp - 4], edx
mov cl, dl
sub cl, byte [ebp - 4]
mov ebx, esi
shr bx, cl
mov ecx, eax
sub ecx, dword [ebp - 4]
mov eax, 0xff00
shl bl, cl
mov ecx, dword [ebp - 4]
sar eax, cl
mov ecx, dword [ebp - 8]
and bl, al
mov eax, dword [ebp + 8]
inc dword [ebp - 8]
sub edx, dword [ebp - 4]
mov byte [ecx + eax], bl
mov eax, dword [ebp - 0x10]
jmp 0xdef738
inc edi
cmp edi, eax
jl 0xdef6df
pop esi
pop ebx
pop edi
leave
ret
Function at 0xdf36d9
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0xdf370a
mov eax, dword fs:[4]
mov dword [ebp + 8], eax
mov eax, dword fs:[8]
mov dword [ebp - 4], eax
cmp ebx, dword [ebp - 4]
jb 0xdf3711
cmp ebx, dword [ebp + 8]
jae 0xdf3711
xor eax, eax
jmp 0xdf38f7
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0xdf3722
xor eax, eax
inc eax
jmp 0xdf38f6
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0xdf3734
cmp ecx, edx
jae 0xdf3798
cmp dword [eax + 4], 0
je 0xdf373d
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0xdf3729
cmp dword [ebp + 8], 0
je 0xdf3757
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0xdf3798
cmp eax, esi
jae 0xdf3798
mov ecx, dword [0x41c1f0]
mov esi, ebx
and esi, 0xfffff000
xor eax, eax
test ecx, ecx
jle 0xdf3779
cmp dword [eax*4 + 0x41c1f8], esi
je 0xdf379f
inc eax
cmp eax, ecx
jl 0xdf376b
lea eax, [ebp + 8]
push eax
push 0x1c
lea eax, [ebp - 0x20]
push eax
push 0
push ebx
or edi, 0xffffffff
push edi
call fcn.00df3902
test eax, eax
jl 0xdf380f
mov eax, dword [ebp + 8]
jmp 0xdf3811
xor eax, eax
jmp 0xdf38f6
test eax, eax
jle 0xdf371a
xor edx, edx
mov ebx, 0x41c238
inc edx
mov edi, ebx
xchg dword [edi], edx
test edx, edx
jne 0xdf371a
cmp dword [eax*4 + 0x41c1f8], esi
je 0xdf37ee
lea eax, [ecx - 1]
test eax, eax
jl 0xdf37db
cmp dword [eax*4 + 0x41c1f8], esi
je 0xdf37d7
dec eax
jns 0xdf37cb
test eax, eax
jge 0xdf37ec
cmp ecx, 0x10
jge 0xdf37e7
inc ecx
mov dword [0x41c1f0], ecx
lea eax, [ecx - 1]
jmp 0xdf37ee
je 0xdf3806
xor edx, edx
test eax, eax
jl 0xdf3806
lea ecx, [edx*4 + 0x41c1f8]
mov edi, dword [ecx]
inc edx
cmp edx, eax
mov dword [ecx], esi
mov esi, edi
jle 0xdf37f4
xor eax, eax
xchg dword [ebx], eax
jmp 0xdf371a
xor eax, eax
test eax, eax
je 0xdf38f4
cmp dword [ebp - 8], 0x1000000
jne 0xdf38f4
test byte [ebp - 0xc], 0xcc
je 0xdf3886
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0xdf38f4
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0xdf38f4
cmp word [eax + 0x18], 0x10b
jne 0xdf38f4
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0xdf38f4
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0xdf3886
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0xdf3886
test byte [ecx + 0x27], 0x80
jne 0xdf3798
xor eax, eax
inc eax
mov ecx, eax
mov edx, 0x41c238
xchg dword [edx], ecx
test ecx, ecx
jne 0xdf38f6
mov ecx, dword [0x41c1f0]
test ecx, ecx
mov edx, ecx
jle 0xdf38b5
lea eax, [ecx*4 + 0x41c1f4]
cmp dword [eax], esi
je 0xdf38b5
dec edx
sub eax, 4
test edx, edx
jg 0xdf38a9
test edx, edx
jne 0xdf38e6
push 0xf
pop ebx
cmp ecx, ebx
jg 0xdf38c2
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0xdf38da
lea eax, [edx*4 + 0x41c1f8]
mov edi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], esi
mov esi, edi
jle 0xdf38c8
cmp ecx, 0x10
jge 0xdf38e6
inc ecx
mov dword [0x41c1f0], ecx
xor eax, eax
mov ecx, 0x41c238
xchg dword [ecx], eax
jmp 0xdf371a
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4bb9bc
Capabilities:
Compare security identifiers

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov byte [esp], 0
lea eax, [esp + 4]
push eax
push 0xffffffffffffffff
push 8
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.advapi32.dll_OpenThreadToken
mov ebx, eax
test ebx, ebx
jne 0x4bba00
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x3f0
jne 0x4bba00
lea eax, [esp + 4]
push eax
push 8
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
mov ebx, eax
test ebx, ebx
je 0x4bba97
mov eax, 0x400
call fcn.00402efc
mov esi, eax
lea eax, [esp + 8]
push eax
push 0x400
push esi
push 2
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_GetTokenInformation
mov ebx, eax
mov eax, dword [esp + 4]
push eax
call sub.kernel32.dll_CloseHandle_1
test ebx, ebx
je 0x4bba90
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
push 0x4c33b8
call sub.advapi32.dll_AllocateAndInitializeSid
mov ebx, dword [esi]
dec ebx
test ebx, ebx
jl 0x4bba86
inc ebx
xor edi, edi
mov eax, dword [esi + edi*8 + 4]
push eax
mov eax, dword [esp + 0x10]
push eax
call sub.advapi32.dll_EqualSid
test eax, eax
je 0x4bba82
mov byte [esp], 1
jmp 0x4bba86
inc edi
dec ebx
jne 0x4bba69
mov eax, dword [esp + 0xc]
push eax
call sub.advapi32.dll_FreeSid
mov eax, esi
call fcn.00402f18
movzx eax, byte [esp]
add esp, 0x10
pop edi
pop esi
pop ebx
ret

Function at 0x401f00
Capabilities:
Parse pe header

Disassembly:
mov edx, dword [esp + 4]
sub eax, eax
cmp word [edx], 0x5a4d
je 0x401f10
repz ret
add edx, dword [edx + 0x3c]
cmp dword [edx], 0x4550
jne 0x401f0d
sub eax, eax
cmp word [edx + 0x18], 0x10b
sete al
ret