joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45e4ec
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 0x45e54e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00404ba0
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x45e524
and ebx, 0xfffffffe
push ebx
push edi
call sub.kernel32.dll_SetFileAttributesA
mov edx, edi
lea eax, [ebp - 4]
call fcn.004048bc
mov eax, dword [ebp - 4]
call fcn.00409058
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45e555
lea eax, [ebp - 4]
call fcn.004046c4
ret

Function at 0x45f1cc
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 [0x491220]
call fcn.0047e840
xor eax, eax
push ebp
push 0x45f30a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x491220]
mov edx, dword [eax]
call dword [edx + 8]
push 0x45f318
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 0x28], eax
push 0x45f324
call sub.kernel32.dll_GetModuleHandleA_1
mov ebx, eax
xor eax, eax
push ebp
push 0x45f2eb
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x45f334
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 4], eax
push 0x45f34c
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x14], eax
push 0x45f364
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x24], eax
push 0x45f374
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 8], eax
push 0x45f390
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0xc], eax
push 0x45f3a0
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x10], eax
push 0x45f3b0
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x1c], eax
push 0x45f3c0
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x20], eax
call fcn.0045ad1c
test al, al
je 0x45f2ab
push ebp
call fcn.0045f16c
pop ecx
jmp 0x45f2b2
push ebp
call fcn.0045f030
pop ecx
mov edx, 0x45e928
mov eax, dword [0x491220]
call fcn.004185d4
cmp byte [ebp - 0x15], 0
jne 0x45f2ce
push ebp
call fcn.0045e9e4
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45f2f2
cmp dword [ebp - 0x28], 0
je 0x45f2ea
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret
Function at 0x45f55c
Capabilities:
Print debug messages

Disassembly:
add esp, 0xfffffff8
mov eax, esp
xor ecx, ecx
mov edx, 4
call fcn.00403088
mov eax, dword [0x491624]
add eax, 0x80
mov dword [esp + 4], eax
mov edx, 4
mov eax, dword [esp + 4]
call fcn.0042f740
test al, al
je 0x45f5ac
mov eax, dword [esp + 4]
mov eax, dword [eax + 8]
mov edx, 4
call fcn.0042f740
test al, al
je 0x45f5ac
mov eax, dword [esp + 4]
mov eax, dword [eax + 8]
mov dword [esp], eax
mov eax, dword [esp]
call fcn.0045f528
test al, al
jne 0x45f5d6
push 0x45f5dc
call sub.kernel32.dll_OutputDebugStringA
mov ecx, 0x100e
mov edx, 0x45f5f8
mov eax, 0x45f648
call fcn.00404620
mov eax, dword [esp]
pop ecx
pop edx
ret
Function at 0x460798
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 0x46094e
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 0x4607fa
cmp byte [ebp - 5], 0x80
jb 0x4607fa
and byte [ebp - 5], 0x7f
mov byte [ebp - 6], 1
xor edx, edx
mov dl, byte [ebp - 5]
mov eax, ebx
call fcn.00402bf0
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 0x460921
cmp byte [esi + 0x3b], 0
je 0x46085d
mov eax, dword [0x495b48]
mov edx, dword [esi + 0x37]
call fcn.00404aec
je 0x46084c
mov eax, dword [esi + 0x37]
call fcn.00443298
mov eax, 0x495b48
mov edx, dword [esi + 0x37]
call fcn.00404718
xor ecx, ecx
mov cl, byte [ebx]
lea edx, [ebx + 1]
lea eax, [ebx + 1]
call fcn.00443338
jmp 0x4608af
cmp byte [ebx], 0
je 0x4608af
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00404928
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.0044379c
mov edx, dword [ebp - 0xc]
mov eax, ebx
mov ecx, 0xff
call fcn.0040497c
lea eax, [ebp - 0x18]
mov edx, ebx
call fcn.00404928
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 0x460964
call fcn.004049ec
mov edx, dword [ebp - 0x14]
mov eax, ebx
mov ecx, 0xff
call fcn.0040497c
cmp byte [ebp - 6], 0
je 0x460933
lea eax, [ebp - 0x1c]
mov edx, ebx
call fcn.00404928
lea eax, [ebp - 0x1c]
mov edx, 0x460970
call fcn.004049a8
mov edx, dword [ebp - 0x1c]
mov eax, ebx
mov ecx, 0xff
call fcn.0040497c
lea eax, [ebp - 0x20]
mov edx, ebx
call fcn.00404928
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x124]
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00460798
lea edx, [ebp - 0x124]
lea eax, [ebp - 0x24]
call fcn.00404928
mov edx, dword [ebp - 0x24]
pop eax
call fcn.004049a8
mov edx, dword [ebp - 0x20]
mov eax, ebx
mov ecx, 0xff
call fcn.0040497c
jmp 0x460933
xor edx, edx
mov dl, byte [ebx]
test edx, edx
jle 0x460933
lea eax, [ebx + 1]
xor byte [eax], 0x62
inc eax
dec edx
jne 0x46092c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x460955
lea eax, [ebp - 0x24]
mov edx, 7
call fcn.004046e8
ret

Function at 0x466bd0
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.00404d2c
mov eax, ebx
call fcn.00404bf8
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.004049a0
mov edx, eax
mov eax, ebx
mov ecx, 1
call fcn.00404c40
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x467c20
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 0x4699a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe7c
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x180], ecx
mov dword [ebp - 0x184], ecx
mov esi, edx
lea edi, [ebp - 0x17c]
mov ecx, 0x5e
rep movsd dword es:[edi], dword [esi]
mov edi, eax
xor eax, eax
push ebp
push 0x469aaf
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.0045f3d0
mov ebx, eax
mov eax, ebx
call fcn.0045d69c
test al, al
jne 0x4699ef
xor ebx, ebx
jmp 0x469a1c
push 0x469ac0
push 0x469adc
call sub.kernel32.dll_GetModuleHandleA_1
push eax
call sub.kernel32.dll_GetProcAddress_1
mov esi, eax
mov eax, dword [ebp + 8]
mov dword [eax - 4], esi
mov eax, dword [ebp + 8]
test esi, esi
je 0x469a1c
push ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call eax
push 0
push 0x80
push 3
push 0
push 1
push 0x40000000
push 0x469af0
push edi
mov eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x184]
call fcn.004089f4
push dword [ebp - 0x184]
lea eax, [ebp - 0x180]
mov edx, 3
call fcn.00404a60
mov eax, dword [ebp - 0x180]
call fcn.00404ba0
push eax
call sub.kernel32.dll_CreateFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x469a91
push 0
lea eax, [ebp - 4]
push eax
push 0x178
lea eax, [ebp - 0x17c]
push eax
push ebx
call sub.kernel32.dll_WriteFile_1
push ebx
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x469ab6
lea eax, [ebp - 0x184]
mov edx, 2
call fcn.004046e8
ret

Function at 0x46e944
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 [0x491264], 0
jne 0x46e991
xor esi, esi
mov edx, 0x496224
mov eax, esi
mov ebx, 8
test al, 1
je 0x46e977
shr eax, 1
xor eax, 0xedb88320
jmp 0x46e979
shr eax, 1
dec ebx
jne 0x46e96a
mov dword [edx], eax
inc esi
add edx, 4
cmp esi, 0x100
jne 0x46e963
mov byte [0x491264], 1
mov eax, dword [esp + 4]
dec eax
test eax, eax
jl 0x46e9be
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 + 0x496224]
shr edi, 8
xor edx, edi
mov edi, edx
inc esi
dec eax
jne 0x46e99d
mov eax, edi
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x473108
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x473110
push ebx
push esi
mov esi, 0x495848
xor eax, eax
push ebp
push 0x47338f
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
mov byte [0x495af0], 1
mov eax, dword [0x495b4c]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [0x495b50]
mov edx, dword [eax]
call dword [edx + 0x44]
call fcn.0045d2c0
call fcn.004719e8
xor eax, eax
push ebp
push 0x473360
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4961f0]
call fcn.004627ac
xor eax, eax
push ebp
push 0x47333b
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00462878
xor eax, eax
push ebp
push 0x47330d
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, 1
mov eax, dword [esi]
cmp byte [eax + 0x30c], 0
je 0x4731b6
mov al, 1
call fcn.00473048
mov eax, dword [esi]
cmp byte [eax + 0x30c], 0
je 0x4731b6
push ebp
call fcn.004722c4
pop ecx
and bl, al
mov eax, dword [esi]
cmp byte [eax + 0x30d], 0
je 0x4731f2
mov eax, dword [esi]
cmp byte [eax + 0x30c], 0
je 0x4731d7
mov eax, dword [esi]
cmp byte [eax + 0x2ee], 0
je 0x4731de
xor eax, eax
call fcn.00473048
mov eax, dword [esi]
cmp byte [eax + 0x30d], 0
je 0x4731f2
push ebp
call fcn.00472efc
pop ecx
and bl, al
test bl, bl
jne 0x47320b
mov eax, dword [esi]
test byte [eax + 0x331], 0x10
je 0x47320b
mov eax, dword [0x495914]
call fcn.0045d824
mov eax, dword [esi]
test byte [eax + 0x2f1], 2
je 0x47328e
cmp byte [ebp - 0xd], 0
jne 0x47328e
test bl, bl
je 0x473258
push 0x242040
lea ecx, [ebp - 0x14]
xor edx, edx
mov eax, dword [esi]
call fcn.00430a50
mov eax, dword [ebp - 0x14]
call fcn.00404ba0
push eax
lea ecx, [ebp - 0x18]
mov dl, 0x90
mov eax, dword [esi]
call fcn.00430a50
mov eax, dword [ebp - 0x18]
call fcn.00404ba0
push eax
push 0
call sub.user32.dll_MessageBoxA_1
jmp 0x47328e
push 0x242010
lea ecx, [ebp - 0x1c]
xor edx, edx
mov eax, dword [esi]
call fcn.00430a50
mov eax, dword [ebp - 0x1c]
call fcn.00404ba0
push eax
lea ecx, [ebp - 0x20]
mov dl, 0x91
mov eax, dword [esi]
call fcn.00430a50
mov eax, dword [ebp - 0x20]
call fcn.00404ba0
push eax
push 0
call sub.user32.dll_MessageBoxA_1
mov eax, dword [esi]
test byte [eax + 0x331], 0x20
je 0x4732df
test bl, bl
jne 0x4732df
lea eax, [ebp - 0x24]
call fcn.004720b8
mov eax, dword [ebp - 0x24]
call fcn.00404ba0
push eax
lea eax, [ebp - 0x28]
call fcn.00462548
mov eax, dword [ebp - 0x28]
call fcn.00404ba0
push eax
call sub.kernel32.dll_MoveFileA
lea eax, [ebp - 0x30]
call fcn.004720b8
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
call fcn.004091b0
mov eax, dword [ebp - 0x2c]
call fcn.00472140
lea eax, [ebp - 0x34]
call fcn.00462548
mov eax, dword [ebp - 0x34]
call fcn.0045e4ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x473314
lea eax, [ebp - 0x38]
call fcn.004626f4
mov eax, dword [ebp - 0x38]
call fcn.0045e4ec
ret
Function at 0x474d74
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 0x474e18
call sub.kernel32.dll_GetModuleHandleA_1
mov ebx, eax
test ebx, ebx
je 0x474ddd
push 0x474e28
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x474ddd
mov dword [ebp - 0x44], 0x40
lea eax, [ebp - 0x44]
push eax
call dword [ebp - 4]
test eax, eax
je 0x474ddd
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 0x474e0f
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 0x475b90
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 0x475cee
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004046c4
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
mov eax, ebx
call fcn.00404ba0
mov edi, eax
push edi
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jbe 0x475cd3
mov eax, dword [ebp - 4]
call fcn.004084ac
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x475ccc
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 0x475cb3
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x475cfc
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x475cb3
push 0x475d20
lea ecx, [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
movzx eax, word [eax]
mov edx, 4
call fcn.00408a1c
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x20]
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 2]
mov edx, 4
call fcn.00408a1c
push dword [ebp - 0x20]
push 0x475d3c
lea eax, [ebp - 0x18]
mov edx, 4
call fcn.00404a60
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.00404ba0
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x475cb3
cmp dword [ebp - 0xc], 1
jbe 0x475cb3
mov ebx, dword [ebp - 0x14]
mov eax, ebx
call fcn.00409734
mov ecx, eax
mov eax, esi
mov edx, ebx
call fcn.004047b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x475cd3
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
call fcn.00402718
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x475cf5
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.004046e8
ret
Function at 0x475d84
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.00404b90
xor eax, eax
push ebp
push 0x475e5c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.004046c4
cmp dword [ebp - 4], 0
je 0x475dd4
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x475dd4
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.00404c40
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 4]
call fcn.00404ba0
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x475e46
mov eax, ebx
mov edx, 0x400
call fcn.00404d2c
mov eax, dword [ebx]
call fcn.004049a0
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.00404ba0
push eax
push edi
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x475e36
mov eax, ebx
mov edx, dword [ebp - 0xc]
call fcn.00404d2c
jmp 0x475e3d
mov eax, ebx
call fcn.004046c4
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 0x475e63
lea eax, [ebp - 4]
call fcn.004046c4
ret

Function at 0x475e6c
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.00404b90
mov eax, dword [ebp - 8]
call fcn.00404b90
xor eax, eax
push ebp
push 0x475f42
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 4], 0
je 0x475ebe
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x475ebe
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.00404c40
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 4]
call fcn.00404ba0
push eax
push ebx
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x475f27
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00404ba0
mov ebx, eax
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x475f1e
cmp dword [ebp - 0x14], 4
jne 0x475f1e
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 0x475f49
lea eax, [ebp - 8]
mov edx, 2
call fcn.004046e8
ret
Function at 0x4767e0
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 0x476989
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004046c4
lea eax, [ebp - 8]
push eax
push 8
call fcn.00459764
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x47696e
xor eax, eax
push ebp
push 0x476967
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.004084ac
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x476949
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 0x476933
mov eax, dword [ebp - 0x10]
mov edi, dword [eax]
dec edi
test edi, edi
jl 0x476933
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.00404d2c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x1c]
call fcn.00404ba0
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.00404d2c
push dword [esi]
lea ecx, [ebp - 0x20]
mov edx, 0x1f
mov eax, dword [ebp - 0x1c]
call fcn.004767a0
push dword [ebp - 0x20]
push ebp
lea eax, [ebp - 0x24]
call fcn.00476744
pop ecx
push dword [ebp - 0x24]
push 0x4769a0
mov eax, esi
mov edx, 4
call fcn.00404a60
inc ebx
dec edi
jne 0x47688e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x476950
mov eax, dword [ebp - 0x10]
call fcn.00402718
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x476990
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.004046e8
ret
Function at 0x47acbc
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
xor eax, eax
push ebp
push 0x47adf6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x491430]
mov eax, dword [eax]
call fcn.0045da98
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x47ad35
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.00409278
mov eax, dword [ebp - 8]
call fcn.00404ba0
push eax
push 0x47ae04
call sub.kernel32.dll_SetEnvironmentVariableA
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.00404ba0
push eax
push 0x47ae14
call sub.kernel32.dll_SetEnvironmentVariableA
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00404ba0
push eax
push 0x47ae24
call sub.kernel32.dll_SetEnvironmentVariableA
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x28]
call fcn.0045dba4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x47ad96
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.00409278
mov eax, dword [ebp - 0xc]
call fcn.00404ba0
push eax
push 0x47ae34
call sub.kernel32.dll_SetEnvironmentVariableA
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.00404ba0
push eax
push 0x47ae48
call sub.kernel32.dll_SetEnvironmentVariableA
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00404ba0
push eax
push 0x47ae5c
call sub.kernel32.dll_SetEnvironmentVariableA
lea edx, [ebp - 0x10]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x2c]
call fcn.0047457c
mov eax, dword [ebp - 0x10]
call fcn.00404ba0
push eax
push 0x47ae70
call sub.kernel32.dll_SetEnvironmentVariableA
mov eax, dword [0x495914]
call fcn.00404ba0
push eax
push 0x47ae7c
call sub.kernel32.dll_SetEnvironmentVariableA
push 0x47ae88
push 0x47ae8c
call sub.kernel32.dll_SetEnvironmentVariableA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47adfd
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.004046e8
ret