joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1011f98
Capabilities:
Query environment variable

Disassembly:
push 8
mov eax, 0x102f284
call fcn.01025fed
mov dword [ebp - 0x10], ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
mov edi, dword [ebp + 8]
push dword [ebp + 0xc]
mov ecx, edi
call dword [sym.imp.MFC80U.DLL_Ordinal_283]
mov dword [ebp - 4], ebx
push dword [ebp + 0x14]
xor esi, esi
push dword [ebp + 0x10]
inc esi
mov ecx, edi
mov dword [ebp - 0x14], esi
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
mov ecx, dword [ebp - 0x10]
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.01011aa9
mov dword [ebp - 4], esi
push eax
mov ecx, edi
call dword [sym.imp.MFC80U.DLL_Ordinal_774]
mov byte [ebp - 4], bl
lea ecx, [ebp + 0xc]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov ecx, edi
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
mov ecx, dword [ebp - 0x10]
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.0100fdf5
mov dword [ebp - 4], 2
push eax
mov ecx, edi
call dword [sym.imp.MFC80U.DLL_Ordinal_774]
mov byte [ebp - 4], bl
lea ecx, [ebp + 0xc]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
push ebx
push ebx
mov ecx, edi
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp + 0x14], eax
add eax, eax
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x10120a6
push dword [ebp + 0x14]
mov ecx, edi
push eax
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x101207b
push dword [ebp + 0xc]
mov ecx, edi
call dword [sym.imp.MFC80U.DLL_Ordinal_776]
jmp 0x1012095
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 4]
push esi
push esi
push ebx
lea ecx, [ecx + eax + 4]
mov eax, dword [ecx]
push ebx
push 0xc000c40c
call dword [eax]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
call fcn.010260d9
ret 0x10
Function at 0x10149b3
Capabilities:
Read file on windows

Disassembly:
push 0x420
mov eax, 0x102f617
call fcn.01026060
or dword [ebp - 0x41c], 0xffffffff
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
push 0x10030b4
lea eax, [esi + 0x40]
push eax
lea eax, [ebp - 0x424]
push eax
call fcn.01007c8d
add esp, 0xc
mov byte [ebp - 4], 1
push ebx
push 0x100080
push 3
push ebx
push 1
push SysReAllocString
lea ecx, [ebp - 0x424]
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
lea ecx, [ebp - 0x41c]
mov edi, eax
call fcn.01010702
cmp edi, 0xffffffff
mov dword [ebp - 0x41c], edi
jne 0x1014a68
mov eax, dword [esi]
push 1
push 1
push ebx
push ebx
push 0xc000c3f6
mov ecx, esi
call dword [eax]
mov byte [ebp - 0x411], bl
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x424]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x41c]
call fcn.01010702
mov al, byte [ebp - 0x411]
call fcn.010260f2
ret
push 0x400
lea eax, [ebp - 0x410]
push ebx
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
push ebx
lea eax, [ebp - 0x428]
push eax
push 0x400
lea eax, [ebp - 0x410]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1014aaa
mov eax, dword [ebp - 0x428]
cmp eax, ebx
jne 0x1014b49
lea ecx, [ebp - 0x418]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
mov byte [ebp - 4], 2
mov edi, 0xc000c39b
lea eax, [ebp - 0x420]
push edi
push eax
call fcn.0100ba1d
pop ecx
pop ecx
mov dword [ebp - 0x42c], eax
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x42c]
push eax
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.MFC80U.DLL_Ordinal_2311]
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x420]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov eax, dword [esi]
push 1
push 1
push ebx
push ebx
lea ecx, [ebp - 0x418]
mov dword [ebp - 0x420], eax
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
mov eax, dword [ebp - 0x420]
push edi
mov ecx, esi
call dword [eax + 4]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x418]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov eax, dword [ebp - 0x428]
lea ecx, [eax - 1]
cmp ecx, 0x400
jae 0x1014b5d
mov byte [ebp + eax - 0x410], bl
jmp 0x1014b60
mov byte [ebp - 0x11], bl
lea eax, [ebp - 0x410]
push 0x10030a8
push eax
call dword [sym.imp.MSVCR80.dll_strstr]
pop ecx
test eax, eax
pop ecx
setne byte [ebp - 0x411]
jmp 0x1014a3e
Function at 0x1018802
Capabilities:
Create thread
Print debug messages

Disassembly:
push 0x28
mov eax, 0x102ff4a
call fcn.01025fed
mov edi, dword [ebp + 8]
mov eax, dword [edi]
cmp dword [eax], 0xc00000fd
jne 0x101882f
push 0x1003a74
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
inc eax
call fcn.010260d9
ret
lea ecx, [ebp - 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov eax, dword [eax]
push ebx
mov dword [ebp - 0x18], eax
call fcn.010179c1
mov esi, eax
push esi
push 0x1003a60
push str.SQLDIAG
mov dword [ebp - 0x10], 5
call fcn.0101fc5a
add esp, 0x10
test al, al
je 0x1018884
push esi
lea eax, [ebp - 0x10]
push eax
push 0x1003a60
push str.SQLDIAG
call fcn.0101f734
add esp, 0x10
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x18], 0xe0000001
je 0x10188fd
mov edi, 0xc000c474
lea eax, [ebp - 0x1c]
push edi
push eax
call fcn.0100ba1d
pop ecx
pop ecx
mov byte [ebp - 4], 1
push dword [ebp - 0x18]
mov ecx, eax
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.MFC80U.DLL_Ordinal_2311]
add esp, 0xc
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov eax, dword [esi]
push 1
push 1
push 2
push ebx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x20], eax
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
mov eax, dword [ebp - 0x20]
push edi
mov ecx, esi
call dword [eax + 4]
push 0x10384f0
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, dword [ebp - 0x10]
ja 0x10189c8
mov edi, dword [ebp + 8]
mov eax, dword [esi]
push 1
push 1
push 2
push ebx
push 0xc000c489
mov ecx, esi
call dword [eax]
mov eax, dword [edi]
mov dword [ebp - 0x28], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x20]
push eax
push ebx
lea eax, [ebp - 0x34]
push eax
push 0x10187dc
push ebx
push ebx
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.MSVCR80.dll__beginthreadex]
mov edi, eax
add esp, 0x18
cmp edi, ebx
jne 0x1018976
mov edi, dword [esi]
push ebx
push 0xc000c475
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call dword [edi + 0x10]
xor esi, esi
inc esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov eax, esi
jmp 0x1018829
push 1
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
lea eax, [ebp + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x10189a3
cmp dword [ebp + 8], ebx
jne 0x10189a3
push 1
push 1
push 2
push ebx
push 0xc000c476
jmp 0x10189af
push 1
push 1
push 2
push ebx
push 0xc000c477
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
cmp dword [ebp - 0x18], 0xe0000001
je 0x10189c8
mov dword [0x10384c4], 2
or esi, 0xffffffff
jmp 0x1018962
Function at 0x1019162
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x814
mov eax, dword [0x1038418]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
imul eax, eax, 0x3e8
push ebx
push esi
push edi
mov esi, ecx
cmp dword [esi + 0x28], 0xffffffff
push 1
push eax
je 0x1019273
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
test eax, eax
jne 0x1019279
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
xor ebx, ebx
push ebx
lea eax, [ebp - 0x810]
push eax
mov edi, 0x800
push edi
lea eax, [ebp - 0x804]
push eax
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x101924d
mov eax, dword [ebp - 0x810]
cmp eax, ebx
jbe 0x101924d
cmp eax, edi
jae 0x10191ea
shr eax, 1
mov word [ebp + eax*2 - 0x804], bx
jmp 0x10191ee
mov word [ebp - 6], bx
mov ecx, dword [esi + 0x58]
mov eax, dword [ecx]
lea edx, [ebp - 0x804]
push edx
push esi
call dword [eax + 0x10]
mov eax, dword [esi + 0x24]
cmp eax, ebx
mov dword [ebp - 0x808], eax
je 0x101923d
mov ecx, dword [esi + 0x60]
lea eax, [ebp - 0x808]
push eax
call fcn.01008e87
cmp dword [ebp - 0x808], ebx
je 0x101923d
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0x809]
push eax
push dword [ebp - 0x808]
mov ecx, esi
call fcn.01018fc1
mov ecx, esi
call fcn.0100d180
mov ecx, esi
call fcn.0100d105
jmp 0x1019279
mov eax, dword [esi + 4]
mov eax, dword [eax + 4]
mov edi, dword [eax + esi + 4]
push ebx
push 0xc000c48d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [esi + 4]
mov eax, dword [eax + 4]
lea ecx, [eax + esi + 4]
call dword [edi + 0x10]
jmp 0x1019279
call dword [sym.imp.KERNEL32.dll_SleepEx]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01025a6c
leave
ret 4
Function at 0x101c95b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x101c977
test al, 0x10
je 0x101c977
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x101c980
Capabilities:
Write file on windows

Disassembly:
push 0xc
mov eax, 0x1030535
call fcn.01025fed
lea ecx, [ebp - 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, dword [ebp + 0x10]
push 2
pop eax
push esi
lea ecx, [ebp - 0x14]
push ecx
push eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
mov byte [ebp - 0x10], 0xff
mov byte [ebp - 0xf], 0xfe
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x101c9ed
mov edi, dword [ebp + 0xc]
mov esi, dword [edi]
push 1
push 1
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, edi
call dword [esi]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov al, bl
call fcn.010260d9
ret
cmp esi, ebx
je 0x101c9f7
mov eax, dword [ebp - 0x14]
add dword [esi + 8], eax
mov bl, 1
jmp 0x101c9d8

Function at 0x101cc6c
Capabilities:
Set console window title

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
push edi
xor edi, edi
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 4], ebx
jbe 0x101cce5
push esi
mov esi, 0x3e8
cmp dword [ebp + 0x10], 0xffffffff
je 0x101cc93
cmp edi, dword [ebp + 0x10]
jae 0x101cce4
cmp ebx, 0xc0
jne 0x101cca1
cmp byte [ebp + 0x18], 0
je 0x101cce4
push 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetQueuedCompletionStatus]
test eax, eax
je 0x101ccc1
inc dword [ebp - 4]
jmp 0x101ccdc
push str.SQLDIAG
add edi, esi
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
movzx eax, byte [ebp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SleepEx]
mov ebx, eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
jb 0x101cc88
pop esi
call dword [sym.imp.KERNEL32.dll_SwitchToThread]
pop edi
mov eax, ebx
pop ebx
leave
ret

Function at 0x101cd4c
Capabilities:
Get hostname

Disassembly:
push 0x30
mov eax, 0x103064e
call fcn.01026060
and dword [ebp - 4], 0
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
and dword [ebp - 0x38], 0
push esi
mov ecx, ebx
mov dword [ebp - 0x3c], ebx
call dword [sym.imp.MFC80U.DLL_Ordinal_283]
and dword [ebp - 4], 0
mov dword [ebp - 0x38], 1
mov ecx, 0x1001868
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x101cdaa
test dx, dx
je 0x101cda6
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x101cdaa
add eax, 4
add ecx, 4
test dx, dx
jne 0x101cd84
xor eax, eax
jmp 0x101cdaf
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x101cdd8
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x34], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x101cdd8
lea eax, [ebp - 0x30]
push eax
mov ecx, ebx
call dword [sym.imp.MFC80U.DLL_Ordinal_776]
mov eax, ebx
call fcn.010260f2
ret
Function at 0x101d281
Capabilities:
Pause service
Query service status

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
xor ebx, ebx
push 0xf003f
push ebx
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x101d2d5
push 0x44
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
cmp eax, ebx
mov dword [ebp - 0xc], eax
jne 0x101d2c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x101d355
lea ecx, [ebp - 0x30]
push ecx
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x101d2e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x101d347
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
lea eax, [ebp - 0x14]
push eax
push 0x24
lea eax, [ebp - 0x54]
push eax
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x101d33d
mov eax, dword [ebp - 8]
push 6
xor edx, edx
pop ecx
div ecx
test edx, edx
jne 0x101d31e
mov eax, dword [edi]
push 1
push 1
push ebx
push ebx
push 0x4000c45e
mov ecx, edi
call dword [eax]
inc dword [ebp - 8]
cmp dword [ebp - 0x50], 1
je 0x101d346
push 1
push 0x1388
call dword [sym.imp.KERNEL32.dll_SleepEx]
cmp eax, 0xc0
jne 0x101d2e7
jmp 0x101d346
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
pop edi
cmp dword [ebp - 0xc], ebx
je 0x101d355
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 0x10], ebx
pop ebx
je 0x101d364
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 4]
leave
ret
Function at 0x101d36e
Capabilities:
Query service status
Stop service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x50
push esi
push edi
xor esi, esi
push 0xf003f
push esi
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, esi
mov dword [ebp - 0xc], eax
jne 0x101d3a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp - 0xc]
mov dword [ebp - 4], eax
jmp 0x101d444
push 0x24
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
cmp edi, esi
jne 0x101d3c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x101d44f
lea eax, [ebp - 0x2c]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x101d3de
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x101d444
mov dword [ebp - 8], esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push eax
push 0x24
lea eax, [ebp - 0x50]
push eax
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x101d439
mov eax, dword [ebp - 8]
push 6
xor edx, edx
pop ecx
div ecx
test edx, edx
jne 0x101d41a
mov eax, dword [esi]
push 1
push 1
push edx
push edx
push 0x4000c45f
mov ecx, esi
call dword [eax]
inc dword [ebp - 8]
cmp dword [ebp - 0x4c], 1
je 0x101d442
push 1
push 0x1388
call dword [sym.imp.KERNEL32.dll_SleepEx]
cmp eax, 0xc0
jne 0x101d3e4
jmp 0x101d442
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
xor esi, esi
cmp edi, esi
je 0x101d44f
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 0xc], esi
pop edi
pop esi
je 0x101d45f
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 4]
leave
ret

Function at 0x101d594
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1038418]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
xor ebx, ebx
lea eax, [ebp - 0x10]
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 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
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x101d61c
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x101d5fc
cmp dword [ebp - 0x14], ebx
setne bl
jmp 0x101d611
mov edi, dword [esi]
push 1
push 0xc000c467
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call dword [edi + 0x10]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
jmp 0x101d631
mov edi, dword [esi]
push 1
push 0xc000c467
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call dword [edi + 0x10]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.01025a6c
leave
ret
Function at 0x101e1fb
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push 0x828
mov eax, 0x103096e
call fcn.0102609b
mov edi, dword [ebp + 8]
mov dword [ebp - 0x820], edi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x824], esi
xor ebx, ebx
mov byte [ebp - 0x815], bl
cmp byte [ebp + 0xc], bl
jne 0x101e240
push edi
call fcn.0101e1ae
pop ecx
test al, al
je 0x101e240
mov byte [ebp - 0x815], 1
jmp 0x101e3a9
lea ecx, [ebp - 0x82c]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
mov dword [ebp - 4], ebx
push 0x10384f4
call fcn.0101d1bd
pop ecx
mov byte [ebp - 4], 1
push 1
push edi
lea eax, [ebp - 0x81c]
push eax
call fcn.0101ca6e
add esp, 0xc
mov byte [ebp - 4], 2
push 0xa
mov ecx, eax
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x81c]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
cmp edi, ebx
je 0x101e38b
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x101e377
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x828], eax
cmp eax, ebx
je 0x101e36f
or dword [ebp - 0x81c], 0xffffffff
mov byte [ebp - 4], 3
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push ebx
push 0x100080
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp - 0x820]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
lea ecx, [ebp - 0x81c]
call fcn.01010a9c
cmp dword [ebp - 0x81c], 0xffffffff
je 0x101e331
push ebx
lea eax, [ebp - 0x830]
push eax
push edi
push dword [ebp - 0x828]
push dword [ebp - 0x81c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x101e357
push ebx
push 0xc000c44a
jmp 0x101e347
push dword [ebp - 0x820]
call fcn.0101e1ae
pop ecx
test al, al
jne 0x101e357
push ebx
push 0xc000c449
mov edi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call dword [edi + 0x10]
jmp 0x101e35e
mov byte [ebp - 0x815], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x81c]
call fcn.01010702
jmp 0x101e38b
push ebx
push 0xc000c447
jmp 0x101e37d
push ebx
push 0xc000c448
mov edi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call dword [edi + 0x10]
mov dword [ebp - 4], ebx
push 0x10384f4
call fcn.0101d1e5
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x82c]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov al, byte [ebp - 0x815]
call fcn.01026106
ret
Function at 0x101e409
Capabilities:
Write file on windows

Disassembly:
push 0xc
mov eax, 0x10309a3
call fcn.01025fed
xor ebx, ebx
push ebx
push 0x100080
push 2
push ebx
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], ebx
cmp esi, 0xffffffff
mov edi, dword [ebp + 0x10]
je 0x101e496
push ebx
push edi
push esi
call fcn.0101c980
add esp, 0xc
test al, al
jne 0x101e468
mov esi, dword [edi]
push 1
push 1
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, edi
call dword [esi]
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x101e46e
sub eax, edx
push ebx
sar eax, 1
lea ecx, [ebp - 0x18]
push ecx
add eax, eax
push eax
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x101e496
mov bl, 1
jmp 0x101e4a9
mov esi, dword [edi]
push 1
push 1
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, edi
call dword [esi]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.01010702
mov al, bl
call fcn.010260d9
ret
Function at 0x101e4c2
Capabilities:
Get common file path

Disassembly:
push 0x218
mov eax, 0x10309e7
call fcn.01026060
mov edi, dword [ebp + 0xc]
mov esi, 0x104
push esi
lea eax, [ebp - 0x21c]
push eax
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.0101ca00
pop ecx
pop ecx
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x220]
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.0101d9a4
pop ecx
pop ecx
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x220]
call dword [sym.imp.MFC80U.DLL_Ordinal_774]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x224]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
cmp dword [ebp + 8], 8
mov eax, 0x1002d6c
jg 0x101e54d
mov eax, 0x1002d58
push eax
lea ecx, [ebp - 0x220]
call dword [sym.imp.MFC80U.DLL_Ordinal_899]
lea ecx, [ebp - 0x220]
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
call fcn.0101e1ae
test al, al
pop ecx
je 0x101e5a1
push esi
lea ecx, [ebp - 0x220]
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
push edi
call dword [sym.imp.MSVCR80.dll_wcsncpy]
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x220]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov al, 1
call fcn.010260f2
ret
lea eax, [ebp - 0x21c]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x220]
call dword [sym.imp.MFC80U.DLL_Ordinal_776]
lea ecx, [ebp - 0x220]
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.0101d9a4
pop ecx
pop ecx
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x220]
call dword [sym.imp.MFC80U.DLL_Ordinal_774]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x224]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
cmp dword [ebp + 8], 8
mov eax, 0x1002d6c
jg 0x101e611
mov eax, 0x1002d58
push eax
lea ecx, [ebp - 0x220]
call dword [sym.imp.MFC80U.DLL_Ordinal_899]
lea ecx, [ebp - 0x220]
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
call fcn.0101e1ae
test al, al
pop ecx
je 0x101e666
push esi
lea ecx, [ebp - 0x220]
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
push edi
call dword [sym.imp.MSVCR80.dll_wcsncpy]
mov bl, 1
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x220]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov al, bl
jmp 0x101e59b
cmp dword [ebp + 8], 8
mov eax, 0x1002d6c
jg 0x101e676
mov eax, 0x1002d58
lea ecx, [ebp - 0x21c]
push ecx
push eax
call fcn.0101cb19
test al, al
pop ecx
pop ecx
je 0x101e64f
push esi
lea eax, [ebp - 0x21c]
jmp 0x101e642