joyce8/EMBER2024-capa huggingface dataset:
Function at 0x484974
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
xor edx, edx
mov dword [ebp - 0x2c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x484b0b
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
mov ecx, ebx
mov dl, 1
mov eax, dword [0x47d95c]
call fcn.00484708
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x484aee
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov ecx, 2
mov eax, dword [ebp - 0x10]
call fcn.00484780
test al, al
je 0x484ad8
cmp word [ebp - 4], 0x5a4d
jne 0x484ad8
push 0
push 0x3c
mov eax, dword [ebp - 0x10]
call fcn.004352b4
lea edx, [ebp - 8]
mov ecx, 4
mov eax, dword [ebp - 0x10]
call fcn.00484780
test al, al
je 0x484ad8
cmp dword [ebp - 8], 0
je 0x484ad8
mov eax, dword [ebp - 8]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x10]
call fcn.004352b4
lea edx, [ebp - 0xc]
mov ecx, 4
mov eax, dword [ebp - 0x10]
call fcn.00484780
test al, al
je 0x484ad8
cmp dword [ebp - 0xc], 0x4550
jne 0x484ad8
lea edx, [ebp - 0x28]
mov ecx, 0x14
mov eax, dword [ebp - 0x10]
call fcn.00484780
test al, al
je 0x484ad4
test byte [ebp - 0x15], 0x20
je 0x484ad4
push 2
push 0
lea edx, [ebp - 0x2c]
mov eax, ebx
call fcn.0047f448
mov eax, dword [ebp - 0x2c]
call fcn.00406f24
push eax
call sub.kernel32.dll_LoadLibraryExA
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x484acd
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xa
push 0x484b1c
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_FindResourceA
test eax, eax
je 0x484ab2
push 0xa
push 0x484b28
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_FindResourceA
test eax, eax
je 0x484ab2
mov byte [ebp - 1], 2
jmp 0x484ab6
mov byte [ebp - 1], 3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x484ad8
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x484af5
mov eax, dword [ebp - 0x10]
call fcn.00405374
ret
Function at 0x4852d8
Capabilities:
Check if file exists
Delete file
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 0x485344
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00407700
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
mov ebx, eax
cmp ebx, 0xffffffff
je 0x485310
and ebx, 0xfffffffe
push ebx
push edi
call sub.kernel32.dll_SetFileAttributesW
mov edx, edi
lea eax, [ebp - 4]
call fcn.00407830
mov eax, dword [ebp - 4]
call fcn.00407700
push eax
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48534b
lea eax, [ebp - 4]
call fcn.00407664
ret
Function at 0x487b5c
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 0x487d2b
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 0x487bbe
cmp byte [ebp - 5], 0x80
jb 0x487bbe
and byte [ebp - 5], 0x7f
mov byte [ebp - 6], 1
movzx edx, byte [ebp - 5]
mov eax, ebx
call fcn.0040471c
movzx ecx, 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 0x487cff
cmp byte [esi + 0x3b], 0
je 0x487c1e
mov eax, dword [0x532088]
mov edx, dword [esi + 0x37]
call fcn.00406ea0
je 0x487c0e
mov eax, dword [esi + 0x37]
call fcn.0045f274
mov eax, 0x532088
mov edx, dword [esi + 0x37]
call fcn.00406734
movzx ecx, byte [ebx]
lea edx, [ebx + 1]
lea eax, [ebx + 1]
call fcn.0045f398
jmp 0x487c7a
cmp byte [ebx], 0
je 0x487c7a
lea eax, [ebp - 0x10]
mov edx, ebx
mov ecx, 0
call fcn.00406a48
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.0045f808
mov edx, dword [ebp - 0xc]
mov eax, ebx
mov ecx, 0xff
call fcn.00406ab0
lea eax, [ebp - 0x18]
mov edx, ebx
mov ecx, 0
call fcn.00406a48
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 0x487d48
call fcn.00406bd0
mov edx, dword [ebp - 0x14]
mov eax, ebx
mov ecx, 0xff
call fcn.00406ab0
cmp byte [ebp - 6], 0
je 0x487d10
lea eax, [ebp - 0x1c]
mov edx, ebx
mov ecx, 0
call fcn.00406a48
lea eax, [ebp - 0x1c]
mov edx, 0x487d58
call fcn.00406b08
mov edx, dword [ebp - 0x1c]
mov eax, ebx
mov ecx, 0xff
call fcn.00406ab0
lea eax, [ebp - 0x20]
mov edx, ebx
mov ecx, 0
call fcn.00406a48
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x124]
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00487b5c
lea edx, [ebp - 0x124]
lea eax, [ebp - 0x24]
mov ecx, 0
call fcn.00406a48
mov edx, dword [ebp - 0x24]
pop eax
call fcn.00406b08
mov edx, dword [ebp - 0x20]
mov eax, ebx
mov ecx, 0xff
call fcn.00406ab0
jmp 0x487d10
movzx edx, byte [ebx]
test edx, edx
jle 0x487d10
lea eax, [ebx + 1]
xor byte [eax], 0x62
inc eax
dec edx
jne 0x487d09
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x487d32
lea eax, [ebp - 0x24]
mov edx, 7
call fcn.00406704
ret
Function at 0x48e230
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
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
xor ecx, ecx
mov edx, esi
call fcn.00407208
mov eax, ebx
call fcn.00406f9c
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]
mov dword [esp], eax
mov eax, dword [esp]
test eax, eax
je 0x48e285
sub eax, 4
mov eax, dword [eax]
mov edx, ebx
mov ecx, 1
xchg edx, eax
call fcn.00407008
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x48f388
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
movzx eax, byte [ebp - 0xe5]
and al, 0x80
cmp al, 0x80
sete al
mov esp, ebp
pop ebp
ret
Function at 0x496e60
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 [0x528a40], 0
jne 0x496ead
xor esi, esi
mov edx, 0x532768
mov eax, esi
mov ebx, 8
test al, 1
je 0x496e93
shr eax, 1
xor eax, 0xedb88320
jmp 0x496e95
shr eax, 1
dec ebx
jne 0x496e86
mov dword [edx], eax
inc esi
add edx, 4
cmp esi, 0x100
jne 0x496e7f
mov byte [0x528a40], 1
mov eax, dword [esp + 4]
dec eax
test eax, eax
jl 0x496eda
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 + 0x532768]
shr edi, 8
xor edx, edi
mov edi, edx
inc esi
dec eax
jne 0x496eb9
mov eax, edi
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x49c068
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xb
push 0
push 0
dec ecx
jne 0x49c070
push ebx
push esi
mov esi, 0x531d88
xor eax, eax
push ebp
push 0x49c38b
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
mov byte [0x532030], 1
mov eax, dword [0x53208c]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [0x532090]
mov edx, dword [eax]
call dword [edx + 0x44]
call fcn.00483f0c
call fcn.0049a4f0
xor eax, eax
push ebp
push 0x49c307
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x532734]
call fcn.00489a60
xor eax, eax
push ebp
push 0x49c2d7
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00489b64
xor eax, eax
push ebp
push 0x49c29e
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, 1
mov eax, dword [esi]
cmp byte [eax + 0x30c], 0
je 0x49c116
mov al, 1
call fcn.0049bf88
mov eax, dword [esi]
cmp byte [eax + 0x30c], 0
je 0x49c116
push ebp
call fcn.0049af90
pop ecx
and bl, al
mov eax, dword [esi]
cmp byte [eax + 0x30d], 0
je 0x49c152
mov eax, dword [esi]
cmp byte [eax + 0x30c], 0
je 0x49c137
mov eax, dword [esi]
cmp byte [eax + 0x2ee], 0
je 0x49c13e
xor eax, eax
call fcn.0049bf88
mov eax, dword [esi]
cmp byte [eax + 0x30d], 0
je 0x49c152
push ebp
call fcn.0049be38
pop ecx
and bl, al
test bl, bl
jne 0x49c16b
mov eax, dword [esi]
test byte [eax + 0x331], 0x10
je 0x49c16b
mov eax, dword [0x531e54]
call fcn.004844d4
mov eax, dword [esi]
test byte [eax + 0x2f1], 2
je 0x49c1ee
cmp byte [ebp - 0xd], 0
jne 0x49c1ee
test bl, bl
je 0x49c1b8
push 0x242040
lea ecx, [ebp - 0x14]
xor edx, edx
mov eax, dword [esi]
call fcn.00447d84
mov eax, dword [ebp - 0x14]
call fcn.00406f24
push eax
lea ecx, [ebp - 0x18]
mov dl, 0x90
mov eax, dword [esi]
call fcn.00447d84
mov eax, dword [ebp - 0x18]
call fcn.00406f24
push eax
push 0
call sub.user32.dll_MessageBoxA_1
jmp 0x49c1ee
push 0x242010
lea ecx, [ebp - 0x1c]
xor edx, edx
mov eax, dword [esi]
call fcn.00447d84
mov eax, dword [ebp - 0x1c]
call fcn.00406f24
push eax
lea ecx, [ebp - 0x20]
mov dl, 0x91
mov eax, dword [esi]
call fcn.00447d84
mov eax, dword [ebp - 0x20]
call fcn.00406f24
push eax
push 0
call sub.user32.dll_MessageBoxA_1
mov eax, dword [esi]
test byte [eax + 0x331], 0x20
je 0x49c25a
test bl, bl
jne 0x49c25a
lea eax, [ebp - 0x24]
call fcn.0049acf8
mov eax, dword [ebp - 0x24]
call fcn.00406f24
push eax
lea eax, [ebp - 0x28]
call fcn.00489774
mov eax, dword [ebp - 0x28]
call fcn.00406f24
push eax
call sub.kernel32.dll_MoveFileA
lea eax, [ebp - 0x38]
call fcn.0049acf8
mov edx, dword [ebp - 0x38]
lea eax, [ebp - 0x34]
call fcn.004078a0
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x30]
call fcn.00412b30
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
mov ecx, 0
call fcn.004078c8
mov eax, dword [ebp - 0x2c]
call fcn.0049adc8
lea eax, [ebp - 0x40]
call fcn.00489774
mov edx, dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
call fcn.004078a0
mov eax, dword [ebp - 0x3c]
call fcn.004852d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49c2a5
lea eax, [ebp - 0x48]
call fcn.00489960
mov edx, dword [ebp - 0x48]
lea eax, [ebp - 0x44]
call fcn.004078a0
mov eax, dword [ebp - 0x44]
call fcn.004852d8
ret
Function at 0x49e414
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 0x49e4b8
call sub.kernel32.dll_GetModuleHandleA
mov ebx, eax
test ebx, ebx
je 0x49e47d
push 0x49e4c8
push ebx
call fcn.0040c9dc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x49e47d
mov dword [ebp - 0x44], 0x40
lea eax, [ebp - 0x44]
push eax
call dword [ebp - 4]
test eax, eax
je 0x49e47d
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 0x49e4af
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 0x49f510
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x49f68b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004066e0
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
mov eax, ebx
call fcn.00406f24
mov edi, eax
push edi
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x49f668
mov eax, dword [ebp - 8]
call fcn.00404214
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x49f661
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push edi
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x49f648
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x49f69c
mov eax, dword [ebp - 0x14]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x49f648
push 0x49f6c4
lea ecx, [ebp - 0x20]
mov eax, dword [ebp - 0x18]
movzx eax, word [eax]
mov edx, 4
call fcn.004122c0
push dword [ebp - 0x20]
lea ecx, [ebp - 0x24]
mov eax, dword [ebp - 0x18]
movzx eax, word [eax + 2]
mov edx, 4
call fcn.004122c0
push dword [ebp - 0x24]
push 0x49f6f8
lea eax, [ebp - 0x1c]
mov edx, 4
call fcn.00407c3c
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 4]
mov ecx, 0
call fcn.004078c8
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
call fcn.00406f24
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x49f648
cmp dword [ebp - 0x10], 1
jbe 0x49f648
push 0
mov ebx, dword [ebp - 0x18]
mov eax, ebx
call fcn.00413264
mov ecx, eax
mov eax, esi
mov edx, ebx
call fcn.00406818
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49f668
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
call fcn.00404230
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49f692
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.0040766c
lea eax, [ebp - 4]
call fcn.004066e0
ret
Function at 0x49f750
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.00406f14
xor eax, eax
push ebp
push 0x49f839
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.004066e0
cmp dword [ebp - 4], 0
je 0x49f7a0
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x49f7a0
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.00407008
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 4]
call fcn.00406f24
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x49f823
mov eax, ebx
xor ecx, ecx
mov edx, 0x400
call fcn.00407208
mov eax, dword [ebx]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x49f7dd
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebx]
call fcn.00406f24
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x49f813
mov eax, ebx
xor ecx, ecx
mov edx, dword [ebp - 0x10]
call fcn.00407208
jmp 0x49f81a
mov eax, ebx
call fcn.004066e0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49f840
lea eax, [ebp - 4]
call fcn.004066e0
ret

Function at 0x49f848
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.00406f14
mov eax, dword [ebp - 8]
call fcn.00406f14
xor eax, eax
push ebp
push 0x49f91e
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 4], 0
je 0x49f89a
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x49f89a
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.00407008
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 4]
call fcn.00406f24
push eax
push ebx
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x49f903
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00406f24
mov ebx, eax
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x49f8fa
cmp dword [ebp - 0x14], 4
jne 0x49f8fa
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
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 0x49f925
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406704
ret
Function at 0x4a04c8
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4a067d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004066e0
lea eax, [ebp - 0xc]
push eax
push 8
call fcn.0047f5ec
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x4a065a
xor eax, eax
push ebp
push 0x4a0653
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 3
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_GetTokenInformation
mov eax, dword [ebp - 0x10]
call fcn.00404214
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x4a0635
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
push 3
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_GetTokenInformation
test eax, eax
je 0x4a061f
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
dec edi
test edi, edi
jl 0x4a061f
inc edi
xor ebx, ebx
lea eax, [ebx + ebx*2]
mov edx, dword [ebp - 0x14]
add edx, 4
mov ecx, dword [edx + eax*4]
mov dword [ebp - 0x20], ecx
mov ecx, dword [edx + eax*4 + 4]
mov dword [ebp - 0x1c], ecx
lea eax, [ebx + ebx*2]
mov edx, dword [ebp - 0x14]
add edx, 4
mov eax, dword [edx + eax*4 + 8]
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0x20]
push eax
push 0
call sub.advapi32.dll_LookupPrivilegeNameW
lea eax, [ebp - 8]
xor ecx, ecx
mov edx, dword [ebp - 0x10]
call fcn.00407208
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.00406f24
push eax
lea eax, [ebp - 0x20]
push eax
push 0
call sub.advapi32.dll_LookupPrivilegeNameA
lea eax, [ebp - 8]
xor ecx, ecx
mov edx, dword [ebp - 0x10]
call fcn.00407208
push dword [esi]
lea ecx, [ebp - 0x24]
mov edx, 0x1f
mov eax, dword [ebp - 8]
call fcn.004a042c
push dword [ebp - 0x24]
push ebp
lea eax, [ebp - 0x28]
call fcn.004a03c8
pop ecx
push dword [ebp - 0x28]
push 0x4a0698
mov eax, esi
mov edx, 4
call fcn.00406cc0
inc ebx
dec edi
jne 0x4a0576
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a063c
mov eax, dword [ebp - 0x14]
call fcn.00404230
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a0684
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.00406704
lea eax, [ebp - 8]
call fcn.004066e0
ret
Function at 0x4a617c
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
xor eax, eax
push ebp
push 0x4a62be
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x529ac4]
mov eax, dword [eax]
call fcn.004847c4
mov ebx, eax
test ebx, ebx
je 0x4a61f6
lea eax, [ebp - 8]
mov edx, dword [ebx + 4]
call fcn.004078a0
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call fcn.00412d44
mov eax, dword [ebp - 4]
call fcn.00407700
push eax
push 0x4a62cc
call sub.kernel32.dll_SetEnvironmentVariableW
mov eax, dword [ebx + 8]
call fcn.00406f24
push eax
push 0x4a62ec
call sub.kernel32.dll_SetEnvironmentVariableA
mov eax, dword [ebx + 0xc]
call fcn.00406f24
push eax
push 0x4a62fc
call sub.kernel32.dll_SetEnvironmentVariableA
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x3c]
call fcn.00484880
mov ebx, eax
test ebx, ebx
je 0x4a6256
lea eax, [ebp - 0x10]
mov edx, dword [ebx + 4]
call fcn.004078a0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.00412d44
mov eax, dword [ebp - 0xc]
call fcn.00407700
push eax
push 0x4a630c
call sub.kernel32.dll_SetEnvironmentVariableW
mov eax, dword [ebx + 8]
call fcn.00406f24
push eax
push 0x4a6330
call sub.kernel32.dll_SetEnvironmentVariableA
mov eax, dword [ebx + 0xc]
call fcn.00406f24
push eax
push 0x4a6344
call sub.kernel32.dll_SetEnvironmentVariableA
lea edx, [ebp - 0x14]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x40]
call fcn.0049da40
mov eax, dword [ebp - 0x14]
call fcn.00406f24
push eax
push 0x4a6358
call sub.kernel32.dll_SetEnvironmentVariableA
mov eax, dword [0x531e54]
call fcn.00406f24
push eax
push 0x4a6364
call sub.kernel32.dll_SetEnvironmentVariableA
push 0x4a6370
push 0x4a6374
call sub.kernel32.dll_SetEnvironmentVariableA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a62c5
lea eax, [ebp - 0x14]
call fcn.004066e0
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.0040766c
ret
Function at 0x4ab48c
Capabilities:
Terminate thread

Disassembly:
call fcn.00446f90
test al, al
jne 0x4ab4e9
cmp dword [0x531e28], 0
je 0x4ab4e9
mov eax, dword [0x531e28]
call fcn.0043d588
mov eax, dword [0x52cc44]
call fcn.00484894
test al, al
jne 0x4ab4c8
push 0xffffffffffffffff
mov eax, dword [0x531e28]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_WaitForSingleObject
jmp 0x4ab4d8
push 1
mov eax, dword [0x531e28]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_TerminateThread
mov eax, dword [0x531e28]
call fcn.00405374
xor eax, eax
mov dword [0x531e28], eax
ret

Function at 0x4ac4fc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
call fcn.00486490
mov edi, eax
mov dl, 1
mov eax, dword [0x426bb0]
call fcn.00405344
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x4ac612
push dword fs:[edx]
mov dword fs:[edx], esp
mov al, 0x10
call fcn.004886cc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4ac542
mov dword [ebp - 0x14], 1
jmp 0x4ac54d
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.004317c4
mov al, 0x13
call fcn.004886cc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4ac566
mov dword [ebp - 0xc], 1
jmp 0x4ac571
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.004317c4
mov al, 0x11
call fcn.004886cc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4ac58a
mov dword [ebp - 0x10], 1
jmp 0x4ac595
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.004317c4
mov esi, dword [edi]
dec esi
test esi, esi
jl 0x4ac5c3
inc esi
xor ebx, ebx
mov eax, dword [edi + 4]
mov eax, dword [eax + ebx*8 + 4]
cmp eax, dword [ebp - 0x10]
je 0x4ac5bf
cmp eax, dword [ebp - 0xc]
je 0x4ac5bf
cmp eax, dword [ebp - 0x14]
je 0x4ac5bf
mov edx, eax
mov eax, dword [ebp - 8]
call fcn.004317c4
inc ebx
dec esi
jne 0x4ac59f
mov esi, dword [edi]
dec esi
test esi, esi
jl 0x4ac5fc
inc esi
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push 0x40
push 4
mov eax, dword [edi + 4]
lea eax, [eax + ebx*8 + 4]
call fcn.004ac398
push eax
call sub.kernel32.dll_VirtualProtect
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.00431984
mov edx, dword [edi + 4]
mov dword [edx + ebx*8 + 4], eax
inc ebx
dec esi
jne 0x4ac5cd
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ac619
mov eax, dword [ebp - 8]
call fcn.00405374
ret