joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40564e
Capabilities:
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
xor eax, eax
cmp dword [0x4203c8], 0
push esi
push edi
push 7
pop ecx
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
je 0x405677
push dword [0x4203cc]
call dword [sym.imp.KERNEL32.DLL_Wow64RevertWow64FsRedirection]
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
xor ecx, ecx
push 0x14
mov word [esi + eax*2 + 2], cx
pop eax
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x1c], 3
mov dword [ebp - 0x18], esi
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
cmp dword [0x4203c8], 0
mov edi, eax
je 0x4056b9
push 0x4203cc
call dword [sym.imp.KERNEL32.DLL_Wow64DisableWow64FsRedirection]
test edi, edi
je 0x4056cc
push esi
push edi
push str.Exception:_SHFileOperation_failed__0x_X__:__s
call fcn.0040580b
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
inc eax
neg eax
pop edi
sbb eax, eax
inc eax
pop esi
leave
ret

Function at 0x405712
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x41f014]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40578c
push esi
lea eax, [ebp - 0x10]
xor esi, esi
push eax
push str.SeShutdownPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push esi
push esi
push esi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 1
push eax
push esi
push dword [ebp - 0x18]
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
pop esi
test eax, eax
jne 0x40578c
push 0x80040002
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x40578c
xor eax, eax
inc eax
jmp 0x40578e
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004076f3
leave
ret

Function at 0x40579a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push edi
push 0x3c
xor edi, edi
lea eax, [ebp - 0x3c]
push edi
push eax
call fcn.00408580
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x1c], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
pop edi
test eax, eax
jne 0x4057f2
leave
ret
push 0xffffffffffffffff
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
inc eax
leave
ret
Function at 0x40580b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2018
call fcn.00407710
mov eax, dword [0x41f014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
push edi
push 0x80
push 4
push edi
push edi
push 0x40000000
push str.c:LiuInstall.log
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4058f7
lea eax, [ebp + 0xc]
push eax
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x1004]
push 0x7ff
push eax
call fcn.0040590b
add esp, 0x14
lea eax, [ebp - 0x2014]
push eax
call dword [sym.imp.KERNEL32.DLL_GetLocalTime]
lea eax, [ebp - 0x1004]
push eax
movzx eax, word [ebp - 0x2008]
push eax
movzx eax, word [ebp - 0x200a]
push eax
movzx eax, word [ebp - 0x200c]
push eax
movzx eax, word [ebp - 0x200e]
push eax
movzx eax, word [ebp - 0x2012]
push eax
movzx eax, word [ebp - 0x2014]
push eax
lea eax, [ebp - 0x2004]
push str._02d__02d__02d__02d:_02d:_02d_____s_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x24
mov dword [ebp - 0x2018], eax
push 2
push edi
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push edi
lea eax, [ebp - 0x2018]
push eax
mov eax, dword [ebp - 0x2018]
add eax, eax
push eax
lea eax, [ebp - 0x2004]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004076f3
leave
ret

Function at 0x40593d
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x41f014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x2c]
push 0x14
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x1e
lea eax, [ebp - 0x68]
push eax
push 0x8f
push 0
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x124
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x68]
push eax
push esi
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 7
jne 0x40599c
push 1
push 0
push esi
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004076f3
leave
ret
Function at 0x40721f
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
cmp eax, dword [ebp + 8]
jae 0x407268
push ebx
xor ebx, ebx
jmp 0x407249
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 1
push ebx
push ebx
push ebx
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x407235
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
cmp eax, dword [ebp + 8]
jb 0x407249
pop ebx
leave
ret
Function at 0x40726a
Capabilities:
Check if file exists
Create directory
Delete file
Extract resource via kernel32 functions
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x41f014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x20c]
mov ebx, 0x4205e8
push ebx
push 0x41ff98
push 0x4172e8
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x407322
lea eax, [ebp - 0x20c]
push eax
call fcn.0040564e
pop ecx
test eax, eax
jne 0x407322
push 0x65
pop esi
push esi
push str.LiuPack
push str._s__d_
push ebx
call edi
push ebx
push 0x41ff98
lea eax, [ebp - 0x20c]
push 0x4172e8
push eax
call edi
add esp, 0x20
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x407322
inc esi
cmp esi, 0xc8
jle 0x4072c8
lea eax, [ebp - 0x20c]
push eax
push str.Error:_UnpackFiles___01____s
call fcn.0040580b
pop ecx
pop ecx
xor eax, eax
jmp 0x407476
xor ebx, ebx
lea eax, [ebp - 0x20c]
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
lea eax, [ebp - 0x20c]
push eax
jne 0x407344
push str.Error:_UnpackFiles___02____s
jmp 0x407314
lea eax, [ebp - 0x414]
push str._sliupack
push eax
call edi
add esp, 0xc
push 0x41749c
push 0x8a
push ebx
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov esi, eax
test esi, esi
je 0x40741b
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
push esi
mov edi, eax
push ebx
mov dword [ebp - 0x418], edi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x40741b
push ebx
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov esi, eax
mov dword [ebp - 0x420], esi
test esi, esi
je 0x407414
xor eax, eax
push eax
push eax
push 2
push eax
push eax
push 0x40000000
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ecx, eax
mov dword [ebp - 0x424], ecx
cmp ecx, 0xffffffff
je 0x407414
push 0
lea eax, [ebp - 0x41c]
shr edi, 1
push eax
mov eax, esi
mov esi, dword [sym.imp.KERNEL32.DLL_WriteFile]
sub eax, edi
add eax, dword [ebp - 0x418]
push edi
push eax
push ecx
call esi
push 0
lea eax, [ebp - 0x41c]
push eax
mov eax, dword [ebp - 0x418]
sub eax, edi
mov edi, dword [ebp - 0x424]
push eax
push dword [ebp - 0x420]
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.DLL_FreeResource]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40743e
lea eax, [ebp - 0x414]
push eax
push str.Error:_UnpackFiles___03____s
jmp 0x407314
lea eax, [ebp - 0x20c]
push eax
push str.liupack
call section..text
pop ecx
pop ecx
test eax, eax
jne 0x407466
lea eax, [ebp - 0x20c]
push eax
push str.Error:_UnpackFiles___04____s
jmp 0x407314
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004076f3
leave
ret
Function at 0x4074af
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x41f014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, dword [ebp + 0xc]
mov ebx, 0x11c
push ebx
mov dword [esi], eax
push eax
mov dword [edi], eax
lea eax, [ebp - 0x120]
push eax
call fcn.00408580
add esp, 0xc
mov dword [ebp - 0x120], ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_GetVersionExW]
lea eax, [ebp - 0x120]
push eax
call ebx
test eax, eax
jne 0x40751e
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x114
push eax
call ebx
test eax, eax
jne 0x40751e
xor al, al
jmp 0x4076af
mov eax, dword [ebp - 0x110]
sub eax, 1
je 0x407658
sub eax, 1
jne 0x4076a5
mov eax, dword [ebp - 0x11c]
sub eax, 3
je 0x407650
sub eax, 1
je 0x407648
sub eax, 1
je 0x4075e9
sub eax, 1
jne 0x4076a5
mov eax, dword [ebp - 0x118]
xor ecx, ecx
sub eax, ecx
je 0x407593
sub eax, 1
je 0x407589
sub eax, 1
jne 0x4075dd
mov eax, 0xd0
lea ecx, [eax - 0x10]
cmp byte [ebp - 6], 1
cmove eax, ecx
mov dword [esi], eax
jmp 0x4075dd
mov eax, 0xb0
lea ecx, [eax - 0x10]
jmp 0x40757e
cmp byte [ebp - 6], 1
movzx eax, word [ebp - 0xc]
jne 0x4075be
sub eax, ecx
je 0x4075b6
sub eax, 1
je 0x4075ae
mov dword [esi], 0x82
jmp 0x4075dd
mov dword [esi], 0x81
jmp 0x4075dd
mov dword [esi], 0x80
jmp 0x4075dd
sub eax, ecx
je 0x4075d7
sub eax, 1
je 0x4075cf
mov dword [esi], 0x92
jmp 0x4075dd
mov dword [esi], 0x91
jmp 0x4075dd
mov dword [esi], 0x90
call fcn.004076be
mov dword [edi], eax
jmp 0x4076a5
mov eax, dword [ebp - 0x118]
xor ecx, ecx
sub eax, ecx
je 0x407640
sub eax, 1
je 0x40760e
sub eax, 1
jne 0x4076a5
push 0x70
pop eax
push 0x60
pop ecx
jmp 0x40757e
movzx eax, word [ebp - 0xc]
sub eax, ecx
je 0x407638
sub eax, 1
je 0x407630
sub eax, 1
je 0x407628
mov dword [esi], 0x63
jmp 0x4076a5
mov dword [esi], 0x62
jmp 0x4076a5
mov dword [esi], 0x61
jmp 0x4076a5
mov dword [esi], 0x60
jmp 0x4076a5
mov dword [esi], 0x50
jmp 0x4076a5
mov dword [esi], 0x41
jmp 0x4076a5
mov dword [esi], 0x40
jmp 0x4076a5
cmp dword [ebp - 0x11c], 4
jne 0x4076a5
mov eax, dword [ebp - 0x118]
test eax, eax
je 0x40768f
cmp eax, 0xa
je 0x40767d
cmp eax, 0x5a
jne 0x4076a5
mov dword [esi], 0x30
jmp 0x4076a5
xor eax, eax
cmp word [ebp - 0x10a], 0x41
sete al
add eax, 0x20
jmp 0x4076a3
movzx eax, word [ebp - 0x10a]
xor ecx, ecx
sub eax, 0x42
inc ecx
cmp ecx, eax
sbb eax, eax
add eax, 0x11
mov dword [esi], eax
cmp dword [ebp - 0x110], 2
sete al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004076f3
leave
ret
Function at 0x408130
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xa1960b21
mov ecx, 0x18b71962
rorx edx, eax, 0xb
sarx ecx, ecx, ecx
mulx eax, edx, ecx
xor eax, edx
mov ecx, 0xf5f7ffbe
pext eax, eax, ecx
cmp eax, 0x22f270c
sete al
ret
Function at 0x4304b0
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x28
push esi
push edi
push 0x18
mov esi, ecx
mov dword [esp + 0x24], 0
xorps xmm0, xmm0
mov dword [esp + 0x28], 0
push str.www.google_analytics.com
lea ecx, [esp + 0x18]
movaps xmmword [esp + 0x18], xmm0
call fcn.0040ab20
push 0
push 0
push 0
push 0
push str.Avast_SFX_1.0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [esp + 0xc], eax
test eax, eax
je 0x43057b
cmp dword [esp + 0x24], 7
lea ecx, [esp + 0x10]
push 0
cmova ecx, dword [esp + 0x14]
push 0
push ecx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov edi, eax
test edi, edi
je 0x430571
cmp dword [esi + 0x14], 7
jbe 0x430528
mov esi, dword [esi]
push 0
push 0
push 0
push 0
push esi
push 0x525ac0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
test esi, esi
je 0x43056a
push 0
push 0
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x430563
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push dword [esp + 0xc]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
lea ecx, [esp + 0x10]
call fcn.0040a900
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x432510
Capabilities:
Terminate thread

Disassembly:
push edi
mov edi, ecx
cmp dword [edi + 0x40], 0
mov dword [edi], vtable.ProgressAnimator.0
je 0x43256a
mov eax, dword [edi + 0x48]
test eax, eax
je 0x43253a
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov dword [edi + 0x48], 0
push 0x2710
push dword [edi + 0x40]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x43255a
push 1
push dword [edi + 0x40]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [edi + 0x40]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x40], 0
push ebx
mov ebx, dword [edi + 0x4c]
test ebx, ebx
je 0x43258d
mov eax, dword [ebx]
push esi
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x4f1320]
mov ecx, ebx
call esi
mov dword [edi + 0x4c], 0
pop esi
push dword [edi + 8]
call dword [sym.imp.gdiplus.dll_GdiplusShutdown]
mov eax, dword [edi + 4]
pop ebx
test eax, eax
je 0x4325ac
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 4], 0
lea ecx, [edi + 0x24]
call fcn.0040a900
lea ecx, [edi + 0xc]
pop edi
jmp fcn.0040a900

Function at 0x432bd0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x545100]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov dword [ebp - 8], 0
cmp dword [esi + 0x40], 0
jne 0x432c2e
lea eax, [ebp - 8]
push eax
push 0
push esi
push 0x4329c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x40], eax
test eax, eax
je 0x432c2e
mov eax, dword [esi + 4]
test eax, eax
je 0x432c1d
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a5e3b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.004a5e3b
mov esp, ebp
pop ebp
ret
Function at 0x434670
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ecx, ecx
push edi
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx ebx, ax
mov eax, ebx
and eax, 0x3ff
cmp eax, 0x1a
jne 0x4346cd
mov ax, bx
shr ax, 0xa
cmp ax, 2
je 0x4346c8
cmp ax, 3
je 0x4346c8
cmp ax, 9
je 0x4346c8
cmp ax, 0xa
je 0x4346c8
cmp ax, 6
je 0x4346c8
cmp ax, 7
je 0x4346c8
cmp ax, 0xb
je 0x4346c8
cmp ax, 0xc
jne 0x4346cd
mov ebx, 0x81a
xor esi, esi
call fcn.0044bee0
test eax, eax
je 0x434710
xor edi, edi
nop word [eax + eax]
call fcn.0044be50
mov eax, dword [eax]
cmp bx, word [edi + eax + 0x40]
je 0x4346fd
inc esi
add edi, 0x4c
call fcn.0044bee0
cmp esi, eax
jb 0x4346e0
jmp 0x434710
call fcn.0044be50
imul ecx, esi, 0x4c
add ecx, dword [eax]
mov dword [ebp - 4], ecx
jne 0x4347a8
and ebx, 0x3ff
xor esi, esi
call fcn.0044bee0
test eax, eax
je 0x434749
xor edi, edi
call fcn.0044be50
mov ecx, 0x3ff
mov eax, dword [eax]
mov ax, word [edi + eax + 0x40]
and ax, cx
cmp bx, ax
je 0x434789
inc esi
add edi, 0x4c
call fcn.0044bee0
cmp esi, eax
jb 0x434723
mov ebx, dword [ebp - 4]
xor esi, esi
call fcn.0044bee0
test eax, eax
je 0x434780
xor edi, edi
nop dword [eax]
call fcn.0044be50
mov ecx, 0x409
mov eax, dword [eax]
cmp word [edi + eax + 0x40], cx
je 0x43479e
inc esi
add edi, 0x4c
call fcn.0044bee0
cmp esi, eax
jb 0x434760
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0044be50
imul ebx, esi, 0x4c
add ebx, dword [eax]
je 0x43474c
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0044be50
imul ecx, esi, 0x4c
add ecx, dword [eax]
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4347c0
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x545100]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], ecx
push eax
push 8
xor bl, bl
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x43488a
push edi
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0
push 0
push 0x19
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov eax, dword [ebp - 8]
xor ecx, ecx
shr eax, 3
mov edx, 8
inc eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a63bb
add esp, 4
mov edi, eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push edi
push 0x19
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x434877
push esi
mov esi, dword [edi]
push esi
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x434876
push esi
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthorityCount]
movzx eax, byte [eax]
dec eax
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
mov ecx, dword [ebp - 0x10]
mov bl, 1
mov eax, dword [eax]
mov dword [ecx], eax
pop esi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.004a6085
add esp, 4
pop edi
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004a5e3b
mov esp, ebp
pop ebp
ret
Function at 0x43c340
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e7c1e
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x48
mov eax, dword [0x545100]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, edx
mov dword [ebp - 0x40], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x58], esi
xorps xmm0, xmm0
mov dword [ebp - 0x3c], 0
movq qword [esi], xmm0
mov dword [esi + 8], 0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0
push ecx
push eax
mov dword [ebp - 0x3c], 1
movlpd qword [ebp - 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x43c4e2
cmp dword [ebp - 0x1c], 0
jne 0x43c4d6
mov edi, dword [ebp - 0x20]
cmp edi, 0x7fffffff
ja 0x43c4d6
mov eax, dword [esi + 4]
mov ecx, eax
mov edx, dword [esi]
sub ecx, edx
mov dword [ebp - 0x38], eax
cmp edi, ecx
jae 0x43c408
lea eax, [edx + edi]
jmp 0x43c439
jbe 0x43c43c
mov eax, dword [esi + 8]
sub eax, edx
cmp edi, eax
jbe 0x43c421
push ecx
push edi
mov ecx, esi
call fcn.00425570
mov edi, dword [ebp - 0x20]
jmp 0x43c43c
sub edi, ecx
push edi
push 0
push dword [ebp - 0x38]
call fcn.004a8c90
mov eax, dword [ebp - 0x38]
add esp, 0xc
add eax, edi
mov edi, dword [ebp - 0x20]
mov dword [esi + 4], eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x18], 0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x24], 0
push eax
push edi
push dword [esi]
xorps xmm0, xmm0
push dword [ebp - 0x40]
movups xmmword [ebp - 0x34], xmm0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43c504
mov eax, dword [esi + 4]
mov ecx, eax
mov edx, dword [esi]
sub ecx, edx
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x38], eax
cmp edi, ecx
jae 0x43c488
lea eax, [edx + edi]
mov dword [esi + 4], eax
jmp 0x43c4b6
jbe 0x43c4b6
mov eax, dword [esi + 8]
sub eax, edx
cmp edi, eax
jbe 0x43c49e
push ecx
push edi
mov ecx, esi
call fcn.00425570
jmp 0x43c4b6
sub edi, ecx
push edi
push 0
push dword [ebp - 0x38]
call fcn.004a8c90
mov ecx, dword [ebp - 0x38]
add esp, 0xc
add ecx, edi
mov dword [esi + 4], ecx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a5e3b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push str.get_file_content
push 0xdf
jmp 0x43c4ee
push str.get_file_content:_GetFileSizeEx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x54]
call fcn.00499120
push 0x542628
lea eax, [ebp - 0x54]
push eax
call fcn.004a869b
push str.get_file_content:_ReadFile
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x54]
call fcn.00499120
push 0x542628
lea eax, [ebp - 0x54]
push eax
call fcn.004a869b
int3
Function at 0x43d420
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e7cbe
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x545100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [ebp - 4], 0
xorps xmm0, xmm0
movups xmmword [edi + 8], xmm0
xor eax, eax
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 7
mov word [edi + 8], ax
movups xmmword [edi + 0x20], xmm0
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], 7
mov word [edi + 0x20], ax
lea esi, [edi + 0x38]
mov byte [ebp - 4], 2
push 0x70
mov dword [ebp - 0x14], esi
mov dword [esi], eax
mov dword [esi + 4], eax
call fcn.004a5e73
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
lea esi, [edi + 0x40]
mov byte [ebp - 4], 3
push 0x34
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004a5e73
add esp, 8
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret