joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45bca8
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x45bd0a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0040515c
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x45bce0
and ebx, 0xfffffffe
push ebx
push edi
call sub.kernel32.dll_SetFileAttributesA
mov edx, edi
lea eax, [ebp - 4]
call fcn.00404e78
mov eax, dword [ebp - 4]
call fcn.0040c328
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45bd11
lea eax, [ebp - 4]
call fcn.00404c80
ret

Function at 0x45c90c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
mov byte [ebp - 0x15], 0
mov eax, dword [0x557128]
mov edx, dword [eax]
call dword [edx + 8]
push 0x45ca20
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 0x28], eax
push 0x45ca2c
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
xor eax, eax
push ebp
push 0x45ca13
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x45ca3c
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 4], eax
push 0x45ca54
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x14], eax
push 0x45ca6c
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x24], eax
push 0x45ca7c
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 8], eax
push 0x45ca98
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0xc], eax
push 0x45caa8
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x10], eax
push 0x45cab8
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x1c], eax
push 0x45cac8
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x20], eax
call int.00458540
test al, al
je 0x45c9d3
push ebp
call fcn.0045c8ac
pop ecx
jmp 0x45c9da
push ebp
call fcn.0045c774
pop ecx
mov edx, 0x45c0a8
mov eax, dword [0x557128]
call fcn.0042134c
cmp byte [ebp - 0x15], 0
jne 0x45c9f6
push ebp
call fcn.0045c164
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45ca1a
cmp dword [ebp - 0x28], 0
je 0x45ca12
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret

Function at 0x45d694
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040515c
push eax
call 0x4077c4
cmp eax, 0xffffffff
je 0x45d6ad
test al, 0x10
jne 0x45d6b1
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x45dd58
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffedc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov ebx, ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x45df0e
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 6], 0
lea edx, [ebp - 5]
mov ecx, 1
mov eax, dword [ebp - 4]
mov edi, dword [eax]
call dword [edi + 0xc]
cmp word [esi + 0x19], 0x1f6
jb 0x45ddba
cmp byte [ebp - 5], 0x80
jb 0x45ddba
and byte [ebp - 5], 0x7f
mov byte [ebp - 6], 1
xor edx, edx
mov dl, byte [ebp - 5]
mov eax, ebx
call fcn.00402db4
xor ecx, ecx
mov cl, byte [ebp - 5]
lea edx, [ebx + 1]
mov eax, dword [ebp - 4]
mov edi, dword [eax]
call dword [edi + 0xc]
cmp word [esi + 0x19], 0x1f4
jb 0x45dee1
cmp byte [esi + 0x3b], 0
je 0x45de1d
mov eax, dword [0x55d9b8]
mov edx, dword [esi + 0x37]
call fcn.004050a8
je 0x45de0c
mov eax, dword [esi + 0x37]
call fcn.00440558
mov eax, 0x55d9b8
mov edx, dword [esi + 0x37]
call fcn.00404cd4
xor ecx, ecx
mov cl, byte [ebx]
lea edx, [ebx + 1]
lea eax, [ebx + 1]
call fcn.004405f8
jmp 0x45de6f
cmp byte [ebx], 0
je 0x45de6f
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00404ee4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.004409d4
mov edx, dword [ebp - 0xc]
mov eax, ebx
mov ecx, 0xff
call fcn.00404f38
lea eax, [ebp - 0x18]
mov edx, ebx
call fcn.00404ee4
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 0x45df24
call fcn.00404fa8
mov edx, dword [ebp - 0x14]
mov eax, ebx
mov ecx, 0xff
call fcn.00404f38
cmp byte [ebp - 6], 0
je 0x45def3
lea eax, [ebp - 0x1c]
mov edx, ebx
call fcn.00404ee4
lea eax, [ebp - 0x1c]
mov edx, 0x45df30
call fcn.00404f64
mov edx, dword [ebp - 0x1c]
mov eax, ebx
mov ecx, 0xff
call fcn.00404f38
lea eax, [ebp - 0x20]
mov edx, ebx
call fcn.00404ee4
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x124]
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0045dd58
lea edx, [ebp - 0x124]
lea eax, [ebp - 0x24]
call fcn.00404ee4
mov edx, dword [ebp - 0x24]
pop eax
call fcn.00404f64
mov edx, dword [ebp - 0x20]
mov eax, ebx
mov ecx, 0xff
call fcn.00404f38
jmp 0x45def3
xor edx, edx
mov dl, byte [ebx]
test edx, edx
jle 0x45def3
lea eax, [ebx + 1]
xor byte [eax], 0x62
inc eax
dec edx
jne 0x45deec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45df15
lea eax, [ebp - 0x24]
mov edx, 7
call fcn.00404ca4
ret

Function at 0x463b00
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, ecx
mov ebp, edx
mov edi, eax
push 0
push 0
push 0xe
push ebp
push edi
call sub.user32.dll_GetDlgItem
push eax
call sub.user32.dll_SendMessageA
mov esi, eax
inc esi
mov eax, ebx
mov edx, esi
call fcn.004052e8
mov eax, ebx
call fcn.004051b4
push eax
push esi
push 0xd
push ebp
push edi
call sub.user32.dll_GetDlgItem
push eax
call sub.user32.dll_SendMessageA
mov eax, dword [ebx]
call fcn.00404f5c
mov edx, eax
mov eax, ebx
mov ecx, 1
call fcn.004051fc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x464ab8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
lea eax, [ebp - 0x100]
push eax
call sub.user32.dll_GetKeyboardState
mov al, byte [ebp - 0xe5]
and al, 0x80
cmp al, 0x80
sete al
mov esp, ebp
pop ebp
ret
Function at 0x46b760
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov dword [esp + 4], ecx
mov dword [esp], edx
mov edi, eax
cmp byte [0x55716c], 0
jne 0x46b7ad
xor esi, esi
mov edx, 0x55e094
mov eax, esi
mov ebx, 8
test al, 1
je 0x46b793
shr eax, 1
xor eax, 0xedb88320
jmp 0x46b795
shr eax, 1
dec ebx
jne 0x46b786
mov dword [edx], eax
inc esi
add edx, 4
cmp esi, 0x100
jne 0x46b77f
mov byte [0x55716c], 1
mov eax, dword [esp + 4]
dec eax
test eax, eax
jl 0x46b7da
inc eax
xor esi, esi
mov edx, dword [esp]
movzx edx, byte [edx + esi]
xor edx, edi
and edx, 0xff
mov edx, dword [edx*4 + 0x55e094]
shr edi, 8
xor edx, edi
mov edi, edx
inc esi
dec eax
jne 0x46b7b9
mov eax, edi
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x46ff28
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x46ff30
push ebx
push esi
mov esi, 0x55d6b8
xor eax, eax
push ebp
push 0x4701af
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
mov byte [0x55d960], 1
mov eax, dword [0x55d9bc]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [0x55d9c0]
mov edx, dword [eax]
call dword [edx + 0x44]
call fcn.0045aad4
call fcn.0046e808
xor eax, eax
push ebp
push 0x470180
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x55e060]
call fcn.0045f8a8
xor eax, eax
push ebp
push 0x47015b
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.0045f974
xor eax, eax
push ebp
push 0x47012d
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, 1
mov eax, dword [esi]
cmp byte [eax + 0x30c], 0
je 0x46ffd6
mov al, 1
call fcn.0046fe68
mov eax, dword [esi]
cmp byte [eax + 0x30c], 0
je 0x46ffd6
push ebp
call fcn.0046f0e4
pop ecx
and bl, al
mov eax, dword [esi]
cmp byte [eax + 0x30d], 0
je 0x470012
mov eax, dword [esi]
cmp byte [eax + 0x30c], 0
je 0x46fff7
mov eax, dword [esi]
cmp byte [eax + 0x2ee], 0
je 0x46fffe
xor eax, eax
call fcn.0046fe68
mov eax, dword [esi]
cmp byte [eax + 0x30d], 0
je 0x470012
push ebp
call fcn.0046fd1c
pop ecx
and bl, al
test bl, bl
jne 0x47002b
mov eax, dword [esi]
test byte [eax + 0x331], 0x10
je 0x47002b
mov eax, dword [0x55d784]
call fcn.0045b038
mov eax, dword [esi]
test byte [eax + 0x2f1], 2
je 0x4700ae
cmp byte [ebp - 0xd], 0
jne 0x4700ae
test bl, bl
je 0x470078
push 0x242040
lea ecx, [ebp - 0x14]
xor edx, edx
mov eax, dword [esi]
call fcn.0042e0a8
mov eax, dword [ebp - 0x14]
call fcn.0040515c
push eax
lea ecx, [ebp - 0x18]
mov dl, 0x90
mov eax, dword [esi]
call fcn.0042e0a8
mov eax, dword [ebp - 0x18]
call fcn.0040515c
push eax
push 0
call sub.user32.dll_MessageBoxA_1
jmp 0x4700ae
push 0x242010
lea ecx, [ebp - 0x1c]
xor edx, edx
mov eax, dword [esi]
call fcn.0042e0a8
mov eax, dword [ebp - 0x1c]
call fcn.0040515c
push eax
lea ecx, [ebp - 0x20]
mov dl, 0x91
mov eax, dword [esi]
call fcn.0042e0a8
mov eax, dword [ebp - 0x20]
call fcn.0040515c
push eax
push 0
call sub.user32.dll_MessageBoxA_1
mov eax, dword [esi]
test byte [eax + 0x331], 0x20
je 0x4700ff
test bl, bl
jne 0x4700ff
lea eax, [ebp - 0x24]
call fcn.0046eed8
mov eax, dword [ebp - 0x24]
call fcn.0040515c
push eax
lea eax, [ebp - 0x28]
call fcn.0045f644
mov eax, dword [ebp - 0x28]
call fcn.0040515c
push eax
call sub.kernel32.dll_MoveFileA
lea eax, [ebp - 0x30]
call fcn.0046eed8
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
call fcn.0040c478
mov eax, dword [ebp - 0x2c]
call fcn.0046ef60
lea eax, [ebp - 0x34]
call fcn.0045f644
mov eax, dword [ebp - 0x34]
call fcn.0045bca8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x470134
lea eax, [ebp - 0x38]
call fcn.0045f7f0
mov eax, dword [ebp - 0x38]
call fcn.0045bca8
ret
Function at 0x471b48
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
push 0x471bec
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
test ebx, ebx
je 0x471bb1
push 0x471bfc
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x471bb1
mov dword [ebp - 0x44], 0x40
lea eax, [ebp - 0x44]
push eax
call dword [ebp - 4]
test eax, eax
je 0x471bb1
mov eax, dword [ebp - 0x3c]
mov dword [edi], eax
mov eax, dword [ebp - 0x38]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x34]
mov dword [esi], eax
mov eax, dword [ebp - 0x30]
mov dword [esi + 4], eax
jmp 0x471be3
mov dword [ebp - 0x64], 0x20
lea eax, [ebp - 0x64]
push eax
call sub.kernel32.dll_GlobalMemoryStatus
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x6c], eax
xor eax, eax
mov dword [ebp - 0x68], eax
fild qword [ebp - 0x6c]
fistp qword [edi]
wait
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x6c], eax
xor eax, eax
mov dword [ebp - 0x68], eax
fild qword [ebp - 0x6c]
fistp qword [esi]
wait
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x472924
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x18], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x472a82
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00404c80
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
mov eax, ebx
call fcn.0040515c
mov edi, eax
push edi
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jbe 0x472a67
mov eax, dword [ebp - 4]
call fcn.0040285c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x472a60
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
push eax
push 0
push edi
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x472a47
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x472a90
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x472a47
push 0x472ab4
lea ecx, [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
movzx eax, word [eax]
mov edx, 4
call fcn.0040bd68
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x20]
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 2]
mov edx, 4
call fcn.0040bd68
push dword [ebp - 0x20]
push 0x472ad0
lea eax, [ebp - 0x18]
mov edx, 4
call fcn.0040501c
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
call fcn.0040515c
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x472a47
cmp dword [ebp - 0xc], 1
jbe 0x472a47
mov ebx, dword [ebp - 0x14]
mov eax, ebx
call fcn.0040c9f8
mov ecx, eax
mov eax, esi
mov edx, ebx
call fcn.00404d70
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x472a67
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
call fcn.0040287c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x472a89
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.00404ca4
ret
Function at 0x472b18
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.0040514c
xor eax, eax
push ebp
push 0x472bf0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404c80
cmp dword [ebp - 4], 0
je 0x472b68
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x472b68
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.004051fc
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 4]
call fcn.0040515c
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x472bda
mov eax, ebx
mov edx, 0x400
call fcn.004052e8
mov eax, dword [ebx]
call fcn.00404f5c
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebx]
call fcn.0040515c
push eax
push edi
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x472bca
mov eax, ebx
mov edx, dword [ebp - 0xc]
call fcn.004052e8
jmp 0x472bd1
mov eax, ebx
call fcn.00404c80
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x472bf7
lea eax, [ebp - 4]
call fcn.00404c80
ret

Function at 0x472c00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.0040514c
mov eax, dword [ebp - 8]
call fcn.0040514c
xor eax, eax
push ebp
push 0x472cd6
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 4], 0
je 0x472c52
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x472c52
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.004051fc
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 4]
call fcn.0040515c
push eax
push ebx
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x472cbb
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.0040515c
mov ebx, eax
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x472cb2
cmp dword [ebp - 0x14], 4
jne 0x472cb2
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x472cdd
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404ca4
ret
Function at 0x473574
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x1c], edx
mov esi, eax
xor eax, eax
push ebp
push 0x47371d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00404c80
lea eax, [ebp - 8]
push eax
push 8
call fcn.00456d58
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x473702
xor eax, eax
push ebp
push 0x4736fb
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 3
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_GetTokenInformation
mov eax, dword [ebp - 0xc]
call fcn.0040285c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4736dd
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 3
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_GetTokenInformation
test eax, eax
je 0x4736c7
mov eax, dword [ebp - 0x10]
mov edi, dword [eax]
dec edi
test edi, edi
jl 0x4736c7
inc edi
xor ebx, ebx
lea eax, [ebx + ebx*2]
mov edx, dword [ebp - 0x10]
add edx, 4
mov ecx, dword [edx + eax*4]
mov dword [ebp - 0x18], ecx
mov ecx, dword [edx + eax*4 + 4]
mov dword [ebp - 0x14], ecx
lea eax, [ebx + ebx*2]
mov edx, dword [ebp - 0x10]
add edx, 4
mov eax, dword [edx + eax*4 + 8]
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
push 0
call sub.advapi32.dll_LookupPrivilegeNameA
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
call fcn.004052e8
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x1c]
call fcn.0040515c
push eax
lea eax, [ebp - 0x18]
push eax
push 0
call sub.advapi32.dll_LookupPrivilegeNameA
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
call fcn.004052e8
push dword [esi]
lea ecx, [ebp - 0x20]
mov edx, 0x1f
mov eax, dword [ebp - 0x1c]
call fcn.00473534
push dword [ebp - 0x20]
push ebp
lea eax, [ebp - 0x24]
call fcn.004734d8
pop ecx
push dword [ebp - 0x24]
push 0x473734
mov eax, esi
mov edx, 4
call fcn.0040501c
inc ebx
dec edi
jne 0x473622
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4736e4
mov eax, dword [ebp - 0x10]
call fcn.0040287c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x473724
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00404ca4
ret
Function at 0x477968
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
xor eax, eax
push ebp
push 0x477a8b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x558da8]
mov eax, dword [eax]
call fcn.0045b2ac
mov ebx, eax
test ebx, ebx
je 0x4779d6
lea edx, [ebp - 4]
mov eax, dword [ebx + 4]
call fcn.0040c594
mov eax, dword [ebp - 4]
call fcn.0040515c
push eax
push 0x477a98
call sub.kernel32.dll_SetEnvironmentVariableA
mov eax, dword [ebx + 8]
call fcn.0040515c
push eax
push 0x477aa8
call sub.kernel32.dll_SetEnvironmentVariableA
mov eax, dword [ebx + 0xc]
call fcn.0040515c
push eax
push 0x477ab8
call sub.kernel32.dll_SetEnvironmentVariableA
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x28]
call fcn.0045b368
mov ebx, eax
test ebx, ebx
je 0x477a2b
lea edx, [ebp - 8]
mov eax, dword [ebx + 4]
call fcn.0040c594
mov eax, dword [ebp - 8]
call fcn.0040515c
push eax
push 0x477ac8
call sub.kernel32.dll_SetEnvironmentVariableA
mov eax, dword [ebx + 8]
call fcn.0040515c
push eax
push 0x477adc
call sub.kernel32.dll_SetEnvironmentVariableA
mov eax, dword [ebx + 0xc]
call fcn.0040515c
push eax
push 0x477af0
call sub.kernel32.dll_SetEnvironmentVariableA
lea edx, [ebp - 0xc]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x2c]
call fcn.0047135c
mov eax, dword [ebp - 0xc]
call fcn.0040515c
push eax
push 0x477b04
call sub.kernel32.dll_SetEnvironmentVariableA
mov eax, dword [0x55d784]
call fcn.0040515c
push eax
push 0x477b10
call sub.kernel32.dll_SetEnvironmentVariableA
push 0x477b1c
push 0x477b20
call sub.kernel32.dll_SetEnvironmentVariableA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x477a92
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404ca4
ret
Function at 0x478f50
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x110], edx
mov dword [ebp - 0x114], edx
mov dword [ebp - 0x108], edx
mov dword [ebp - 0x10c], edx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4790bd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.00404c80
call sub.user32.dll_GetFocus
mov ebx, eax
push ebx
call sub.user32.dll_IsWindowUnicode
test eax, eax
jne 0x479097
lea eax, [ebp - 0x10c]
call fcn.00478ef4
mov eax, dword [ebp - 0x10c]
lea edx, [ebp - 0x108]
call fcn.0040b660
mov eax, dword [ebp - 0x108]
lea edx, [ebp - 4]
call fcn.0040b8d0
mov edx, dword [ebp - 4]
mov eax, 0x4790d4
call fcn.004052a0
test eax, eax
jg 0x478ff1
mov edx, dword [ebp - 4]
mov eax, 0x4790e4
call fcn.004052a0
test eax, eax
jle 0x479005
push 0xfffffffffffffff0
push ebx
call sub.user32.dll_GetWindowLongA
test eax, 4
jg 0x479097
mov esi, pe_nt_image_headers32
push esi
lea eax, [ebp - 0x104]
push eax
push ebx
call sub.user32.dll_GetWindowTextA
test eax, eax
jle 0x479097
mov eax, edi
lea edx, [ebp - 0x104]
mov ecx, pe_nt_image_headers32
call fcn.00404ef0
lea eax, [ebp - 0x114]
call fcn.00478ef4
mov eax, dword [ebp - 0x114]
lea edx, [ebp - 0x110]
call fcn.0040b660
mov eax, dword [ebp - 0x110]
lea edx, [ebp - 4]
call fcn.0040b8d0
mov edx, dword [ebp - 4]
mov eax, 0x4790d4
call fcn.004052a0
test eax, eax
jle 0x479097
push 0xfffffffffffffff0
push ebx
call sub.user32.dll_GetWindowLongA
test al, 0x20
je 0x479097
mov eax, dword [edi]
call fcn.00404f5c
mov ebx, eax
test ebx, ebx
jbe 0x479097
mov esi, 1
mov eax, edi
call fcn.004051b4
mov byte [eax + esi - 1], 0x2a
inc esi
dec ebx
jne 0x479087
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4790c4
lea eax, [ebp - 0x114]
mov edx, 4
call fcn.00404ca4
lea eax, [ebp - 4]
call fcn.00404c80
ret

Function at 0x47c634
Capabilities:
Terminate thread

Disassembly:
call fcn.0042d508
test al, al
jne 0x47c691
cmp dword [0x55d758], 0
je 0x47c691
mov eax, dword [0x55d758]
call fcn.00428144
mov eax, dword [0x55a668]
call fcn.0045b37c
test al, al
jne 0x47c670
push 0xffffffffffffffff
mov eax, dword [0x55d758]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_WaitForSingleObject
jmp 0x47c680
push 1
mov eax, dword [0x55d758]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_TerminateThread
mov eax, dword [0x55d758]
call fcn.00403dac
xor eax, eax
mov dword [0x55d758], eax
ret