joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1020121
Capabilities:
Impersonate user

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6ac
and dword [ebp - 4], 0
push ebx
push esi
push edi
push 0x2c
pop ebx
push ebx
call fcn.01031ae1
mov esi, dword [ebp + 8]
mov edi, eax
test edi, edi
mov dword [esi], edi
jne 0x102014d
push 8
pop eax
jmp 0x10202ec
push 0xb
pop ecx
xor eax, eax
push 0x103d5cc
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi]
mov dword [eax], ebx
mov eax, dword [esi]
mov ecx, dword [0x103d5bc]
mov dword [eax + 0x24], ecx
mov eax, dword [esi]
mov ecx, dword [0x103d5ac]
mov dword [eax + 0x14], ecx
mov eax, dword [esi]
mov ecx, dword [0x103d59c]
mov dword [eax + 4], ecx
mov eax, dword [esi]
mov ecx, dword [0x103d5a0]
mov dword [eax + 8], ecx
mov eax, dword [esi]
xor ebx, ebx
mov dword [eax + 0xc], ebx
mov eax, dword [0x103d5a8]
cmp eax, ebx
je 0x10201bd
push eax
call fcn.01031b6b
mov ecx, dword [esi]
mov dword [ecx + 0x10], eax
mov eax, dword [esi]
cmp dword [eax + 0x10], ebx
jne 0x10201bd
mov dword [ebp - 4], 8
jmp 0x10202d0
mov eax, dword [0x103d5b0]
cmp eax, ebx
je 0x10201d8
push eax
call fcn.01031b6b
mov ecx, dword [esi]
mov dword [ecx + 0x18], eax
mov eax, dword [esi]
cmp dword [eax + 0x18], ebx
je 0x10201b1
mov eax, dword [0x103d5b4]
cmp eax, ebx
je 0x10201f3
push eax
call fcn.01031b6b
mov ecx, dword [esi]
mov dword [ecx + 0x1c], eax
mov eax, dword [esi]
cmp dword [eax + 0x1c], ebx
je 0x10201b1
mov eax, dword [0x103d5b8]
cmp eax, ebx
je 0x102020e
push eax
call fcn.01031b6b
mov ecx, dword [esi]
mov dword [ecx + 0x20], eax
mov eax, dword [esi]
cmp dword [eax + 0x20], ebx
je 0x10201b1
cmp dword [0x103d5a0], 2
jne 0x10202d0
mov eax, dword [0x103d5c0]
cmp eax, ebx
jne 0x10202b7
xor eax, eax
mov word [ebp - 0x6ac], bx
mov ecx, 0x100
lea edi, [ebp - 0x6aa]
rep stosd dword es:[edi], eax
mov word [ebp - 0x2a8], bx
mov ecx, 0xa7
lea edi, [ebp - 0x2a6]
rep stosd dword es:[edi], eax
push 0x150
stosw word es:[edi], ax
lea eax, [ebp - 0x2a8]
push eax
push 0x201
lea eax, [ebp - 0x6ac]
push eax
push dword [0x103d5b4]
call dword [sym.imp.credui.dll_CredUIParseUserNameW]
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x10202d0
lea eax, [ebp + 8]
push eax
push ebx
push 3
push dword [0x103d5b8]
lea eax, [ebp - 0x2a8]
push eax
lea eax, [ebp - 0x6ac]
push eax
call dword [sym.imp.ADVAPI32.dll_LogonUserW]
test eax, eax
jne 0x10202af
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x10202d0
mov eax, dword [ebp + 8]
mov dword [0x103d5c0], eax
lea ecx, [ebp - 8]
push ecx
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
test eax, eax
je 0x10202a4
mov eax, dword [esi]
mov ecx, dword [ebp - 8]
mov dword [eax + 0x28], ecx
push 0x103d5cc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 4], ebx
je 0x10202e9
push 1
push dword [esi]
call fcn.0101f9bb
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1020f15
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
lea eax, [ebp - 0x10]
push eax
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push ebx
push 0xf003f
push ebx
push 0x1001848
push ebx
push 0x1002e18
push 0x80000002
xor esi, esi
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x1020fb7
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.ADVAPI32.dll_IsValidSecurityDescriptor]
test eax, eax
jne 0x1020f63
mov edi, 0x53a
jmp 0x1020f9f
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorControl]
test eax, eax
je 0x1020fde
push edi
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorLength]
test byte [ebp - 0xb], 0x80
mov dword [ebp - 8], eax
je 0x1020fbd
mov esi, edi
push dword [ebp - 8]
push esi
push 3
push ebx
push 0x1002dfc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test byte [ebp - 0xb], 0x80
jne 0x1020fb4
push esi
call fcn.01031b59
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
push eax
call fcn.01031ae1
mov esi, eax
cmp esi, ebx
jne 0x1020fce
push 8
pop edi
jmp 0x1020f9f
lea eax, [ebp - 8]
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_MakeSelfRelativeSD]
test eax, eax
jne 0x1020f88
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1020f9d
Function at 0x1021235
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
lea eax, [ebp - 0x18]
push eax
xor ebx, ebx
lea eax, [ebp - 8]
push eax
push ebx
push 0xf003f
push ebx
push 0x1001848
push ebx
push 0x1002e18
push 0x80000002
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x1021307
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
lea eax, [ebp - 0x10]
push eax
push ebx
lea eax, [ebp - 0x14]
push eax
push ebx
mov edi, 0x1002dfc
push edi
push dword [ebp - 8]
call esi
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x1021305
cmp dword [ebp - 0x14], 3
jne 0x10212fe
cmp dword [ebp - 0x10], ebx
je 0x10212fe
push dword [ebp - 0x10]
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
jne 0x10212c5
mov dword [ebp - 4], 8
jmp 0x1021305
lea ecx, [ebp - 0x10]
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push edi
push dword [ebp - 8]
call esi
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x1021305
mov esi, dword [ebp - 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_IsValidSecurityDescriptor]
test eax, eax
jne 0x10212f3
mov dword [ebp - 4], 0x53a
jmp 0x1021305
mov dword [0x103c2e8], esi
mov dword [ebp - 0xc], ebx
jmp 0x1021305
mov dword [ebp - 4], 0x3f1
pop edi
pop esi
cmp dword [ebp - 8], ebx
je 0x1021315
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], ebx
je 0x102132b
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 4]
pop ebx
leave
ret

Function at 0x10219de
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 0xc]
push eax
xor esi, esi
push esi
push esi
push 0x100789a
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
mov dword [ebp - 8], eax
je 0x1021a8a
push ebx
push edi
mov edi, 0x4e20
push edi
push esi
push 3
call fcn.0101191b
mov dword [ebp - 4], esi
mov esi, 0x2710
mov ebx, 0x102
push esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1021a57
cmp eax, ebx
jne 0x1021a7d
mov eax, dword [0x103d5c4]
add dword [ebp - 4], esi
imul eax, eax, 0x7530
cmp dword [ebp - 4], eax
jg 0x1021a6c
push 0x7530
push 0
push 3
call fcn.0101191b
jmp 0x1021a22
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov esi, eax
test esi, esi
jne 0x1021a7f
jmp 0x1021a7d
push edi
push 0
push 3
call fcn.0101191b
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
mov eax, esi
pop esi
leave
ret
Function at 0x102290f
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor ebx, ebx
push 0x1002f78
mov dword [ebp - 4], ebx
or edi, 0xffffffff
mov dword [0x103d668], ebx
call fcn.01031c8f
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x1022984
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1022984
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x10229ac
lea eax, [esi + 0x10]
push eax
call fcn.01031ae1
cmp eax, ebx
mov dword [0x103d668], eax
je 0x1022984
push ebx
lea ecx, [ebp - 8]
push ecx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10229a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [0x103d668]
mov dword [ebp - 4], eax
call fcn.01031b59
mov dword [0x103d668], ebx
jmp 0x10229ac
mov eax, dword [ebp - 8]
mov ecx, dword [0x103d668]
mov byte [ecx + eax], bl
push dword [ebp - 0xc]
call fcn.01031b59
cmp edi, 0xffffffff
je 0x10229c0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], ebx
je 0x10229ce
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp dword [ebp - 4], ebx
pop edi
pop esi
sete al
pop ebx
leave
ret
Function at 0x1024cc4
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x1035e25
call fcn.0102e9e0
sub esp, 0x38
mov al, byte [ebp + 0xf]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
add edi, 0xdd31c000
adc ebx, 0xffffe7a3
xor esi, esi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x34], 8
mov dword [ebp - 0x14], esi
mov byte [ebp - 0x44], al
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
push 0x20019
push esi
push 0x10030b0
push 0x80000002
mov dword [ebp - 4], esi
call fcn.010329c3
cmp eax, esi
mov dword [ebp - 0x1c], eax
jne 0x1024d2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1024d79
push esi
push esi
push esi
push esi
push esi
push esi
lea ecx, [ebp + 0xc]
push ecx
push esi
push esi
push esi
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp eax, esi
mov dword [ebp - 0x30], eax
jne 0x1024d65
inc dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
add eax, eax
push eax
call fcn.01031ae1
cmp eax, esi
mov dword [ebp - 0x14], eax
jne 0x1024d94
mov dword [ebp - 0x30], 8
push dword [ebp - 0x14]
call fcn.01031b59
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x30]
lea ecx, [ebp - 0x44]
call fcn.01024536
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8
mov dword [ebp - 0x18], esi
mov eax, dword [ebp + 0xc]
push esi
push esi
push esi
push esi
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
inc dword [ebp - 0x18]
test eax, eax
jne 0x1024e5d
push 0x20019
push esi
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
call fcn.010329c3
cmp eax, esi
mov dword [ebp - 0x28], eax
je 0x1024d97
lea ecx, [ebp - 0x34]
push ecx
push 0x1003090
push eax
call fcn.01032c52
cmp eax, esi
mov dword [ebp - 0x24], eax
je 0x1024dfc
mov ecx, dword [eax + 4]
cmp ecx, ebx
ja 0x1024e27
jb 0x1024dfc
mov ecx, dword [eax]
cmp ecx, edi
jae 0x1024e27
lea eax, [ebp - 0x2c]
push eax
push 0x1003088
push dword [ebp - 0x14]
call dword [sym.imp.msvcrt.dll_swscanf]
add esp, 0xc
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.01024c12
mov eax, dword [ebp - 0x24]
push eax
mov dword [ebp - 4], esi
call fcn.01031b59
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1024d97
mov ebx, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x40]
cmp edi, ebx
je 0x1024d65
mov esi, dword [ebp - 0x3c]
add esi, 0xfffffffc
mov eax, dword [esi]
push eax
mov dword [ebp - 0x2c], eax
call fcn.01033098
push esi
lea ecx, [ebp - 0x44]
call fcn.0102454f
add edi, 4
jmp 0x1024e63
Function at 0x1025849
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
jne 0x1025875
lea eax, [ebp - 0x208]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea esi, [ebp - 0x208]
push edi
mov edi, dword [sym.imp.msvcrt.dll_wcslen]
push esi
call edi
cmp word [esi + eax*2 - 2], 0x5c
pop ecx
jne 0x1025891
push esi
call edi
pop ecx
mov word [esi + eax*2 - 2], bx
cmp dword [ebp + 0x18], ebx
pop edi
push 0x1001ab0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
je 0x10258be
push dword [ebp + 0x18]
push esi
push 0x10044ec
push 0x103
push dword [ebp + 0xc]
call dword [sym.imp.msvcrt.dll__snwprintf]
add esp, 0x20
jmp 0x10258d5
push esi
push 0x10044d4
push 0x103
push dword [ebp + 0xc]
call dword [sym.imp.msvcrt.dll__snwprintf]
add esp, 0x1c
cmp eax, ebx
jl 0x10258f6
push ebx
push 0x80
push 1
push ebx
push ebx
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x10258fa
xor eax, eax
jmp 0x1025904
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop esi
pop ebx
leave
ret 0x14

Function at 0x1025c30
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor esi, esi
push esi
push esi
push 3
push esi
push 1
push 0x80000000
push dword [ebp + 8]
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1025c5f
xor eax, eax
jmp 0x1025ca4
push edi
lea eax, [ebp - 8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1025c84
cmp esi, 0xf
jne 0x1025c84
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
xor edi, edi
jmp 0x1025c8c
cmp dword [ebp - 8], esi
je 0x1025c8c
or edi, 0xffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], esi
je 0x1025ca1
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1025cd8
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
and dword [edx], 0
mov ecx, 0x20000100
cmp eax, ecx
ja 0x1025e0d
je 0x1025df6
mov ecx, 0x20000008
cmp eax, ecx
ja 0x1025d7d
je 0x1025d66
mov ecx, eax
sub ecx, 0x20000000
je 0x1025d4f
dec ecx
je 0x1025d48
dec ecx
je 0x1025d31
dec ecx
dec ecx
jne 0x1025ec3
mov eax, dword [ebp + 0xc]
mov dword [eax], 3
mov eax, dword [ebp + 0x10]
mov dword [eax], 6
jmp 0x1025f1e
mov eax, dword [ebp + 0xc]
mov dword [eax], 3
mov eax, dword [ebp + 0x10]
mov dword [eax], 4
jmp 0x1025f1e
push 3
jmp 0x1025e83
mov eax, dword [ebp + 0xc]
mov dword [eax], 3
mov eax, dword [ebp + 0x10]
mov dword [eax], 2
jmp 0x1025f1e
mov eax, dword [ebp + 0xc]
mov dword [eax], 9
mov eax, dword [ebp + 0x10]
mov dword [eax], 0x12
jmp 0x1025f1e
mov ecx, eax
sub ecx, 0x20000010
je 0x1025ddf
sub ecx, 0x10
je 0x1025dc8
sub ecx, 0x20
je 0x1025db1
sub ecx, 0x40
jne 0x1025ec3
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xb
mov eax, dword [ebp + 0x10]
mov dword [eax], 9
jmp 0x1025f1e
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xb
mov eax, dword [ebp + 0x10]
mov dword [eax], 8
jmp 0x1025f1e
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xb
mov eax, dword [ebp + 0x10]
mov dword [eax], 7
jmp 0x1025f1e
mov eax, dword [ebp + 0xc]
mov dword [eax], 3
mov eax, dword [ebp + 0x10]
mov dword [eax], 0x11
jmp 0x1025f1e
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xb
mov eax, dword [ebp + 0x10]
mov dword [eax], 0xa
jmp 0x1025f1e
mov ecx, 0x20002000
cmp eax, ecx
ja 0x1025ea7
je 0x1025e93
cmp eax, 0x20000200
je 0x1025e81
cmp eax, 0x20000400
je 0x1025e6a
cmp eax, 0x20000800
je 0x1025e53
cmp eax, 0x20001000
jne 0x1025ec3
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xb
mov eax, dword [ebp + 0x10]
mov dword [eax], 0xf
jmp 0x1025f1e
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xb
mov eax, dword [ebp + 0x10]
mov dword [eax], 0xc
jmp 0x1025f1e
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xb
mov eax, dword [ebp + 0x10]
mov dword [eax], 1
jmp 0x1025f1e
push 0xb
mov ecx, dword [ebp + 0xc]
pop eax
mov dword [ecx], eax
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jmp 0x1025f1e
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xb
mov eax, dword [ebp + 0x10]
mov dword [eax], 0xd
jmp 0x1025f1e
cmp eax, 0x20004000
je 0x1025f0c
cmp eax, 0x20200000
je 0x1025f01
cmp eax, 0x20800000
je 0x1025eed
cmp eax, 0x40000000
je 0x1025ed9
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 3
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov dword [edx], 1
jmp 0x1025f1e
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x40000001
mov eax, dword [ebp + 0x10]
mov dword [eax], 0x13
jmp 0x1025f1e
mov eax, dword [ebp + 0xc]
mov dword [eax], 3
mov eax, dword [ebp + 0x10]
mov dword [eax], 5
jmp 0x1025f1e
mov eax, dword [ebp + 0xc]
mov dword [eax], 8
jmp 0x1025ee2
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xb
mov eax, dword [ebp + 0x10]
mov dword [eax], 0xe
xor eax, eax
pop ebp
ret 0x10
Function at 0x1026186
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 0xc]
cmp esi, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x10261a2
cmp dword [esi], 0x14
je 0x10261aa
push 0x57
pop eax
jmp 0x1026247
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [esi + 4], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
cmp edi, ebx
jne 0x10261c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1026246
push edi
call fcn.01031ae1
mov ebx, eax
test ebx, ebx
jne 0x10261d9
push 8
pop eax
jmp 0x1026246
push ebx
push edi
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x10261f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x102623d
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp + 0xc]
push eax
push 0x100452c
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x10261ea
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 0x1c]
xor ecx, ecx
inc ecx
and edx, ecx
mov dword [esi + 0x10], edx
mov dx, word [eax + 0x12]
mov word [esi + 8], dx
mov dx, word [eax + 0x10]
mov word [esi + 0xa], dx
mov dx, word [eax + 0x16]
mov word [esi + 0xc], dx
mov ax, word [eax + 0x14]
mov word [esi + 0xe], ax
mov dword [esi + 4], ecx
push ebx
call fcn.01031b59
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x102635c
Capabilities:
Check if file exists
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x688
push edi
push dword [ebp + 0xc]
xor edi, edi
push dword [ebp + 8]
mov dword [ebp - 4], edi
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x102638d
mov eax, dword [ebp + 0x10]
mov dword [eax], 1
xor eax, eax
jmp 0x102646c
push ebx
push esi
lea eax, [ebp - 0x278]
push eax
push edi
push 0x1001acc
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x10263b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x1026467
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push edi
push edi
push 3
pop ebx
push ebx
push edi
push ebx
push edi
lea eax, [ebp - 0x278]
push eax
call esi
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x10263e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x102646a
lea eax, [ebp - 0x278]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
push dword [ebp + 0xc]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x688]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
push dword [ebp - 8]
lea eax, [ebp - 0x688]
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
add esp, 0x18
push edi
push edi
push ebx
push edi
push ebx
push edi
lea eax, [ebp - 0x688]
push eax
call esi
mov esi, eax
cmp esi, 0xffffffff
jne 0x1026471
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
mov dword [ebp - 4], eax
je 0x102643f
cmp eax, ebx
jne 0x1026447
mov dword [ebp - 4], edi
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
push dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
cmp esi, 0xffffffff
je 0x102645a
push esi
call edi
lea eax, [ebp - 0x278]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 4]
pop esi
pop ebx
pop edi
leave
ret 0xc
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 8]
call ebx
test eax, eax
jne 0x102648f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x1026447
lea eax, [ebp - 0x70]
push eax
push esi
call ebx
test eax, eax
je 0x1026484
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x44]
jne 0x1026442
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x40]
jne 0x1026442
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x54]
jne 0x1026442
mov eax, dword [ebp + 0x10]
mov dword [eax], 1
jmp 0x1026447

Function at 0x1026529
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov esi, 0x103d63c
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x1026563
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x1c], eax
jmp 0x1026568
call fcn.010264bd
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
jne 0x102657c
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
pop ebp
ret 0x18
Function at 0x1027a6f
Capabilities:
Compare security identifiers

Disassembly:
mov eax, 0x1035ea9
call fcn.0102e9e0
sub esp, 0x14
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0xc]
mov esi, ecx
test dword [esi + 4], eax
mov dword [ebp - 0x10], esp
je 0x1027b57
dec eax
dec eax
je 0x1027aac
sub eax, 0x3e
jne 0x1027aca
mov eax, dword [esi + 0x90]
jmp 0x1027ab2
mov eax, dword [esi + 0x8c]
test eax, eax
jne 0x1027aca
push dword [esi + 8]
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x1027b57
push dword [esi + 0x94]
lea ecx, [ebp - 0x1c]
push dword [ebp + 0xc]
push edi
call fcn.010267e4
lea eax, [ebp - 0x1c]
lea ebx, [esi + 0xc]
push eax
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.01027351
cmp dword [esi + 0x88], 1
jne 0x1027b72
push 0x48
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
test eax, eax
pop ecx
je 0x1027b12
lea ecx, [esi + 0x40]
push ecx
mov ecx, eax
call fcn.0100c605
mov edi, eax
jmp 0x1027b14
xor edi, edi
test edi, edi
jne 0x1027b21
mov dword [ebp - 0x14], 0xe
jmp 0x1027b48
push edi
push 2
push 0x48
push dword [0x103d8bc]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x1027b6b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 1
mov ecx, edi
mov dword [ebp - 0x14], eax
call fcn.0100f096
push dword [ebp - 0x1c]
call fcn.01031b59
mov ecx, ebx
call fcn.0101118c
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0xc
and dword [esi + 0x88], 0
push dword [ebp - 0x1c]
call fcn.01031b59
jmp 0x1027b57
Function at 0x102ae00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 0x10]
push eax
push ebx
mov edi, 0x1004734
push edi
push dword [ebp + 8]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
call esi
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x102aef0
cmp dword [ebp - 0x10], 3
je 0x102ae4c
mov dword [ebp - 8], 0x3f1
jmp 0x102aef0
cmp dword [ebp - 4], ebx
je 0x102aef0
push dword [ebp - 4]
call fcn.01031ae1
cmp eax, ebx
mov dword [ebp - 0xc], eax
jne 0x102ae70
mov dword [ebp - 8], 8
jmp 0x102aef0
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push edi
push dword [ebp + 8]
call esi
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x102aef0
mov esi, dword [ebp - 4]
shr esi, 2
mov dword [ebp - 0x14], 1
mov edi, ebx
je 0x102aef0
mov eax, dword [ebp - 0xc]
lea eax, [eax + edi*4]
push dword [eax]
mov dword [ebp - 0x1c], eax
call fcn.0102a477
test eax, eax
je 0x102aec2
mov eax, dword [ebp - 0x1c]
push dword [eax]
mov ecx, dword [ebp - 0x18]
call fcn.0102ab33
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x102aef0
jmp 0x102aec5
mov dword [ebp - 0x14], ebx
inc edi
cmp edi, esi
jb 0x102ae98
cmp dword [ebp - 0x14], ebx
jne 0x102aef0
push dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
call fcn.0102a63f
push dword [ebp + 0xc]
push 0x80007d42
push 1
push 2
push 1
call sub.FXSEVENT.dll_FaxLog
add esp, 0x14
push dword [ebp - 0xc]
call fcn.01031b59
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 8