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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x6b4
mov eax, dword [0x103ff58]
and dword [ebp - 0x6ac], 0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x2c
pop ebx
push ebx
mov dword [ebp - 4], eax
call fcn.01035a36
mov edi, eax
test edi, edi
mov dword [esi], edi
jne 0x102272c
push 8
pop eax
jmp 0x10228e6
push 0xb
pop ecx
xor eax, eax
push 0x104163c
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 [0x104162c]
mov dword [eax + 0x24], ecx
mov eax, dword [esi]
mov ecx, dword [0x104161c]
mov dword [eax + 0x14], ecx
mov eax, dword [esi]
mov ecx, dword [0x104160c]
mov dword [eax + 4], ecx
mov eax, dword [esi]
mov ecx, dword [0x1041610]
mov dword [eax + 8], ecx
mov eax, dword [esi]
xor ebx, ebx
mov dword [eax + 0xc], ebx
mov eax, dword [0x1041618]
cmp eax, ebx
je 0x102279f
push eax
call fcn.01035adb
mov ecx, dword [esi]
mov dword [ecx + 0x10], eax
mov eax, dword [esi]
cmp dword [eax + 0x10], ebx
jne 0x102279f
mov dword [ebp - 0x6ac], 8
jmp 0x10228c4
mov eax, dword [0x1041620]
cmp eax, ebx
je 0x10227ba
push eax
call fcn.01035adb
mov ecx, dword [esi]
mov dword [ecx + 0x18], eax
mov eax, dword [esi]
cmp dword [eax + 0x18], ebx
je 0x1022790
mov eax, dword [0x1041624]
cmp eax, ebx
je 0x10227d5
push eax
call fcn.01035adb
mov ecx, dword [esi]
mov dword [ecx + 0x1c], eax
mov eax, dword [esi]
cmp dword [eax + 0x1c], ebx
je 0x1022790
mov eax, dword [0x1041628]
cmp eax, ebx
je 0x10227f0
push eax
call fcn.01035adb
mov ecx, dword [esi]
mov dword [ecx + 0x20], eax
mov eax, dword [esi]
cmp dword [eax + 0x20], ebx
je 0x1022790
cmp dword [0x1041610], 2
jne 0x10228c4
mov eax, dword [0x1041630]
cmp eax, ebx
jne 0x10228a5
xor eax, eax
mov word [ebp - 0x6a8], bx
mov ecx, 0x100
lea edi, [ebp - 0x6a6]
rep stosd dword es:[edi], eax
mov word [ebp - 0x2a4], bx
mov ecx, 0xa7
lea edi, [ebp - 0x2a2]
rep stosd dword es:[edi], eax
push 0x150
stosw word es:[edi], ax
lea eax, [ebp - 0x2a4]
push eax
push 0x201
lea eax, [ebp - 0x6a8]
push eax
push dword [0x1041624]
call dword [sym.imp.credui.dll_CredUIParseUserNameW]
cmp eax, ebx
mov dword [ebp - 0x6ac], eax
jne 0x10228c4
lea eax, [ebp - 0x6b4]
push eax
push ebx
push 3
push dword [0x1041628]
lea eax, [ebp - 0x2a4]
push eax
lea eax, [ebp - 0x6a8]
push eax
call dword [sym.imp.ADVAPI32.dll_LogonUserW]
test eax, eax
jne 0x102289a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6ac], eax
jmp 0x10228c4
mov eax, dword [ebp - 0x6b4]
mov dword [0x1041630], eax
lea ecx, [ebp - 0x6b0]
push ecx
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
test eax, eax
je 0x102288c
mov eax, dword [esi]
mov ecx, dword [ebp - 0x6b0]
mov dword [eax + 0x28], ecx
push 0x104163c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0x6ac], ebx
je 0x10228e0
push 1
push dword [esi]
call fcn.01021f1c
mov eax, dword [ebp - 0x6ac]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01031d91
leave
ret 4
Function at 0x1023699
Capabilities:
Set registry value

Disassembly:
mov edi, edi
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 0x1001818
push ebx
push 0x1002e40
push 0x80000002
xor esi, esi
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x102373d
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.ADVAPI32.dll_IsValidSecurityDescriptor]
test eax, eax
jne 0x10236e9
mov edi, 0x53a
jmp 0x1023725
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 0x1023764
push edi
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorLength]
test byte [ebp - 0xb], 0x80
mov dword [ebp - 8], eax
je 0x1023743
mov esi, edi
push dword [ebp - 8]
push esi
push 3
push ebx
push 0x1002e24
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 0x102373a
push esi
call fcn.01035abf
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
push eax
call fcn.01035a36
mov esi, eax
cmp esi, ebx
jne 0x1023754
push 8
pop edi
jmp 0x1023725
lea eax, [ebp - 8]
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_MakeSelfRelativeSD]
test eax, eax
jne 0x102370e
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1023723
Function at 0x10239ce
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
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 0x1001818
push ebx
push 0x1002e40
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 0x1023aa2
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, 0x1002e24
push edi
push dword [ebp - 8]
call esi
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x1023aa0
cmp dword [ebp - 0x14], 3
jne 0x1023a99
cmp dword [ebp - 0x10], ebx
je 0x1023a99
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 0x1023a60
mov dword [ebp - 4], 8
jmp 0x1023aa0
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 0x1023aa0
mov esi, dword [ebp - 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_IsValidSecurityDescriptor]
test eax, eax
jne 0x1023a8e
mov dword [ebp - 4], 0x53a
jmp 0x1023aa0
mov dword [0x1040358], esi
mov dword [ebp - 0xc], ebx
jmp 0x1023aa0
mov dword [ebp - 4], 0x3f1
pop edi
pop esi
cmp dword [ebp - 8], ebx
je 0x1023ab0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], ebx
je 0x1023ac6
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 0x1024263
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 0xc]
push eax
xor esi, esi
push esi
push esi
push 0x1007a5a
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
mov dword [ebp - 8], eax
je 0x1024311
push ebx
push edi
mov edi, 0x4e20
push edi
push esi
push 3
call fcn.01012b8d
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 0x10242de
cmp eax, ebx
jne 0x1024304
mov eax, dword [0x1041634]
add dword [ebp - 4], esi
imul eax, eax, 0x7530
cmp dword [ebp - 4], eax
jg 0x10242f3
push 0x7530
push 0
push 3
call fcn.01012b8d
jmp 0x10242a9
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov esi, eax
test esi, esi
jne 0x1024306
jmp 0x1024304
push edi
push 0
push 3
call fcn.01012b8d
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 0x102514b
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor ebx, ebx
push 0x1002fa0
mov dword [ebp - 4], ebx
or edi, 0xffffffff
mov dword [0x10416d8], ebx
call fcn.01035c22
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x10251c2
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 0x10251c2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x10251ea
lea eax, [esi + 0x10]
push eax
call fcn.01035a36
cmp eax, ebx
mov dword [0x10416d8], eax
je 0x10251c2
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 0x10251de
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [0x10416d8]
mov dword [ebp - 4], eax
call fcn.01035abf
mov dword [0x10416d8], ebx
jmp 0x10251ea
mov eax, dword [ebp - 8]
mov ecx, dword [0x10416d8]
mov byte [ecx + eax], bl
push dword [ebp - 0xc]
call fcn.01035abf
cmp edi, 0xffffffff
je 0x10251fe
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], ebx
je 0x102520c
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 0x1027756
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x103a36d
call fcn.01032268
sub esp, 0x38
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 dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
push 0x20019
push esi
push 0x10030d8
push 0x80000002
mov dword [ebp - 4], esi
call fcn.01036aca
cmp eax, esi
mov dword [ebp - 0x1c], eax
jne 0x10277b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1027805
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 0x10277f1
inc dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
add eax, eax
push eax
call fcn.01035a36
cmp eax, esi
mov dword [ebp - 0x14], eax
jne 0x1027820
mov dword [ebp - 0x30], 8
push dword [ebp - 0x14]
call fcn.01035abf
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x30]
lea ecx, [ebp - 0x44]
call fcn.01026fb2
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 0x10278e9
push 0x20019
push esi
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
call fcn.01036aca
cmp eax, esi
mov dword [ebp - 0x28], eax
je 0x1027823
lea ecx, [ebp - 0x34]
push ecx
push 0x10030b8
push eax
call fcn.01036d7e
cmp eax, esi
mov dword [ebp - 0x24], eax
je 0x1027888
mov ecx, dword [eax + 4]
cmp ecx, ebx
ja 0x10278b3
jb 0x1027888
mov ecx, dword [eax]
cmp ecx, edi
jae 0x10278b3
lea eax, [ebp - 0x2c]
push eax
push 0x10030b0
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.01027688
mov eax, dword [ebp - 0x24]
push eax
mov dword [ebp - 4], esi
call fcn.01035abf
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1027823
mov ebx, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x40]
cmp edi, ebx
je 0x10277f1
mov esi, dword [ebp - 0x3c]
add esi, 0xfffffffc
mov eax, dword [esi]
push eax
mov dword [ebp - 0x2c], eax
call fcn.0103728d
push esi
lea ecx, [ebp - 0x44]
call fcn.01026fd2
add edi, 4
jmp 0x10278ef
Function at 0x10283dd
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x103ff58]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
test esi, esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
push edi
mov dword [ebp - 0x210], eax
jne 0x102841e
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea esi, [ebp - 0x20c]
mov edi, dword [sym.imp.msvcrt.dll_wcslen]
push esi
call edi
cmp word [esi + eax*2 - 2], 0x5c
pop ecx
jne 0x102843d
push esi
call edi
xor edi, edi
pop ecx
mov word [esi + eax*2 - 2], di
jmp 0x102843f
xor edi, edi
cmp dword [ebp - 0x210], edi
push 0x1001a80
push dword [ebp + 0x14]
push dword [ebp + 0x10]
je 0x102846f
push dword [ebp - 0x210]
push esi
push 0x1004514
push 0x103
push ebx
call dword [sym.imp.msvcrt.dll__snwprintf]
add esp, 0x20
jmp 0x1028484
push esi
push 0x10044fc
push 0x103
push ebx
call dword [sym.imp.msvcrt.dll__snwprintf]
add esp, 0x1c
cmp eax, edi
jl 0x10284a3
push edi
push 0x80
push 1
push edi
push edi
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x10284a7
xor eax, eax
jmp 0x10284b1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01031d91
leave
ret 0x14

Function at 0x102881a
Capabilities:
Get file size

Disassembly:
mov edi, edi
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 0x102884b
xor eax, eax
jmp 0x1028890
push edi
lea eax, [ebp - 8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1028870
cmp esi, 0xf
jne 0x1028870
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
xor edi, edi
jmp 0x1028878
cmp dword [ebp - 8], esi
je 0x1028878
or edi, 0xffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], esi
je 0x102888d
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 0x10288d0
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, edi
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 0x1028a07
je 0x10289f0
mov ecx, 0x20000008
cmp eax, ecx
ja 0x1028977
je 0x1028960
mov ecx, eax
sub ecx, 0x20000000
je 0x1028949
dec ecx
je 0x1028942
dec ecx
je 0x102892b
dec ecx
dec ecx
jne 0x1028abd
mov eax, dword [ebp + 0xc]
mov dword [eax], 3
mov eax, dword [ebp + 0x10]
mov dword [eax], 6
jmp 0x1028b18
mov eax, dword [ebp + 0xc]
mov dword [eax], 3
mov eax, dword [ebp + 0x10]
mov dword [eax], 4
jmp 0x1028b18
push 3
jmp 0x1028a7d
mov eax, dword [ebp + 0xc]
mov dword [eax], 3
mov eax, dword [ebp + 0x10]
mov dword [eax], 2
jmp 0x1028b18
mov eax, dword [ebp + 0xc]
mov dword [eax], 9
mov eax, dword [ebp + 0x10]
mov dword [eax], 0x12
jmp 0x1028b18
mov ecx, eax
sub ecx, 0x20000010
je 0x10289d9
sub ecx, 0x10
je 0x10289c2
sub ecx, 0x20
je 0x10289ab
sub ecx, 0x40
jne 0x1028abd
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xb
mov eax, dword [ebp + 0x10]
mov dword [eax], 9
jmp 0x1028b18
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xb
mov eax, dword [ebp + 0x10]
mov dword [eax], 8
jmp 0x1028b18
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xb
mov eax, dword [ebp + 0x10]
mov dword [eax], 7
jmp 0x1028b18
mov eax, dword [ebp + 0xc]
mov dword [eax], 3
mov eax, dword [ebp + 0x10]
mov dword [eax], 0x11
jmp 0x1028b18
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xb
mov eax, dword [ebp + 0x10]
mov dword [eax], 0xa
jmp 0x1028b18
mov ecx, 0x20002000
cmp eax, ecx
ja 0x1028aa1
je 0x1028a8d
cmp eax, 0x20000200
je 0x1028a7b
cmp eax, 0x20000400
je 0x1028a64
cmp eax, 0x20000800
je 0x1028a4d
cmp eax, 0x20001000
jne 0x1028abd
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xb
mov eax, dword [ebp + 0x10]
mov dword [eax], 0xf
jmp 0x1028b18
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xb
mov eax, dword [ebp + 0x10]
mov dword [eax], 0xc
jmp 0x1028b18
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xb
mov eax, dword [ebp + 0x10]
mov dword [eax], 1
jmp 0x1028b18
push 0xb
mov ecx, dword [ebp + 0xc]
pop eax
mov dword [ecx], eax
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jmp 0x1028b18
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xb
mov eax, dword [ebp + 0x10]
mov dword [eax], 0xd
jmp 0x1028b18
cmp eax, 0x20004000
je 0x1028b06
cmp eax, 0x20200000
je 0x1028afb
cmp eax, 0x20800000
je 0x1028ae7
cmp eax, 0x40000000
je 0x1028ad3
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 3
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov dword [edx], 1
jmp 0x1028b18
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x40000001
mov eax, dword [ebp + 0x10]
mov dword [eax], 0x13
jmp 0x1028b18
mov eax, dword [ebp + 0xc]
mov dword [eax], 3
mov eax, dword [ebp + 0x10]
mov dword [eax], 5
jmp 0x1028b18
mov eax, dword [ebp + 0xc]
mov dword [eax], 8
jmp 0x1028adc
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 0x1028d8f
Capabilities:
Get file version info

Disassembly:
mov edi, edi
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 0x1028dad
cmp dword [esi], 0x14
je 0x1028db5
push 0x57
pop eax
jmp 0x1028e52
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 0x1028dd3
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1028e51
push edi
call fcn.01035a36
mov ebx, eax
test ebx, ebx
jne 0x1028de4
push 8
pop eax
jmp 0x1028e51
push ebx
push edi
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x1028e00
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x1028e48
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp + 0xc]
push eax
push 0x1004554
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1028df5
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.01035abf
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1028f75
Capabilities:
Check if file exists
Delete file
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x698
mov eax, dword [0x103ff58]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push edi
push eax
xor edi, edi
push esi
mov dword [ebp - 0x630], eax
mov dword [ebp - 0x624], ebx
mov dword [ebp - 0x620], edi
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x1028fc1
mov dword [ebx], 1
jmp 0x10290b8
lea eax, [ebp - 0x20c]
push eax
push edi
push 0x1001a9c
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x1028fea
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x620], eax
jmp 0x10290b2
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 - 0x20c]
push eax
call esi
cmp eax, 0xffffffff
mov dword [ebp - 0x628], eax
jne 0x1029018
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10290b8
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
push dword [ebp - 0x630]
mov dword [ebp - 0x62c], eax
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
push dword [ebp - 0x62c]
lea eax, [ebp - 0x61c]
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 - 0x61c]
push eax
call esi
mov esi, eax
cmp esi, 0xffffffff
jne 0x10290c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
mov dword [ebp - 0x620], eax
je 0x1029081
cmp eax, ebx
jne 0x102908f
mov dword [ebp - 0x620], edi
mov eax, dword [ebp - 0x624]
mov dword [eax], edi
push dword [ebp - 0x628]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
cmp esi, 0xffffffff
je 0x10290a5
push esi
call edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x620]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01031d91
leave
ret 0xc
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
lea eax, [ebp - 0x698]
push eax
push dword [ebp - 0x628]
call ebx
test eax, eax
jne 0x10290ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x620], eax
jmp 0x102908f
lea eax, [ebp - 0x664]
push eax
push esi
call ebx
test eax, eax
je 0x10290e0
mov eax, dword [ebp - 0x66c]
cmp eax, dword [ebp - 0x638]
jne 0x1029087
mov eax, dword [ebp - 0x668]
cmp eax, dword [ebp - 0x634]
jne 0x1029087
mov eax, dword [ebp - 0x67c]
cmp eax, dword [ebp - 0x648]
jne 0x1029087
mov eax, dword [ebp - 0x624]
mov dword [eax], 1
jmp 0x102908f
Function at 0x10291c2
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
mov esi, 0x10416ac
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 0x10291fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x1c], eax
jmp 0x1029203
call fcn.01029148
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
jne 0x1029217
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
pop ebp
ret 0x18

Function at 0x102a833
Capabilities:
Compare security identifiers

Disassembly:
mov eax, 0x103a40a
call fcn.01032268
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 0x102a91b
dec eax
dec eax
je 0x102a870
sub eax, 0x3e
jne 0x102a88e
mov eax, dword [esi + 0x90]
jmp 0x102a876
mov eax, dword [esi + 0x8c]
test eax, eax
jne 0x102a88e
push dword [esi + 8]
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x102a91b
push dword [esi + 0x94]
lea ecx, [ebp - 0x1c]
push dword [ebp + 0xc]
push edi
call fcn.010294ae
lea eax, [ebp - 0x1c]
lea ebx, [esi + 0xc]
push eax
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.0102a09e
cmp dword [esi + 0x88], 1
jne 0x102a936
push 0x48
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
test eax, eax
pop ecx
je 0x102a8d6
lea ecx, [esi + 0x40]
push ecx
mov ecx, eax
call fcn.0100d01a
mov edi, eax
jmp 0x102a8d8
xor edi, edi
test edi, edi
jne 0x102a8e5
mov dword [ebp - 0x14], 0xe
jmp 0x102a90c
push edi
push 2
push 0x48
push dword [0x104192c]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x102a92f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 1
mov ecx, edi
mov dword [ebp - 0x14], eax
call fcn.01010072
push dword [ebp - 0x1c]
call fcn.01035abf
mov ecx, ebx
call fcn.010122e5
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.01035abf
jmp 0x102a91b