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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x48
mov eax, dword [ebp + 8]
mov dword [0x101d3990], 0x15d2
mov dword [0x101d3994], 0x1167
mov dword [ebp - 0x10], eax
call fcn.101bb5d4
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov edi, edx
add edi, esi
mov esi, dword [eax + esi]
cmp esi, 0x4550
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edi
je 0x101ba69d
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [0x101d3994], 0xfffffc1e
mov eax, dword [eax + 0x78]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
add ecx, dword [edx + eax + 0x20]
mov esi, dword [edx + eax + 0x24]
mov dword [0x101d3990], 0x901
mov edi, dword [edx + eax + 0x18]
cmp edi, 0
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], ebx
je 0x101ba7cb
jmp 0x101ba713
mov eax, dword [ebp - 0x38]
add eax, 1
mov cl, byte [ebp - 0x39]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x3a]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dword [ebp - 0x40], eax
jne 0x101ba752
jmp 0x101ba725
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x2c]
add ecx, edx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x48], eax
jmp 0x101ba72e
mov al, byte [ebp - 0x3a]
test al, 1
jne 0x101ba7a6
jmp 0x101ba780
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x44]
xor edx, edx
mov esi, dword [ebp - 0x28]
mov edi, dword [esi + eax*4]
mov dword [0x101d3994], 0x1167
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x40]
mov ecx, eax
mov edx, dword [ebp - 0x54]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x39], bh
mov byte [ebp - 0x3a], cl
je 0x101ba725
jmp 0x101ba6e9
xor eax, eax
mov ecx, dword [ebp - 0x50]
add ecx, 2
mov edx, dword [ebp - 0x4c]
add edx, 1
mov esi, dword [ebp - 0x30]
cmp edx, esi
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x34], eax
jb 0x101ba72e
jmp 0x101ba7cb
mov eax, dword [ebp - 0x50]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x24]
add edx, dword [edx + esi + 0x1c]
mov ecx, dword [edx + ecx*4]
mov dword [0x101d3994], 0x1d20
mov edx, dword [ebp - 0x1c]
add edx, ecx
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x101bac33
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x50
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov esi, dword [0x101d3990]
add esi, 0xffffe61c
mov dword [0x101d3994], esi
mov dword [0x101d3990], 0x1cc
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
jmp 0x101bad38
mov dword [0x101d3994], 0x12d8
mov eax, dword [ebp - 0x34]
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov ecx, dword [0x101d3994]
add ecx, 0x206f
mov dword [0x101d3990], ecx
mov dword [esp], eax
mov ecx, dword [ebp - 0x28]
mov dword [esp + 4], ecx
mov dword [ebp - 0x38], eax
call fcn.101bb082
xor eax, eax
mov ecx, dword [ebp - 0x38]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xd0
mov dword [0x101d3990], 0x22f9
mov dword [ecx + 0xd0], 0x4550
add ecx, 0xffc00000
mov dword [0x101d3994], 0x2203
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x14], ecx
mov ecx, dword [ebp - 0x38]
mov dword [edx + 0x38], ecx
mov esi, dword [0x101d3990]
add esi, 0xffffe791
mov dword [0x101d3990], esi
add ecx, 0x1051
mov esi, dword [ebp - 0x38]
cmp esi, 0
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], eax
je 0x101bad2f
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
add esp, 0x50
pop esi
pop ebp
ret
mov eax, dword [ebp - 0x30]
mov ecx, eax
add ecx, 1
mov dl, byte [eax + 0x101bc4d6]
mov dh, byte [eax + 0x101bc4a7]
sub dh, dl
mov byte [ebp + eax - 0x24], dh
cmp ecx, 0xe
mov dword [ebp - 0x30], ecx
jne 0x101bad38
lea eax, [ebp - 0x24]
mov dword [0x101d3990], 0x179a
mov dword [ebp - 0x44], eax
call fcn.101baae8
mov dword [esp], eax
mov eax, dword [ebp - 0x44]
mov dword [esp + 4], eax
call fcn.101baee1
cmp eax, 0
mov dword [ebp - 0x34], eax
jne 0x101bac6c
xor eax, eax
add esp, 0x50
pop esi
pop ebp
ret
Function at 0x101bb754
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov ebx, 0x2448
mov dword [0x101d3998], 0
mov dword [0x101d399c], 0
mov dword [0x101d39a8], 0
mov dword [0x101d3990], 0x2448
cmp eax, 0
mov dword [ebp - 0x10], eax
mov eax, edi
mov dword [ebp - 0x14], eax
mov eax, edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], ebx
je 0x101bb8e8
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
mov edi, 0x100
mov dword [0x101d3994], 0x264a
add ecx, 1
mov ebx, edx
add ebx, 1
add eax, 0xffffffa9
mov dword [ebp - 0x30], eax
mov eax, ecx
mov dword [ebp - 0x34], edx
cdq
idiv edi
mov dword [0x101d3998], edx
mov ecx, dword [ebp - 0x30]
mov dword [0x101d3990], ecx
mov ecx, dword [ebp - 0x24]
movzx ecx, byte [ecx + edx]
add ecx, esi
mov eax, ecx
mov dword [ebp - 0x38], edx
cdq
idiv edi
mov dword [0x101d399c], edx
mov ecx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x38]
mov cl, byte [ecx + esi]
mov byte [0x101d39a0], cl
mov dword [0x101d3994], 0x20ef
mov edi, dword [ebp - 0x24]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov cl, byte [0x101d39a0]
mov edx, dword [0x101d399c]
mov byte [edi + edx], cl
mov edx, dword [0x101d3990]
mov ecx, edx
add ecx, 0xffffe99b
mov dword [0x101d3994], ecx
mov ecx, dword [0x101d3998]
movzx ecx, byte [edi + ecx]
mov esi, dword [0x101d399c]
movzx esi, byte [edi + esi]
add esi, ecx
and esi, 0xff
mov dword [0x101d39a8], esi
mov dword [0x101d3994], 0x1562
mov cl, byte [edi + esi]
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x34]
mov ch, byte [esi + edi]
add edx, 0x5a6
mov dword [0x101d3994], edx
xor ch, cl
mov dword [0x101d3990], 0x6a8
mov edx, dword [ebp - 0x20]
mov byte [edx + edi], ch
mov edx, dword [ebp - 0x10]
cmp ebx, edx
mov dword [ebp - 0x3c], ebx
je 0x101bb8e8
mov eax, dword [0x101d399c]
mov ecx, dword [0x101d3990]
mov edx, dword [0x101d3998]
mov esi, dword [ebp - 0x3c]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x2c], ecx
jmp 0x101bb7bf
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x101bb8f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x90
lea eax, [esp + 0x80]
lea ecx, [esp + 0x20]
mov edx, dword [0x101d3990]
add edx, 0xffffef19
mov dword [0x101d3994], edx
mov dword [esp], eax
mov dword [esp + 0x1c], ecx
call fcn.101bb1c4
lea ecx, [0x101ba3da]
mov edx, dword [esp + 0x80]
mov dword [esp + 0x5c], edx
mov dword [esp + 0x20], 0x12e800
mov edx, dword [0x101d397c]
mov dword [esp + 0x28], edx
mov edx, dword [0x101d3980]
mov dword [esp + 0x48], edx
mov edx, dword [0x101d3984]
mov dword [esp + 0x44], edx
mov edx, dword [0x101d3988]
mov dword [esp + 0x64], edx
mov edx, dword [0x101d398c]
mov dword [esp + 0x6c], edx
mov dword [0x101d3994], 0x717
mov dword [0x101d3990], 0x127a
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
jmp 0x101bb9a4
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0xc], ecx
je 0x101bb9c7
jmp 0x101bb9b3
mov eax, dword [esp + 0x14]
cmp word [eax], 0x5a4d
mov dword [esp + 0x10], eax
je 0x101bb98e
mov eax, dword [esp + 0x10]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x14], eax
jmp 0x101bb9a4
mov eax, dword [esp + 0x10]
mov dword [esp + 0x50], eax
mov dword [0x101d3990], 0x25db
mov ecx, dword [esp + 0xc]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x2c], edx
call fcn.101ba26a
xor ecx, ecx
cmp eax, 0
mov dword [esp + 8], ecx
jne 0x101bba2e
lea eax, [esp + 0x20]
mov dword [0x101d3990], 0xf39
mov ecx, dword [esp + 0x88]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.101bac33
mov ecx, esp
lea edx, [esp + 0x20]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 1
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Check os version
Create process on windows
Get system information on windows
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x444
mov eax, dword [0x415004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x69
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, dword [sym.imp.USER32.dll_LoadIconA]
push eax
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
push 0
push 0x80
call edi
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push eax
call esi
push 0x69
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call ebx
push eax
push 1
push 0x80
call edi
push eax
call esi
push 0x69
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call ebx
push eax
push 2
push 0x80
call edi
push eax
call esi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
mov ecx, 0x804
cmp ax, cx
je 0x401095
mov ecx, 0x1004
cmp ax, cx
jne 0x40109a
mov esi, 1
push 0x104
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.00401fb0
push 0x105
lea eax, [ebp - 0x10c]
push 0
push eax
call fcn.00401fb0
add esp, 0x18
lea eax, [ebp - 0x10c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x105
lea eax, [ebp - 0x318]
push 0
push eax
call fcn.00401fb0
push 0x105
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00401fb0
push 0
push 0
push 0
push 0
push 0x104
lea eax, [ebp - 0x420]
push eax
push 0x104
lea eax, [ebp - 0x318]
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.004049bc
lea eax, [ebp - 0x318]
push eax
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.00404724
add esp, 0x48
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.00404724
add esp, 0xc
mov dword [ebp - 0x424], 0
xorps xmm0, xmm0
lea eax, [ebp - 0x444]
movups xmmword [ebp - 0x444], xmm0
push eax
movups xmmword [ebp - 0x434], xmm0
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xa4], 0x9c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x401207
cmp dword [ebp - 0xa0], 5
jbe 0x401207
cmp word [ebp - 0x444], 9
mov ecx, str.Installdriverx86AppAuroraPrintDriverInstall.exe
mov eax, str.Installdriverx64AppAuroraPrintDriverInstall.exe
cmovne eax, ecx
push eax
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.00404724
add esp, 0xc
lea eax, [ebp - 0x210]
push 0
push 0
push str.install
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
ja 0x40121d
push 0
push str.Setup
push dword [esi*4 + 0x413c40]
jmp 0x401215
push 0
push str.Setup
push dword [esi*4 + 0x413c48]
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401230
mov esp, ebp
pop ebp
ret
Function at 0x4014e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov edx, ecx
sub esp, 8
mov eax, dword [edx + 0x3c]
cmp dword [eax + edx + 0x7c], 0
jne 0x4014f8
xor eax, eax
mov esp, ebp
pop ebp
ret
mov eax, dword [eax + edx + 0x78]
test eax, eax
je 0x4014f2
mov ecx, dword [eax + edx + 0x24]
add ecx, edx
push ebx
mov ebx, dword [eax + edx + 0x20]
mov dword [ebp - 4], ecx
add ebx, edx
mov ecx, dword [eax + edx + 0x1c]
push esi
mov esi, dword [eax + edx + 0x18]
add ecx, edx
push edi
mov dword [ebp - 8], ecx
xor edi, edi
xor ecx, ecx
dec esi
mov eax, dword [ebx + ecx*4]
add eax, edx
cmp byte [eax], 0x47
jne 0x40157c
cmp byte [eax + 1], 0x65
jne 0x40157c
cmp byte [eax + 2], 0x74
jne 0x40157c
cmp byte [eax + 3], 0x50
jne 0x40157c
cmp byte [eax + 4], 0x72
jne 0x40157c
cmp byte [eax + 5], 0x6f
jne 0x40157c
cmp byte [eax + 6], 0x63
jne 0x40157c
cmp byte [eax + 7], 0x41
jne 0x40157c
cmp byte [eax + 8], 0x64
jne 0x40157c
cmp byte [eax + 9], 0x64
jne 0x40157c
cmp byte [eax + 0xa], 0x72
jne 0x40157c
cmp byte [eax + 0xb], 0x65
jne 0x40157c
cmp byte [eax + 0xc], 0x73
jne 0x40157c
cmp byte [eax + 0xd], 0x73
je 0x40158a
inc ecx
cmp ecx, esi
jbe 0x401524
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
mov edi, dword [ebp - 8]
movzx eax, word [eax + ecx*2]
mov edi, dword [edi + eax*4]
add edi, edx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402806
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x40d210
push str.FlsAlloc
push 0
call fcn.00402786
mov esi, eax
add esp, 0x10
test esi, esi
je 0x402838
push dword [ebp + 8]
mov ecx, esi
call fcn.00401ec6
call esi
pop esi
pop ebp
ret
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x40287a
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsSetValue
push 0x40d240
push str.FlsSetValue
push 3
call fcn.00402786
add esp, 0x10
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
test esi, esi
je 0x4028ae
mov ecx, esi
call fcn.00401ec6
call esi
jmp 0x4028b4
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop ebp
ret

Function at 0x4057e1
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004054a1
Function at 0x138a058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.0138a1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x138a07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x138a06a
add dl, dl
jne 0x138a089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x138a0dc
xor eax, eax
add dl, dl
jne 0x138a096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x138a17d
add dl, dl
jne 0x138a0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x138a0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x138a0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x138a0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x138a0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x138a075
mov eax, 1
add dl, dl
jne 0x138a0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x138a0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x138a0e1
sub eax, ebx
mov ebx, 1
jne 0x138a128
mov ecx, 1
add dl, dl
jne 0x138a10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x138a119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x138a105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x138a075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x138a13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x138a14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x138a136
cmp eax, 0x7d00
jae 0x138a16d
cmp eax, 0x500
jb 0x138a168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x138a075
cmp eax, 0x7f
ja 0x138a170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x138a075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x138a19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x138a075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x40b5a0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x436048
push 0x411170
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x43800c]
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 0x40b609
xor eax, eax
jmp 0x40b77f
mov dword [ebp - 4], ebx
push str.InitializeSecurityDescriptor
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40b74a
push 1
push dword [ebp - 0x34]
call eax
test eax, eax
je 0x40b74a
push str.AllocateAndInitializeSid
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40b74a
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 0x40b74a
push str.GetLengthSid
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40b74a
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 0x40b74a
push str.InitializeAcl
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40b74a
push 2
push dword [ebp - 0x30]
push esi
call eax
test eax, eax
je 0x40b74a
push str.AddAccessAllowedAce
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40b74a
push dword [ebp - 0x28]
push 0x10000000
push 2
push esi
call eax
test eax, eax
je 0x40b74a
push str.SetSecurityDescriptorDacl
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x40b74a
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x40b733
push 0
push ecx
push 1
push dword [ebp - 0x34]
call eax
test eax, eax
je 0x40b720
mov ebx, 1
mov dword [ebp - 0x38], ebx
cmp dword [ebp - 0x2c], 0
je 0x40b730
jmp 0x40b74a
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.0040b7a6
test ebx, ebx
jne 0x40b77d
test esi, esi
je 0x40b76f
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 0x40b77d
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.0040fa19
mov esp, ebp
pop ebp
ret 0xc
Function at 0x9f11a2b
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sbb edi, dword [eax + 0x38]
insb byte es:[edi], dx
and al, byte [eax]
enter 0xffffffffffff8e63, 0x30
pop eax
in al, dx
push 0x97094529
test edi, edi
push esp
lea esp, [esp + 0x44]
je 0x99640e5
pushal
bt ebp, ebp
cmc
add eax, edi
pushfd
cmp eax, edx
call fcn.09fcf42a
jg 0x9f11a7f
adc cl, byte ss:[ebx]
mov ch, 0xc
jns 0x9f11a84
mov dword [edx + 0x7093152e], ebx
push eax
jecxz 0x9f11a1f
cmp ah, byte [esi - 0x73]
sub edi, eax
cwde
cmp ebx, dword [ebp + 0x70]
sar byte [ecx + 0x1b], 1
jnp 0x9f11a6d
push esp
fistp qword [ebp + 0x56bac3dc]
dec esp
jl 0x9f11a7d
mov ebp, 0x8a2cde89
push 0xffffffffffffffd9
add al, 0x57
adc al, 0x88
jecxz 0x9f11a23
sbb al, 0xf
jge 0x9f11ad5
invalid
outsb dx, byte [esi]
mov ebp, 0x31981cef
dec edx
sbb al, 0x5e
inc edi
sti
scasd eax, dword es:[edi]
sahf
call 0x43840d
add al, 0x50
or edx, dword [ecx + 0x678242cb]
jl 0x9f11b16
and dword [edx - 0x31160048], esi
out 0x72, eax
stc
mov ah, 0xec
int1
in eax, 0xe6
jno 0x9f11af7
mov byte [edi], ah
cmp dword [ebx - 0x3e], esp
movsb byte es:[edi], byte [esi]
movsd dword es:[edi], dword [esi]
xor byte [eax + 0x2a], dh
mov dh, 0x48
add eax, 0x6f5c589b
sub bh, byte [esi + 0x67]
and edi, edx
sahf
call 0x601d5443
outsb dx, byte [esi]
add al, al
rcr byte [ebx], 1
mov byte [0x44c7e5ee], al
push eax
cmp byte [ebx + 0x38], cl
or dword [edx - 0x72374b1e], esi
sbb byte [ebp + edi + 0x73958062], ch
invalid
push 0x87b41053
and eax, 0xc6e10fa1
cmp eax, 0x55b64bc8
invalid
in eax, dx
js 0x9f11b25
scasd eax, dword es:[edi]
enter 0xd83, 0x73
xor byte [eax - 0x18566bf1], dl
lcall 0xda1a, 0xcb50c7f
jg 0x9f11b33
mov ch, 0xc
sbb bl, dl
salc
cmp eax, 0x2320a87b
jns 0x9f11ba5
and bh, byte [ecx + 0x778420fb]
cmp edx, ebx
out 0x4d, al
push ebx
mov al, byte [0x6ac1fb08]
inc edx
jbe 0x9f11b73
xchg ebx, eax
and al, al
ret
retf 0xd1da
imul eax, dword [ecx + 0x77], 0x3c
fild word [esi]
mov al, byte [0xae12e7dc]
in eax, 0xbb
clc
div byte [edx + 0x5f9e8d2e]
imul esp, dword [esi], 0xf7a93d72
ficom dword [ecx + ecx*4]
in al, dx
jbe 0x9f11c13
push cs
xchg esi, eax
adc dh, byte [ecx + 0xf]
nop
invalid

Function at 0x9f148d8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x10
add al, 0xa0
bt edi, esi
stc
push esi
sar ah, cl
push 0xe10b594d
mov dword [esp], edi
sar eax, 1
shr eax, 0xf
pushal
mov dword [esp + 0x1c], ebx
neg al
mov dword [esp + 0x18], edx
adc ah, 0x6c
shrd ax, sp, 2
mov eax, dword [ebp + 8]
jmp 0x9fd2ffc
or al, 0x96
sar al, 3
cmp ch, bh
push ebp
adc ebp, 0xc7d8548a
mov ebp, esp
ror eax, 0xb
jmp 0x99648ee
mov byte [esp + 4], 0xf4
test eax, eax
jmp 0x9fecbd5
push dword [esp]
pushal
lea esp, [esp + 0x3c]
je 0x99640e5
or dl, dl
mov esi, dword [eax + 0x3c]
neg dl
add esi, eax
push ebp
bsf dx, si
shl edx, 0x1e
mov edx, dword [esi + 0x78]
stc
test edx, edx
call fcn.09fd5d44