joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407fe4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, 0x65
push ebx
sub esp, 0x20
mov ebx, dword [ebp + 8]
dec esi
je 0x408043
mov edx, dword [0x40c684]
mov eax, dword [0x40c680]
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x1a
xor edx, edx
mov dword [esp + 0xc], ebx
div ecx
mov dword [esp + 8], 0
lea eax, [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
add word [ebp - 0xc], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
sub esp, 0x10
test eax, eax
je 0x407ff4
jmp 0x40804a
mov word [ebx], 0
xor ebx, ebx
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret 8

Function at 0x408055
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp - 0xc]
sub esp, 0x34
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], 0
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
sub esp, 0x14
test eax, eax
je 0x408094
xor eax, eax
cmp dword [ebp - 0xc], ebx
sete al
mov ebx, dword [ebp - 4]
leave
ret 0xc

Function at 0x40809b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp - 0xc]
sub esp, 0x34
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], 0
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub esp, 0x14
test eax, eax
je 0x4080da
xor eax, eax
cmp dword [ebp - 0xc], ebx
sete al
mov ebx, dword [ebp - 4]
leave
ret 0xc

Function at 0x40830a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x30
mov eax, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x10], 0x800
test eax, eax
je 0x408328
mov eax, 0x100
or eax, 0x20019
lea edx, [ebp - 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00408246
sub esp, 0x10
test eax, eax
je 0x408358
mov word [ebx], 0
jmp 0x4083ad
lea eax, [ebp - 0x10]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
lea eax, [ebp - 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov eax, dword [ebp - 0x14]
sub esp, 0x18
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
mov word [ebx + 0x7fe], 0
test esi, esi
jne 0x408351
mov eax, dword [ebp - 0xc]
dec eax
cmp eax, 1
ja 0x408351
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 0x14
Function at 0x408679
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov eax, dword [ebp + 8]
mov dword [esp], 0x439bc0
mov dword [esp + 4], eax
call fcn.0040849b
push ebx
push ebx
mov dword [esp], 0x439bc0
call fcn.00407dcd
push edx
test eax, eax
jne 0x4086aa
xor eax, eax
jmp 0x408726
mov dword [esp], eax
mov ebx, eax
call fcn.00408564
push ecx
test byte [0x43c2e4], 0x80
je 0x4086cc
mov ax, word [ebx]
test ax, ax
je 0x4086a6
cmp ax, 0x5c
je 0x4086a6
sub ebx, 0x439bc0
sar ebx, 1
mov dword [esp], 0x439bc0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ecx
mov dword [esp], 0x439bc0
cmp ebx, eax
jge 0x40870b
call fcn.00408641
push edx
test eax, eax
je 0x4086fc
test byte [eax], 0x10
je 0x4086a6
mov dword [esp], 0x439bc0
call fcn.00407d5a
push eax
jmp 0x4086d4
call fcn.004084cf
push eax
mov dword [esp], 0x439bc0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
inc eax
push edx
setne al
movzx eax, al
mov ebx, dword [ebp - 4]
leave
ret 4

Function at 0x40872d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
lea ebx, [ebp - 0x244]
sub esp, 0x254
mov dword [esp + 4], 0x104
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push edx
push edx
lea edx, [eax - 1]
cmp edx, 0x103
ja 0x40876b
xor edx, edx
cmp word [ebp + eax*2 - 0x246], 0x5c
sete dl
jmp 0x408772
xor eax, eax
mov edx, 1
mov ecx, dword [ebp + 8]
add edx, edx
add eax, eax
mov dword [esp + 4], str._s_S.dll
add edx, 0x40c688
add eax, ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp], eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov dword [esp], ebx
mov dword [esp + 8], 8
mov dword [esp + 4], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, dword [ebp - 4]
sub esp, 0xc
leave
ret 4
Function at 0x408b65
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [ebp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
mov dword [0x4393c0], 0x55004e
mov dword [0x4393c4], 0x4c
test ebx, ebx
jne 0x408bbe
mov eax, dword [ebp + 8]
mov dword [esp + 8], 0x400
mov dword [esp + 4], 0x438bc0
mov dword [esp], eax
call esi
sub esp, 0xc
test eax, eax
je 0x408db3
cmp eax, 0x400
jle 0x408c0f
jmp 0x408db3
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], ebx
call fcn.00407f8c
sub esp, 0xc
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
mov dword [esp + 8], 0x400
mov dword [esp + 4], 0x4393c0
mov dword [esp], ebx
call esi
sub esp, 0xc
test eax, eax
je 0x408db3
cmp eax, 0x400
jle 0x408b8f
jmp 0x408db3
mov dword [esp + 0xc], 0x438bc0
mov dword [esp + 8], 0x4393c0
mov dword [esp + 4], str._ls_ls_r_n
mov dword [esp], 0x4387c0
call dword [sym.imp.USER32.dll_wsprintfA]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x43c280]
mov eax, dword [eax + 0x128]
mov dword [esp], 0x438bc0
mov dword [esp + 4], eax
call fcn.0040882f
push esi
push esi
mov dword [esp + 8], 4
mov dword [esp + 4], 0xc0000000
mov dword [esp], 0x438bc0
call fcn.00407f8c
sub esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
je 0x408db3
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov eax, dword [ebp - 0x1c]
push ecx
push ecx
add eax, esi
mov dword [ebp - 0x24], eax
add eax, 0xa
mov dword [esp + 4], eax
mov dword [esp], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push ebx
push ebx
mov ebx, eax
test eax, eax
je 0x408da9
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.00408055
sub esp, 0xc
test eax, eax
je 0x408da9
mov dword [esp + 4], str._Rename__r_n
mov dword [esp], ebx
call fcn.00407e61
lea ecx, [ebx + esi]
push edx
push edx
test eax, eax
jne 0x408d09
mov dword [esp + 4], str._Rename__r_n
add esi, 0xa
mov dword [esp], ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, esi
push eax
push eax
jmp 0x408d49
add eax, 0xa
mov dword [esp + 4], 0x40c6c5
mov dword [esp], eax
mov dword [ebp - 0x28], ecx
call fcn.00407e61
mov edx, esi
push ecx
mov dword [ebp - 0x20], eax
push ecx
test eax, eax
je 0x408d49
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
add edx, ebx
cmp dword [ebp - 0x20], ecx
jae 0x408d41
dec ecx
mov al, byte [ecx + 1]
dec edx
mov byte [edx + 1], al
jmp 0x408d32
mov eax, dword [ebp - 0x20]
sub eax, ebx
lea edx, [eax + 1]
mov eax, dword [ebp - 0x1c]
add edx, ebx
mov dword [esp + 4], 0x4387c0
mov dword [esp], edx
mov dword [esp + 8], eax
call fcn.00407ecc
add esi, dword [ebp - 0x1c]
sub esp, 0xc
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub esp, 0x10
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], edi
call fcn.0040809b
sub esp, 0xc
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push edx
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x409168
Capabilities:
Hash data with crc32

Disassembly:
push ebp
cmp dword [0x43ac24], 0
mov ebp, esp
push esi
mov edx, dword [ebp + 0xc]
push ebx
jne 0x4091a5
xor ecx, ecx
mov eax, ecx
mov ebx, 8
mov esi, eax
shr esi, 1
and eax, 1
je 0x409190
mov eax, 0xedb88320
xor eax, esi
dec ebx
jne 0x409182
mov dword [ecx*4 + 0x43ac20], eax
inc ecx
cmp ecx, 0x100
jne 0x40917b
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
not eax
add ebx, edx
cmp edx, ebx
je 0x4091c8
inc edx
mov cl, byte [edx - 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x43ac20]
jmp 0x4091af
pop ebx
not eax
pop esi
pop ebp
ret 0xc
Function at 0x401830
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x411014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x214]
push eax
push 0x20019
xor esi, esi
push esi
push str.SYSTEMCurrentControlSetEnumUSB
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401962
push 0x103
lea ecx, [ebp - 0x10f]
push esi
push ecx
mov byte [ebp - 0x110], al
call fcn.004097d0
add esp, 0xc
lea edx, [ebp - 0x230]
push edx
lea eax, [ebp - 0x240]
push eax
lea ecx, [ebp - 0x238]
push ecx
lea edx, [ebp - 0x224]
push edx
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x234]
push ecx
lea edx, [ebp - 0x228]
push edx
lea eax, [ebp - 0x218]
push eax
mov eax, dword [ebp - 0x214]
push esi
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x110]
push edx
push eax
mov dword [ebp - 0x21c], 0x104
mov dword [ebp - 0x218], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov eax, dword [ebp - 0x218]
cmp eax, esi
jbe 0x401950
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x401900
lea ecx, [ebp - 0x230]
push ecx
mov ecx, dword [ebp - 0x214]
push 0
push 0
push 0
lea edx, [ebp - 0x220]
push edx
lea eax, [ebp - 0x210]
push eax
push esi
push ecx
mov dword [ebp - 0x220], 0xff
call edi
test eax, eax
jne 0x401947
lea edx, [ebp - 0x210]
push edx
call fcn.00401980
add esp, 4
cmp eax, 1
je 0x401962
inc esi
cmp esi, dword [ebp - 0x218]
jb 0x401900
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call 0x402460
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00403ffe
mov esp, ebp
pop ebp
ret
Function at 0x401ba0
Capabilities:
Enumerate pe sections
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000c
call fcn.0040a5c0
mov eax, dword [0x411014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, ecx
lea eax, [ebp - 0x10008]
push eax
lea ecx, [ebp - 0x4004]
push ecx
xor ebx, ebx
push ebx
push ebx
push str.FriendlyName
push esi
mov dword [ebp - 0x10008], 0x3fff
mov byte [ebp - 0x4004], bl
call edi
test eax, eax
je 0x401c20
lea edx, [ebp - 0x10008]
push edx
lea eax, [ebp - 0x4004]
push eax
push ebx
push ebx
push str.DeviceDesc
push esi
mov byte [ebp - 0x4004], bl
mov dword [ebp - 0x10008], 0x3fff
call edi
test eax, eax
jne 0x401e5d
mov eax, dword [ebp - 0x10008]
lea eax, [ebp + eax - 0x4004]
lea ecx, [ebp - 0x4004]
mov byte [eax], bl
cmp eax, ecx
jbe 0x401c50
lea esp, [esp]
cmp byte [eax], 0x3b
je 0x401c55
dec eax
lea edx, [ebp - 0x4004]
cmp eax, edx
ja 0x401c40
cmp byte [eax], 0x3b
jne 0x401c56
inc eax
lea edx, [ebp - 0x8004]
sub edx, eax
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x401c60
lea eax, [ebp - 0x10008]
push eax
lea ecx, [ebp - 0x4004]
push ecx
push ebx
push ebx
push str.Driver
push esi
mov byte [ebp - 0x4004], bl
mov dword [ebp - 0x10008], 0x3fff
call edi
test eax, eax
jne 0x401e5d
mov edx, dword [ebp - 0x10008]
lea eax, [ebp - 0x4004]
push eax
push str.SYSTEMCurrentControlSetControlClass
lea ecx, [ebp - 0x10004]
push str._s_s
push ecx
mov byte [ebp + edx - 0x4004], bl
call fcn.0040400d
add esp, 0x10
lea edx, [ebp - 0x1000c]
push edx
push 0x20019
push ebx
lea eax, [ebp - 0x10004]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401e5d
mov eax, dword [ebp - 0x1000c]
lea ecx, [ebp - 0x10008]
push ecx
lea edx, [ebp - 0x4004]
push edx
push ebx
push ebx
push str.QCDeviceControlFile
push eax
mov byte [ebp - 0x4004], bl
mov dword [ebp - 0x10008], 0x3fff
call edi
test eax, eax
jne 0x401e50
mov eax, dword [ebp - 0x10008]
lea eax, [ebp + eax - 0x4004]
lea ecx, [ebp - 0x4004]
mov byte [eax], bl
cmp eax, ecx
jbe 0x401d50
lea ecx, [ecx]
cmp byte [eax], 0x5c
je 0x401d55
dec eax
lea edx, [ebp - 0x4004]
cmp eax, edx
ja 0x401d40
cmp byte [eax], 0x5c
jne 0x401d56
inc eax
lea edx, [ebp - 0xc004]
sub edx, eax
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x401d60
mov esi, dword [0x412b90]
imul esi, esi, 0x384
lea eax, [ebp - 0x8004]
lea edx, [esi + 0x5736c4]
mov ecx, eax
sub edx, ecx
inc edx
add eax, dword [ecx]
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x401e90
Function at 0x402240
Capabilities:
Contain obfuscated stackstrings

Disassembly:
pop ebp
xlatb
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.00401e25
push eax
push esi
push dword [ebp + 8]
call fcn.00401dda
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.00401e15
inc eax
enter 0x36a3, 0xffffffffffffff88
popfd
jl 0x40229a
invalid
invalid

Function at 0x409d4c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x411014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00407d51
and dword [ebp - 0x14], 0
cmp dword [0x412b5c], 0
mov dword [ebp - 0x18], eax
jne 0x409dff
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x409ea7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x409ea7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x412b5c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x412b60], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x412b64], eax
call edi
push eax
call esi
mov dword [0x412b6c], eax
test eax, eax
je 0x409dff
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x412b68], eax
mov eax, dword [0x412b68]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x409e58
cmp dword [0x412b6c], ecx
je 0x409e58
push eax
call esi
push dword [0x412b6c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x409e58
test ebx, ebx
je 0x409e58
call edi
test eax, eax
je 0x409e4f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x409e4f
test byte [ebp - 8], 1
jne 0x409e58
or dword [ebp + 0x10], 0x200000
jmp 0x409e8b
mov eax, dword [0x412b60]
cmp eax, dword [ebp - 0x18]
je 0x409e8b
push eax
call esi
test eax, eax
je 0x409e8b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x409e8b
mov eax, dword [0x412b64]
cmp eax, dword [ebp - 0x18]
je 0x409e8b
push eax
call esi
test eax, eax
je 0x409e8b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x412b5c]
call esi
test eax, eax
je 0x409ea7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x409ea9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403ffe
leave
ret
Function at 0x461d0f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push edi
sub esp, 0xb4
mov dword [ebp - 0xc], 0
call fcn.004d24e0
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
lea eax, [ebp + 8]
mov dword [esp], eax
call fcn.004d2990
sub esp, 8
mov dword [ebp - 0x10], 0
lea edx, [ebp - 0x70]
mov eax, 0
mov ecx, 0x11
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x70], 0x44
mov dword [ebp - 0x44], 1
mov eax, dword [ebp + 0xc]
and eax, 2
test eax, eax
je 0x461d9f
mov word [ebp - 0x40], 0
jmp 0x461da6
nop
mov word [ebp - 0x40], 1
lea eax, [ebp - 0x70]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov edx, eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0x24], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov dword [esp], 0
call sub.KERNEL32.dll_CreateProcessW
sub esp, 0x28
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x461e76
mov eax, dword [ebp + 0xc]
and eax, 1
test eax, eax
je 0x461e6a
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x14], eax
mov dword [esp], 1
call fcn.004bccd8
sub esp, 4
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x84]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sub.KERNEL32.dll_GetExitCodeThread
sub esp, 8
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x84]
cmp eax, 0x103
jne 0x461e6d
nop
jmp 0x461e27
nop
jmp 0x461e6e
nop
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0xc], eax
jmp 0x461e7e
nop
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.004d2920
sub esp, 4
mov eax, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
leave
ret 8
Function at 0x461ec1
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov byte [ebp - 0xa], 0
call fcn.004d24e0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x4c], 0
mov eax, 0
mov edx, 0
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov byte [ebp - 9], 0
mov byte [ebp - 9], 0
call sub.KERNEL32.dll_GetCurrentProcess
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x28
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.ADVAPI32.dll_OpenProcessToken
sub esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x462015
lea eax, [ebp - 0x54]
mov dword [ebp - 0x1c], eax
mov edx, 0x1161660
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov dword [esp], 0
call sub.ADVAPI32.dll_LookupPrivilegeValueW
sub esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x462001
mov dword [ebp - 0x64], 1
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], 2
lea eax, [ebp - 0x64]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x2c]
mov dword [esp + 0x14], edx
mov edx, dword [ebp - 0x28]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0x10
mov edx, dword [ebp - 0x24]
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.ADVAPI32.dll_AdjustTokenPrivileges
sub esp, 0x18
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov byte [ebp - 9], al
jmp 0x462002
nop
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov dword [ebp - 0x34], eax
jmp 0x462016
nop
movzx eax, byte [ebp - 9]
mov byte [ebp - 0xa], al
nop
movzx eax, byte [ebp - 0xa]
leave
ret
Function at 0x478cc7
Capabilities:
Create thread

Disassembly:
push ecx
push ebp
push esi
lea eax, [esp + 8]
xor esi, esi
push eax
push esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebp, eax
test ebp, ebp
je 0x478d5f
push edi
push 0x11f18bc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x1178238]
test edi, edi
je 0x478d33
push ebx
push esi
lea ebx, [edi + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x478d2c
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
push ebx
push 0x1178238
call fcn.004d1c3c
pop ecx
pop ecx
jmp 0x478d2e
mov edi, dword [edi]
test edi, edi
jne 0x478d03
pop ebx
mov eax, dword [0x1174284]
mov esi, eax
inc eax
push 0x10
push 0x1178238
mov dword [0x1174284], eax
call fcn.004d1c7c
pop ecx
pop ecx
push 0x11f18bc
mov dword [eax], ebp
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret 8

Function at 0x478e24
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
push 0
push edi
call fcn.00478dd8
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ebx, 0x11f18bc
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x1178238]
jmp 0x478e55
cmp dword [esi + 0xc], edi
je 0x478e5b
mov esi, dword [esi]
test esi, esi
jne 0x478e4e
jmp 0x478e73
add esi, 8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 0x1178238
call fcn.004d1c3c
pop ecx
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
ret 4

Function at 0x479174
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x4791c9
push dword [esp + 0x10]
push 0x4790f3
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [0x1178240]
test esi, esi
je 0x479222
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x4791c1
cmp byte [esi + 0x10], 0
je 0x4791c1
push 3
push edi
push edi
push edi
push edi
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov esi, ebx
test ebx, ebx
jne 0x47919d
jmp 0x479222
mov esi, dword [0x1178240]
test esi, esi
je 0x479222
xor edi, edi
push ebp
mov ebx, dword [esi]
lea ebp, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp], eax
jne 0x47921b
cmp byte [esi + 0x11], 0
je 0x4791f7
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x47920e
push 3
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
push ebp
push 0x1178240
call fcn.004d1c3c
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x4791d6
pop ebp
pop edi
pop esi
pop ebx
ret 4