joyce8/EMBER2024-capa huggingface dataset:
Function at 0x450278
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov ebx, ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4503f7
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 0x4502d7
cmp byte [ebp - 5], 0x80
jb 0x4502d7
and byte [ebp - 5], 0x7f
mov byte [ebp - 6], 1
xor edx, edx
mov dl, byte [ebp - 5]
mov eax, ebx
call fcn.00403070
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 0x4503ca
cmp byte [esi + 0x3b], 0
je 0x45033a
mov eax, dword [0x4ae990]
mov edx, dword [esi + 0x37]
call fcn.00405014
je 0x450329
mov eax, dword [esi + 0x37]
call fcn.00435248
mov eax, 0x4ae990
mov edx, dword [esi + 0x37]
call fcn.00404c40
xor ecx, ecx
mov cl, byte [ebx]
lea edx, [ebx + 1]
lea eax, [ebx + 1]
call fcn.004352e8
jmp 0x450373
cmp byte [ebx], 0
je 0x450373
lea eax, [ebp - 0x14]
mov edx, ebx
call fcn.00404e50
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.00435650
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0xc]
mov edx, 0x450410
call fcn.00404f14
mov edx, dword [ebp - 0xc]
mov eax, ebx
mov ecx, 0xff
call fcn.00404ea4
cmp byte [ebp - 6], 0
je 0x4503dc
lea eax, [ebp - 0x1c]
mov edx, ebx
call fcn.00404e50
push dword [ebp - 0x1c]
push 0x45041c
lea ecx, [ebp - 0x120]
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00450278
lea edx, [ebp - 0x120]
lea eax, [ebp - 0x20]
call fcn.00404e50
push dword [ebp - 0x20]
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404f88
mov edx, dword [ebp - 0x18]
mov eax, ebx
mov ecx, 0xff
call fcn.00404ea4
jmp 0x4503dc
xor edx, edx
mov dl, byte [ebx]
test edx, edx
jle 0x4503dc
lea eax, [ebx + 1]
xor byte [eax], 0x62
inc eax
dec edx
jne 0x4503d5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4503fe
lea eax, [ebp - 0x20]
mov edx, 6
call fcn.00404c10
ret

Function at 0x45507c
Capabilities:
Hide graphical window

Disassembly:
push ebx
call sub.kernel32.dll_GetCurrentProcessId
call fcn.0044d9f8
mov ebx, eax
test ebx, ebx
je 0x4550d5
push ebx
call sub.user32.dll_IsIconic
test eax, eax
je 0x4550be
push 0
push 0xf120
push 0x112
push ebx
call sub.user32.dll_PostMessageA
call fcn.0045501c
push 5
push ebx
call sub.user32.dll_ShowWindow
push ebx
call sub.user32.dll_SetForegroundWindow
jmp 0x4550d5
push ebx
call sub.user32.dll_GetLastActivePopup
mov ebx, eax
call sub.user32.dll_GetForegroundWindow
cmp ebx, eax
je 0x4550d5
push ebx
call sub.user32.dll_SetForegroundWindow
pop ebx
ret
Function at 0x45bd14
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
push 0
push 0
push 0xe
push edi
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
push eax
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.00405254
mov eax, ebx
call fcn.00405120
push eax
push esi
push 0xd
push edi
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
push eax
call sub.user32.dll_GetDlgItem
push eax
call sub.user32.dll_SendMessageA
mov eax, dword [ebx]
call fcn.00404ec8
mov edx, eax
mov eax, ebx
mov ecx, 1
call fcn.00405168
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x45bd7c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
mov esi, 0x4ae790
xor eax, eax
push ebp
push 0x45be3f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0xe
push 0x6d
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
push eax
call sub.user32.dll_GetDlgItem
push eax
call sub.user32.dll_SendMessageA
mov ebx, eax
inc ebx
mov eax, esi
mov edx, ebx
call fcn.00405254
mov eax, esi
call fcn.00405120
push eax
push ebx
push 0xd
push 0x6d
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
push eax
call sub.user32.dll_GetDlgItem
push eax
call sub.user32.dll_SendMessageA
mov eax, dword [esi]
call fcn.00404ec8
mov edx, eax
mov eax, esi
mov ecx, 1
call fcn.00405168
lea edx, [ebp - 4]
mov eax, dword [esi]
call fcn.0040aba8
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00404c40
lea ecx, [ebp - 8]
mov dl, 0x7b
mov eax, dword [0x4ae698]
call fcn.00423270
mov edx, dword [ebp - 8]
mov ecx, dword [esi]
mov eax, 7
call fcn.004559e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45be46
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404c10
ret

Function at 0x45d484
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 [0x4a9478], 0
jne 0x45d4d1
xor esi, esi
mov edx, 0x4af050
mov eax, esi
mov ebx, 8
test al, 1
je 0x45d4b7
shr eax, 1
xor eax, 0xedb88320
jmp 0x45d4b9
shr eax, 1
dec ebx
jne 0x45d4aa
mov dword [edx], eax
inc esi
add edx, 4
cmp esi, 0x100
jne 0x45d4a3
mov byte [0x4a9478], 1
mov eax, dword [esp + 4]
dec eax
test eax, eax
jl 0x45d4fe
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 + 0x4af050]
shr edi, 8
xor edx, edi
mov edi, edx
inc esi
dec eax
jne 0x45d4dd
mov eax, edi
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x4606b8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x11
push 0
push 0
dec ecx
jne 0x4606c1
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004050b8
mov eax, dword [ebp - 8]
call fcn.004050b8
mov eax, dword [ebp - 0xc]
call fcn.004050b8
xor eax, eax
push ebp
push 0x4608ec
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x78]
mov eax, dword [ebp - 8]
call fcn.004219a8
mov edx, dword [ebp - 0x78]
lea eax, [ebp - 8]
call fcn.00404c84
lea edx, [ebp - 0x7c]
mov eax, dword [ebp - 0xc]
call fcn.004219a8
mov edx, dword [ebp - 0x7c]
lea eax, [ebp - 0xc]
call fcn.00404c84
lea eax, [ebp - 0x14]
push eax
xor ecx, ecx
mov edx, 0x460904
mov eax, 0x80000000
call fcn.004222f8
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0x14]
call fcn.004219a8
mov edx, dword [ebp - 0x80]
lea eax, [ebp - 0x14]
call fcn.00404c84
lea eax, [ebp - 0x64]
xor ecx, ecx
mov edx, 0x44
call fcn.004035a4
lea eax, [ebp - 0x74]
xor ecx, ecx
mov edx, 0x10
call fcn.004035a4
mov dword [ebp - 0x64], 0x44
mov dword [ebp - 0x38], 1
mov word [ebp - 0x34], 3
lea eax, [ebp - 0x1c]
mov ecx, dword [0x4ae764]
mov edx, 0x460928
call fcn.00404f14
push 0x460938
push dword [ebp - 4]
push 0x460948
lea edx, [ebp - 0x84]
mov eax, dword [ebp - 8]
call fcn.004605d4
push dword [ebp - 0x84]
push 0x46095c
lea eax, [ebp - 0x8c]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
call fcn.00404f14
mov eax, dword [ebp - 0x8c]
lea edx, [ebp - 0x88]
call fcn.004605d4
push dword [ebp - 0x88]
lea eax, [ebp - 0x10]
mov edx, 6
call fcn.00404f88
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, 0x46096c
mov eax, dword [ebp - 0x14]
call fcn.004220b4
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x64]
push eax
push 0
push 0
push 0x4000020
push 0
push 0
push 0
mov eax, dword [ebp - 0x18]
call fcn.004050c8
push eax
push 0
call sub.kernel32.dll_CreateProcessA
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
je 0x4608a4
xor ebx, ebx
mov eax, dword [ebp - 0x74]
mov esi, eax
push 0x2710
push eax
call sub.user32.dll_WaitForInputIdle
push 0x7d0
call sub.kernel32.dll_Sleep_1
mov eax, dword [ebp - 0x6c]
call fcn.0044d9f8
test eax, eax
je 0x460873
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
call sub.user32.dll_SetWindowPos
push 0xffffffffffffffff
push esi
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0xffffffff
je 0x460890
lea eax, [ebp - 0x20]
push eax
push esi
call sub.kernel32.dll_GetExitCodeProcess
cmp eax, 1
sbb ebx, ebx
inc ebx
mov eax, dword [ebp - 0x70]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x74]
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x4608c1
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x90]
call fcn.0040e5b8
mov edx, dword [ebp - 0x90]
mov al, 4
call fcn.0044d6f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4608f3
lea eax, [ebp - 0x90]
mov edx, 7
call fcn.00404c10
lea eax, [ebp - 0x1c]
mov edx, 7
call fcn.00404c10
ret
Function at 0x4618cc
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x4618d4
push ebx
push esi
mov esi, 0x4ae698
xor eax, eax
push ebp
push 0x461b53
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
mov byte [0x4ae948], 1
mov eax, dword [0x4ae994]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [0x4ae998]
mov edx, dword [eax]
call dword [edx + 0x44]
call fcn.0044d834
call fcn.00460470
xor eax, eax
push ebp
push 0x461b24
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4af020]
call fcn.004520a0
xor eax, eax
push ebp
push 0x461aff
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.0045216c
xor eax, eax
push ebp
push 0x461ad1
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, 1
mov eax, dword [esi]
cmp byte [eax + 0x30c], 0
je 0x46197a
mov al, 1
call fcn.0046180c
mov eax, dword [esi]
cmp byte [eax + 0x30c], 0
je 0x46197a
push ebp
call fcn.00460d3c
pop ecx
and bl, al
mov eax, dword [esi]
cmp byte [eax + 0x30d], 0
je 0x4619b6
mov eax, dword [esi]
cmp byte [eax + 0x30c], 0
je 0x46199b
mov eax, dword [esi]
cmp byte [eax + 0x2ee], 0
je 0x4619a2
xor eax, eax
call fcn.0046180c
mov eax, dword [esi]
cmp byte [eax + 0x30d], 0
je 0x4619b6
push ebp
call fcn.004616c0
pop ecx
and bl, al
test bl, bl
jne 0x4619cf
mov eax, dword [esi]
test byte [eax + 0x331], 0x10
je 0x4619cf
mov eax, dword [0x4ae764]
call fcn.0044db74
mov eax, dword [esi]
test byte [eax + 0x2f1], 2
je 0x461a52
cmp byte [ebp - 0xd], 0
jne 0x461a52
test bl, bl
je 0x461a1c
push 0x242040
lea ecx, [ebp - 0x14]
xor edx, edx
mov eax, dword [esi]
call fcn.00423270
mov eax, dword [ebp - 0x14]
call fcn.004050c8
push eax
lea ecx, [ebp - 0x18]
mov dl, 0x90
mov eax, dword [esi]
call fcn.00423270
mov eax, dword [ebp - 0x18]
call fcn.004050c8
push eax
push 0
call sub.user32.dll_MessageBoxA_1
jmp 0x461a52
push 0x242010
lea ecx, [ebp - 0x1c]
xor edx, edx
mov eax, dword [esi]
call fcn.00423270
mov eax, dword [ebp - 0x1c]
call fcn.004050c8
push eax
lea ecx, [ebp - 0x20]
mov dl, 0x91
mov eax, dword [esi]
call fcn.00423270
mov eax, dword [ebp - 0x20]
call fcn.004050c8
push eax
push 0
call sub.user32.dll_MessageBoxA_1
mov eax, dword [esi]
test byte [eax + 0x331], 0x20
je 0x461aa3
test bl, bl
jne 0x461aa3
lea eax, [ebp - 0x24]
call fcn.00460b2c
mov eax, dword [ebp - 0x24]
call fcn.004050c8
push eax
lea eax, [ebp - 0x28]
call fcn.00451e3c
mov eax, dword [ebp - 0x28]
call fcn.004050c8
push eax
call sub.kernel32.dll_MoveFileA
lea eax, [ebp - 0x30]
call fcn.00460b2c
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
call fcn.0040b40c
mov eax, dword [ebp - 0x2c]
call fcn.00460bb8
lea eax, [ebp - 0x34]
call fcn.00451e3c
mov eax, dword [ebp - 0x34]
call fcn.0040b2d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x461ad8
lea eax, [ebp - 0x38]
call fcn.00451fe8
mov eax, dword [ebp - 0x38]
call fcn.0040b2d8
ret
Function at 0x463298
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
xor edx, edx
mov dword [ebp - 0x24], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x46330c
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x20], 0x20
lea eax, [ebp - 0x20]
push eax
call sub.kernel32.dll_GlobalMemoryStatus
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x28], eax
fild qword [ebp - 0x2c]
fdiv dword [0x463318]
call fcn.00403098
push edx
push eax
lea eax, [ebp - 0x24]
call fcn.0040ad94
mov edx, dword [ebp - 0x24]
mov eax, ebx
mov ecx, 0x463324
call fcn.00404f14
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x463313
lea eax, [ebp - 0x24]
call fcn.00404bec
ret

Function at 0x463328
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
xor edx, edx
mov dword [ebp - 0x24], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x46339c
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x20], 0x20
lea eax, [ebp - 0x20]
push eax
call sub.kernel32.dll_GlobalMemoryStatus
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x28], eax
fild qword [ebp - 0x2c]
fdiv dword [0x4633a8]
call fcn.00403098
push edx
push eax
lea eax, [ebp - 0x24]
call fcn.0040ad94
mov edx, dword [ebp - 0x24]
mov eax, ebx
mov ecx, 0x4633b4
call fcn.00404f14
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4633a3
lea eax, [ebp - 0x24]
call fcn.00404bec
ret
Function at 0x463f74
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 0x4640d1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00404bec
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
mov eax, ebx
call fcn.004050c8
mov edi, eax
push edi
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jbe 0x4640b6
mov eax, dword [ebp - 4]
call fcn.00402a88
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4640af
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 0x464096
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4640e0
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x464096
push 0x464104
lea ecx, [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
movzx eax, word [eax]
mov edx, 4
call fcn.0040adbc
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x20]
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 2]
mov edx, 4
call fcn.0040adbc
push dword [ebp - 0x20]
push 0x464120
lea eax, [ebp - 0x18]
mov edx, 4
call fcn.00404f88
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.004050c8
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x464096
cmp dword [ebp - 0xc], 1
jbe 0x464096
mov eax, dword [ebp - 0x14]
call fcn.0040b908
mov ecx, eax
mov eax, esi
mov edx, dword [ebp - 0x14]
call fcn.00404cdc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4640b6
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
call fcn.00402ab8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4640d8
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.00404c10
ret
Function at 0x464168
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.004050b8
xor eax, eax
push ebp
push 0x464240
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404bec
cmp dword [ebp - 4], 0
je 0x4641b8
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x4641b8
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.00405168
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 4]
call fcn.004050c8
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x46422a
mov eax, ebx
mov edx, 0x400
call fcn.00405254
mov eax, dword [ebx]
call fcn.00404ec8
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.004050c8
push eax
push edi
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x46421a
mov eax, ebx
mov edx, dword [ebp - 0xc]
call fcn.00405254
jmp 0x464221
mov eax, ebx
call fcn.00404bec
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 0x464247
lea eax, [ebp - 4]
call fcn.00404bec
ret

Function at 0x464250
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.004050b8
mov eax, dword [ebp - 8]
call fcn.004050b8
xor eax, eax
push ebp
push 0x464326
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 4], 0
je 0x4642a2
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x4642a2
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.00405168
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 4]
call fcn.004050c8
push eax
push ebx
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x46430b
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.004050c8
mov ebx, eax
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x464302
cmp dword [ebp - 0x14], 4
jne 0x464302
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 0x46432d
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404c10
ret
Function at 0x464b7c
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 0x464d25
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00404bec
lea eax, [ebp - 8]
push eax
push 8
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x464d0a
xor eax, eax
push ebp
push 0x464d03
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.00402a88
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x464ce5
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 0x464ccf
mov eax, dword [ebp - 0x10]
mov edi, dword [eax]
dec edi
test edi, edi
jl 0x464ccf
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.00405254
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x1c]
call fcn.004050c8
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.00405254
push dword [esi]
lea ecx, [ebp - 0x20]
mov edx, 0x1f
mov eax, dword [ebp - 0x1c]
call fcn.00464b3c
push dword [ebp - 0x20]
push ebp
lea eax, [ebp - 0x24]
call fcn.00464ae8
pop ecx
push dword [ebp - 0x24]
push 0x464d3c
mov eax, esi
mov edx, 4
call fcn.00404f88
inc ebx
dec edi
jne 0x464c2a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x464cec
mov eax, dword [ebp - 0x10]
call fcn.00402ab8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x464d2c
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00404c10
ret
Function at 0x468ecc
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 0x469005
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4a9f04]
mov eax, dword [eax]
call fcn.0044dd6c
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x468f45
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.0040b4d4
mov eax, dword [ebp - 8]
call fcn.004050c8
push eax
push 0x469010
call sub.kernel32.dll_SetEnvironmentVariableA
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.004050c8
push eax
push 0x469020
call sub.kernel32.dll_SetEnvironmentVariableA
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004050c8
push eax
push 0x469030
call sub.kernel32.dll_SetEnvironmentVariableA
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
call fcn.0044de24
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x468fa6
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.0040b4d4
mov eax, dword [ebp - 0xc]
call fcn.004050c8
push eax
push 0x469040
call sub.kernel32.dll_SetEnvironmentVariableA
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.004050c8
push eax
push 0x469054
call sub.kernel32.dll_SetEnvironmentVariableA
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004050c8
push eax
push 0x469068
call sub.kernel32.dll_SetEnvironmentVariableA
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x10]
call fcn.004631c8
pop ecx
mov eax, dword [ebp - 0x10]
call fcn.004050c8
push eax
push 0x46907c
call sub.kernel32.dll_SetEnvironmentVariableA
mov eax, dword [0x4ae764]
call fcn.004050c8
push eax
push 0x469088
call sub.kernel32.dll_SetEnvironmentVariableA
push 0x469094
push 0x469098
call sub.kernel32.dll_SetEnvironmentVariableA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46900c
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404c10
ret
Function at 0x46a38c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x108], edx
mov dword [ebp - 0x10c], edx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x46a488
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, pe_nt_image_headers32
push ebx
lea eax, [ebp - 0x104]
push eax
call sub.user32.dll_GetFocus
push eax
call sub.user32.dll_GetWindowTextA
test eax, eax
jle 0x46a45b
mov eax, esi
lea edx, [ebp - 0x104]
mov ecx, pe_nt_image_headers32
call fcn.00404e5c
lea eax, [ebp - 0x10c]
call fcn.0046a334
mov eax, dword [ebp - 0x10c]
lea edx, [ebp - 0x108]
call fcn.0040a964
mov eax, dword [ebp - 0x108]
lea edx, [ebp - 4]
call fcn.0040aba8
mov edx, dword [ebp - 4]
mov eax, 0x46a4a0
call fcn.0040520c
test eax, eax
jle 0x46a462
push 0xfffffffffffffff0
call sub.user32.dll_GetFocus
push eax
call sub.user32.dll_GetWindowLongA
test al, 0x20
je 0x46a462
mov eax, dword [esi]
call fcn.00404ec8
mov edi, eax
test edi, edi
jbe 0x46a462
mov ebx, 1
mov eax, esi
call fcn.00405120
mov byte [eax + ebx - 1], 0x2a
inc ebx
dec edi
jne 0x46a449
jmp 0x46a462
mov eax, esi
call fcn.00404bec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46a48f
lea eax, [ebp - 0x10c]
mov edx, 2
call fcn.00404c10
lea eax, [ebp - 4]
call fcn.00404bec
ret

Function at 0x46d728
Capabilities:
Terminate thread

Disassembly:
call fcn.0042244c
test al, al
jne 0x46d785
cmp dword [0x4ae738], 0
je 0x46d785
mov eax, dword [0x4ae738]
call fcn.0041d9c4
mov eax, dword [0x4ab668]
call fcn.0044de40
test al, al
jne 0x46d764
push 0xffffffffffffffff
mov eax, dword [0x4ae738]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_WaitForSingleObject
jmp 0x46d774
push 1
mov eax, dword [0x4ae738]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_TerminateThread
mov eax, dword [0x4ae738]
call fcn.00403d10
xor eax, eax
mov dword [0x4ae738], eax
ret