joyce8/EMBER2024-capa huggingface dataset:
Function at 0x107923b
Capabilities:
Hide graphical window

Disassembly:
push 0x10
mov eax, 0x10a8cda
call fcn.010683c9
xor edi, edi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], edi
call fcn.0109c426
mov dword [ebp - 4], edi
mov esi, dword [ebp + 8]
xor eax, eax
cmp dword [ebp + 0x20], edi
setne al
cmp byte [esi + 0x19], 0
mov dword [ebp + 0x20], eax
je 0x107926f
or dword [ebp + 0x20], 2
push 0x7f02
push edi
mov edi, dword [sym.imp.USER32.dll_LoadCursorW]
call edi
mov ebx, dword [sym.imp.USER32.dll_SetCursor]
push eax
call ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 1
push dword [ebp + 0x20]
xor eax, eax
push eax
push eax
push eax
push dword [ebp + 0x10]
call sub.certcli.dll_Ordinal_210
push 0x7f00
push 0
mov dword [ebp + 0x20], eax
call edi
push eax
call ebx
cmp dword [ebp + 0x20], 0
je 0x10792c6
push dword [ebp + 0x20]
and dword [ebp - 0x14], 0
push 0x1ef00ce
call fcn.0107ae44
mov ecx, dword [ebp + 0x24]
xor eax, eax
cmp eax, dword [ebp - 0x14]
sbb eax, eax
neg eax
push eax
push dword [ebp + 0x14]
mov dword [ecx], eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov ebx, dword [ebp + 0x18]
mov edi, dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x10791e7
push 0xfffffffffffffffc
push ebx
call edi
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [esi], eax
mov eax, dword [ebp + 0x10]
push esi
mov dword [esi + 4], eax
mov eax, dword [ebp + 0x1c]
push 0xffffffffffffffeb
push ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], eax
call edi
push esi
push 0xffffffffffffffeb
push dword [ebp + 0x1c]
call edi
push 0x3ce
lea ecx, [ebp - 0x1c]
call fcn.0109c435
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x107932f
mov eax, 0x1001ea0
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push eax
mov edi, 0x3cf
push edi
push dword [ebp + 0x10]
call esi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0
push edi
push dword [ebp + 0x10]
call esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [ebp - 0x10], 0
je 0x1079365
push dword [ebp - 0x10]
call sub.CRYPTUI.dll_CryptUIDlgFreeCAContext
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0109c36f
xor eax, eax
call fcn.010684b5
ret 0x20
Function at 0x1079380
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push edi
xor edi, edi
push edi
push edi
push 0xe
push dword [ebp + 8]
mov dword [eax], edi
call esi
mov ebx, eax
test ebx, ebx
jle 0x107945c
lea eax, [ebx + ebx + 2]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x10793c7
mov eax, 0x8007000e
push eax
push 0x5f00ce
jmp 0x10793e2
push edi
lea eax, [ebx + 1]
push eax
push 0xd
push dword [ebp + 8]
call esi
cmp ebx, eax
je 0x10793eb
mov eax, 0x80070018
push eax
push 0x6500ce
mov esi, eax
call fcn.0107ae44
jmp 0x107945e
mov eax, edi
mov ebx, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x10793f2
sub eax, edx
sar eax, 1
lea esi, [edi + eax*2 - 2]
jmp 0x107941b
movzx eax, word [esi]
push eax
call dword [sym.imp.msvcrt.dll_iswspace]
test eax, eax
pop ecx
je 0x107941f
and word [esi], 0
dec esi
dec esi
cmp esi, edi
ja 0x1079406
cmp edi, esi
ja 0x107945c
movzx eax, word [ebx]
test ax, ax
je 0x107943d
push eax
call dword [sym.imp.msvcrt.dll_iswspace]
test eax, eax
pop ecx
je 0x107943d
inc ebx
inc ebx
cmp ebx, esi
jbe 0x1079423
cmp esi, ebx
jb 0x107945c
sub esi, ebx
shr esi, 1
lea eax, [esi + esi + 4]
push eax
push ebx
push edi
call dword [sym.imp.msvcrt.dll_memmove]
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov dword [eax], edi
xor edi, edi
xor esi, esi
test edi, edi
je 0x1079469
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x1079477
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x10b5894]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push ebx
mov dword [ebp - 0x418], ebx
mov dword [ebp - 0x420], ebx
call dword [sym.imp.ole32.dll_CoInitialize]
mov ecx, eax
xor eax, eax
inc eax
cmp ecx, ebx
mov dword [ebp - 0x41c], ecx
je 0x10794c9
cmp ecx, eax
je 0x10794c9
push ecx
push 0xf000ce
call fcn.0107ae44
jmp 0x1079595
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push ebx
push ebx
push 0x147
push dword [esi + 0xc]
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x41c], ebx
mov dword [esi + 0x14], 5
mov word [ebp - 0x20c], bx
mov word [ebp - 0x414], bx
call edi
lea ecx, [ebp - 0x20c]
push ecx
push eax
push 0x148
push dword [esi + 0xc]
call edi
push 0x104
lea eax, [ebp - 0x414]
push eax
push dword [esi + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [ebp - 0x20c], bx
pop edi
je 0x107957f
cmp word [ebp - 0x414], bx
je 0x107957f
push ebx
push ebx
lea eax, [ebp - 0x418]
push eax
push ebx
push ebx
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.01098fb9
cmp eax, ebx
mov dword [ebp - 0x41c], eax
jne 0x1079595
mov eax, dword [ebp - 0x418]
cmp eax, ebx
je 0x10795b1
mov ecx, dword [eax + 4]
mov dword [esi + 0x14], ecx
push dword [eax + 4]
call fcn.0105a5bc
test eax, eax
je 0x107957f
push 5
jmp 0x1079580
push ebx
push 0x3cf
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [ebp - 0x418], ebx
je 0x10795a9
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x420], ebx
je 0x10795b7
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x41c]
pop esi
xor ecx, ebp
pop ebx
call fcn.01068363
leave
ret 4
Function at 0x107b5a0
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x10b5894]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp dword [esi], edi
mov dword [ebp - 0x98], edi
mov dword [ebp - 0x94], edi
jne 0x107b5e0
mov esi, 0x80070057
push esi
push 0x6fb019a
jmp 0x107b718
push 0xf0000000
push 1
push 0x1010268
push edi
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x107b610
call fcn.010a4804
mov esi, eax
push esi
push 0x70a019a
jmp 0x107b718
lea eax, [ebp - 0x94]
push eax
push edi
push edi
push 0x8004
push dword [ebp - 0x98]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x107b640
call fcn.010a4804
mov esi, eax
push esi
push 0x712019a
jmp 0x107b718
push edi
push dword [esi]
push dword [esi + 4]
push dword [ebp - 0x94]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x107b668
call fcn.010a4804
mov esi, eax
push esi
push 0x71a019a
jmp 0x107b718
push edi
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x18]
push eax
push 2
push dword [ebp - 0x94]
mov dword [ebp - 0x9c], 0x14
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x107b69f
call fcn.010a4804
mov esi, eax
push esi
push 0x721019a
jmp 0x107b718
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x9c]
mov dword [ebp - 0xa0], 0x78
push 1
call fcn.010a4ab0
mov esi, eax
cmp esi, edi
je 0x107b6d6
push esi
push 0x72b019a
jmp 0x107b718
cmp word [ebp - 0x90], di
lea eax, [ebp - 0x90]
mov ecx, eax
je 0x107b6fc
movzx edx, word [ecx]
cmp dx, 0x20
je 0x107b6f5
mov word [eax], dx
inc eax
inc eax
inc ecx
inc ecx
cmp word [ecx], di
jne 0x107b6e7
mov word [eax], di
push ebx
lea eax, [ebp - 0x90]
push eax
call fcn.010a4a18
mov esi, eax
cmp esi, edi
je 0x107b71d
push esi
push 0x743019a
call fcn.0107ae44
cmp dword [ebp - 0x94], edi
je 0x107b731
push dword [ebp - 0x94]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 0x98], edi
je 0x107b746
push edi
push dword [ebp - 0x98]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01068363
leave
ret 8
Function at 0x107b968
Capabilities:
Delete file
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x10b5894]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.msvcrt.dll_iswalpha]
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp dword [ebp + 0xc], edi
je 0x107b9b5
movzx eax, word [esi]
push eax
call ebx
test eax, eax
pop ecx
je 0x107b9b5
cmp word [esi + 2], 0x3a
jne 0x107b9b5
cmp word [esi + 4], di
jne 0x107b9b5
mov eax, 0x800700a1
push eax
push 0x94e019a
jmp 0x107b9fe
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
jne 0x107b9e2
call fcn.010a4804
mov edi, eax
push edi
push 0x957019a
jmp 0x107ba00
cmp dword [ebp + 0xc], edi
je 0x107ba6c
cmp dword [ebp - 0x418], edi
jne 0x107ba06
mov eax, 0x800700a1
push eax
push 0x95e019a
mov edi, eax
push esi
jmp 0x107bacf
push dword [ebp - 0x20c]
lea esi, [ebp - 0x20c]
call ebx
test eax, eax
pop ecx
push 0x5c
pop edx
je 0x107ba37
cmp word [ebp - 0x20a], 0x3a
jne 0x107ba37
cmp word [ebp - 0x208], dx
jne 0x107ba37
lea esi, [ebp - 0x206]
jmp 0x107ba4f
cmp word [ebp - 0x20c], dx
jne 0x107ba4f
cmp word [ebp - 0x20a], dx
jne 0x107ba4f
lea esi, [ebp - 0x208]
mov ecx, dword [ebp - 0x418]
cmp ecx, esi
jbe 0x107ba69
lea eax, [ecx - 2]
cmp word [eax], dx
jne 0x107ba69
mov ecx, eax
mov dword [ebp - 0x418], ecx
mov word [ecx], di
lea eax, [ebp - 0x414]
push eax
push edi
push 0x1018000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x107baaa
call fcn.010a4804
push 0x80070005
mov edi, eax
push edi
push 0x976019a
lea eax, [ebp - 0x20c]
push eax
call fcn.0107adc0
jmp 0x107bad4
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x107bad4
call fcn.010a4804
mov edi, eax
push edi
push 0x97c019a
lea eax, [ebp - 0x414]
push eax
call fcn.0107ae7f
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01068363
leave
ret 8

Function at 0x107baec
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp + 0xc]
xor esi, esi
push eax
push esi
push dword [ebp + 8]
mov dword [edi], esi
mov dword [ebp + 0xc], esi
call sub.Secur32.dll_GetComputerObjectNameW
test al, al
jne 0x107bb2b
call fcn.010a4804
mov ebx, eax
cmp ebx, 0x8007007a
je 0x107bb2b
push ebx
push 0x996019a
call fcn.0107ae44
jmp 0x107bb83
mov eax, dword [ebp + 0xc]
add eax, eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
jne 0x107bb4d
mov eax, 0x8007000e
push eax
mov ebx, eax
push 0x99e019a
jmp 0x107bb6b
lea eax, [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call sub.Secur32.dll_GetComputerObjectNameW
test al, al
jne 0x107bb72
call fcn.010a4804
mov ebx, eax
push ebx
push 0x9a4019a
call fcn.0107ae44
jmp 0x107bb78
mov dword [edi], esi
xor esi, esi
xor ebx, ebx
test esi, esi
je 0x107bb83
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 8
Function at 0x107bc23
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
lea eax, [ebp - 4]
xor esi, esi
push eax
push esi
push dword [ebp + 8]
mov dword [ebx], esi
mov dword [ebp - 4], esi
call edi
test eax, eax
jne 0x107bc66
call fcn.010a4804
cmp eax, 0x800700ea
mov dword [ebp + 0xc], eax
je 0x107bc66
push eax
push 0x9ec019a
call fcn.0107ae44
jmp 0x107bcbb
mov eax, dword [ebp - 4]
add eax, eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
jne 0x107bc86
mov eax, 0x8007000e
push eax
push 0x9f3019a
jmp 0x107bc9f
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 8]
call edi
test eax, eax
jne 0x107bca9
call fcn.010a4804
push eax
push 0x9f8019a
mov dword [ebp + 0xc], eax
call fcn.0107ae44
jmp 0x107bcb0
mov dword [ebx], esi
xor esi, esi
mov dword [ebp + 0xc], esi
test esi, esi
je 0x107bcbb
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x107c059
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x10b5894]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x25c], ebx
jne 0x107c087
mov eax, 0x10180ec
lea ecx, [ebp - 0x25c]
push ecx
push ebx
push eax
push esi
call fcn.0107bf7f
cmp eax, ebx
mov dword [ebp - 0x258], eax
je 0x107c0b0
push eax
push 0xc4a019a
call fcn.0107ae44
jmp 0x107c233
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x107c0b5
sub eax, edx
push edi
sar eax, 1
lea edi, [eax + 0x105]
lea eax, [edi + edi]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x107c0f7
mov eax, 0x8007000e
push eax
push 0xc51019a
mov dword [ebp - 0x258], eax
call fcn.0107ae44
jmp 0x107c232
push dword [ebp - 0x25c]
push edi
push ebx
call fcn.01028f74
push 0x5c
push ebx
call dword [sym.imp.msvcrt.dll_wcsrchr]
mov esi, eax
inc esi
inc esi
mov eax, esi
sub eax, ebx
pop ecx
shr eax, 1
pop ecx
sub edi, eax
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x260], eax
jne 0x107c174
call fcn.010a4804
cmp eax, 0x80070002
mov dword [ebp - 0x258], eax
je 0x107c168
cmp eax, 0x80070003
je 0x107c168
push eax
push 0xc63019a
push dword [ebp - 0x25c]
call fcn.0107ae7f
jmp 0x107c232
and dword [ebp - 0x258], 0
jmp 0x107c232
lea eax, [ebp - 0x228]
push eax
push edi
push esi
call fcn.01028f74
test byte [ebp - 0x254], 0x10
je 0x107c1e0
cmp dword [ebp + 0x10], 0
je 0x107c20b
lea eax, [ebp - 0x228]
push eax
push 0x100a778
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x107c20b
lea eax, [ebp - 0x228]
push eax
push 0x10180f4
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x107c20b
push 1
push ebx
call fcn.0107c26c
test eax, eax
je 0x107c20b
cmp dword [ebp - 0x258], 0
jne 0x107c1d8
mov dword [ebp - 0x258], eax
push eax
push 0xc79019a
jmp 0x107c205
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x107c20b
call fcn.010a4804
cmp dword [ebp - 0x258], 0
jne 0x107c1ff
mov dword [ebp - 0x258], eax
push eax
push 0xc8a019a
push ebx
call fcn.0107ae7f
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x107c174
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
cmp dword [ebp - 0x25c], 0
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
je 0x107c24a
push dword [ebp - 0x25c]
call esi
test ebx, ebx
je 0x107c251
push ebx
call esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x258]
pop esi
xor ecx, ebp
pop ebx
call fcn.01068363
leave
ret 0xc
Function at 0x107c91f
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10b5894]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x107c96f
call fcn.010a4804
push 0x800700cb
mov esi, eax
push esi
push 0x102f019a
push ebx
call fcn.0107adc0
jmp 0x107c9d0
cmp eax, esi
jb 0x107c980
mov eax, 0x8007006f
push eax
push 0x1034019a
jmp 0x107c9b7
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x107c989
sub eax, edx
sar eax, 1
lea esi, [eax + 1]
lea eax, [esi + esi]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [edi], eax
jne 0x107c9c0
mov eax, 0x8007000e
push eax
push 0x103b019a
mov esi, eax
call fcn.0107ae44
jmp 0x107c9d0
lea ecx, [ebp - 0x20c]
push ecx
push esi
push eax
call fcn.01028f74
xor esi, esi
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01068363
leave
ret 8

Function at 0x107d1d4
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x10b5894]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x10b8b6c], 0
jne 0x107d259
push esi
xor esi, esi
lea eax, [ebp - 0x118]
inc esi
push eax
mov dword [0x10b8b6c], esi
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x107d224
call fcn.010a4804
push eax
push 0x1495019a
jmp 0x107d237
cmp dword [ebp - 0x108], 2
je 0x107d23e
push 0x4c7
push 0x149a019a
call fcn.0107ae44
jmp 0x107d258
cmp dword [ebp - 0x114], 5
ja 0x107d252
jb 0x107d258
cmp dword [ebp - 0x110], 0
jbe 0x107d258
mov dword [0x10b8b68], esi
pop esi
mov ecx, dword [ebp - 4]
mov eax, dword [0x10b8b68]
xor ecx, ebp
call fcn.01068363
leave
ret

Function at 0x107d26f
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x10b5894]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x10b8b71], 0
jne 0x107d2e6
lea eax, [ebp - 0x118]
push eax
mov byte [0x10b8b71], 1
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x107d2bc
call fcn.010a4804
push eax
push 0x14e1019a
jmp 0x107d2cf
cmp dword [ebp - 0x108], 2
je 0x107d2d6
push 0x4c7
push 0x14e6019a
call fcn.0107ae44
jmp 0x107d2e6
cmp dword [ebp - 0x114], 6
jb 0x107d2e6
mov byte [0x10b8b70], 1
mov ecx, dword [ebp - 4]
mov al, byte [0x10b8b70]
xor ecx, ebp
call fcn.01068363
leave
ret
Function at 0x107d355
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x10b5894]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
push edi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x107d3c1
call fcn.010a4804
mov edi, eax
push edi
push 0x164d019a
jmp 0x107d48b
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp eax, ebx
mov dword [ebp - 0x20], eax
jne 0x107d3e4
call fcn.010a4804
mov edi, eax
cmp edi, ebx
je 0x107d3e4
push edi
push 0x1655019a
jmp 0x107d48b
lea eax, [ebp - 0x10]
push eax
push ebx
push 0xa
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x107d448
call fcn.010a4804
mov edi, eax
cmp edi, 0x800703f0
jne 0x107d440
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp eax, ebx
jne 0x107d420
call fcn.010a4804
mov edi, eax
push edi
push 0x1667019a
jmp 0x107d48b
lea ecx, [ebp - 0x10]
push ecx
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x107d448
call fcn.010a4804
mov edi, eax
push edi
push 0x166f019a
jmp 0x107d48b
push edi
push 0x1674019a
jmp 0x107d48b
lea eax, [ebp - 0x18]
push eax
push 1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
test eax, eax
jne 0x107d46a
call fcn.010a4804
mov edi, eax
push edi
push 0x167d019a
jmp 0x107d48b
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x107d492
call fcn.010a4804
mov edi, eax
push edi
push 0x1686019a
call fcn.0107ae44
jmp 0x107d49c
cmp dword [ebp - 0x1c], ebx
setne al
mov byte [esi], al
xor edi, edi
cmp dword [ebp - 0x10], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x107d4ac
push dword [ebp - 0x10]
call esi
cmp dword [ebp - 0x18], ebx
je 0x107d4b6
push dword [ebp - 0x18]
call esi
cmp dword [ebp - 0x14], ebx
je 0x107d4c4
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01068363
leave
ret 4
Function at 0x107d8d6
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor esi, esi
push esi
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ebx, eax
cmp ebx, esi
jne 0x107d909
call fcn.010a4804
mov edi, eax
push edi
push 0x1b5c019a
call fcn.0107ae44
jmp 0x107d9de
mov eax, dword [ebp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x107d90f
sub eax, edx
sar eax, 1
lea edi, [eax + ebx + 2]
lea eax, [edi + edi]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
jne 0x107d944
mov eax, 0x8007000e
push eax
mov edi, eax
push 0x1b65019a
jmp 0x107d9c8
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, ebx
ja 0x107d9b2
test eax, eax
je 0x107d9b2
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x107d959
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 - 2], 0x5c
je 0x107d97b
push 0x1008080
push edi
push esi
call fcn.0102920e
push dword [ebp + 8]
push edi
push esi
call fcn.0102920e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test eax, eax
mov dword [ebp - 4], eax
jne 0x107d9ae
call fcn.010a4804
mov edi, eax
push edi
push 0x1b7c019a
push esi
call fcn.0107ae7f
jmp 0x107d9cd
xor edi, edi
jmp 0x107d9cd
call fcn.010a4804
mov edi, eax
test edi, edi
jne 0x107d9c2
mov edi, 0x8007006f
push edi
push 0x1b6f019a
call fcn.0107ae44
test esi, esi
je 0x107d9d8
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 4], 0
jne 0x107d9e5
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x107db31
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10b5894]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [ebp + 8], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edx, 0x10181a4
jne 0x107db5c
mov edx, 0x1018198
push ecx
push edx
push eax
push 0x1018180
lea eax, [ebp - 0x20c]
push 0x208
push eax
call fcn.01037d8f
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01068363
leave
ret 0xc