joyce8/EMBER2024-capa huggingface dataset:
Function at 0x30f10410
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x30f26f98
push eax
mov dword fs:[0], esp
push ebx
mov ebx, dword [esp + 0x14]
test ebx, ebx
push esi
push edi
je 0x30f10438
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x30f10451
mov eax, 0x80004003
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 0x24
mov dword [esp + 0x1c], 0
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x18], 0
call fcn.30f09810
mov esi, eax
test esi, esi
jl 0x30f104d7
mov esi, dword [esp + 0x1c]
mov ecx, dword [esi]
push esi
call dword [ecx + 4]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x30]
push ecx
push edx
push eax
push ebx
mov ecx, esi
call fcn.30f07140
mov ecx, dword [esi]
push edi
push 0x30f293e4
push esi
call dword [ecx]
mov edx, dword [esi]
push esi
mov edi, eax
mov dword [esp + 0x18], 0xffffffff
call dword [edx + 8]
mov eax, edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 0x24
mov eax, dword [esp + 0x1c]
test eax, eax
mov dword [esp + 0x14], 0xffffffff
je 0x30f104ed
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 0x24

Function at 0x30f12f80
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x30f2720b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov dword [esi + 8], ebx
mov dword [esi], 0x30f2a480
mov dword [esi + 4], 0x30f2a470
push edi
mov dword [esp + 0xc], esi
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
lea edi, [esi + 0x20]
mov ecx, edi
mov dword [esp + 0x18], ebx
call fcn.30f11b70
mov ecx, dword [esp + 0x10]
mov dword [edi + 4], eax
mov byte [eax + 0x21], 1
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov byte [esi + 0x38], bl
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x30f14c60
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x30f273b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov dword [esp + 8], 0
lea eax, [esp + 8]
push eax
mov dword [esp + 0x18], 0
call fcn.30f14a50
test eax, eax
mov esi, dword [esp + 8]
jl 0x30f14ca0
mov ecx, dword [esi]
push esi
call dword [ecx + 4]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push edx
push eax
push ecx
push esi
call sym.MKernel.dll_protected:_static_long_int___cdecl_MCEventHandlerImpl::InitHandlerInstance_class_MCEventHandlerImpl___struct_IUnknown___unsigned_short_int_const___struct_MIEventHandler___
mov edi, eax
add esp, 0x10
test edi, edi
mov dword [esp + 0x14], 0xffffffff
jge 0x30f14ce3
test esi, esi
je 0x30f14cd0
mov edx, dword [esi]
push esi
call dword [edx + 8]
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x2c]
lea ecx, [esi + 0x18]
mov dword [ecx], edx
mov edx, dword [esp + 0x30]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x34]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, dword [esi]
push esi
call dword [ecx + 8]
mov ecx, dword [esp + 0xc]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x30f1b980
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x30f27a38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push edi
xor edi, edi
mov dword [esp + 8], edi
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
mov ecx, dword [esi]
mov esi, dword [ecx - 0xc]
push edx
push eax
push esi
push ecx
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x28], edi
call fcn.30f0f7f0
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.30f031c0
mov edi, dword [esp + 0x34]
add eax, 0x10
mov dword [edi], eax
add esp, 0x18
mov dword [esp + 0x14], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x30f1ba12
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x10090280
Capabilities:
Create thread
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ce6db
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x100e7008]
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
push 0x105
lea eax, [ebp - 0x220]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x105
lea eax, [ebp - 0x118]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
mov dword [ebp - 0x224], 0
cmp dword [ebp + 0xc], 1
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 0
jne 0x10090491
push 0x105
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x224]
push eax
push 0x105
lea eax, [ebp - 0x220]
push eax
push 0x100d98ec
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x10090491
mov edi, dword [0x101d0550]
mov ecx, edi
mov eax, dword [ecx + 4]
cmp byte [eax + 0xd], 0
jmp 0x10090466
push 0
push 0
push 0
push 0x1003f020
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
neg eax
sbb eax, eax
neg eax
jmp 0x10090493
xor eax, eax
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.100c4f7f
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1000183c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1000b018]
jne 0x10001846
repz ret
jmp fcn.1000204a

Function at 0x1000527a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1000b018]
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.100026e5
and dword [ebp - 0x14], 0
cmp dword [0x1000c8a8], 0
mov dword [ebp - 0x18], eax
jne 0x1000532d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x100053d5
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x100053d5
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x1000c8a8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x1000c8ac], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x1000c8b0], eax
call edi
push eax
call esi
mov dword [0x1000c8b8], eax
test eax, eax
je 0x1000532d
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x1000c8b4], eax
mov eax, dword [0x1000c8b4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x10005386
cmp dword [0x1000c8b8], ecx
je 0x10005386
push eax
call esi
push dword [0x1000c8b8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x10005386
test ebx, ebx
je 0x10005386
call edi
test eax, eax
je 0x1000537d
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x1000537d
test byte [ebp - 8], 1
jne 0x10005386
or dword [ebp + 0x10], 0x200000
jmp 0x100053b9
mov eax, dword [0x1000c8ac]
cmp eax, dword [ebp - 0x18]
je 0x100053b9
push eax
call esi
test eax, eax
je 0x100053b9
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100053b9
mov eax, dword [0x1000c8b0]
cmp eax, dword [ebp - 0x18]
je 0x100053b9
push eax
call esi
test eax, eax
je 0x100053b9
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x1000c8a8]
call esi
test eax, eax
je 0x100053d5
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x100053d7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000183c
leave
ret

Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
nop
pop eax
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x100034e0
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ebp
lea ebp, [esp - 0x228]
sub esp, 0x228
push 0xffffffffffffffff
push 0x100219e8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x1002b024]
xor eax, ebp
mov dword [ebp + 0x224], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 0x230]
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp + 0x18], 7
mov dword [ebp + 0x14], ebx
mov word [ebp + 4], ax
mov dword [ebp - 4], ebx
cmp edi, ebx
je 0x100036e6
cmp dword [ebp + 0x234], ebx
je 0x100036e6
push 0x90
mov byte [ebp - 4], 1
call fcn.100134cc
add esp, 4
lea ecx, [ebp - 0x18]
push ecx
mov esi, eax
push esi
push ebx
push ebx
push 2
mov dword [ebp - 0x1c], esi
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
cmp eax, 0x6f
jne 0x10003695
push esi
call fcn.10013282
mov edx, dword [ebp - 0x18]
push edx
call fcn.100134cc
add esp, 8
mov ebx, eax
lea eax, [ebp - 0x18]
push eax
push ebx
push 0
push 0
push 2
mov dword [ebp - 0x1c], ebx
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
test eax, eax
jne 0x10003667
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp + 0x1e]
push edx
mov esi, ebx
mov word [ebp + 0x1c], cx
call fcn.100144d0
add esp, 0xc
lea ebx, [ebx]
test esi, esi
je 0x10003664
cmp dword [esi + 0x44], 1
jne 0x1000365c
test byte [esi + 0x40], 6
je 0x1000365c
xor eax, eax
mov word [ebp + 0x1c], ax
movzx ecx, byte [esi + 0x31]
movzx edx, byte [esi + 0x30]
movzx eax, byte [esi + 0x2f]
push ecx
movzx ecx, byte [esi + 0x2e]
push edx
movzx edx, byte [esi + 0x2d]
push eax
movzx eax, byte [esi + 0x2c]
push ecx
push edx
push eax
push str._02X:_02X:_02X:_02X:_02X:_02X
lea ecx, [ebp + 0x1c]
push 0x104
push ecx
call fcn.10013596
add esp, 0x24
cmp dword [ebp + 0x14], 0
je 0x10003633
push 0x3b
mov eax, 1
lea edi, [ebp]
call fcn.100043c0
lea eax, [ebp + 0x1c]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10003640
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp + 0x1c]
push edx
lea eax, [ebp]
call fcn.100027a0
mov esi, dword [esi + 8]
jmp 0x100035d0
mov edi, dword [ebp - 0x20]
cmp dword [ebp + 0x14], 0
je 0x100036c2
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x10003679
lea eax, [ebp + 4]
push 0xffffffffffffffff
push eax
mov eax, dword [ebp + 0x234]
push eax
push edi
call fcn.10012f5b
add esp, 0x10
mov dword [ebp - 0x14], 1
jmp 0x100036c2
push 0x10026b2c
lea ecx, [ebp - 0x24]
push ecx
mov dword [ebp - 0x24], 0xffffffff
call fcn.10014cdc
lea edi, [ebp]
call fcn.100040e0
mov dword [ebp - 0x14], 0
mov eax, 0x100036bf
ret
test ebx, ebx
je 0x100036cf
push ebx
call fcn.10013282
add esp, 4
cmp dword [ebp + 0x18], 8
jb 0x100036e1
mov edx, dword [ebp + 4]
push edx
call fcn.10012c74
add esp, 4
mov eax, dword [ebp - 0x14]
jmp 0x100036e8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x224]
xor ecx, ebp
call fcn.10012c7f
add ebp, 0x228
mov esp, ebp
pop ebp
ret 8
Function at 0x10003710
Capabilities:
Get token membership

Disassembly:
jmp 0x1000e790
sub esp, 0x14
mov eax, dword [0x1002b024]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
xor ebx, ebx
lea eax, [esp + 8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov byte [esp + 0x38], bl
mov byte [esp + 0x39], bl
mov byte [esp + 0x3a], bl
mov byte [esp + 0x3b], bl
mov byte [esp + 0x3c], bl
mov byte [esp + 0x3d], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [esp + 4], eax
cmp eax, ebx
je 0x1000e808
mov eax, dword [esp + 8]
lea edx, [esp + 4]
push edx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x1000e804
mov dword [esp + 4], eax
jmp 0x1000e808
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
cmp ecx, ebx
pop ebx
je 0x1000e81b
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [esp]
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.10012c7f
add esp, 0x14
ret
Function at 0x10009060
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100221ab
mov eax, dword fs:[0]
push eax
push ecx
push edi
mov eax, dword [0x1002b024]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
push 0x44
mov dword [esi], vtable.CAppProfile.0
call fcn.10012ef6
add esp, 4
mov dword [esp + 8], eax
xor edi, edi
mov dword [esp + 0x14], edi
cmp eax, edi
je 0x100090a8
push eax
call fcn.10006ba0
jmp 0x100090aa
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi + 0x20], edi
mov eax, 7
mov dword [esi + 0x24], eax
xor ecx, ecx
mov word [esi + 0x10], cx
mov dword [esi + 0x28], vtable.CRWLock.0
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 8], eax
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x10
ret

Function at 0x10009500
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10022170
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x1002b024]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebx
push esi
mov eax, dword [0x1002b024]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
push eax
lea ecx, [esp + 0x30]
mov ebx, edx
call fcn.100091c0
push ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x5c], 0
call fcn.100091c0
lea eax, [esp + 0x2c]
push eax
lea ebx, [esp + 0x14]
mov ecx, esi
mov byte [esp + 0x5c], 1
call fcn.10009350
mov edx, dword [esi]
mov edx, dword [edx + 0xc]
mov eax, ebx
push eax
lea ecx, [esp + 0x30]
push ecx
mov ecx, esi
call edx
mov esi, 8
cmp dword [esp + 0x28], esi
jb 0x10009597
mov eax, dword [esp + 0x14]
push eax
call fcn.10012c74
add esp, 4
xor ecx, ecx
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], cx
cmp dword [esp + 0x44], esi
jb 0x100095c1
mov edx, dword [esp + 0x30]
push edx
call fcn.10012c74
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.10012c7f
mov esp, ebp
pop ebp
ret 4
Function at 0x1000a7b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10022170
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x1002b024]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebx
push esi
mov eax, dword [0x1002b024]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], ecx
push eax
lea ecx, [esp + 0x30]
mov esi, edx
call fcn.100091c0
xor ebx, ebx
push esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x5c], ebx
call fcn.100091c0
mov esi, dword [ebp + 8]
mov byte [esp + 0x58], 1
cmp esi, ebx
jne 0x1000a857
mov esi, 8
cmp dword [esp + 0x28], esi
jb 0x1000a82d
mov edx, dword [esp + 0x14]
push edx
call fcn.10012c74
add esp, 4
xor eax, eax
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], ebx
mov word [esp + 0x14], ax
cmp dword [esp + 0x44], esi
jb 0x1000a853
mov ecx, dword [esp + 0x30]
push ecx
call fcn.10012c74
add esp, 4
xor al, al
jmp 0x1000a8d0
cmp dword [esp + 0x40], ebx
je 0x1000a815
cmp dword [esp + 0x24], ebx
je 0x1000a815
lea edx, [esp + 0x2c]
push edx
lea ebx, [esp + 0x14]
mov ecx, edi
call fcn.10009350
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [edi + 4]
mov ecx, ebx
push ecx
lea edx, [esp + 0x34]
push edx
push esi
push eax
call fcn.10008470
mov esi, 8
mov bl, al
cmp dword [esp + 0x28], esi
jb 0x1000a8a4
mov ecx, dword [esp + 0x14]
push ecx
call fcn.10012c74
add esp, 4
xor edx, edx
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], dx
cmp dword [esp + 0x44], esi
jb 0x1000a8ce
mov eax, dword [esp + 0x30]
push eax
call fcn.10012c74
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.10012c7f
mov esp, ebp
pop ebp
ret 8
Function at 0x1000a8f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10022170
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x1002b024]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebx
push esi
mov eax, dword [0x1002b024]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], ecx
push eax
lea ecx, [esp + 0x30]
mov esi, edx
call fcn.100091c0
xor ebx, ebx
push esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x5c], ebx
call fcn.100091c0
mov esi, dword [ebp + 8]
mov byte [esp + 0x58], 1
cmp esi, ebx
jne 0x1000a997
mov esi, 8
cmp dword [esp + 0x28], esi
jb 0x1000a96d
mov edx, dword [esp + 0x14]
push edx
call fcn.10012c74
add esp, 4
xor eax, eax
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], ebx
mov word [esp + 0x14], ax
cmp dword [esp + 0x44], esi
jb 0x1000a993
mov ecx, dword [esp + 0x30]
push ecx
call fcn.10012c74
add esp, 4
xor al, al
jmp 0x1000aa10
cmp dword [esp + 0x40], ebx
je 0x1000a955
cmp dword [esp + 0x24], ebx
je 0x1000a955
lea edx, [esp + 0x2c]
push edx
lea ebx, [esp + 0x14]
mov ecx, edi
call fcn.10009350
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [edi + 4]
mov ecx, ebx
push ecx
lea edx, [esp + 0x34]
push edx
push esi
push eax
call fcn.10008540
mov esi, 8
mov bl, al
cmp dword [esp + 0x28], esi
jb 0x1000a9e4
mov ecx, dword [esp + 0x14]
push ecx
call fcn.10012c74
add esp, 4
xor edx, edx
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], dx
cmp dword [esp + 0x44], esi
jb 0x1000aa0e
mov eax, dword [esp + 0x30]
push eax
call fcn.10012c74
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.10012c7f
mov esp, ebp
pop ebp
ret 8

Function at 0x1000e790
Capabilities:
Get token membership

Disassembly:
jmp 0x1000e790
sub esp, 0x14
mov eax, dword [0x1002b024]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
xor ebx, ebx
lea eax, [esp + 8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov byte [esp + 0x38], bl
mov byte [esp + 0x39], bl
mov byte [esp + 0x3a], bl
mov byte [esp + 0x3b], bl
mov byte [esp + 0x3c], bl
mov byte [esp + 0x3d], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [esp + 4], eax
cmp eax, ebx
je 0x1000e808
mov eax, dword [esp + 8]
lea edx, [esp + 4]
push edx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x1000e804
mov dword [esp + 4], eax
jmp 0x1000e808
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
cmp ecx, ebx
pop ebx
je 0x1000e81b
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [esp]
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.10012c7f
add esp, 0x14
ret
Function at 0x1000e830
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x804]
sub esp, 0x804
push 0xffffffffffffffff
push 0x100216e0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x1002b024]
xor eax, ebp
mov dword [ebp + 0x800], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x80c]
xor edi, edi
push 0x7fe
mov esi, ecx
lea edx, [ebp + 2]
xor ecx, ecx
push edi
mov ebx, 0x57
mov dword [ebp - 0x14], edi
push edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], ebx
mov word [ebp], cx
call fcn.100144d0
add esp, 0xc
mov dword [ebp - 4], edi
call fcn.1000e700
test eax, eax
je 0x1000e90f
push str.Shell32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, edi
jne 0x1000e8cf
push str.Shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x14], eax
cmp eax, edi
je 0x1000e90f
push str.SHGetKnownFolderPath
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x1000e90f
lea ecx, [ebp - 0x1c]
push ecx
push edi
push 0x8000
push 0x10024c74
call eax
cmp eax, edi
jl 0x1000e90f
mov eax, dword [ebp - 0x1c]
cmp eax, edi
je 0x1000e90f
push eax
lea edx, [ebp]
push 0x400
push edx
call fcn.1001302e
add esp, 0xc
xor ebx, ebx
cmp word [ebp], di
jne 0x1000e928
push 1
push 0x1c
lea eax, [ebp]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x1000e930
cmp ebx, edi
jne 0x1000e9c1
cmp esi, edi
je 0x1000e9b7
mov eax, esi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x1000e940
sub eax, edx
sar eax, 1
je 0x1000e9b7
push esi
lea ecx, [ebp]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [ebp]
push edi
push edx
call fcn.10013979
add esp, 8
test eax, eax
je 0x1000e9b7
push edi
lea eax, [ebp]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov dword [ebp - 0x18], eax
cmp eax, edi
je 0x1000e9b7
push 0x10026b2c
lea ecx, [ebp - 0x20]
push ecx
mov dword [ebp - 0x20], 0xffffffff
call fcn.10014cdc
xor edx, edx
mov word [ebp], dx
cmp dword [ebp - 0x18], edx
jne 0x1000e9a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], 0xffffffff
mov eax, 0x1000e9b3
ret
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
cmp eax, edi
je 0x1000e9d6
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [ebp - 0x14]
cmp eax, edi
je 0x1000e9e4
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, dword [ebp - 0x24]
xor ecx, ecx
lea eax, [ebp]
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
mov word [esi + 4], cx
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x1000ea00
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp]
call fcn.100020c0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.10012c7f
add ebp, 0x804
mov esp, ebp
pop ebp
ret