joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401494
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x44d538]
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebx, ebx
xor esi, esi
cmp eax, ebx
push 2
pop ebp
jne 0x40153e
call edi
mov esi, eax
cmp esi, ebx
je 0x420e4f
mov dword [0x44d538], 1
cmp esi, ebx
je 0x420e70
cmp word [esi], bx
mov eax, esi
je 0x4014e7
add eax, ebp
cmp word [eax], bx
jne 0x4014d9
add eax, ebp
cmp word [eax], bx
jne 0x4014d9
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
sub eax, esi
push ebx
sar eax, 1
inc eax
push eax
push esi
push ebx
push ebx
mov dword [esp + 0x34], eax
call edi
mov ebp, eax
cmp ebp, ebx
je 0x40152e
push ebp
call fcn.00407e8b
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x40152e
push ebx
push ebx
push ebp
push eax
push dword [esp + 0x24]
push esi
push ebx
push ebx
call edi
test eax, eax
je 0x420e7d
mov ebx, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
cmp eax, 1
jne 0x420e90
jmp 0x4014ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x420e66
mov eax, ebp
mov dword [0x44d538], eax
jmp 0x40153e
mov eax, dword [0x44d538]
jmp 0x40153e
call edi
mov esi, eax
cmp esi, ebx
je 0x420e98
jmp 0x4014d2
push dword [esp + 0x10]
call fcn.00417b09
pop ecx
mov dword [esp + 0x10], ebx
jmp 0x40152a
cmp eax, ebp
je 0x420e9f
cmp eax, ebx
je 0x420e9f
xor eax, eax
jmp 0x401537
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
je 0x420e98
cmp byte [esi], bl
je 0x420eb9
inc eax
cmp byte [eax], bl
jne 0x420eaf
inc eax
cmp byte [eax], bl
jne 0x420eaf
sub eax, esi
inc eax
mov ebp, eax
push ebp
call fcn.00407e8b
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x420ecf
xor edi, edi
jmp 0x420eda
push ebp
push esi
push edi
call fcn.0041b97d
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, edi
jmp 0x401537
Function at 0x401733
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x18]
xor edi, edi
cmp dword [ebx], edi
jne 0x4017ad
lea ebp, [esi + 0x24]
cmp dword [ebp], edi
jne 0x4017ad
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
push edi
push edi
push edi
mov dword [esi + 0x20], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp eax, edi
mov dword [ebp], eax
je 0x41c381
push ebx
push edi
push esi
push 0x4180bb
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [esi + 0x1c], eax
je 0x41c357
mov eax, dword [ebp]
push 0x7530
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x41c335
xor esi, esi
mov ecx, ebp
call fcn.00409092
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
xor esi, esi
inc esi
jmp 0x4017a6
push edi
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x1c], edi
mov dword [ebx], edi
mov esi, 0x80004005
jmp 0x40179f
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x41c36c
call esi
mov esi, eax
jmp 0x40179f
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x40179f
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x41c396
call esi
mov esi, eax
jmp 0x4017a6
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x4017a6

Function at 0x403226
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
call fcn.00415d8d
xor esi, esi
cmp eax, 4
je 0x4032c2
push edi
xor eax, eax
mov dword [ebp - 0xc], esi
lea edi, [ebp - 8]
stosd dword es:[edi], eax
lea eax, [ebp - 0xc]
push eax
push 0x401958
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
pop edi
je 0x4032c9
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4032c9
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov al, byte [ebp + 8]
neg al
push esi
push esi
push 0x10
mov dword [ebp - 0x1c], 1
sbb eax, eax
and eax, 2
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1c]
push eax
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x41c704
call esi
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
leave
ret 4
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
jmp 0x41c719
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x4032b9
test eax, eax
jg 0x41c726
call esi
mov esi, eax
jmp 0x4032c2
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x4032c2
Function at 0x4034db
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x44de1c]
push esi
mov dword [ebp - 4], eax
mov esi, 0x105
push esi
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x40356c
cmp eax, esi
jae 0x40356c
push dword [ebp + 8]
lea eax, [ebp - 0x10c]
push eax
call fcn.0040357a
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.004034b4
test eax, eax
jl 0x40355f
push 0
push 0x80
push 5
push 0
push 2
push 0x40000000
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x41f40f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x403572
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
call fcn.00417bd0
leave
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042f771
jmp 0x40355f
test eax, eax
je 0x403552
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40355d

Function at 0x404d75
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x100]
sub esp, 0x180
mov eax, dword [0x44de1c]
push ebx
mov dword [ebp + 0xfc], eax
push esi
lea eax, [ebp - 0x74]
push eax
xor ebx, ebx
push 0x404e9c
mov dword [ebp - 0x74], ebx
call dword [sym.imp.ole32.dll_StringFromIID]
mov esi, eax
cmp esi, ebx
jl 0x404e73
push edi
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x74]
mov dword [ebp - 0x70], ebx
call fcn.00404c79
push dword [ebp - 0x74]
mov edi, dword [sym.imp.ole32.dll_CoTaskMemFree]
mov esi, eax
call edi
cmp esi, ebx
mov dword [ebp - 0x74], ebx
jl 0x404e72
push dword [ebp - 0x70]
lea eax, [ebp - 0x6c]
push 0x404eac
push 0x12c
push eax
call fcn.0040af66
add esp, 0x10
push dword [ebp - 0x70]
call edi
lea eax, [ebp - 0x7c]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x6c]
push eax
push SysReAllocStringLen
mov dword [ebp - 0x70], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
cmp esi, ebx
jne 0x404e8c
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0xc0]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push ebx
push dword [ebp - 0x7c]
mov dword [ebp - 0x78], 0x3b
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x7c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
jne 0x404e8c
xor esi, esi
inc esi
cmp dword [ebp - 0x80], esi
jne 0x404e72
mov eax, dword [ebp - 0x78]
cmp eax, 2
jbe 0x404e72
mov edi, dword [ebp + 0x108]
mov byte [ebp + eax + 0xc0], bl
push esi
lea eax, [ebp + 0xc0]
push eax
call fcn.00404eca
mov esi, eax
pop edi
mov ecx, dword [ebp + 0xfc]
mov eax, esi
pop esi
pop ebx
call fcn.00417bd0
add ebp, 0x100
leave
ret 4
cmp esi, 2
jne 0x4203af
jmp 0x4203a7
xor esi, esi
inc esi
jmp 0x404e72
cmp esi, ebx
jle 0x404e72
and esi, 0xffff
or esi, 0x80070000
jmp 0x404e72
Function at 0x404eca
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x44de1c]
push ebx
xor ebx, ebx
cmp byte [ebp + 0xc], bl
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x130]
je 0x404fa8
push 0x404f90
push 0x12c
push eax
call fcn.0040af66
add esp, 0x10
lea eax, [ebp - 0x134]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x130]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
cmp esi, ebx
jne 0x420379
lea eax, [ebp + 8]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
push ebx
push ebx
push dword [ebp - 0x134]
mov dword [ebp + 8], 0x103
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x134]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
jne 0x420379
cmp dword [ebp + 0xc], 2
je 0x404f71
cmp dword [ebp + 0xc], 1
jne 0x42039f
mov eax, dword [ebp + 8]
cmp eax, 2
jbe 0x42039f
mov byte [eax + edi], bl
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.00417bd0
leave
ret 8
push 0x404fb4
jmp 0x404ef6
cmp esi, 0xea
je 0x42039f
cmp esi, 2
je 0x42039f
cmp esi, ebx
jg 0x420391
mov eax, esi
jmp 0x404f82
and esi, 0xffff
or esi, 0x80070000
jmp 0x42038a
xor eax, eax
inc eax
jmp 0x404f82
Function at 0x40546b
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x10]
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
push edi
mov dword [ebp - 4], ebx
jne 0x420502
mov edi, dword [ebp + 0xc]
cmp edi, ebx
je 0x40555f
cmp dword [ebp + 8], ebx
mov dword [edi], ebx
mov dword [edi + 4], ebx
je 0x40555f
push dword [ebp + 8]
call fcn.004053ff
cmp eax, ebx
pop ecx
mov dword [ebp + 0xc], eax
je 0x405558
lea ecx, [ebp - 0xc]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebx
je 0x420549
push esi
call fcn.00417bc2
cmp eax, ebx
pop ecx
mov dword [ebp + 8], eax
je 0x405551
push eax
push esi
push ebx
push dword [ebp + 0xc]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x42051f
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x4090a8
push dword [ebp + 8]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40554a
mov esi, dword [ebp - 8]
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x40554a
push 1
push ebx
push ebx
push eax
call fcn.0040543c
mov ecx, dword [esi + 0xc]
xor ebx, ebx
add eax, ecx
mov dword [edi], eax
mov eax, dword [ebp + 0x10]
adc edx, ebx
test eax, eax
mov dword [edi + 4], edx
jne 0x420509
mov esi, dword [ebp - 4]
push dword [ebp + 8]
call fcn.00417b09
pop ecx
push dword [ebp + 0xc]
call fcn.00417b09
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
mov esi, 0x80004005
jmp 0x40552f
mov esi, 0x8007000e
jmp 0x405538
mov esi, 0x8007000e
jmp 0x405541
mov esi, 0x80070057
jmp 0x405541
mov dword [eax], ebx
jmp 0x405484
mov cl, byte [esi + 0x1c]
and cl, byte [esi + 0x18]
and cl, 1
neg cl
sbb ecx, ecx
neg ecx
mov dword [eax], ecx
jmp 0x40552c
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x420534
call esi
mov esi, eax
jmp 0x40552f
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x40552f
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x42055b
call esi
mov esi, eax
jmp 0x42056b
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
cmp esi, ebx
jl 0x405538
mov esi, 0x80004005
jmp 0x405538
Function at 0x405fa0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x444e9e
call fcn.00417a9e
push ecx
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0x50]
mov dword [ebp - 0x10], esi
call fcn.00415e97
and dword [ebp - 4], 0
lea edi, [esi + 0x14]
mov ecx, edi
call fcn.00405af4
mov byte [ebp - 4], 1
lea ebx, [esi + 0x3c]
mov ecx, ebx
mov dword [esi + 0x38], 0x418c68
call fcn.00406862
mov byte [ebp - 4], 2
mov dword [edi], 0x418ae0
xor edi, edi
mov dword [esi], 0x41891c
mov dword [esi + 4], 0x4189e0
mov dword [esi + 8], 0x418c7c
mov dword [esi + 0xc], 0x418d00
mov dword [esi + 0x10], 0x418cb4
mov dword [esi + 0x28], 0x418988
mov dword [esi + 0x2c], 0x418da8
mov dword [esi + 0x30], 0x418d90
mov dword [esi + 0x34], 0x418a48
mov dword [esi + 0x38], 0x418c68
mov dword [ebx], 0x418c48
mov dword [esi + 0x6c], edi
mov byte [ebp - 4], 3
lea ecx, [esi + 0x70]
call fcn.00415f05
mov byte [ebp - 4], 4
lea ecx, [esi + 0x74]
call fcn.00405f76
mov byte [ebp - 4], 5
lea ecx, [esi + 0x80]
call fcn.00405f76
mov byte [ebp - 4], 6
mov dword [esi + 0x8c], edi
mov dword [esi + 0x90], edi
mov byte [ebp - 4], 7
mov dword [esi + 0x94], edi
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x405fac
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x444e9e
call fcn.00417a9e
push ecx
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0x50]
mov dword [ebp - 0x10], esi
call fcn.00415e97
and dword [ebp - 4], 0
lea edi, [esi + 0x14]
mov ecx, edi
call fcn.00405af4
mov byte [ebp - 4], 1
lea ebx, [esi + 0x3c]
mov ecx, ebx
mov dword [esi + 0x38], 0x418c68
call fcn.00406862
mov byte [ebp - 4], 2
mov dword [edi], 0x418ae0
xor edi, edi
mov dword [esi], 0x41891c
mov dword [esi + 4], 0x4189e0
mov dword [esi + 8], 0x418c7c
mov dword [esi + 0xc], 0x418d00
mov dword [esi + 0x10], 0x418cb4
mov dword [esi + 0x28], 0x418988
mov dword [esi + 0x2c], 0x418da8
mov dword [esi + 0x30], 0x418d90
mov dword [esi + 0x34], 0x418a48
mov dword [esi + 0x38], 0x418c68
mov dword [ebx], 0x418c48
mov dword [esi + 0x6c], edi
mov byte [ebp - 4], 3
lea ecx, [esi + 0x70]
call fcn.00415f05
mov byte [ebp - 4], 4
lea ecx, [esi + 0x74]
call fcn.00405f76
mov byte [ebp - 4], 5
lea ecx, [esi + 0x80]
call fcn.00405f76
mov byte [ebp - 4], 6
mov dword [esi + 0x8c], edi
mov dword [esi + 0x90], edi
mov byte [ebp - 4], 7
mov dword [esi + 0x94], edi
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40608e
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4427ec
call fcn.00417a9e
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.00405fa0
and dword [ebp - 4], 0
mov dword [esi], 0x418748
mov dword [esi + 4], 0x4189b4
mov dword [esi + 8], 0x418788
mov dword [esi + 0xc], 0x418cdc
mov dword [esi + 0x10], 0x418ca0
mov dword [esi + 0x14], 0x418ac0
mov dword [esi + 0x28], 0x4187ac
mov dword [esi + 0x2c], 0x418d3c
mov dword [esi + 0x30], 0x418d24
mov dword [esi + 0x34], 0x418a0c
mov dword [esi + 0x38], 0x4189a0
mov dword [esi + 0x3c], 0x418c28
mov ecx, dword [0x44de90]
mov eax, dword [ecx]
call dword [eax + 4]
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x406099
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4427ec
call fcn.00417a9e
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.00405fa0
and dword [ebp - 4], 0
mov dword [esi], 0x418748
mov dword [esi + 4], 0x4189b4
mov dword [esi + 8], 0x418788
mov dword [esi + 0xc], 0x418cdc
mov dword [esi + 0x10], 0x418ca0
mov dword [esi + 0x14], 0x418ac0
mov dword [esi + 0x28], 0x4187ac
mov dword [esi + 0x2c], 0x418d3c
mov dword [esi + 0x30], 0x418d24
mov dword [esi + 0x34], 0x418a0c
mov dword [esi + 0x38], 0x4189a0
mov dword [esi + 0x3c], 0x418c28
mov ecx, dword [0x44de90]
mov eax, dword [ecx]
call dword [eax + 4]
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x406f20
Capabilities:
Create directory

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x406ff0
xor bl, bl
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
test ebp, ebp
mov esi, 0x44db70
mov edi, 0x104
je 0x41f484
push 0x406fdc
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ecx, ecx
cmp eax, ecx
je 0x406fa3
push esi
push ecx
push ecx
push 0x23
push ecx
call eax
test eax, eax
jne 0x406fa3
push 0x406fb8
push edi
push esi
call fcn.0040a5b7
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x406f89
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x406fa3
push 0x4090a8
push edi
push esi
call fcn.0040a5b7
push 0x406f18
push edi
push esi
call fcn.0040a5b7
mov bl, 1
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test bl, bl
je 0x41f484
pop edi
pop esi
pop ebp
pop ebx
ret
push 0x406f18
push edi
push esi
call fcn.004113c0
jmp 0x406fb2

Function at 0x40705d
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x443157
call fcn.00417a9e
push ecx
push esi
mov esi, ecx
push 0
mov dword [ebp - 0x10], esi
call fcn.00406ffc
and dword [ebp - 4], 0
lea ecx, [esi + 0x30]
mov dword [esi], 0x4195b0
mov dword [esi + 4], 0x419848
mov dword [esi + 8], 0x419820
mov dword [esi + 0xc], 0x419860
call fcn.00415d6c
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x4071d6
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4434eb
call fcn.00417a9e
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.0040718c
and dword [ebp - 4], 0
lea ecx, [esi + 0x30]
mov dword [esi], 0x4195f8
mov dword [esi + 4], 0x419848
mov dword [esi + 8], 0x419820
mov dword [esi + 0xc], 0x419860
call fcn.00415d6c
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x407921
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
je 0x407935
mov dword [eax], edi
cmp dword [ebp + 8], edi
je 0x407a1d
cmp eax, edi
je 0x407a1d
cmp dword [0x44da78], edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
jbe 0x407979
mov esi, 0x44da28
push dword [esi]
push dword [ebp + 8]
call fcn.004078ee
test eax, eax
pop ecx
pop ecx
je 0x41fc7e
inc edi
add esi, 0x14
cmp edi, dword [0x44da78]
jb 0x407959
mov edi, dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
lea ecx, [ebp - 0x10]
push ecx
xor eax, eax
lea ecx, [ebp - 4]
push ecx
push eax
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebp + 0xc]
push dword [ecx]
mov dword [ebp - 8], eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push eax
call edi
call ebx
mov esi, eax
cmp esi, 0x7a
jne 0x407a14
push dword [ebp - 4]
call fcn.00417bc2
xor esi, esi
cmp eax, esi
pop ecx
mov dword [ebp - 0xc], eax
je 0x407a0d
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, esi
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
je 0x407a06
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 4]
push ecx
push dword [ebp - 0xc]
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp + 8]
push esi
call edi
test eax, eax
je 0x41fd1d
push dword [ebp - 0xc]
call fcn.00417b09
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
test esi, esi
je 0x4079f4
jmp 0x407979
mov esi, 0x8007000e
jmp 0x4079eb
mov esi, 0x8007000e
jmp 0x4079f4
test esi, esi
jle 0x4079f4
jmp 0x41fd51
mov esi, 0x80070057
jmp 0x4079f4
xor esi, esi
lea eax, [ebp - 8]
push eax
push esi
push esi
push esi
push esi
push esi
lea edi, [edi + edi*4]
shl edi, 2
push esi
push dword [edi + 0x44da38]
xor eax, eax
mov al, byte [edi + 0x44da32]
push dword [edi + 0x44da34]
push eax
lea eax, [edi + 0x44da2c]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x41fcda
call ebx
test eax, eax
jg 0x41fcc2
call ebx
mov esi, eax
jmp 0x41fcd2
call ebx
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
test esi, esi
jne 0x407979
xor eax, eax
mov al, byte [edi + 0x44da32]
push eax
call dword [sym.imp.ADVAPI32.dll_GetSidLengthRequired]
mov edi, eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
je 0x41fd0a
push dword [ebp - 8]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_CopySid]
jmp 0x41fd0f
mov esi, 0x8007000e
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
jmp 0x4079fd
call ebx
test eax, eax
jg 0x41fd29
call ebx
mov esi, eax
jmp 0x41fd39
call ebx
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
test esi, esi
je 0x4079eb
mov eax, dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x4079eb
and esi, 0xffff
or esi, 0x80070000
jmp 0x4079f4
Function at 0x409498
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x444538
call fcn.00417a9e
sub esp, 0x31c
mov ecx, dword [ebp + 8]
mov eax, dword [0x44de1c]
push esi
push edi
xor edi, edi
cmp ecx, edi
mov dword [ebp - 0x10], eax
je 0x41d673
mov eax, dword [ebp + 0xc]
cmp eax, edi
je 0x41d673
mov dword [ecx], edi
mov dword [eax], edi
lea eax, [ebp - 0x21c]
push eax
push 0x20019
push 0x409350
mov ecx, 0x44e048
call fcn.004095f5
mov esi, eax
cmp esi, edi
jne 0x4095db
xor esi, esi
push ebx
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x214], edi
xor ebx, ebx
jmp 0x409547
xor edi, edi
cmp ebx, dword [ebp - 0x214]
ja 0x409547
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x328]
call fcn.0040e03c
mov dword [ebp - 4], edi
push dword [eax]
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi + ebx*4 - 4], eax
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x324]
cmp dword [ebp - 0x328], eax
jne 0x41d662
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x210]
push eax
push ebx
push dword [ebp - 0x21c]
mov dword [ebp - 0x220], 0x200
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, edi
jne 0x4095c2
mov eax, dword [ebp - 0x214]
inc ebx
cmp ebx, eax
mov byte [ebp - 0x11], 0
jbe 0x409510
mov edi, eax
shl edi, 2
lea eax, [edi + 0x28]
push eax
call fcn.00417bc2
test eax, eax
pop ecx
mov dword [ebp - 0x224], eax
je 0x409506
test esi, esi
jne 0x41d63f
mov eax, dword [ebp - 0x224]
add dword [ebp - 0x214], 0xa
mov dword [ebp - 0x218], eax
mov esi, eax
jmp 0x409506
mov eax, dword [ebp + 8]
push dword [ebp - 0x21c]
mov dword [eax], esi
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
mov eax, esi
pop esi
call fcn.00417bd0
leave
ret 8
push dword [ebp - 0x218]
mov ecx, edi
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00417b09
pop ecx
jmp 0x4095a8
push dword [ebp - 0x328]
call fcn.00417b09
pop ecx
jmp 0x409547
mov esi, 0x80070057
jmp 0x4095db

Function at 0x4096e9
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, ecx
call fcn.0040ea24
mov esi, eax
test esi, esi
jl 0x409762
mov ecx, edi
call fcn.00409392
test eax, eax
mov dword [ebp - 4], eax
jne 0x409774
call fcn.00415081
mov byte [ebp - 8], al
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 8]
call fcn.004090f2
test al, al
je 0x40976f
push dword [edi + 0x64]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x409768
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov esi, eax
neg esi
sbb esi, esi
and esi, 0x7fffbffb
push edi
add esi, 0x80004005
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 8], 0
je 0x41ebda
pop edi
mov eax, esi
pop esi
leave
ret
mov esi, 0x80004005
jmp 0x409758
mov esi, dword [ebp - 4]
jmp 0x409758
mov esi, 0x80004005
jmp 0x409762
call dword [sym.imp.ole32.dll_CoRevertToSelf]
jmp 0x409762