joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10789b8
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push 1
push esi
lea ecx, [ebp - 0xc]
call fcn.0105252d
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp dword [esi + 0x4c], ebx
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], ebx
je 0x1078a8d
push edi
lea edi, [esi + 0x1c]
mov ecx, edi
call fcn.01045276
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1078a09
lea eax, [ebp - 4]
push eax
mov ecx, edi
call fcn.0102c2c1
cmp dword [ebp - 4], ebx
mov eax, dword [eax]
mov dword [eax], ebx
jne 0x10789f5
mov eax, dword [esi + 0x4c]
cmp eax, ebx
pop edi
jne 0x1078a16
mov eax, 0x1007a38
push eax
lea ecx, [ebp - 4]
call fcn.01078400
push 1
push 0x10000
push dword [ebp - 4]
call fcn.01082787
cmp eax, ebx
mov dword [esi + 0x18], eax
je 0x1078a6c
push eax
call fcn.01082f69
test eax, eax
je 0x1078a6c
push dword [ebp + 8]
mov ecx, esi
call fcn.010780bb
mov esi, eax
cmp esi, ebx
jl 0x1078a82
push ebx
push ebx
push ebx
push 0x10788ed
push ebx
push ebx
call dword [0x1001188]
cmp eax, ebx
je 0x1078a82
push eax
call dword [fcn.010011f8]
jmp 0x1078a82
call dword [fcn.010011dc]
cmp eax, ebx
jle 0x1078a80
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
push dword [ebp - 4]
call dword [fcn.010013c4]
jmp 0x1078a92
mov esi, 0x80004005
cmp byte [ebp - 8], bl
je 0x1078aa0
push dword [ebp - 0xc]
call dword [fcn.010011c0]
mov eax, esi
pop esi
pop ebx
leave
ret 4

Function at 0x1078aad
Capabilities:
Get common file path

Disassembly:
push 0x218
mov eax, 0x10a84c3
call fcn.0107a789
mov ebx, ecx
push 0x10b7af8
lea ecx, [ebp - 0x220]
call fcn.0104078f
xor edi, edi
cmp dword [ebx + 0x18], edi
mov dword [ebp - 4], edi
je 0x1078b79
lea eax, [ebp - 0x21c]
push eax
mov esi, 0x104
push esi
call dword [0x10011ac]
test eax, eax
je 0x1078af7
cmp eax, esi
jb 0x1078b11
call dword [fcn.010011dc]
test eax, eax
jle 0x1078b0b
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
jne 0x1078b79
push 0x1007560
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x220]
push 0x1007550
push eax
mov byte [ebp - 4], 1
call fcn.010292b1
add esp, 0x10
push 2
push 0xa
push dword [ebp - 0x220]
push dword [ebx + 0x18]
call fcn.01082c17
test eax, eax
jne 0x1078b79
call dword [fcn.010011dc]
test eax, eax
jle 0x1078b5f
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x1078b79
mov ecx, dword [ebp - 0x220]
add ecx, 0xfffffff0
call fcn.01026e74
mov eax, edi
call fcn.0107a7f4
ret
Function at 0x1079515
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x28
mov eax, 0x10a85a8
call fcn.0107a6db
xor esi, esi
push 4
pop eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
cmp dword [ebp + 8], esi
mov dword [ebp - 4], esi
mov edi, 0x20019
jne 0x1079600
mov dword [ebp - 0x18], esi
push edi
push 0x10075b0
push 0x80000002
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.01028000
mov dword [ebp + 8], eax
mov eax, dword [0x10b30cc]
mov ebx, 0x10b30cc
cmp eax, ebx
je 0x10795ad
test byte [eax + 0x1c], 2
je 0x10795ad
mov edx, dword [ebp + 8]
movzx ecx, byte [eax + 0x19]
neg edx
sbb edx, edx
and edx, 0xfffffffd
add edx, 5
cmp ecx, edx
jl 0x10795ad
push dword [ebp + 8]
push 0x1007584
push 0x29
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01028164
cmp dword [ebp + 8], esi
jne 0x10795f6
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0107d88e
mov ecx, dword [0x10b30cc]
cmp ecx, ebx
je 0x10795f6
test byte [ecx + 0x1c], 2
je 0x10795f6
movzx edx, byte [ecx + 0x19]
mov ebx, eax
neg ebx
sbb ebx, ebx
and ebx, 0xfffffffd
add ebx, 5
cmp edx, ebx
jl 0x10795f6
push eax
push 0x1007584
push 0x2a
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01028164
lea ecx, [ebp - 0x18]
call fcn.01027fe2
jmp 0x1079626
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.01027916
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.01053478
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.01026e74
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x14]
push eax
push edi
push esi
push 0x10075b0
push 0x80000002
call ebx
test eax, eax
jne 0x10796ba
mov dword [ebp + 8], esi
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x30]
jge 0x10796ae
push eax
lea ecx, [ebp - 0x34]
call fcn.0103fb38
mov eax, dword [eax]
lea ecx, [ebp - 0x10]
push ecx
push edi
push esi
push eax
push dword [ebp - 0x14]
call ebx
test eax, eax
jne 0x10796a6
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
push esi
push 0x1007594
push dword [ebp - 0x10]
mov dword [ebp - 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x107969a
cmp dword [ebp - 0x24], esi
je 0x107969a
mov dword [ebp - 0x1c], 1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], esi
inc dword [ebp + 8]
cmp dword [ebp - 0x1c], esi
je 0x1079645
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], esi
lea ecx, [ebp - 0x34]
call fcn.0102d6e9
mov eax, dword [ebp - 0x1c]
call fcn.0107a7c7
ret 4
Function at 0x1079fda
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x10b3818]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.01079f1b
mov eax, 0x1000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x98]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0107aa60
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [fcn.01001324]
cmp dword [ebp - 0x88], 2
jne 0x107a04d
cmp dword [ebp - 0x94], 5
jb 0x107a06e
jmp 0x107a06a
cmp dword [ebp - 0x88], 1
jne 0x107a06e
cmp dword [ebp - 0x94], 4
ja 0x107a06a
jne 0x107a06e
cmp dword [ebp - 0x90], 0
jbe 0x107a06e
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x1007620
call fcn.01026a54
test eax, eax
jge 0x107a08f
mov byte [0x10b6860], 1
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0107a6bf
leave
ret

Function at 0x107b4e0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x107b4f3
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x107b4ef
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret

Function at 0x107b520
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x107b55f
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x107b555
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x107b561
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x107b545
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x107b8c8
Capabilities:
Modify service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov eax, dword [0x10b30cc]
mov esi, 0x10b30cc
cmp eax, esi
je 0x107b8ff
test byte [eax + 0x1c], 1
je 0x107b8ff
push 0x100777c
push 0x1a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01026c05
mov eax, dword [0x10b30cc]
xor edi, edi
cmp dword [ebp + 8], 2
je 0x107b911
cmp dword [ebp + 8], 3
je 0x107b911
xor ebx, ebx
jmp 0x107b914
xor ebx, ebx
inc ebx
cmp eax, esi
je 0x107b937
test byte [eax + 0x1c], 2
je 0x107b937
cmp byte [eax + 0x19], 4
jb 0x107b937
push ebx
push 0x100777c
push 0x1b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01028164
cmp ebx, 1
jne 0x107b9c8
mov ecx, dword [ebp - 4]
push ebx
call fcn.0107b7bd
mov ebx, eax
mov eax, dword [0x10b30cc]
cmp eax, esi
je 0x107b973
test byte [eax + 0x1c], 2
je 0x107b973
cmp byte [eax + 0x19], 4
jb 0x107b973
push ebx
push 0x100777c
push 0x1c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01028164
cmp ebx, 1
jne 0x107b9c8
mov eax, dword [ebp - 4]
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [ebp + 8]
push 0xffffffffffffffff
push dword [eax + 8]
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
mov ebx, eax
cmp ebx, 1
je 0x107b9c8
call dword [fcn.010011dc]
mov ecx, dword [0x10b30cc]
cmp ecx, esi
je 0x107b9c8
test byte [ecx + 0x1c], 2
je 0x107b9c8
cmp byte [ecx + 0x19], 4
jb 0x107b9c8
push eax
push 0x100777c
push 0x1d
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01028164
mov ecx, dword [ebp - 4]
call fcn.0107b72d
mov eax, dword [0x10b30cc]
cmp eax, esi
je 0x107b9f8
test byte [eax + 0x1c], 1
je 0x107b9f8
cmp byte [eax + 0x19], 5
jb 0x107b9f8
push ebx
push 0x100777c
push 0x1e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01028164
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4
Function at 0x107ba06
Capabilities:
Start service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov dword [ebp - 8], ecx
mov eax, dword [0x10b30cc]
mov esi, 0x10b30cc
cmp eax, esi
mov edi, 0x100777c
je 0x107ba39
test byte [eax + 0x1c], 1
je 0x107ba39
push edi
push 0x1f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01026c05
mov ecx, dword [ebp - 8]
push 0
call fcn.0107b7bd
mov dword [ebp - 4], eax
mov eax, dword [0x10b30cc]
cmp eax, esi
je 0x107ba6c
test byte [eax + 0x1c], 2
je 0x107ba6c
cmp byte [eax + 0x19], 4
jb 0x107ba6c
push dword [ebp - 4]
push edi
push 0x20
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01028164
cmp dword [ebp - 4], 1
jne 0x107bab5
mov eax, dword [ebp - 8]
push 0
push 0
push dword [eax + 8]
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
cmp eax, 1
mov dword [ebp - 4], eax
je 0x107bab5
call dword [fcn.010011dc]
mov ecx, dword [0x10b30cc]
cmp ecx, esi
je 0x107bab5
test byte [ecx + 0x1c], 2
je 0x107bab5
cmp byte [ecx + 0x19], 4
jb 0x107bab5
push eax
push edi
push 0x21
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01028164
mov ecx, dword [ebp - 8]
call fcn.0107b72d
mov eax, dword [0x10b30cc]
cmp eax, esi
je 0x107bae3
test byte [eax + 0x1c], 1
je 0x107bae3
cmp byte [eax + 0x19], 5
jb 0x107bae3
push dword [ebp - 4]
push edi
push 0x22
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01028164
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret

Function at 0x107c059
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x10b3818]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x2001f
mov ebx, ecx
push eax
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x208]
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x208], esi
call fcn.01028000
mov edi, eax
cmp edi, esi
je 0x107c0bb
lea ecx, [ebp - 0x208]
call fcn.01027fe2
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0107a6bf
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x107c0d9
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x208]
call fcn.0107c059
cmp eax, esi
jne 0x107c121
lea eax, [ebp - 0x218]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x208]
mov dword [ebp - 0x20c], 0x100
call edi
test eax, eax
je 0x107c0c3
lea ecx, [ebp - 0x208]
call fcn.01027fe2
push dword [ebp - 0x210]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea ecx, [ebp - 0x208]
mov esi, eax
call fcn.01027fe2
mov eax, esi
jmp 0x107c0aa
Function at 0x107c13a
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x228
mov eax, 0x10a860d
call fcn.0107a74e
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x224], ebx
mov eax, dword [0x10b30cc]
cmp eax, 0x10b30cc
je 0x107c182
test byte [eax + 0x1c], 1
je 0x107c182
cmp byte [eax + 0x19], 5
jb 0x107c182
push ebx
push dword [esi]
push 0x10077a0
push 0x59
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0104cb61
lea eax, [ebp - 0x220]
xor edi, edi
push eax
mov dword [ebp - 0x214], 1
mov dword [ebp - 0x220], edi
call dword [fcn.01001314]
push eax
call dword [0x1001318]
cmp dword [ebp - 0x220], edi
je 0x107c2ec
push 0x10077c8
call dword [0x10012d4]
cmp eax, edi
mov dword [ebp - 0x22c], eax
je 0x107c2fa
push 0x10077b8
push eax
call dword [0x10011b0]
cmp eax, edi
mov dword [ebp - 0x228], eax
je 0x107c2de
mov dword [ebp - 0x218], edi
mov eax, dword [esi]
push 0x2011f
push ebx
push eax
lea ecx, [ebp - 0x218]
mov dword [ebp - 4], edi
call fcn.01028000
mov dword [ebp - 0x214], eax
mov eax, dword [0x10b30cc]
cmp eax, 0x10b30cc
je 0x107c24f
test byte [eax + 0x1c], 2
je 0x107c24f
mov edx, dword [ebp - 0x214]
movzx ecx, byte [eax + 0x19]
neg edx
sbb edx, edx
and edx, 0xfffffffd
add edx, 5
cmp ecx, edx
jl 0x107c24f
push ebx
push dword [esi]
push dword [ebp - 0x214]
push 0x10077a0
push 0x5a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01055d56
cmp dword [ebp - 0x214], edi
jne 0x107c2d3
mov ebx, 0x100
jmp 0x107c27b
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0107c13a
cmp eax, edi
mov dword [ebp - 0x214], eax
jne 0x107c2aa
lea eax, [ebp - 0x234]
push eax
push edi
push edi
push edi
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x210]
push eax
push edi
push dword [ebp - 0x218]
mov dword [ebp - 0x21c], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x107c25e
lea ecx, [ebp - 0x218]
call fcn.01027fe2
cmp dword [ebp - 0x214], edi
jne 0x107c2d3
push edi
push ebx
push dword [ebp - 0x224]
push dword [esi]
call dword [ebp - 0x228]
mov dword [ebp - 0x214], eax
lea ecx, [ebp - 0x218]
call fcn.01027fe2
push dword [ebp - 0x22c]
call dword [0x10011b4]
jmp 0x107c2fa
push ebx
mov ecx, esi
call fcn.0107c059
mov dword [ebp - 0x214], eax
mov eax, dword [0x10b30cc]
cmp eax, 0x10b30cc
je 0x107c33c
test byte [eax + 0x1c], 1
je 0x107c33c
mov edx, dword [ebp - 0x214]
movzx ecx, byte [eax + 0x19]
neg edx
sbb edx, edx
and edx, 0xfffffffd
add edx, 5
cmp ecx, edx
jl 0x107c33c
push dword [ebp - 0x214]
push 0x10077a0
push 0x5b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01028164
mov eax, dword [ebp - 0x214]
call fcn.0107a7e0
ret 8
Function at 0x107d88e
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x1c
mov eax, 0x10a8751
call fcn.0107a6db
mov eax, dword [0x10b30cc]
mov edi, 0x10b30cc
cmp eax, edi
je 0x107d8c6
test byte [eax + 0x1c], 1
je 0x107d8c6
cmp byte [eax + 0x19], 5
jb 0x107d8c6
push 0x10077a0
push 0x3f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01026c05
xor esi, esi
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push esi
push esi
push esi
push esi
push esi
push esi
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
push esi
push esi
push esi
push eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov ebx, eax
mov eax, dword [0x10b30cc]
cmp eax, edi
je 0x107d91a
test byte [eax + 0x1c], 2
je 0x107d91a
cmp byte [eax + 0x19], 4
jb 0x107d91a
push ebx
push 0x10077a0
push 0x40
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01028164
mov eax, dword [0x10b30cc]
inc dword [ebp - 0x14]
cmp ebx, esi
jne 0x107da34
push 0x10b7af8
lea ecx, [ebp - 0x10]
call fcn.0104078f
mov dword [ebp - 4], esi
mov eax, dword [0x10b30cc]
cmp eax, edi
je 0x107d95f
test byte [eax + 0x1c], 2
je 0x107d95f
cmp byte [eax + 0x19], 4
jb 0x107d95f
push dword [ebp - 0x1c]
push 0x10077a0
push 0x41
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01028164
cmp dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
jbe 0x107da24
cmp ebx, esi
jne 0x107da24
mov ecx, dword [ebp + 8]
mov ebx, dword [ecx]
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x28]
push ecx
push esi
push esi
push esi
lea ecx, [ebp - 0x20]
push ecx
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x20], eax
call fcn.0102d52c
push eax
push dword [ebp - 0x18]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, eax
mov eax, dword [0x10b30cc]
cmp eax, edi
je 0x107d9c7
test byte [eax + 0x1c], 2
je 0x107d9c7
cmp byte [eax + 0x19], 4
jb 0x107d9c7
push ebx
push 0x10077a0
push 0x42
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01028164
mov eax, ebx
neg eax
sbb eax, eax
not eax
and eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x10]
push eax
call fcn.0102c428
cmp ebx, esi
jne 0x107da15
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push eax
call fcn.01053478
mov eax, dword [0x10b30cc]
cmp eax, edi
je 0x107da15
test byte [eax + 0x1c], 2
je 0x107da15
cmp byte [eax + 0x19], 4
jb 0x107da15
push dword [ebp - 0x10]
push 0x10077a0
push 0x43
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01026c2b
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x1c]
jb 0x107d96b
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.01026e74
mov eax, dword [0x10b30cc]
cmp eax, edi
je 0x107da65
test byte [eax + 0x1c], 1
je 0x107da65
movzx ecx, byte [eax + 0x19]
mov edx, ebx
neg edx
sbb edx, edx
and edx, 0xfffffffd
add edx, 5
cmp ecx, edx
jl 0x107da65
push ebx
push 0x10077a0
push 0x44
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01028164
mov eax, ebx
call fcn.0107a7c7
ret 8
Function at 0x107da74
Capabilities:
Get user security identifier

Disassembly:
push pe_nt_image_headers32
mov eax, 0x10a877c
call fcn.0107a74e
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov edi, ecx
mov dword [ebp - 0xec], ebx
mov dword [ebp - 0xe0], eax
call fcn.0102b864
test ebx, ebx
je 0x107dbfd
and dword [ebp - 0xd8], 0
and dword [ebp - 4], 0
mov esi, 0x80
push esi
lea ecx, [ebp - 0xd8]
call fcn.0107c3c5
mov ecx, dword [ebp - 0xd8]
lea eax, [edi + 0x4c]
push eax
lea eax, [ebp - 0xe8]
push eax
push ecx
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push dword [ebp - 0xe0]
mov ebx, dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov dword [ebp - 0xe4], ecx
mov dword [ebp - 0xdc], 0x44
mov dword [ebp - 0xe8], esi
call ebx
test eax, eax
jne 0x107db7a
call dword [fcn.010011dc]
cmp eax, 0x7a
jne 0x107dbdd
cmp dword [ebp - 0xdc], 0x44
jbe 0x107db28
push 0x80004005
call fcn.01026a15
mov eax, dword [ebp - 0xe8]
cmp eax, esi
jbe 0x107db4c
add eax, eax
push eax
lea ecx, [ebp - 0xd8]
call fcn.0107c3e9
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0xe4], eax
lea eax, [edi + 0x4c]
push eax
lea eax, [ebp - 0xe8]
push eax
push dword [ebp - 0xe4]
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0xec]
push dword [ebp - 0xe0]
call ebx
test eax, eax
je 0x107dbdd
lea eax, [ebp - 0x54]
push eax
lea eax, [edi + 4]
push eax
push dword [ebp - 0xdc]
mov byte [edi + 0x48], 1
call dword [sym.imp.ADVAPI32.dll_CopySid]
test eax, eax
je 0x107dbdd
push dword [ebp - 0xe4]
lea ecx, [edi + 0x54]
call fcn.010278b6
push dword [ebp - 0xec]
lea ecx, [edi + 0x50]
call fcn.010278b6
push dword [ebp - 0xe0]
lea ecx, [edi + 0x5c]
call fcn.010278b6
lea eax, [ebp - 0xd4]
cmp dword [ebp - 0xd8], eax
je 0x107dbd9
lea ecx, [ebp - 0xd8]
call fcn.0107c000
mov al, 1
jmp 0x107dbff
mov ecx, edi
call fcn.0102b864
lea eax, [ebp - 0xd4]
cmp dword [ebp - 0xd8], eax
je 0x107dbfd
lea ecx, [ebp - 0xd8]
call fcn.0107c000
xor al, al
call fcn.0107a7e0
ret 8
Function at 0x107dc70
Capabilities:
Get session user name

Disassembly:
push 0x6c
mov eax, 0x10a87d1
call fcn.0107a74e
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x74], eax
mov eax, dword [0x10b30cc]
mov esi, 0x10b30cc
cmp eax, esi
je 0x107dcb1
test byte [eax + 0x1c], 1
je 0x107dcb1
cmp byte [eax + 0x19], 5
jb 0x107dcb1
push 0x10077a0
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01026c05
mov eax, 0x7fff
push eax
mov ecx, edi
mov dword [ebp - 0x78], eax
call fcn.01027450
lea ecx, [ebp - 0x78]
push ecx
push eax
push 2
call sub.Secur32.dll_GetUserNameExW
movzx ebx, al
mov eax, dword [0x10b30cc]
cmp eax, esi
je 0x107dcf8
test byte [eax + 0x1c], 2
je 0x107dcf8
cmp byte [eax + 0x19], 4
jb 0x107dcf8
push ebx
push 0x10077a0
push 0x13
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01028164
push 0xffffffffffffffff
mov ecx, edi
call fcn.0102c428
lea ecx, [ebp - 0x70]
call fcn.0107c459
and dword [ebp - 4], 0
cmp ebx, 1
jne 0x107ddbd
mov eax, dword [0x10b30cc]
cmp eax, esi
je 0x107dd3f
test byte [eax + 0x1c], 2
je 0x107dd3f
cmp byte [eax + 0x19], 4
jb 0x107dd3f
push dword [edi]
push 0x10077a0
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01026c2b
mov edi, dword [edi]
push 0
push edi
lea ecx, [ebp - 0x70]
call fcn.0107da74
movzx ebx, al
mov eax, dword [0x10b30cc]
cmp eax, esi
je 0x107dd7c
test byte [eax + 0x1c], 2
je 0x107dd7c
cmp byte [eax + 0x19], 4
jb 0x107dd7c
push ebx
push 0x10077a0
push 0x15
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01028164
mov eax, dword [0x10b30cc]
cmp ebx, 1
jne 0x107ddc2
lea ecx, [ebp - 0x70]
call fcn.0107dc0c
mov edi, dword [ebp - 0x74]
push eax
mov ecx, edi
call fcn.010278b6
mov eax, dword [0x10b30cc]
cmp eax, esi
je 0x107dde5
test byte [eax + 0x1c], 2
je 0x107ddc2
cmp byte [eax + 0x19], 4
jb 0x107ddc2
push dword [edi]
push 0x10077a0
push 0x16
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01026c2b
mov eax, dword [0x10b30cc]
cmp eax, esi
je 0x107dde5
test byte [eax + 0x1c], 1
je 0x107dde5
cmp byte [eax + 0x19], 5
jb 0x107dde5
push ebx
push 0x10077a0
push 0x17
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01028164
lea ecx, [ebp - 0x70]
call fcn.0102c6d4
mov eax, ebx
call fcn.0107a7e0
ret 8