joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000576a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov ebx, ecx
mov edi, eax
mov eax, dword [ebx + 0x170]
mov dword [ebp - 8], eax
mov dword [ebp - 4], edi
jmp 0x10005978
jl 0x1000599e
sbb al, 0x89
inc esp
and al, 0x18
test eax, eax
jbe 0x100059f6
mov dword [esp + 8], 0
add byte [eax], al

Function at 0x10005829
Capabilities:
Access peb ldr_data
Get process heap flags
Resolve function by parsing pe exports

Disassembly:
push esi
push edi
push ebx
push ebp
sub esp, 0x34
mov ebx, dword [0x100278b4]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov esi, dword [eax + 0xc]
add esi, 0xc
mov ebp, dword [esi]
jmp 0x10005860
mov ecx, dword [ebp + 0x30]
call fcn.10005f75
cmp ebx, eax
jne 0x1000585d
mov eax, dword [ebp + 0x18]
mov dword [esp], eax
jmp 0x1000586b
mov ebp, dword [ebp]
cmp ebp, esi
jne 0x10005849
mov dword [esp], 0
mov eax, dword [esp]
lea edx, [0x10027898]
mov ecx, dword [edx]
mov ebp, dword [edx + 4]
mov edx, dword [eax + 0x3c]
add edx, eax
mov dword [esp + 0xc], ebp
mov ebp, dword [0x10027890]
mov edx, dword [edx + ecx*8 + 0x78]
lea ecx, [edx + eax + 0x20]
mov ebx, dword [ecx]
mov esi, dword [ecx - 4]
add ebx, eax
mov edi, dword [ecx + 4]
add esi, eax
add edi, eax
mov eax, dword [ecx - 8]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], eax
test eax, eax
jbe 0x10005928
mov dword [esp + 4], 0
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 4]
mov ebx, dword [esp]
add ebx, dword [eax + edx*4]
mov ecx, ebx
call fcn.10005f65
mov dword [esp + 8], eax
xor edi, edi
test eax, eax
jbe 0x100058fb
xor esi, esi
movzx edx, byte [esi + ebx]
xor eax, eax
test ebp, ebp
jbe 0x100058f1
xor ecx, ecx
inc ecx
add eax, edi
cmp ecx, ebp
jb 0x100058ea
inc esi
lea edi, [eax + edx]
cmp esi, dword [esp + 8]
jb 0x100058de
cmp edi, dword [esp + 0xc]
jne 0x10005919
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 4]
mov ecx, dword [esp + 0x1c]
movzx ebx, word [eax + edx*2]
mov eax, dword [esp]
add eax, dword [ecx + ebx*4]
jmp 0x1000592a
mov eax, dword [esp + 4]
inc eax
mov dword [esp + 4], eax
cmp eax, dword [esp + 0x14]
jb 0x100058bd
xor eax, eax
mov edx, dword [0x100278d0]
push edx
push 0
call eax
mov dword [esp + 4], eax
mov eax, dword [esp]
lea edx, [0x10027898]
mov ecx, dword [edx]
mov ebp, dword [edx - 0x28]
mov edx, dword [eax + 0x3c]
add edx, eax
mov dword [esp + 0x10], ebp
mov ebp, dword [0x10027890]
mov edx, dword [edx + ecx*8 + 0x78]
lea ecx, [edx + eax + 0x20]
mov ebx, dword [ecx]
mov esi, dword [ecx - 4]
add ebx, eax
mov edi, dword [ecx + 4]
add esi, eax
add edi, eax
mov eax, dword [ecx - 8]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], eax
Function at 0x10013030
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10027570]
jne 0x1001303a
repz ret
jmp fcn.10016b4c

Function at 0x1001b84c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.100164d0
and dword [ebp - 4], 0
cmp dword [0x10029128], 0
mov ebx, eax
jne 0x1001b8fd
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1001b9ae
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1001b9ae
push eax
call fcn.1001645e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10029128], eax
call esi
push eax
call fcn.1001645e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1002912c], eax
call esi
push eax
call fcn.1001645e
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10029130], eax
call esi
push eax
call fcn.1001645e
pop ecx
mov dword [0x10029138], eax
test eax, eax
je 0x1001b8fd
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1001645e
pop ecx
mov dword [0x10029134], eax
mov eax, dword [0x10029134]
cmp eax, ebx
je 0x1001b955
cmp dword [0x10029138], ebx
je 0x1001b955
push eax
call fcn.100164d9
push dword [0x10029138]
mov esi, eax
call fcn.100164d9
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1001b955
test edi, edi
je 0x1001b955
call esi
test eax, eax
je 0x1001b94c
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1001b94c
test byte [ebp - 0xc], 1
jne 0x1001b955
or dword [ebp + 0x10], 0x200000
jmp 0x1001b98e
mov eax, dword [0x1002912c]
cmp eax, ebx
je 0x1001b98e
push eax
call fcn.100164d9
pop ecx
test eax, eax
je 0x1001b98e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1001b98e
mov eax, dword [0x10029130]
cmp eax, ebx
je 0x1001b98e
push eax
call fcn.100164d9
pop ecx
test eax, eax
je 0x1001b98e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10029128]
call fcn.100164d9
pop ecx
test eax, eax
je 0x1001b9ae
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1001b9b0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401741
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
jmp 0x401776
mov ecx, dword [edx + 0xc]
cmp dword [ebp + 0xc], ecx
jb 0x401773
mov eax, dword [edx + 8]
add eax, ecx
cmp dword [ebp + 0xc], eax
jb 0x40177f
add edx, 0x28
cmp edx, esi
jne 0x401761
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x40177c

Function at 0x401bbe
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401bfd
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401bfd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401bfd
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401bfd
cmp dword [ecx + 0x74], 0xe
jbe 0x401bfd
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40b78d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x40b82a
push ebx
push esi
call fcn.0040b756
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0040b6ec
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40b7d7
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40b829
push edi
push eax
call fcn.004085b0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40b7f7
call fcn.00407b60
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40b828
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040b6ec
add esp, 0x20
test eax, eax
jne 0x40b816
push edi
call fcn.00407b60
jmp 0x40b81e
push ebx
call fcn.00407b60
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x40fe0b
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
mov eax, dword [eax + 0xc]
nop
shr eax, 3
test al, 1
je 0x40fe25
mov al, 1
leave
ret
mov eax, dword [ebp + 8]
push ebx
push esi
mov eax, dword [eax + 0xc]
nop
test al, 0xc0
mov eax, dword [ebp + 8]
je 0x40fe3c
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x40fe94
mov eax, dword [eax + 0x10]
nop
push eax
call fcn.0040bec6
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x40fe94
xor ebx, ebx
lea eax, [ebp - 0x10]
inc ebx
xorps xmm0, xmm0
push ebx
push eax
movlpd qword [ebp - 8], xmm0
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x40fe94
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x40fe94
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x40fe8e
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
je 0x40fe90
xor bl, bl
mov al, bl
jmp 0x40fe96
xor al, al
pop esi
pop ebx
leave
ret

Function at 0x413b80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x413bad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x413bad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x403300
Capabilities:
Enumerate gui resources
Get disk information

Disassembly:
mov eax, dword [0x2b8167c]
mov ecx, dword [0x2b7e588]
sub esp, 0x424
push ebx
push ebp
shr eax, 3
push esi
push edi
test eax, eax
jbe 0x4033f7
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextVolumeA]
mov esi, dword [sym.imp.KERNEL32.dll_WriteProfileSectionW]
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
cmp dword [0x2b8167c], 0x959
jne 0x4033dd
call edi
push 0
lea eax, [esp + 0x34]
push eax
push 0
call ebx
push 0
push 0
call esi
push 0
call ebp
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumSystemLocalesA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
push 0x402cb8
push 0x402d60
call esi
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesA]
xor eax, eax
lea ecx, [esp + 0x1c]
push ecx
push eax
push eax
push eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov edx, dword [esp + 0x14]
push edx
call fcn.00403140
add dword [esp + 0x14], 8
sub dword [esp + 0x18], 1
jne 0x403340
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x424
ret
Function at 0x408e80
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42ac30]
jne 0x408e8a
repz ret
jmp fcn.0040b99c

Function at 0x40b167
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00405317
and dword [ebp - 4], 0
cmp dword [0x42bfc4], 0
mov ebx, eax
jne 0x40b218
push 0x402ac4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b2c9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402ab8
push edi
call esi
test eax, eax
je 0x40b2c9
push eax
call fcn.004052a5
mov dword [esp], 0x402aa8
push edi
mov dword [0x42bfc4], eax
call esi
push eax
call fcn.004052a5
mov dword [esp], 0x402a94
push edi
mov dword [0x42bfc8], eax
call esi
push eax
call fcn.004052a5
mov dword [esp], 0x402a78
push edi
mov dword [0x42bfcc], eax
call esi
push eax
call fcn.004052a5
pop ecx
mov dword [0x42bfd4], eax
test eax, eax
je 0x40b218
push 0x402a60
push edi
call esi
push eax
call fcn.004052a5
pop ecx
mov dword [0x42bfd0], eax
mov eax, dword [0x42bfd0]
cmp eax, ebx
je 0x40b270
cmp dword [0x42bfd4], ebx
je 0x40b270
push eax
call fcn.00405320
push dword [0x42bfd4]
mov esi, eax
call fcn.00405320
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b270
test edi, edi
je 0x40b270
call esi
test eax, eax
je 0x40b267
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b267
test byte [ebp - 0xc], 1
jne 0x40b270
or dword [ebp + 0x10], 0x200000
jmp 0x40b2a9
mov eax, dword [0x42bfc8]
cmp eax, ebx
je 0x40b2a9
push eax
call fcn.00405320
pop ecx
test eax, eax
je 0x40b2a9
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b2a9
mov eax, dword [0x42bfcc]
cmp eax, ebx
je 0x40b2a9
push eax
call fcn.00405320
pop ecx
test eax, eax
je 0x40b2a9
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42bfc4]
call fcn.00405320
pop ecx
test eax, eax
je 0x40b2c9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b2cb
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x541850
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xfd000]
push edi
or ebp, 0xffffffff
jmp 0x541872
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x541879
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x541868
mov eax, 1
add ebx, ebx
jne 0x54188b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x54189c
jne 0x5418bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5418bb
dec eax
add ebx, ebx
jne 0x5418a8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x541880
add ebx, ebx
jne 0x5418b7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x54190d
xor ecx, ecx
sub eax, 3
jb 0x5418d3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x541942
sar eax, 1
mov ebp, eax
jmp 0x5418de
add ebx, ebx
jne 0x5418de
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5418ac
inc ecx
add ebx, ebx
jne 0x5418ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5418ac
add ebx, ebx
jne 0x5418f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5418ee
jne 0x54190a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5418ee
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x54192c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x54191e
jmp 0x54186e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x54192c
add edi, ecx
jmp 0x54186e
pop esi
mov edi, esi
mov ecx, 0xcc8
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x54194a
cmp byte [edi], 0xb
jne 0x54194a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x54194f
lea edi, [esi + 0x13f000]
mov eax, dword [edi]
or eax, eax
je 0x5419c7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x15bd14]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x15bd50]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x54197c
mov ecx, edi
jns 0x5419ab
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x15bd54]
or eax, eax
je 0x5419c1
mov dword [ebx], eax
add ebx, 4
jmp 0x541999
call dword [esi + 0x15bd64]
mov ebp, dword [esi + 0x15bd58]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1df]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x5419fb
sub esp, 0xffffff80
jmp 0x407158
Function at 0x403cd0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x46d45c]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push 0x104
lea eax, [ebp - 0x210]
push eax
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x403d21
jmp 0x403d36
lea edx, [ebp - 0x210]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.00403cd0
add esp, 8
jmp 0x403d03
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
neg eax
sbb eax, eax
add eax, 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004376f1
mov esp, ebp
pop ebp
ret
Function at 0x4045a0
Capabilities:
Acquire debug privileges
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x46d45c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x254], eax
cmp dword [ebp - 0x254], 0
jne 0x4045d0
jmp 0x4047a3
push str.SeDebugPrivilege
call fcn.00404280
add esp, 4
mov dword [ebp - 0x248], 0x22c
lea eax, [ebp - 0x248]
push eax
mov ecx, dword [ebp - 0x254]
push ecx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x404796
lea edx, [ebp - 0x224]
mov dword [ebp - 0x258], edx
push 0x5c
lea eax, [ebp - 0x224]
push eax
call fcn.00416770
add esp, 8
test eax, eax
je 0x40463d
push 0x5c
lea ecx, [ebp - 0x224]
push ecx
call fcn.00416770
add esp, 8
add eax, 2
mov dword [ebp - 0x258], eax
cmp dword [ebp - 0x258], 0
je 0x40477b
push str.Smss.exe
mov edx, dword [ebp - 0x258]
push edx
call fcn.00438d0f
add esp, 8
test eax, eax
jne 0x40477b
mov eax, dword [ebp - 0x240]
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x404779
push 0x46f6a4
push 0xa
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40476c
push 0x46f6a4
push 0x60000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40476c
lea eax, [ebp - 0xc]
push eax
push 0
lea ecx, [ebp - 0x250]
push ecx
push 0
push 0
push 4
push 6
mov edx, dword [0x46f6a4]
push edx
call dword [sym.imp.ADVAPI32.dll_GetSecurityInfo]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40476c
mov dword [ebp - 8], 0
jmp 0x4046fd
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x250]
movzx edx, word [ecx + 4]
cmp dword [ebp - 8], edx
jge 0x404733
lea eax, [ebp - 0x24c]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x250]
push edx
call dword [sym.imp.ADVAPI32.dll_GetAce]
mov eax, dword [ebp - 0x24c]
mov dword [eax + 4], 0xf01ff
jmp 0x4046f4
push 0
mov ecx, dword [ebp - 0x250]
push ecx
push 0
push 0
push 4
push 6
mov edx, dword [0x46f6a4]
push edx
call dword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0x46f6a4
push 0xa
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push str.SeImpersonatePrivilege
call fcn.00404280
add esp, 4
jmp 0x404796
lea edx, [ebp - 0x248]
push edx
mov eax, dword [ebp - 0x254]
push eax
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x404602
mov ecx, dword [ebp - 0x254]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004376f1
mov esp, ebp
pop ebp
ret
Function at 0x405890
Capabilities:
Get common file path
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, 1
test eax, eax
je 0x4058a8
mov dword [ebp - 0xc], str.GetSystemWindowsDirectoryW
jmp 0x4058af
mov dword [ebp - 0xc], str.GetSystemWindowsDirectoryA
mov ecx, dword [ebp - 0xc]
push ecx
push 0x453954
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4058dd
push 0x104
push 0x46f018
call dword [ebp - 4]
jmp 0x4058ed
push 0x104
push 0x46f018
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0x46f018
push 0x46ee10
call fcn.004387e0
add esp, 8
push 0x453970
push 0x46ee10
call fcn.004387b2
add esp, 8
mov edx, 1
test edx, edx
je 0x405923
mov dword [ebp - 0x10], str.GetSystemWow64DirectoryW
jmp 0x40592a
mov dword [ebp - 0x10], str.GetSystemWow64DirectoryA
mov eax, dword [ebp - 0x10]
push eax
push 0x4539bc
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40596c
push 0x104
push 0x46ec08
call dword [ebp - 8]
test eax, eax
jne 0x40596c
push 0x46ee10
push 0x46ec08
call fcn.004387e0
add esp, 8
push 0x104
push 0x46ea00
push 0x4539d8
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0x46ea00
push 0x4539f8
call fcn.00438feb
add esp, 8
test eax, eax
jne 0x4059bc
push 0x104
push 0x46ea00
push str._ProgramFiles_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0x46ea00
push 0x453a38
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0x104
push 0x46e7f8
push str._PROGRAMFILES_X86__
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0x453a7c
push 0x46ea00
call fcn.00416750
add esp, 8
test eax, eax
je 0x405a0e
push str.__x86_
push 0x46ea00
call fcn.00416750
add esp, 8
xor ecx, ecx
mov word [eax], cx
push 0x46ea00
push 0x453a9c
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov esp, ebp
pop ebp
ret

Function at 0x406270
Capabilities:
Delete registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 8]
push ecx
push 0
push 0xf003f
push 3
push 0
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea ecx, [ebp + 8]
call fcn.00416b60
shl eax, 1
push eax
lea ecx, [ebp + 8]
call fcn.00416b30
push eax
push 6
push 0
push str.SymbolicLinkValue
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4062e5
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 4]
mov dword [ebp - 0x10], edx
lea ecx, [ebp + 8]
call fcn.004168d0
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret