joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401a7d
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
push edi
mov esi, ecx
push 0x44c2e0
call fcn.00401cc3
push 1
test eax, eax
pop ebx
je 0x401aa2
mov dword [esi + 0xbc0], ebx
push 0x44c2dc
mov ecx, esi
call fcn.00401cc3
test eax, eax
je 0x401ab9
and dword [esi + 0xbc4], 0
push 0x44c2d8
mov ecx, esi
call fcn.00401cc3
test eax, eax
je 0x401acf
mov dword [esi + 0xbc4], ebx
push 0x44c2d4
mov ecx, esi
call fcn.00401cc3
test eax, eax
je 0x401ae5
mov dword [esi + 0xbcc], ebx
push 0x44c2d0
mov ecx, esi
call fcn.00401cc3
test eax, eax
je 0x401afb
mov dword [esi + 0x10e8], ebx
push 0x44c2cc
mov ecx, esi
call fcn.00401cc3
test eax, eax
je 0x401b11
mov dword [esi + 0x1100], ebx
push 0x44c2c8
mov ecx, esi
call fcn.00401cc3
test eax, eax
je 0x401b27
mov dword [esi + 0x420], ebx
push 0x44c2c4
mov ecx, esi
call fcn.00401cc3
test eax, eax
je 0x401b3d
mov dword [esi + 0x824], ebx
push 0x44c2c0
mov ecx, esi
call fcn.00401cc3
test eax, eax
je 0x401b53
mov dword [esi + 0x828], ebx
and byte [ebp - 0x108], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x107]
push 0x80
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x108]
mov ecx, esi
push eax
push str.MainAppName:
call fcn.00401d2b
test eax, eax
je 0x401ba1
cmp byte [ebp - 0x108], 0
je 0x401ba1
lea eax, [ebp - 0x108]
lea ecx, [esi + 0xfd8]
push eax
call fcn.0040696a
lea eax, [ebp - 0x108]
push 0x10
push eax
push str.Type:
mov ecx, esi
call fcn.00401d2b
test eax, eax
je 0x401bd7
cmp byte [ebp - 0x108], 0
je 0x401bd7
lea eax, [ebp - 0x108]
push eax
call fcn.00436621
pop ecx
mov word [esi + 0xfd4], ax
lea eax, [ebp - 0x108]
push 0x10
push eax
push str.CpuLimit:
mov ecx, esi
call fcn.00401d2b
test eax, eax
je 0x401c31
cmp byte [ebp - 0x108], 0
je 0x401c31
lea eax, [ebp - 0x108]
mov dword [esi + 0x830], ebx
push eax
call fcn.00436621
pop ecx
mov dword [esi + 0x82c], eax
push 0x50
lea ecx, [esi + 0x82c]
pop edx
cmp eax, edx
jbe 0x401c21
mov dword [ecx], edx
push dword [ecx]
push str._Autoup__Update__CpuLimit_:__d
push ebx
call fcn.0040874d
add esp, 0xc
cmp dword [esi + 0xbb8], 0
jne 0x401c46
mov dword [esi + 0xbc0], ebx
mov dword [esi + 0xbc4], ebx
lea ecx, [esi + 0xa98]
push 0
call fcn.00406944
push eax
call fcn.00436550
pop ecx
cmp eax, 0xffffffff
pop ecx
je 0x401ca2
lea edi, [esi + 0xbd0]
mov ebx, 0x104
push ebx
mov ecx, edi
call fcn.00406655
lea ecx, [esi + 0xa98]
mov dword [ebp - 4], eax
call fcn.00406944
push eax
push ebx
push dword [ebp - 4]
push 0x4629d8
push str.Execute
push str.Post
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, edi
call fcn.004066ad
add esi, 0xbd4
cmp word [esi], 0
jne 0x401cbe
push 0
push 0x200
push esi
call fcn.00425b95
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403b2b
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
mov edx, ecx
cmp esi, ebx
mov dword [ebp - 4], edx
je 0x403bb0
cmp byte [esi], bl
je 0x403bb0
push edi
push 0x10
pop ecx
xor eax, eax
lea edi, [ebp - 0x54]
mov dword [ebp - 0x58], 0x44
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
lea ecx, [edx + 0xa94]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00406944
push eax
push ebx
push ebx
push 1
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
jne 0x403ba0
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
push eax
push 0x2843
call fcn.0040387d
jmp 0x403bb0
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
pop esi
pop ebx
leave
ret 4

Function at 0x403ce9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
and byte [ebp - 0x108], 0
push ebx
push edi
mov ebx, ecx
push 0x41
xor eax, eax
pop ecx
lea edi, [ebp - 0x107]
rep stosd dword es:[edi], eax
call fcn.00401295
test eax, eax
je 0x403d8d
lea eax, [ebp - 0x108]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x403d8d
lea eax, [ebp - 0x108]
push 0x5c
push eax
call fcn.0043662c
pop ecx
test eax, eax
pop ecx
je 0x403d8d
and byte [eax], 0
push esi
lea esi, [ebx + 0xaa0]
lea eax, [ebp - 0x108]
push eax
mov ecx, esi
call fcn.0040696a
push str.Temp
mov ecx, esi
call fcn.00406b97
push str.AUtempR
mov ecx, esi
call fcn.00406b97
mov ecx, esi
call fcn.00406944
push eax
call fcn.00405739
pop ecx
pop esi
test eax, eax
jne 0x403d9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x403d9f
lea eax, [ebx + 0xa9c]
lea ecx, [ebx + 0xaa0]
push eax
call fcn.00406947
pop edi
pop ebx
leave
ret
Function at 0x4040ce
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
and byte [ebp - 0x14], 0
push ebx
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x13]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, ecx
stosb byte es:[edi], al
call fcn.0040ce9d
mov edi, eax
lea eax, [ebp - 0xcc]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xcc], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0xc8]
test edi, edi
mov dword [esi + 0xbb4], eax
je 0x404180
mov ecx, edi
call fcn.0040cfad
mov ebx, eax
test ebx, ebx
je 0x404172
mov ecx, edi
call fcn.0040d04a
cmp eax, 1
jne 0x40414a
mov dword [ebp - 4], 0xaa64
jmp 0x404172
mov ecx, edi
call fcn.0040d008
cmp eax, 1
jne 0x40415f
mov dword [ebp - 4], 6
jmp 0x404172
mov ecx, edi
call fcn.0040d029
cmp eax, 1
jne 0x404172
mov dword [ebp - 4], 9
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
mov eax, dword [ebp - 0xc8]
cmp eax, 0xa
ja 0x4041b9
jne 0x404190
cmp dword [ebp - 0xc4], 0
ja 0x4041b9
cmp eax, 6
jne 0x40419e
cmp dword [ebp - 0xc4], 3
ja 0x4041b9
push dword [ebp - 0xc4]
push eax
lea eax, [ebp - 0x14]
push str._d_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x4041ca
lea eax, [ebp - 0x14]
push str.9999
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
pop ecx
pop ecx
lea eax, [ebp - 0x14]
push eax
call fcn.00436621
cmp eax, 0x64
pop ecx
jg 0x4041fa
je 0x404222
cmp eax, 0x28
je 0x4042c1
cmp eax, 0x31
jle 0x404215
cmp eax, 0x34
jle 0x404222
cmp eax, 0x3b
jle 0x404215
cmp eax, 0x3f
jle 0x404222
jmp 0x404215
sub eax, 0x19a
je 0x4042c1
sub eax, 0x50
je 0x4042c1
sub eax, 0x2525
je 0x404222
and word [esi + 0xbb0], 0
jmp 0x4042eb
test ebx, ebx
je 0x40425c
cmp dword [ebp - 4], 9
jne 0x404237
mov word [esi + 0xbb0], 8
jmp 0x40427a
cmp dword [ebp - 4], 6
jne 0x404248
mov word [esi + 0xbb0], 4
jmp 0x40427a
cmp dword [ebp - 4], 0xaa64
jne 0x4042b1
mov word [esi + 0xbb0], 0x20
jmp 0x40427a
cmp word [ebp - 0x38], 6
je 0x40423d
cmp word [ebp - 0x38], 9
je 0x40422c
cmp word [ebp - 0x38], 0
jne 0x4042b1
mov word [esi + 0xbb0], 2
mov ax, word [esi + 0xbb0]
cmp ax, 8
je 0x404293
cmp ax, 4
je 0x404293
cmp ax, 0x20
jne 0x4042a5
cmp dword [esi + 0x1114], 0
je 0x4042a5
mov word [esi + 0xbb0], 2
mov dword [esi + 0xbac], 1
jmp 0x4042eb
push str.Error:_Unknown_architecture__
push 1
call fcn.00408aae
pop ecx
pop ecx
jmp 0x4042eb
push 1
pop eax
cmp dword [ebp - 0xbc], eax
jne 0x4042dc
and dword [esi + 0xbac], 0
mov word [esi + 0xbb0], ax
jmp 0x4042eb
mov word [esi + 0xbb0], 2
mov dword [esi + 0xbac], eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404310
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x443700
call fcn.004361ac
sub esp, 0x1d0
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x1dc], 0x1c8
push dword [esi + 0x41c]
call fcn.00423282
pop ecx
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x10]
call fcn.0040656d
xor edi, edi
xor ebx, ebx
cmp dword [ebp - 0x14], edi
mov dword [ebp - 4], edi
jbe 0x4043bf
lea eax, [ebp - 0x1dc]
push eax
push ebx
push dword [esi + 0x41c]
call fcn.004232e2
add esp, 0xc
test eax, eax
je 0x404382
lea eax, [ebp - 0x1cc]
push str.v3restore.ini
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40438a
inc ebx
cmp ebx, dword [ebp - 0x14]
jb 0x404352
jmp 0x4043bf
mov eax, dword [0x4629dc]
lea ecx, [eax + 0xa94]
call fcn.00406944
push eax
lea ecx, [ebp - 0x10]
call fcn.0040696a
lea eax, [ebp - 0xcc]
lea ecx, [ebp - 0x10]
push eax
call fcn.00406b97
push str.v3restore.exe
lea ecx, [ebp - 0x10]
call fcn.00406b97
mov eax, dword [ebp - 0x10]
cmp dword [eax - 4], edi
jle 0x40442f
push edi
lea ecx, [ebp - 0x10]
call fcn.00406944
push eax
call fcn.00436550
pop ecx
test eax, eax
pop ecx
jne 0x40441a
push edi
push edi
push edi
lea ecx, [ebp - 0x10]
call fcn.00406944
push eax
push str.Open
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
push esi
push dword [ebp - 0x10]
push str._AutoUp__RunEmergencyPatch___s_:_Executed_Return_:__d_
push 1
call fcn.00408aae
add esp, 0x10
xor eax, eax
cmp esi, 0x20
setg al
cmp eax, edi
mov eax, str.Success
jne 0x40441f
mov eax, str.Failed
push eax
push str._AutoUp__RunEmergencyPatch__Patch_Work_Finish_:__s
push 1
call fcn.00408aae
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004065ed
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x404e71
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
and byte [ebp - 0x104], 0
push esi
push edi
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x103]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x104]
push 0x5c
push eax
call fcn.0043724d
and byte [eax], 0
lea eax, [ebp - 0x104]
push 0x5c
push eax
call fcn.0043724d
mov esi, eax
push 0x44d1f4
push esi
call fcn.004370b8
add esp, 0x18
test eax, eax
jne 0x404edc
and byte [esi], al
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
pop edi
pop esi
leave
ret
Function at 0x405328
Capabilities:
Delete file

Disassembly:
mov eax, 0x4437e4
call fcn.004361ac
sub esp, 0x10c
push ebx
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x117]
mov byte [ebp - 0x118], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x103
push dword [ebp + 8]
stosb byte es:[edi], al
lea eax, [ebp - 0x118]
push eax
call fcn.004363c3
lea eax, [ebp - 0x118]
push 0x5c
push eax
call fcn.0043724d
add esp, 0x14
inc eax
mov dword [ebp - 0x10], ebx
mov byte [eax], bl
mov eax, str.ahni2t.dll
mov ecx, eax
mov dword [ebp - 0x14], eax
test ecx, ecx
je 0x4053f2
push esi
mov esi, eax
lea edi, [ebp - 0x14]
lea eax, [ebp - 0x118]
push 0xffffffffffffffff
push eax
lea ecx, [ebp + 8]
call fcn.00406579
push esi
lea ecx, [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.00406b97
push ebx
lea ecx, [ebp + 8]
call fcn.00406944
push eax
call fcn.00405a7b
pop ecx
test eax, eax
pop ecx
je 0x4053db
lea ecx, [ebp + 8]
call fcn.00406944
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004065ed
mov esi, dword [edi + 4]
add edi, 4
cmp esi, ebx
jne 0x40539a
pop esi
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x405400
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0
push esi
call fcn.00405a7b
pop ecx
test eax, eax
pop ecx
je 0x40544c
push esi
call fcn.00404f75
test eax, eax
pop ecx
je 0x405445
call fcn.004051f3
push dword [esp + 0x10]
push 0
push dword [esp + 0x14]
push esi
push str.Open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jle 0x40544c
push 1
pop eax
pop esi
ret
push esi
call fcn.00405328
pop ecx
xor eax, eax
pop esi
ret
Function at 0x405739
Capabilities:
Create directory

Disassembly:
mov eax, 0x443808
call fcn.004361ac
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
xor ebx, ebx
push edi
push ebx
push dword [ebp + 8]
call esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, ebx
mov dword [ebp - 0x18], eax
je 0x40576e
push 1
pop eax
jmp 0x405849
cmp eax, 3
je 0x40577c
cmp eax, 2
jne 0x40583e
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
push dword [ebp + 8]
call fcn.00406579
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
mov eax, dword [eax - 4]
dec eax
push eax
call fcn.0040691a
cmp al, 0x5c
jne 0x4057cc
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x10]
mov eax, dword [eax - 4]
dec eax
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00406d45
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00406947
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.004065ed
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.00406caa
cmp eax, ebx
je 0x405832
push eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.00406d45
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00406947
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.004065ed
mov eax, dword [ebp - 0x10]
cmp dword [eax - 4], ebx
jle 0x405822
lea ecx, [ebp - 0x10]
call fcn.00406944
push eax
call fcn.00405739
test eax, eax
pop ecx
je 0x405832
push ebx
push dword [ebp + 8]
call esi
mov ebx, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004065ed
mov eax, ebx
jmp 0x405849
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004065ed
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x405858
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
mov eax, 0x443824
call fcn.004361ac
sub esp, 0x148
lea ecx, [ebp - 0x10]
call fcn.0040656d
and dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0040656d
cmp dword [ebp + 8], 0
mov byte [ebp - 4], 1
je 0x405983
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 4
jl 0x405983
push ebx
push esi
push edi
lea ecx, [ebp - 0x14]
push dword [ebp + 8]
call fcn.0040696a
push 0x44d338
lea ecx, [ebp - 0x14]
call fcn.00406b97
lea eax, [ebp - 0x154]
lea ecx, [ebp - 0x14]
push eax
call fcn.00406944
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ebx, eax
xor eax, eax
cmp ebx, 0xffffffff
setne al
test eax, eax
mov edi, 0x80
je 0x405950
cmp byte [ebp - 0x128], 0x2e
je 0x40593e
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.0040696a
lea eax, [ebp - 0x128]
lea ecx, [ebp - 0x10]
push eax
call fcn.00406b97
test byte [ebp - 0x154], 0x10
je 0x405923
lea ecx, [ebp - 0x10]
call fcn.00406944
push eax
call fcn.00405858
pop ecx
jmp 0x40593e
push edi
lea ecx, [ebp - 0x10]
call fcn.00406944
push eax
call esi
lea ecx, [ebp - 0x10]
call fcn.00406944
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x154]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4058e6
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
push dword [ebp + 8]
call esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004065ed
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004065ed
pop edi
pop esi
pop ebx
jmp 0x40599b
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004065ed
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004065ed
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret

Function at 0x405b2f
Capabilities:
Copy file
Set file attributes

Disassembly:
push 0x80
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
ret
Function at 0x40625d
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
lea eax, [ebp - 0x94]
push esi
push eax
xor esi, esi
mov dword [ebp - 0x94], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 6
jb 0x40628c
push 1
pop esi
mov eax, esi
pop esi
leave
ret

Function at 0x406291
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
lea eax, [ebp - 4]
push esi
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4062bb
push str._AutoUp__OpenProcessToken_return_FALSE
push 1
jmp 0x40633e
lea eax, [ebp - 0xc]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x4062e0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str._AutoUp__LookupPrivilegeValue_return_FALSE
jmp 0x4062b4
mov eax, dword [ebp - 0xc]
push 1
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
pop esi
mov dword [ebp - 0x14], eax
push 0
push 0
lea eax, [ebp - 0x1c]
push 0x10
push eax
push 0
push dword [ebp - 4]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x10], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x406322
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str._AutoUp__AdjustTokenPrivileges_return_FALSE
jmp 0x40633d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 4]
cmp eax, 0x514
jne 0x406349
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str._AutoUp__AdjustTokenPrivileges___cannot_adjust_privileges
push esi
call fcn.00408aae
pop ecx
xor eax, eax
pop ecx
jmp 0x406351
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
leave
ret
Function at 0x406354
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x44388e
call fcn.004361ac
sub esp, 0x10
push ebx
xor ebx, ebx
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], ebx
call fcn.0040656d
push 1
lea eax, [ebp - 0x18]
pop edi
push eax
push 0x20019
push ebx
mov dword [ebp - 4], edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
je 0x4063a5
mov ecx, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp + 0x18]
call fcn.00406579
mov dword [ebp - 0x10], edi
jmp 0x406434
lea eax, [ebp - 0x1c]
push esi
push eax
push ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push ebx
push ebx
push dword [ebp + 0x14]
push dword [ebp - 0x18]
call esi
cmp eax, ebx
mov dword [ebp + 0x10], eax
jne 0x4063e7
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x14]
push eax
push dword [ebp - 0x1c]
call fcn.00406655
push eax
push ebx
push ebx
push dword [ebp + 0x14]
push dword [ebp - 0x18]
call esi
lea ecx, [ebp - 0x14]
mov dword [ebp + 0x10], eax
call fcn.004066ad
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 0x10], ebx
pop esi
jne 0x4063fb
lea eax, [ebp - 0x14]
jmp 0x406413
push 0xffffffffffffffff
lea ecx, [ebp + 0x14]
push dword [ebp + 0x18]
call fcn.00406579
mov dword [ebp - 0x10], 2
mov byte [ebp - 4], 2
mov ecx, dword [ebp + 8]
push eax
call fcn.004065ac
or dword [ebp - 0x10], edi
mov dword [ebp - 4], edi
test byte [ebp - 0x10], 2
je 0x406434
and dword [ebp - 0x10], 0xfffffffd
lea ecx, [ebp + 0x14]
call fcn.004065ed
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.004065ed
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x406450
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 0x14], esi
jne 0x406460
push 0x57
pop eax
jmp 0x4064ac
push edi
lea eax, [ebp + 0xc]
push esi
push eax
push esi
push 0x20006
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edi, eax
cmp edi, esi
jne 0x4064a9
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp + 0x14]
push 1
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0xc]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x4064af
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov eax, 0x4438b7
call fcn.004361ac
sub esp, 0xc
push ebx
xor ebx, ebx
push esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], ebx
call fcn.0040656d
push 1
lea eax, [ebp - 0x14]
pop esi
push eax
push 0x20019
push ebx
mov dword [ebp - 4], esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x406542
push ebx
push ebx
lea eax, [ebp + 0x10]
push ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
cmp eax, ebx
jne 0x406539
inc dword [ebp + 0x10]
push dword [ebp + 0x10]
lea ecx, [ebp - 0x10]
call fcn.00406655
mov ecx, dword [ebp + 0x10]
push ebx
push ebx
mov dword [ebp + 0xc], ecx
push dword [ebp + 0x18]
lea ecx, [ebp + 0xc]
push ebx
push ecx
push eax
push dword [ebp + 0x14]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
lea ecx, [ebp - 0x10]
call fcn.004066ad
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.004065ac
mov dword [ebp - 0x18], esi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.004065ed
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x406df0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
push edi
mov esi, ecx
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x10f]
mov byte [ebp - 0x110], bl
rep stosd dword es:[edi], eax
cmp dword [ebp + 8], ebx
stosw word es:[edi], ax
stosb byte es:[edi], al
je 0x406e38
mov ecx, esi
call fcn.004011fe
test eax, eax
je 0x406e38
lea eax, [ebp - 0x110]
push str.Global_
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x110]
push esi
push eax
call edi
lea eax, [ebp - 0x110]
push str._is_running
push eax
call edi
mov eax, dword [esi + 0x108]
cmp eax, ebx
je 0x406e6d
push eax
call fcn.00436e95
pop ecx
mov dword [esi + 0x108], ebx
push 0x14
call fcn.00436f7e
cmp eax, ebx
pop ecx
mov dword [esi + 0x108], eax
jne 0x406e83
xor eax, eax
jmp 0x406ef5
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push ebx
push ebx
push 1
push dword [esi + 0x108]
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov eax, dword [esi + 0x108]
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 8], eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0xc]
push ebx
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp eax, ebx
mov dword [esi + 0x104], eax
je 0x406eea
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x406eea
push dword [esi + 0x104]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x104], ebx
xor eax, eax
cmp dword [esi + 0x104], ebx
sete al
pop edi
pop esi
pop ebx
leave
ret 4