joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1085c87
Capabilities:
Get user security identifier

Disassembly:
push 0x320
mov eax, 0x10bf113
call fcn.01074cb8
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0x31c], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x320], eax
lea eax, [ebp - 0x31c]
push eax
push 2
call fcn.0108a8a7
mov esi, eax
test esi, esi
je 0x1085ccc
push esi
push 0x80600ca
jmp 0x1085d8d
lea eax, [ebp - 0x32c]
push eax
lea eax, [ebp - 0x328]
push eax
lea eax, [ebp - 0x318]
push eax
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 0x31c]
mov dword [ebp - 0x324], 0x100
push 0
mov dword [ebp - 0x328], 0x104
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x1085d2f
call fcn.0108edc3
mov esi, eax
push esi
push 0x81600ca
push dword [ebp - 0x31c]
call fcn.01089421
jmp 0x1085d92
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.010a9f99
test eax, eax
jne 0x1085d55
call fcn.0108edc3
mov esi, eax
push esi
push 0x81c00ca
jmp 0x1085d8d
push edi
push dword [ebp - 0x320]
push 0x101abc8
call fcn.010b0c1c
mov esi, eax
test esi, esi
je 0x1085d74
push esi
push 0x82300ca
jmp 0x1085d8d
push ebx
push 0
push 0x101aa50
call fcn.010b0c1c
mov esi, eax
test esi, esi
je 0x1085d92
push esi
push 0x82900ca
call fcn.010893e6
cmp dword [ebp - 0x320], 0
je 0x1085da7
push dword [ebp - 0x320]
call dword [sym.imp.KERNEL32.dll_LocalFree]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x31c]
call fcn.01030479
mov eax, esi
call fcn.01074d4a
ret 8
Function at 0x108751b
Capabilities:
Hide graphical window

Disassembly:
push 0x10
mov eax, 0x10bf20c
call fcn.01074c45
xor edi, edi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], edi
call fcn.010b0b00
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 0x108754f
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 0x10875a6
push dword [ebp + 0x20]
and dword [ebp - 0x14], 0
push 0x1f300ce
call fcn.010893e6
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 0x10874c7
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.010b0b0f
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x108760f
mov eax, 0x1002030
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 0x1087645
push dword [ebp - 0x10]
call sub.CRYPTUI.dll_CryptUIDlgFreeCAContext
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.010b0989
xor eax, eax
call fcn.01074d31
ret 0x20
Function at 0x1087660
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 0x108773f
lea eax, [ebx + ebx + 2]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x10876a7
mov eax, 0x8007000e
push eax
push 0x5f00ce
jmp 0x10876c2
push edi
lea eax, [ebx + 1]
push eax
push 0xd
push dword [ebp + 8]
call esi
cmp ebx, eax
je 0x10876cb
mov eax, 0x80070018
push eax
push 0x6500ce
mov esi, eax
call fcn.010893e6
jmp 0x1087741
mov eax, edi
mov ebx, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x10876d2
sub eax, edx
sar eax, 1
lea esi, [edi + eax*2 - 2]
jmp 0x10876fc
movzx eax, word [esi]
push eax
call dword [sym.imp.msvcrt.dll_iswspace]
pop ecx
test eax, eax
je 0x1087700
xor eax, eax
mov word [esi], ax
dec esi
dec esi
cmp esi, edi
ja 0x10876e6
cmp edi, esi
ja 0x108773f
movzx eax, word [ebx]
xor ecx, ecx
cmp cx, ax
je 0x1087720
push eax
call dword [sym.imp.msvcrt.dll_iswspace]
pop ecx
test eax, eax
je 0x1087720
inc ebx
inc ebx
cmp ebx, esi
jbe 0x1087704
cmp esi, ebx
jb 0x108773f
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 0x108774c
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x108775a
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x10cd598]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
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
mov dword [ebp - 0x41c], ecx
cmp ecx, ebx
je 0x10877ad
cmp ecx, eax
je 0x10877ad
push ecx
push 0xf000ce
call fcn.010893e6
jmp 0x108789d
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push ebx
push ebx
push 0x147
push dword [esi + 0xc]
mov dword [ebp - 0x420], eax
xor eax, eax
mov dword [ebp - 0x41c], ebx
mov dword [esi + 0x14], 5
mov word [ebp - 0x20c], ax
call edi
push ebx
push eax
push 0x149
push dword [esi + 0xc]
mov dword [ebp - 0x424], eax
call edi
mov ebx, 0x104
cmp eax, ebx
jae 0x108780d
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x424]
push 0x148
push dword [esi + 0xc]
call edi
xor eax, eax
mov word [ebp - 0x414], ax
push ebx
lea eax, [ebp - 0x414]
push eax
push dword [esi + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
xor edi, edi
cmp word [ebp - 0x20c], di
je 0x1087887
cmp word [ebp - 0x414], di
je 0x1087887
push edi
push edi
lea eax, [ebp - 0x418]
push eax
push edi
push edi
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.010ac54a
mov dword [ebp - 0x41c], eax
cmp eax, edi
jne 0x108789d
mov eax, dword [ebp - 0x418]
test eax, eax
je 0x10878bb
mov ecx, dword [eax + 4]
mov dword [esi + 0x14], ecx
push dword [eax + 4]
call fcn.010663cf
test eax, eax
je 0x1087883
push 5
jmp 0x1087888
push 0
jmp 0x1087888
push edi
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], 0
je 0x10878b2
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x420], 0
je 0x10878c1
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x41c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01074bd5
leave
ret 4
Function at 0x1089fdb
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 [0x10cd598]
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
mov dword [ebp - 0x98], edi
mov dword [ebp - 0x94], edi
cmp dword [esi], edi
jne 0x108a01b
mov esi, 0x80070057
push esi
push 0x75f019a
jmp 0x108a15e
push 0xf0000000
push 1
push 0x1012720
push edi
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x108a04b
call fcn.0108edc3
mov esi, eax
push esi
push 0x76e019a
jmp 0x108a15e
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 0x108a07b
call fcn.0108edc3
mov esi, eax
push esi
push 0x776019a
jmp 0x108a15e
push edi
push dword [esi]
push dword [esi + 4]
push dword [ebp - 0x94]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x108a0a3
call fcn.0108edc3
mov esi, eax
push esi
push 0x77e019a
jmp 0x108a15e
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 0x108a0dd
call fcn.0108edc3
mov esi, eax
push esi
push 0x785019a
jmp 0x108a15e
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.0108ea28
mov esi, eax
cmp esi, edi
je 0x108a114
push esi
push 0x78f019a
jmp 0x108a15e
xor edx, edx
lea eax, [ebp - 0x90]
mov ecx, eax
cmp dx, word [ebp - 0x90]
je 0x108a140
movzx edx, word [ecx]
push 0x20
pop esi
cmp si, dx
je 0x108a137
mov word [eax], dx
inc eax
inc eax
inc ecx
inc ecx
xor edx, edx
cmp dx, word [ecx]
jne 0x108a127
xor ecx, ecx
mov word [eax], cx
push ebx
lea eax, [ebp - 0x90]
push eax
call fcn.0108e981
mov esi, eax
cmp esi, edi
je 0x108a163
push esi
push 0x7a7019a
call fcn.010893e6
cmp dword [ebp - 0x94], edi
je 0x108a177
push dword [ebp - 0x94]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 0x98], edi
je 0x108a18c
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.01074bd5
leave
ret 8
Function at 0x108a713
Capabilities:
Delete file
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x10cd598]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.msvcrt.dll_iswalpha]
je 0x108a762
movzx eax, word [esi]
push eax
call edi
pop ecx
test eax, eax
je 0x108a762
push 0x3a
pop eax
cmp ax, word [esi + 2]
jne 0x108a762
xor eax, eax
cmp ax, word [esi + 4]
jne 0x108a762
mov eax, 0x800700a1
push eax
push 0xa05019a
jmp 0x108a7ad
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 0x108a78f
call fcn.0108edc3
mov edi, eax
push edi
push 0xa0e019a
jmp 0x108a7af
cmp dword [ebp + 0xc], 0
je 0x108a823
cmp dword [ebp - 0x418], 0
jne 0x108a7b5
mov eax, 0x800700a1
push eax
push 0xa15019a
mov edi, eax
push esi
jmp 0x108a887
push dword [ebp - 0x20c]
lea esi, [ebp - 0x20c]
call edi
pop ecx
push 0x5c
pop edx
test eax, eax
je 0x108a7ea
push 0x3a
pop eax
cmp ax, word [ebp - 0x20a]
jne 0x108a7ea
mov eax, edx
cmp ax, word [ebp - 0x208]
jne 0x108a7ea
lea esi, [ebp - 0x206]
jmp 0x108a804
mov eax, edx
cmp ax, word [ebp - 0x20c]
jne 0x108a804
cmp ax, word [ebp - 0x20a]
jne 0x108a804
lea esi, [ebp - 0x208]
mov ecx, dword [ebp - 0x418]
cmp ecx, esi
jbe 0x108a81e
lea eax, [ecx - 2]
cmp dx, word [eax]
jne 0x108a81e
mov ecx, eax
mov dword [ebp - 0x418], ecx
xor eax, eax
mov word [ecx], ax
lea eax, [ebp - 0x414]
push eax
push 0
push 0x101aeac
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x108a862
call fcn.0108edc3
push 0x80070005
mov edi, eax
push edi
push 0xa2d019a
lea eax, [ebp - 0x20c]
push eax
call fcn.0108933a
jmp 0x108a890
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x108a88e
call fcn.0108edc3
mov edi, eax
push edi
push 0xa33019a
lea eax, [ebp - 0x414]
push eax
call fcn.01089421
jmp 0x108a890
xor edi, edi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.01074bd5
leave
ret 8
Function at 0x108a8a7
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 0x108a8e6
call fcn.0108edc3
mov ebx, eax
cmp ebx, 0x8007007a
je 0x108a8e6
push ebx
push 0xa4d019a
call fcn.010893e6
jmp 0x108a93e
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 0x108a908
mov eax, 0x8007000e
push eax
mov ebx, eax
push 0xa55019a
jmp 0x108a926
lea eax, [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call sub.Secur32.dll_GetComputerObjectNameW
test al, al
jne 0x108a92d
call fcn.0108edc3
mov ebx, eax
push ebx
push 0xa5b019a
call fcn.010893e6
jmp 0x108a933
mov dword [edi], esi
xor esi, esi
xor ebx, ebx
test esi, esi
je 0x108a93e
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 8

Function at 0x108a9de
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 0x108aa21
call fcn.0108edc3
mov dword [ebp + 0xc], eax
cmp eax, 0x800700ea
je 0x108aa21
push eax
push 0xaa3019a
call fcn.010893e6
jmp 0x108aa76
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 0x108aa41
mov eax, 0x8007000e
push eax
push 0xaaa019a
jmp 0x108aa5a
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 8]
call edi
test eax, eax
jne 0x108aa64
call fcn.0108edc3
push eax
push 0xaaf019a
mov dword [ebp + 0xc], eax
call fcn.010893e6
jmp 0x108aa6b
mov dword [ebx], esi
xor esi, esi
mov dword [ebp + 0xc], esi
test esi, esi
je 0x108aa76
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 0x108b826
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10cd598]
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 0x108b876
call fcn.0108edc3
push 0x800700cb
mov esi, eax
push esi
push 0x1171019a
push ebx
call fcn.0108933a
jmp 0x108b8d7
cmp eax, esi
jb 0x108b887
mov eax, 0x8007006f
push eax
push 0x1176019a
jmp 0x108b8be
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x108b890
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]
mov dword [edi], eax
test eax, eax
jne 0x108b8c7
mov eax, 0x8007000e
push eax
push 0x117d019a
mov esi, eax
call fcn.010893e6
jmp 0x108b8d7
lea ecx, [ebp - 0x20c]
push ecx
push esi
push eax
call fcn.0102d982
xor esi, esi
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01074bd5
leave
ret 8

Function at 0x108c0f7
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x10cd598]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x10d0804], 0
jne 0x108c17c
push esi
xor esi, esi
lea eax, [ebp - 0x118]
inc esi
push eax
mov dword [0x10d0804], esi
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x108c147
call fcn.0108edc3
push eax
push 0x1612019a
jmp 0x108c15a
cmp dword [ebp - 0x108], 2
je 0x108c161
push 0x4c7
push 0x1617019a
call fcn.010893e6
jmp 0x108c17b
cmp dword [ebp - 0x114], 5
ja 0x108c175
jb 0x108c17b
cmp dword [ebp - 0x110], 0
jbe 0x108c17b
mov dword [0x10d0800], esi
pop esi
mov ecx, dword [ebp - 4]
mov eax, dword [0x10d0800]
xor ecx, ebp
call fcn.01074bd5
leave
ret

Function at 0x108c192
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x10cd598]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x10d0809], 0
jne 0x108c209
lea eax, [ebp - 0x118]
push eax
mov byte [0x10d0809], 1
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x108c1df
call fcn.0108edc3
push eax
push 0x165e019a
jmp 0x108c1f2
cmp dword [ebp - 0x108], 2
je 0x108c1f9
push 0x4c7
push 0x1663019a
call fcn.010893e6
jmp 0x108c209
cmp dword [ebp - 0x114], 6
jb 0x108c209
mov byte [0x10d0808], 1
mov ecx, dword [ebp - 4]
mov al, byte [0x10d0808]
xor ecx, ebp
call fcn.01074bd5
leave
ret
Function at 0x108c278
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x10cd598]
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 0x108c2e4
call fcn.0108edc3
mov edi, eax
push edi
push 0x17d6019a
jmp 0x108c3ae
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov dword [ebp - 0x20], eax
cmp eax, ebx
jne 0x108c307
call fcn.0108edc3
mov edi, eax
cmp edi, ebx
je 0x108c307
push edi
push 0x17de019a
jmp 0x108c3ae
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 0x108c36b
call fcn.0108edc3
mov edi, eax
cmp edi, 0x800703f0
jne 0x108c363
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp eax, ebx
jne 0x108c343
call fcn.0108edc3
mov edi, eax
push edi
push 0x17f0019a
jmp 0x108c3ae
lea ecx, [ebp - 0x10]
push ecx
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x108c36b
call fcn.0108edc3
mov edi, eax
push edi
push 0x17f8019a
jmp 0x108c3ae
push edi
push 0x17fd019a
jmp 0x108c3ae
lea eax, [ebp - 0x18]
push eax
push 1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
test eax, eax
jne 0x108c38d
call fcn.0108edc3
mov edi, eax
push edi
push 0x1806019a
jmp 0x108c3ae
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 0x108c3b5
call fcn.0108edc3
mov edi, eax
push edi
push 0x180f019a
call fcn.010893e6
jmp 0x108c3bf
cmp dword [ebp - 0x1c], ebx
setne al
mov byte [esi], al
xor edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10], ebx
je 0x108c3cf
push dword [ebp - 0x10]
call esi
cmp dword [ebp - 0x18], ebx
je 0x108c3d9
push dword [ebp - 0x18]
call esi
cmp dword [ebp - 0x14], ebx
je 0x108c3e7
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.01074bd5
leave
ret 4
Function at 0x108c7d5
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 0x108c808
call fcn.0108edc3
mov edi, eax
push edi
push 0x1d9f019a
call fcn.010893e6
jmp 0x108c8df
mov eax, dword [ebp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x108c80e
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 0x108c843
mov eax, 0x8007000e
push eax
mov edi, eax
push 0x1da8019a
jmp 0x108c8c9
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, ebx
ja 0x108c8b3
test eax, eax
je 0x108c8b3
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x108c858
sub eax, edx
push 0x5c
sar eax, 1
pop ecx
cmp cx, word [esi + eax*2 - 2]
je 0x108c87c
push 0x1008aa0
push edi
push esi
call fcn.0102d9bc
push dword [ebp + 8]
push edi
push esi
call fcn.0102d9bc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 4], eax
test eax, eax
jne 0x108c8af
call fcn.0108edc3
mov edi, eax
push edi
push 0x1dbf019a
push esi
call fcn.01089421
jmp 0x108c8ce
xor edi, edi
jmp 0x108c8ce
call fcn.0108edc3
mov edi, eax
test edi, edi
jne 0x108c8c3
mov edi, 0x8007006f
push edi
push 0x1db2019a
call fcn.010893e6
test esi, esi
je 0x108c8d9
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 4], 0
jne 0x108c8e6
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 0x108ca32
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10cd598]
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, 0x101b0d4
jne 0x108ca5d
mov edx, 0x101b0c8
push ecx
push edx
push eax
push 0x101b0b0
lea eax, [ebp - 0x20c]
push 0x208
push eax
call fcn.0108aa85
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.01074bd5
leave
ret 0xc
Function at 0x108ca99
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
xor ebx, ebx
cmp byte [ebp + 0xc], bl
push esi
sete bl
and dword [eax], 0
push edi
mov edi, ebx
shl edi, 7
add edi, 0x10d0810
cmp byte [ebx + 0x10d080c], 0
jne 0x108cb90
push 0x10
push 1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0x108cae7
call fcn.0108edc3
mov esi, eax
push esi
push 0x201d019a
jmp 0x108cb27
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x108cb04
call fcn.0108edc3
mov esi, eax
push esi
push 0x2025019a
jmp 0x108cb27
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x108cb2e
call fcn.0108edc3
mov esi, eax
test esi, esi
jne 0x108cb21
mov esi, 0x8007000d
push esi
push 0x2031019a
call fcn.010893e6
jmp 0x108cb97
push 0x101b0f4
lea eax, [esi + 6]
push eax
call fcn.0108c78f
test eax, eax
je 0x108cb47
mov esi, 0x8007000d
jmp 0x108cb97
cmp byte [ebp + 0xc], 0
je 0x108cb62
movzx eax, word [esi + 0x34]
push eax
movzx eax, word [esi + 0x36]
push eax
movzx eax, word [esi + 0x30]
push eax
movzx eax, word [esi + 0x32]
jmp 0x108cb75
movzx eax, word [esi + 0x3c]
push eax
movzx eax, word [esi + 0x3e]
push eax
movzx eax, word [esi + 0x38]
push eax
movzx eax, word [esi + 0x3a]
push eax
push 0x101b0dc
push 0x40
push edi
call fcn.0102dd8f
add esp, 0x1c
xchg dword [ebp + 0xc], eax
mov byte [ebx + 0x10d080c], 1
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0xc