joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47e140
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59f25d
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x63434c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x63ccec], 0
jne 0x47e192
push 0
push 0
push 6
call fcn.00438860
movzx eax, al
add esp, 0xc
mov dword [0x63ccf0], eax
mov dword [0x63ccec], 1
jmp 0x47e197
mov eax, dword [0x63ccf0]
test eax, eax
jne 0x47e1ac
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x10]
push ecx
push 8
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x47e234
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x14], 1
push eax
push 4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x1c], 0
push eax
push 0x12
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x47e234
mov eax, dword [ebp - 0x14]
cmp eax, 2
je 0x47e202
cmp eax, 3
je 0x47e202
xor esi, esi
jmp 0x47e207
mov esi, 1
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x47e21a
cmp eax, 0xffffffff
je 0x47e21a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x47e247
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x47e247
cmp eax, 0xffffffff
je 0x47e247
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], 0
call fcn.004291f0
mov ecx, eax
test ecx, ecx
je 0x47e31c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov eax, str.SoftwareMicrosoftWindowsCurrentVersionPoliciesSystem
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
test eax, 0xffff0000
jne 0x47e289
movzx eax, ax
push eax
call fcn.00429d30
jmp 0x47e295
push 0x39
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesSystem
call fcn.0042a000
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
push esi
push 0x80000002
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x47e2eb
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], 4
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push str.EnableLUA
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x14]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x47e303
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
cmp dword [ebp - 0x18], eax
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00429b00
int3
Function at 0x47e6c0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59f305
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x63434c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
push eax
mov eax, dword [ebp + 8]
push dword [eax]
call fcn.0047c550
mov ebx, dword [ebp - 0x18]
add esp, 8
mov edi, ebx
cmp edi, dword [ebp - 0x14]
je 0x47e809
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x47e744
mov ecx, dword [ebx + 4]
mov eax, dword [ebx]
cmp eax, ecx
je 0x47e744
mov edx, dword [edi]
cmp dword [eax], edx
je 0x47e7fa
add eax, 4
cmp eax, ecx
jne 0x47e735
cmp byte [ebp + 0x10], 0
je 0x47e75c
push dword [edi]
call fcn.0047e330
add esp, 4
test eax, eax
jne 0x47e7fa
push dword [edi]
lea eax, [ebp + 8]
push eax
call fcn.0047c330
add esp, 8
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 1
mov ecx, dword [eax]
test ecx, ecx
je 0x47e7db
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
jl 0x47e7de
push ecx
push eax
call fcn.0055d020
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x47e7db
mov eax, dword [ebp + 8]
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
je 0x47e7de
mov esi, dword [edi]
push esi
call fcn.0047e330
add esp, 4
test eax, eax
jne 0x47e7d3
push esi
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x47e7d3
cmp esi, 0xffffffff
je 0x47e7d3
push 0xffff
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
jmp 0x47e7e1
mov eax, dword [ebp + 8]
lea edx, [eax - 0x10]
or eax, 0xffffffff
mov byte [ebp - 4], 0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x47e7fa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 4
cmp edi, dword [ebp - 0x14]
jne 0x47e726
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x47e839
mov ecx, dword [ebp - 0x10]
mov eax, ebx
sub ecx, ebx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x47e82f
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47e84b
push ecx
push ebx
call fcn.00558004
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00566a14
int3
Function at 0x47ef60
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59f3dd
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x63434c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], edi
mov ecx, dword [ebx]
lea edx, [ecx - 0x10]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
cmp dword [edx + 4], edi
je 0x47efe0
mov eax, dword [edx + 0xc]
lea esi, [edx + 0xc]
shr eax, 0x1f
test al, al
je 0x47efbf
cmp dword [ecx - 8], edi
jl 0x47f11c
mov dword [ecx - 0xc], edi
mov eax, dword [ebx]
mov byte [eax], 0
jmp 0x47efe0
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x47efd3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 1
test esi, esi
je 0x47f106
cmp esi, 0xffffffff
je 0x47f106
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x18], eax
cmp eax, 0x200000
ja 0x47f0eb
lea edx, [eax + 1]
mov dword [ebp - 0x14], 0
mov edi, eax
test edx, edx
js 0x47f11c
mov eax, dword [ebx]
mov ecx, 1
mov dword [ebp - 0x10], eax
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edx
or ecx, eax
jge 0x47f068
push edx
mov ecx, ebx
call fcn.00438050
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
jmp 0x47f06b
mov eax, dword [ebp - 0x10]
mov ebx, eax
lea ecx, [ecx]
push 0
lea eax, [ebp - 0x14]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x47f0e9
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x47f0e9
add ebx, eax
sub edi, eax
jne 0x47f070
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
mov edi, dword [ebp + 0xc]
mov byte [ecx + eax], 0
mov eax, dword [edi]
test eax, eax
jne 0x47f0a7
xor ecx, ecx
jmp 0x47f0b9
push dword [eax - 8]
push eax
call fcn.00566af1
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x47f11c
mov eax, dword [edi]
cmp ecx, dword [eax - 8]
jg 0x47f11c
mov dword [eax - 0xc], ecx
mov eax, dword [edi]
mov edi, 1
push esi
mov byte [ecx + eax], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor edi, edi
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00429b00
int3
Function at 0x47f220
Capabilities:
Delete directory
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5989c5
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x63434c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.004291f0
mov ecx, eax
test ecx, ecx
je 0x47f389
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov edx, dword [ebp + 8]
mov dword [ebp - 4], 0
test edx, edx
je 0x47f2a1
test edx, 0xffff0000
jne 0x47f286
movzx eax, dx
lea ecx, [ebp - 0x10]
push eax
call fcn.00429d30
jmp 0x47f2ad
mov ecx, edx
lea esi, [ecx + 2]
jmp 0x47f290
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47f290
sub ecx, esi
sar ecx, 1
jmp 0x47f2a3
xor ecx, ecx
push ecx
push edx
lea ecx, [ebp - 0x10]
call fcn.0042a000
mov esi, dword [ebp - 0x10]
mov dword [ebp - 4], 1
mov eax, dword [esi - 0xc]
test eax, eax
je 0x47f35b
js 0x47f2dc
push 0x5b4804
push esi
call fcn.0055d020
add esp, 8
test eax, eax
je 0x47f2dc
sub eax, esi
sar eax, 1
je 0x47f35b
cmp dword [esi - 0xc], 0
jl 0x47f2fa
push 0x5b7a0c
push esi
call fcn.0055d020
add esp, 8
test eax, eax
je 0x47f2fa
sub eax, esi
sar eax, 1
je 0x47f35b
lea eax, [ebp - 0x10]
push eax
call fcn.0047f130
mov esi, dword [ebp - 0x10]
add esp, 4
cmp dword [ebp + 0x10], 0
je 0x47f326
push dword [ebp + 0xc]
push esi
call fcn.00484ad0
add esp, 8
mov edi, eax
xor ebx, ebx
test edi, edi
setne bl
jmp 0x47f35d
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
jne 0x47f352
cmp dword [ebp + 0xc], edi
je 0x47f352
cmp eax, 2
je 0x47f352
cmp eax, 3
je 0x47f352
push 4
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor ebx, ebx
test edi, edi
setne bl
jmp 0x47f35d
xor ebx, ebx
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x47f375
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00429b00
int3

Function at 0x47fae0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 8]
mov ebx, 1
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x47fafc
pop edi
pop ebx
pop ebp
ret
call fcn.0047e140
test eax, eax
je 0x47fb49
call fcn.004861e0
test eax, eax
je 0x47fb49
push 6
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
mov eax, dword [ebp + 0xc]
js 0x47fb3a
push esi
push eax
push edi
call fcn.0047fb70
add esp, 8
mov esi, eax
call dword [sym.imp.ole32.dll_CoUninitialize]
test esi, esi
pop esi
jns 0x47fb63
mov eax, dword [ebp + 0xc]
push 0
push 1
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
jmp 0x47fb58
push 0
push 1
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.0047f450
mov ebx, eax
add esp, 0x1c
xor eax, eax
test ebx, ebx
pop edi
setne al
pop ebx
pop ebp
ret
Function at 0x480130
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x63434c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
test ebx, ebx
je 0x4801d1
push edi
push 0x24
push dword [esi]
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
test edi, edi
je 0x4801cd
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov eax, dword [ebp - 0x1c]
cmp eax, 4
je 0x48018d
cmp eax, 7
jne 0x4801ca
lea eax, [ebp - 0x20]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x4801ca
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x1c], 1
je 0x4801c1
push 0x64
call ebx
inc esi
cmp esi, 0x14
jl 0x4801a6
mov ebx, dword [ebp - 0x24]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call esi
push ebx
call esi
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00557e89
mov esp, ebp
pop ebp
ret
Function at 0x4806b0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59f610
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x63434c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
push 0
push 2
mov dword [ebp - 0x23c], 0x22c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x4807eb
mov dword [ebp - 4], 0
call fcn.004291f0
mov ecx, eax
test ecx, ecx
je 0x48080c
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x240], esi
lea eax, [ebp - 0x23c]
mov dword [ebp - 4], 1
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4807cc
nop
cmp byte [ebp + 0xc], 0
je 0x480758
push dword [ebp - 0x234]
call fcn.0047e330
add esp, 4
test eax, eax
jne 0x4807b7
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x480761
sub eax, edx
lea ecx, [ebp - 0x240]
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0042a000
test ebx, ebx
je 0x48080c
mov esi, dword [ebp - 0x240]
push ebx
push esi
call fcn.00566ed2
add esp, 8
test eax, eax
jne 0x4807b7
push dword [ebp - 0x234]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 4
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea eax, [ebp - 0x23c]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x480740
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4807eb
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00557e89
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00429b00
int3
Function at 0x480a60
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59f690
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x63434c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x22c], esi
mov dword [ebp - 0x228], esi
mov dword [ebp - 4], esi
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], esi
push eax
push 0x2001f
push esi
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsCompatibility_AssistantPersisted
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x480add
mov esi, dword [ebp - 0x220]
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x22c], eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 0
test eax, eax
je 0x480b4d
lea eax, [ebp - 0x234]
mov dword [ebp - 0x220], 0
push eax
lea eax, [ebp - 0x220]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsCompatibility_AssistantPersisted
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x480b41
test esi, esi
je 0x480b2b
push esi
call edi
mov esi, dword [ebp - 0x220]
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x22c], 0
mov byte [ebp - 4], 0
test eax, eax
jne 0x480bd5
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.0055c530
lea eax, [ebp - 0x224]
push 0
push eax
call fcn.0047bfc0
add esp, 0x14
lea eax, [ebp - 0x21c]
push 0x104
push eax
push dword [ebp - 0x224]
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
push 4
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], 1
push eax
push 4
push 0
lea eax, [ebp - 0x21c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test esi, esi
je 0x480bb7
push esi
call edi
xor esi, esi
mov edx, dword [ebp - 0x224]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x480bd5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x480bdc
push esi
call edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00557e89
mov esp, ebp
pop ebp
ret
Function at 0x485940
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, 0
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x811c9dc5
sub edx, edi
sar edx, 1
add edx, edx
je 0x485971
lea ecx, [ecx]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edx
jb 0x485960
pop edi
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x485c10
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59faf0
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x63434c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x21c]
mov ebx, dword [ebp + 0xc]
push 0x20a
push 0
mov dword [ebp - 0x224], esi
push eax
mov dword [ebp - 0x224], ebx
call fcn.0055c530
add esp, 0xc
mov eax, ebx
cmp dword [ebx + 0x14], 8
jb 0x485c70
mov eax, dword [ebx]
push 0x104
lea ecx, [ebp - 0x21c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, eax
mov dword [ebp - 0x240], ecx
test ecx, ecx
je 0x485e18
cmp ecx, 0x104
ja 0x485cdc
xor eax, eax
mov dword [esi], 0
lea ecx, [ebp - 0x21c]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
lea edx, [ecx + 2]
mov word [esi], ax
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x485cc0
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
jmp 0x485e37
lea eax, [ecx + 1]
mov dword [ebp - 0x234], 0
xor edi, edi
mov dword [ebp - 0x220], eax
xor ebx, ebx
mov dword [ebp - 0x230], edi
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x228], ebx
test eax, eax
je 0x485d95
cmp eax, 0x7fffffff
ja 0x485e5c
push eax
lea ecx, [ebp - 0x230]
call fcn.0042e270
mov ecx, dword [ebp - 0x220]
mov edi, eax
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x23c], edi
mov dword [ebp - 0x230], edi
lea edx, [ecx + ecx]
lea ecx, [ebp - 0x234]
mov ax, word [ecx]
lea ebx, [edx + edi]
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x228], ebx
cmp ax, word [ecx]
mov ecx, dword [ebp - 0x220]
jne 0x485d76
push edx
push 0
push edi
call fcn.0055c530
add esp, 0xc
jmp 0x485d87
xor eax, eax
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edi, dword [ebp - 0x23c]
mov ecx, dword [ebp - 0x240]
mov eax, ebx
mov dword [ebp - 0x22c], eax
mov eax, dword [ebp - 0x224]
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
jb 0x485daa
mov eax, dword [eax]
push ecx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, edi
mov dword [esi], 0
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x485dd1
sub ecx, edx
sar ecx, 1
push ecx
push edi
mov ecx, esi
call fcn.0042e2d0
test edi, edi
je 0x485e3e
sub ebx, edi
mov eax, edi
and ebx, 0xfffffffe
cmp ebx, 0x1000
jb 0x485e0c
mov edi, dword [edi - 4]
add ebx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x485e61
push ebx
push edi
call fcn.00558004
add esp, 8
jmp 0x485e3e
xor eax, eax
mov dword [esi], 0
push eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
push 0x5b3734
mov ecx, esi
call fcn.0042e2d0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00557e89
mov esp, ebp
pop ebp
ret
call fcn.0042a260
call fcn.00566a14
int3
Function at 0x4861e0
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x63434c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
mov word [ebp - 8], 0x500
push eax
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x48623c
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00557e89
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x14]
neg eax
sbb eax, eax
and dword [ebp - 0x10], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00557e89
mov esp, ebp
pop ebp
ret