joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41957f
Capabilities:
Allocate or change rwx memory
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
mov esi, eax
push edi
mov ebx, 0x10000
cmp esi, 0x7ff80000
jbe 0x4195a2
lea eax, [esi - 0x7ff80000]
mov dword [ebp - 4], eax
jmp 0x4195a5
mov dword [ebp - 4], ebx
cmp esi, 0x80000000
jae 0x4195b8
lea eax, [esi + 0x7ff80000]
mov dword [ebp - 8], eax
jmp 0x4195bf
mov dword [ebp - 8], 0xfff80000
mov eax, dword [0x6b6b70]
mov ecx, dword [0x6b6b6c]
test eax, eax
jne 0x4195d9
test ecx, ecx
je 0x4195ee
mov eax, ecx
mov dword [0x6b6b70], eax
mov edx, dword [eax + 8]
test edx, edx
je 0x4195ee
cmp edx, dword [ebp - 4]
jb 0x4195ee
cmp edx, dword [ebp - 8]
jbe 0x4196bf
mov eax, ecx
test ecx, ecx
jmp 0x419612
test eax, eax
je 0x41960d
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x41960d
cmp ecx, dword [ebp - 4]
jb 0x41960d
cmp ecx, dword [ebp - 8]
jbe 0x4196bf
mov eax, dword [eax + 4]
test eax, eax
mov dword [0x6b6b70], eax
jne 0x4195f4
mov eax, esi
and eax, 0xffff
sub esi, eax
mov edi, esi
cmp esi, dword [ebp - 4]
jbe 0x419749
lea eax, [edi - 0x70000000]
cmp eax, 0x10000000
ja 0x41963f
mov edi, 0x6fff0000
push 0x1c
lea eax, [ebp - 0x40]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x419749
cmp dword [ebp - 0x30], ebx
jne 0x41965e
cmp dword [ebp - 0x34], ebx
jae 0x419671
mov edi, dword [ebp - 0x3c]
add edi, 0xffff0000
cmp edi, dword [ebp - 4]
ja 0x41962d
jmp 0x419749
push 0x40
push 0x3000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x6b6b70], eax
test eax, eax
je 0x419749
mov ecx, dword [0x6b6b6c]
xor edx, edx
mov dword [eax + 4], ecx
mov dword [eax], 0x52727464
mov dword [eax + 8], edx
mov dword [0x6b6b6c], eax
lea ecx, [eax + 0xffe0]
mov esi, 0x7fd
mov dword [ecx + 0x18], edx
mov edx, ecx
sub ecx, 0x20
dec esi
jne 0x4196b1
mov dword [eax + 8], edx
mov edx, dword [eax + 8]
cmp edx, dword [ebp - 4]
jb 0x41974e
cmp edx, dword [ebp - 8]
ja 0x41974e
mov ecx, dword [edx + 0x18]
mov dword [eax + 8], ecx
push 8
mov eax, 0xcccccccc
pop ecx
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, edx
jmp 0x419750
lea eax, [esi - 0x70000000]
cmp eax, 0x10000000
ja 0x4196f8
mov esi, 0x80010000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41974e
cmp dword [ebp - 0x14], ebx
jne 0x419743
cmp dword [ebp - 0x18], ebx
jb 0x419743
movzx ecx, si
test ecx, ecx
je 0x419727
mov eax, ebx
sub eax, ecx
sub dword [ebp - 0x18], eax
add dword [ebp - 0x24], eax
mov esi, dword [ebp - 0x24]
push 0x40
push 0x3000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x6b6b70], eax
test eax, eax
jne 0x41968d
mov esi, dword [ebp - 0x24]
add esi, dword [ebp - 0x18]
cmp esi, dword [ebp - 8]
jb 0x4196e6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41aebc
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x609085
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov byte [esi + 0x24], bl
mov dword [ebp - 4], ebx
mov dword [esi + 0x28], ebx
mov byte [ebp - 4], 1
mov dword [esi + 0x2c], ebx
mov eax, dword [0x6d0fd0]
mov edx, dword [eax + 0xc]
mov ecx, 0x6d0fd0
call edx
add eax, 0x10
mov dword [esi + 0x30], eax
mov byte [ebp - 4], 2
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov byte [ebp - 4], 3
lea edi, [esi + 0x40]
lea eax, [ebx + 1]
mov dword [ebp - 0x10], edi
mov dword [edi + 8], ebx
call fcn.0040a9a8
mov dword [edi + 4], eax
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov eax, dword [edi + 4]
mov byte [eax + 0x14], 1
mov ecx, dword [edi + 4]
mov byte [ecx + 0x15], 1
mov byte [ebp - 4], 6
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov byte [ebp - 4], 7
lea edi, [esi + 0x60]
lea eax, [ebx + 1]
mov dword [ebp - 0x10], edi
mov dword [edi + 8], ebx
call fcn.0040a9a8
mov dword [edi + 4], eax
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov edx, dword [edi + 4]
mov byte [edx + 0x14], 1
mov eax, dword [edi + 4]
mov byte [eax + 0x15], 1
mov byte [ebp - 4], 0xa
mov dword [esi + 0x70], ebx
mov byte [ebp - 4], 0xb
lea edi, [esi + 0x74]
lea eax, [ebx + 1]
mov dword [ebp - 0x10], edi
mov dword [edi + 8], ebx
call fcn.0040a9a8
mov dword [edi + 4], eax
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov ecx, dword [edi + 4]
mov byte [ecx + 0x14], 1
mov edx, dword [edi + 4]
mov byte [edx + 0x15], 1
mov byte [ebp - 4], 0xe
mov dword [esi + 0x84], ebx
mov dword [esi + 0x88], ebx
mov dword [esi + 0x8c], ebx
mov byte [ebp - 4], 0xf
lea edi, [esi + 0x94]
lea eax, [ebx + 1]
mov dword [ebp - 0x10], edi
mov dword [edi + 8], ebx
call fcn.0040a9a8
mov dword [edi + 4], eax
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov eax, dword [edi + 4]
mov byte [eax + 0x14], 1
mov ecx, dword [edi + 4]
mov byte [ecx + 0x15], 1
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 4
Function at 0x421739
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0x14], 8
push edi
mov edi, edx
jb 0x42175a
mov eax, dword [esi]
jmp 0x42175c
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea eax, [ebp - 0x20]
push eax
push esi
mov ecx, edi
call fcn.004108b7
xor ebx, ebx
cmp byte [ebp + 0xc], bl
je 0x421789
cmp dword [ebp - 0xc], 8
mov eax, dword [ebp - 0x20]
jae 0x421782
lea eax, [ebp - 0x20]
push eax
call fcn.0042276e
pop ecx
push str.Software360360se6Chrome
lea esi, [ebp - 0x3c]
call fcn.0040beca
cmp dword [ebp - 0x28], 8
mov eax, dword [ebp - 0x3c]
jae 0x4217a1
mov eax, esi
push 0x20019
push eax
push 0x80000001
lea esi, [ebp - 0x44]
call fcn.0041071a
cmp dword [ebp - 0x44], ebx
je 0x4217f1
push str.nosign_sygyzy
mov eax, esi
push eax
call fcn.0041083b
test al, al
jne 0x4217f1
mov eax, dword [ebp + 8]
cmp dword [eax + 0x10], ebx
jne 0x4217f1
lea eax, [ebp - 0x20]
call fcn.00410b78
test al, al
je 0x4217f1
cmp dword [ebp - 0xc], 8
mov eax, dword [ebp - 0x20]
jae 0x4217ea
lea eax, [ebp - 0x20]
push eax
call fcn.004b7e02
pop ecx
push str.antilsp.dll
mov eax, edi
call fcn.0040cb3a
test eax, eax
jne 0x421856
lea eax, [ebp - 0x20]
call fcn.00410b78
test al, al
je 0x421856
cmp dword [ebp - 0xc], 8
mov eax, dword [ebp - 0x20]
jae 0x421819
lea eax, [ebp - 0x20]
push 1
push eax
call fcn.00421870
pop ecx
pop ecx
test al, al
jne 0x421856
lea esi, [ebp - 0x44]
call fcn.004107f6
push 1
xor edi, edi
lea esi, [ebp - 0x3c]
call fcn.0040bad4
push 1
lea esi, [ebp - 0x20]
call fcn.0040bad4
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00403fc1
leave
ret
cmp dword [ebp - 0xc], 8
mov eax, dword [ebp - 0x20]
jae 0x421862
lea eax, [ebp - 0x20]
push 8
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
jmp 0x421827

Function at 0x42227b
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [eax + 4]
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x42228b
xor al, al
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x422288
mov ecx, 0xe0
cmp word [eax + 0x14], cx
jne 0x422288
add ecx, 0x2b
cmp word [eax + 0x18], cx
sete al
ret
Function at 0x42276e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x14], ebx
call fcn.00411377
cmp dword [eax], 1
jle 0x42282c
push ebx
push 0x8000000
push 3
push ebx
push 7
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
lea eax, [ebp - 8]
mov dword [ebp - 8], ebx
call fcn.00421cdd
cmp dword [ebp - 8], ebx
je 0x4227bb
cmp dword [ebp - 8], 0xffffffff
jne 0x4227ca
lea esi, [ebp - 8]
call fcn.00421d0f
xor al, al
jmp 0x422883
push 4
push 0x1000
mov esi, 0x100000
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x4227bb
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea ecx, [ebp - 0x10]
push ecx
push esi
mov dword [ebp - 0xc], ebx
push eax
jmp 0x42280a
mov eax, dword [ebp - 0x10]
cmp eax, ebx
jbe 0x422813
add dword [ebp - 0xc], eax
push ebx
lea eax, [ebp - 0x10]
push eax
push esi
push dword [ebp - 0x14]
push dword [ebp - 8]
call edi
test eax, eax
jne 0x4227f7
push 0x8000
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
lea esi, [ebp - 8]
call fcn.00421d0f
jmp 0x422881
push 9
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
cmp esi, ebx
je 0x4227c3
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x6402a0
mov dword [ebp - 0x14], esi
call fcn.0042227b
test al, al
jne 0x422859
call fcn.004bc45d
mov eax, dword [esi + 0x3c]
mov eax, dword [eax + esi + 0x50]
or dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
lea eax, [ebp - 0x14]
jb 0x422872
lea eax, [ebp - 0x10]
push dword [eax]
call fcn.004b4e29
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4247d2
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x608939
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov byte [esi + 0x24], bl
mov dword [ebp - 4], ebx
mov dword [esi + 0x28], ebx
mov byte [ebp - 4], 1
mov dword [esi + 0x2c], ebx
mov eax, dword [0x6d0fd0]
mov edx, dword [eax + 0xc]
mov ecx, 0x6d0fd0
call edx
add eax, 0x10
mov dword [esi + 0x30], eax
mov byte [ebp - 4], 2
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov byte [ebp - 4], 3
lea edi, [esi + 0x40]
lea eax, [ebx + 1]
mov dword [ebp - 0x10], edi
mov dword [edi + 8], ebx
call fcn.0040a9a8
mov dword [edi + 4], eax
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov eax, dword [edi + 4]
mov byte [eax + 0x14], 1
mov ecx, dword [edi + 4]
mov byte [ecx + 0x15], 1
mov byte [ebp - 4], 6
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov byte [ebp - 4], 7
lea edi, [esi + 0x60]
lea eax, [ebx + 1]
mov dword [ebp - 0x10], edi
mov dword [edi + 8], ebx
call fcn.0040a9a8
mov dword [edi + 4], eax
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov edx, dword [edi + 4]
mov byte [edx + 0x14], 1
mov eax, dword [edi + 4]
mov byte [eax + 0x15], 1
mov byte [ebp - 4], 0xa
mov dword [esi + 0x70], ebx
mov byte [ebp - 4], 0xb
lea edi, [esi + 0x74]
lea eax, [ebx + 1]
mov dword [ebp - 0x10], edi
mov dword [edi + 8], ebx
call fcn.0040a9a8
mov dword [edi + 4], eax
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov ecx, dword [edi + 4]
mov byte [ecx + 0x14], 1
mov edx, dword [edi + 4]
mov byte [edx + 0x15], 1
mov byte [ebp - 4], 0xe
mov dword [esi + 0x84], ebx
mov dword [esi + 0x88], ebx
mov dword [esi + 0x8c], ebx
mov byte [ebp - 4], 0xf
lea edi, [esi + 0x94]
lea eax, [ebx + 1]
mov dword [ebp - 0x10], edi
mov dword [edi + 8], ebx
call fcn.0040a9a8
mov dword [edi + 4], eax
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov eax, dword [edi + 4]
mov byte [eax + 0x14], 1
mov ecx, dword [edi + 4]
mov byte [ecx + 0x15], 1
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 4
Function at 0x436ed6
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x104
mov eax, dword [0x6c6288]
and dword [esp], 0
push ebx
push esi
push edi
cmp eax, 0xffffffff
je 0x436f77
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
je 0x436f77
push 0x40
pop ecx
lea eax, [esp + 0x10]
push eax
push dword [0x6c6288]
mov esi, ebx
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
call edi
push ebx
call fcn.00404e46
pop ecx
mov dword [esp + 0xc], 0x40
mov esi, dword [0x6b7cd0]
xor bl, bl
jmp 0x436f5a
lea eax, [esp + esi*4 + 0x10]
mov ecx, dword [eax]
test ecx, ecx
je 0x436f59
mov edx, dword [esi*4 + 0x6b4350]
test edx, edx
je 0x436f59
and dword [eax], 0
push ecx
call edx
pop ecx
mov bl, 1
dec esi
test esi, esi
jg 0x436f3b
dec dword [esp + 0xc]
cmp dword [esp + 0xc], 0
jle 0x436f6d
test bl, bl
jne 0x436f31
push 0
push dword [0x6c6288]
call edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43dad7
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 8]
and dword [esp], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push eax
lea esi, [esp + 0x18]
mov dword [esp + 0x14], ebx
call fcn.0040c759
push 4
push 0x62f504
push 4
xor edx, edx
mov eax, esi
call fcn.0040cb66
test eax, eax
jne 0x43db56
and dword [esp + 0x40], eax
push 0xffffffffffffffff
mov word [esp + 0x34], ax
push 4
mov eax, esi
push eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x50], 7
call fcn.0040c386
lea eax, [esp + 0x30]
push eax
mov eax, esi
call fcn.0040ba78
push 1
xor edi, edi
lea esi, [esp + 0x34]
call fcn.0040bad4
lea eax, [esp + 0x14]
push eax
call fcn.0043dc2c
pop ecx
test al, al
je 0x43db8f
mov eax, dword [esp + 0x10]
mov byte [eax], 0
xor ebx, ebx
push 1
xor edi, edi
lea esi, [esp + 0x18]
call fcn.0040bad4
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.00403fc1
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
push eax
push 0
lea eax, [esp + 0x1c]
push eax
lea esi, [esp + 0x3c]
call fcn.0040c35b
push eax
lea eax, [esp + 0x18]
call fcn.0040ba78
push 1
xor edi, edi
call fcn.0040bad4
cmp dword [esp + 0x28], 8
mov eax, dword [esp + 0x14]
jae 0x43dbc5
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x43dbea
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x43dbf1
cmp eax, 3
je 0x43dbf1
cmp eax, 0x7b
je 0x43dbf1
mov ebx, eax
jmp 0x43db6e
test eax, 0x400
jne 0x43dc14
lea eax, [esp + 0xc]
push eax
or ecx, 0xffffffff
lea edi, [esp + 0x18]
mov dword [esp + 0x10], 0x5c
call fcn.0043da41
cmp eax, 0xffffffff
jne 0x43db92
jmp 0x43db65
mov byte [ebx], 1
jmp 0x43db6c
Function at 0x440e73
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push esi
mov dword [ebp - 0x5c], eax
cmp byte [ebx + 0x38], al
jne 0x440e9c
mov eax, 0x3f0
jmp 0x440f99
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea ecx, [ebp - 0x54]
push ecx
push eax
push eax
push 2
push dword [ebx + 0x30]
mov dword [ebp - 0x54], eax
call esi
cmp dword [ebp - 0x54], 0
jne 0x440ec3
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x440f99
push dword [ebp - 0x54]
call fcn.004013b3
pop ecx
lea ecx, [ebp - 0x54]
push ecx
push dword [ebp - 0x54]
mov dword [ebp - 0x58], eax
push eax
push 2
push dword [ebx + 0x30]
call esi
test eax, eax
jne 0x440eed
push dword [ebp - 0x58]
call fcn.00404e46
pop ecx
jmp 0x440eb8
mov eax, dword [ebp - 0x58]
and dword [ebp - 0x5c], 0
cmp dword [eax], 0
jbe 0x440f90
lea esi, [eax + 4]
mov dword [ebp - 0x68], esi
mov ecx, dword [esi + 4]
test cl, 0x20
jne 0x440f7c
test ecx, 0xc0000000
jne 0x440f7c
test edi, edi
je 0x440f5f
mov ecx, dword [edi]
mov eax, dword [edi + 4]
sub eax, ecx
push 0x44
cdq
pop esi
idiv esi
and dword [ebp - 0x60], 0
test eax, eax
je 0x440f5c
and dword [ebp - 0x64], 0
mov esi, dword [ebp - 0x68]
add ecx, dword [ebp - 0x64]
push dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x440f79
mov ecx, dword [edi]
mov eax, dword [edi + 4]
sub eax, ecx
push 0x44
cdq
pop esi
idiv esi
inc dword [ebp - 0x60]
add dword [ebp - 0x64], 0x44
cmp dword [ebp - 0x60], eax
jb 0x440f30
mov esi, dword [ebp - 0x68]
push dword [esi]
lea eax, [ebp - 0x50]
push eax
push 0x44
call dword [sym.imp.ADVAPI32.dll_CopySid]
lea eax, [ebx + 0x20]
push eax
lea eax, [ebp - 0x50]
call fcn.0044097f
mov eax, dword [ebp - 0x58]
inc dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x5c]
add esi, 8
mov dword [ebp - 0x68], esi
cmp ecx, dword [eax]
jb 0x440f03
push eax
call fcn.00404e46
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00403fc1
leave
ret 4
Function at 0x44103a
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor eax, eax
push edi
mov edi, dword [ebp + 8]
mov dword [ebp + 0xc], eax
cmp byte [edi + 0x38], al
jne 0x44105d
mov eax, 0x3f0
jmp 0x44115c
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea ecx, [ebp + 0xc]
push ecx
push eax
push eax
push 3
push dword [edi + 0x30]
mov dword [ebp + 0xc], eax
call esi
cmp dword [ebp + 0xc], 0
jne 0x441084
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x44115c
push dword [ebp + 0xc]
call fcn.004013b3
pop ecx
lea ecx, [ebp + 0xc]
push ecx
push dword [ebp + 0xc]
mov dword [ebp - 8], eax
push eax
push 3
push dword [edi + 0x30]
call esi
test eax, eax
jne 0x4410ae
push dword [ebp - 8]
call fcn.00404e46
pop ecx
jmp 0x441079
mov eax, dword [ebp - 8]
and dword [ebp - 0x10], 0
cmp dword [eax], 0
jbe 0x441153
add eax, 4
mov dword [ebp - 4], eax
test ebx, ebx
je 0x44112e
mov ecx, dword [ebx]
mov eax, dword [ebx + 4]
sub eax, ecx
push 0x1c
cdq
pop esi
idiv esi
and dword [ebp - 0xc], 0
test eax, eax
je 0x44112e
xor esi, esi
and dword [ebp - 0x18], 0
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
lea eax, [esi + ecx]
cmp dword [eax + 0x14], 8
jb 0x4410f4
mov eax, dword [eax]
lea ecx, [ebp - 0x18]
push ecx
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
cmp ecx, dword [ebp - 0x14]
jne 0x441113
mov eax, dword [eax]
cmp eax, dword [ebp - 0x18]
je 0x44113b
mov ecx, dword [ebx]
mov eax, dword [ebx + 4]
sub eax, ecx
push 0x1c
cdq
pop edi
idiv edi
inc dword [ebp - 0xc]
add esi, 0x1c
cmp dword [ebp - 0xc], eax
jb 0x4410df
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 4]
lea esi, [edi + 0x10]
call fcn.0044129b
jmp 0x44113e
mov edi, dword [ebp + 8]
inc dword [ebp - 0x10]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
add dword [ebp - 4], 0xc
cmp ecx, dword [eax]
jb 0x4410c4
push eax
call fcn.00404e46
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x444d2f
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push esi
push edi
mov dword [ebp - 0x64], eax
cmp byte [ebp + 0xc], al
jne 0x444d5b
cmp dword [ebx + 8], eax
jne 0x444d8c
mov al, 1
jmp 0x444e71
push eax
push 1
push str.NtMapViewOfSection
push 0x62f44c
mov edi, 0x4ce32f
mov esi, ebx
call fcn.004435f8
push 1
push 1
push str.NtUnmapViewOfSection
push 0x62f44c
mov edi, 0x4ce578
call fcn.004435f8
mov eax, dword [ebx]
mov eax, dword [eax]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push 1
push 0x2000
push 0x10000
push 0
push eax
mov dword [ebp - 0x60], eax
call edi
mov esi, dword [ebx + 8]
shl esi, 6
add esi, 0x50
mov dword [ebp - 0x5c], eax
call fcn.00444f2f
mov ecx, eax
and ecx, 0xfffff000
add dword [ebp - 0x5c], ecx
and eax, 0xfff
push 0x40
mov dword [ebp - 0x68], eax
mov eax, 0x1000
push eax
lea ecx, [esi + 0xfff]
and ecx, eax
push ecx
push dword [ebp - 0x5c]
push dword [ebp - 0x60]
call edi
test eax, eax
jne 0x444df0
call fcn.004bc45d
mov ecx, dword [ebp - 0x68]
and dword [ebp - 0x4c], 0
push 0x60
add ecx, eax
push 0
mov edi, 0x6b7d70
push edi
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x54], 0x10
call fcn.00402394
add esp, 0xc
lea eax, [ebp - 0x58]
push eax
push esi
push dword [ebp - 0x5c]
push ebx
call fcn.00444fd6
test al, al
je 0x444e6f
lea eax, [ebp - 0x64]
push eax
push 0x10
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x5c]
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x444e6f
cmp dword [ebp - 0x64], 0x10
jne 0x444e6f
lea eax, [ebp - 0x6c]
push eax
push 0x20
push esi
push dword [ebp - 0x5c]
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov edx, dword [ebx]
push edi
push 0x60
pop esi
call fcn.00447d5c
neg eax
sbb eax, eax
inc eax
jmp 0x444e71
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403fc1
leave
ret 8