joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46a520
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59d3ee
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
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 edi, dword [ebp + 8]
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 1
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
cmp dword [ebp + 0x20], 8
lea ecx, [ebp - 0x2c]
lea eax, [ebp + 0xc]
mov dword [ebp - 0x34], 1
cmovae eax, dword [ebp + 0xc]
push ecx
push eax
mov dword [ebp - 0x2c], 0
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x46a693
xor esi, esi
cmp dword [ebp - 0x2c], esi
jle 0x46a68c
lea ecx, [ecx]
mov edx, dword [eax + esi*4]
test edx, edx
je 0x46a682
xor eax, eax
mov dword [ebp - 0x28], 0
mov word [ebp - 0x28], ax
mov eax, edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
lea ebx, [eax + 2]
jmp 0x46a5e0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46a5e0
sub eax, ebx
lea ecx, [ebp - 0x28]
sar eax, 1
push eax
push edx
call fcn.0042e2d0
mov ecx, dword [edi + 4]
mov byte [ebp - 4], 2
cmp ecx, dword [edi + 8]
je 0x46a639
mov eax, dword [ebp - 0x28]
mov edx, 7
mov dword [ecx], eax
mov eax, dword [ebp - 0x24]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 0x18]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp - 0x14]
mov dword [ecx + 0x14], eax
xor eax, eax
add dword [edi + 4], 0x18
mov word [ebp - 0x28], ax
jmp 0x46a648
lea eax, [ebp - 0x28]
push eax
push ecx
mov ecx, edi
call fcn.0043f410
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x46a67f
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46a675
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46a6e7
push edx
push ecx
call fcn.00558004
add esp, 8
mov eax, dword [ebp - 0x30]
inc esi
cmp esi, dword [ebp - 0x2c]
jl 0x46a5b0
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [ebp + 0x20]
cmp edx, 8
jb 0x46a6c9
mov ecx, dword [ebp + 0xc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46a6bf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46a6e7
push edx
push ecx
call fcn.00558004
add esp, 8
mov eax, edi
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.00566a14
int3
Function at 0x46b880
Capabilities:
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59d4ed
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x63434c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x34]
push eax
push 0
push dword [ebx + 0x18]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x46b9dd
mov eax, dword [ebp - 0x18]
xor ecx, ecx
add ecx, dword [ebp - 0x14]
adc eax, 0
mov dword [ebp - 0x3c], eax
jne 0x46b8fc
cmp ecx, 0xa00000
jb 0x46b9dd
mov eax, dword [ebx + 0x18]
sub eax, 0x10
push eax
call fcn.00429b20
add eax, 0x10
add esp, 4
mov dword [ebp - 0x3c], eax
mov ecx, dword [eax - 0x10]
mov dword [ebp - 4], 0
test ecx, ecx
je 0x46b92a
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x46b940
call fcn.004291f0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x46b9fd
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x38], eax
mov eax, 0x5baba8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x38]
test eax, 0xffff0000
jne 0x46b969
movzx eax, ax
push eax
call fcn.00429d30
jmp 0x46b973
push 0x5baba8
call fcn.0046b7f0
mov esi, dword [ebp - 0x38]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
push dword [esi - 0xc]
push esi
call fcn.00429970
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x46b99e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x3c]
mov ebx, dword [ebx + 0x18]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x46b9dd
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 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 0x46ba10
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
mov eax, dword [0x63434c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xcc]
push edi
push 0xc8
push 0
push eax
mov edi, ecx
call fcn.0055c530
add esp, 0xc
test esi, esi
jne 0x46ba49
xor eax, eax
jmp 0x46ba5f
mov eax, esi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46ba50
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [edi + 0x18]
call fcn.0042a000
mov eax, dword [ebp + 0xc]
mov ecx, edi
mov dword [edi + 0x1c], eax
mov dword [edi], 1
call fcn.0046b880
lea eax, [edi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0xcc]
push str.GlobalBFD88F2D_0990_4de4_AD0F_764F5894389A__d
push eax
call fcn.0046c1c0
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
lea eax, [ebp - 0xcc]
add esp, 0xc
push eax
push 1
push 1
push 0
call esi
push 0
push 0
push 1
push 0
mov dword [edi + 0xc], eax
call esi
cmp dword [edi + 0xc], 0
mov dword [edi + 0x10], eax
je 0x46bb03
test eax, eax
je 0x46bb03
push 0
push 0
push edi
push 0x46bf00
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x14], eax
test eax, eax
je 0x46bb03
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00557e89
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00557e89
mov esp, ebp
pop ebp
ret 8
Function at 0x46c420
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwarekingsoftOffice6.0kpacketusersetting
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
mov eax, dword [ebp - 4]
jne 0x46c4c6
test eax, eax
je 0x46c4c2
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push str.prever
push eax
call esi
mov eax, dword [ebp - 4]
test eax, eax
je 0x46c4c1
push str.prepath
push eax
call esi
mov eax, dword [ebp - 4]
test eax, eax
je 0x46c4c1
push str.prepackage
push eax
call esi
mov eax, dword [ebp - 4]
test eax, eax
je 0x46c4c1
push str.precontrolpath
push eax
call esi
mov eax, dword [ebp - 4]
test eax, eax
je 0x46c4c1
push str.pretime
push eax
call esi
mov eax, dword [ebp - 4]
test eax, eax
je 0x46c4c1
push str.multithreadmode
push eax
call esi
mov eax, dword [ebp - 4]
test eax, eax
je 0x46c4c1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x46c4c2
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret

Function at 0x46c4e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax]
mov eax, dword [ecx - 0xc]
test eax, eax
je 0x46c55c
mov esi, dword [ebp + 0xc]
mov edx, dword [esi]
cmp dword [edx - 0xc], 0
je 0x46c55c
test eax, eax
js 0x46c561
movzx eax, word [ecx]
push eax
push edx
call fcn.0055cf79
add esp, 8
test eax, eax
je 0x46c55c
sub eax, dword [esi]
sar eax, 1
cmp eax, 3
jl 0x46c55c
push edi
push 0x5b7698
lea eax, [ebp + 8]
push esi
push eax
call fcn.004297b0
add esp, 0xc
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, dword [ebp + 8]
neg eax
sbb esi, esi
add edi, 0xfffffff0
neg esi
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x46c556
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
pop edi
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
push 0x80070057
call fcn.00429b00
int3
Function at 0x474160
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4741d1
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x47419f
cmp eax, 2
jne 0x4741bb
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x4741cb
test ecx, ecx
je 0x4741c6
test cl, 1
jne 0x4741bb
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x4741cb
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x47a130
Capabilities:
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59e95d
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 0x47a2c4
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 0
test edi, edi
je 0x47a1b1
test edi, 0xffff0000
jne 0x47a196
movzx eax, di
lea ecx, [ebp - 0x10]
push eax
call fcn.00429d30
jmp 0x47a1bd
mov ecx, edi
lea edx, [ecx + 2]
jmp 0x47a1a0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47a1a0
sub ecx, edx
sar ecx, 1
jmp 0x47a1b3
xor ecx, ecx
push ecx
push edi
lea ecx, [ebp - 0x10]
call fcn.0042a000
push edi
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ebx, 0xffffffff
cmp eax, ebx
jne 0x47a293
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
or ebx, ebx
test eax, eax
jne 0x47a293
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x47a293
mov esi, dword [ebp - 0x10]
push 0x5c
push esi
call fcn.0055cf79
add esp, 8
test eax, eax
je 0x47a24f
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x47a24f
push eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.00448c60
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00429740
mov edx, dword [ebp - 0x14]
mov eax, ebx
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x47a257
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x47a257
lea ecx, [ebp - 0x10]
call fcn.00429bc0
mov esi, dword [ebp - 0x10]
cmp dword [esi - 0xc], 0
jne 0x47a264
xor edi, edi
jmp 0x47a29b
push esi
call fcn.0047a130
add esp, 4
test eax, eax
jne 0x47a275
xor edi, edi
jmp 0x47a29b
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x47a296
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x47a296
xor edi, edi
jmp 0x47a29b
mov esi, dword [ebp - 0x10]
mov edi, 1
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x47a2b0
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
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 0x80004005
call fcn.00429b00
int3
Function at 0x47bb30
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5fa968
push 0x55c6d0
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x63434c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x30]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x47bbe5
lea eax, [ebp - 0x3c]
push eax
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x47bbe5
mov dword [ebp - 0x2c], 1
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], 2
push esi
push esi
push esi
lea eax, [ebp - 0x2c]
push eax
push esi
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov ecx, 1
test eax, eax
cmovne esi, ecx
mov dword [ebp - 0x34], esi
mov dword [ebp - 4], 0xfffffffe
call fcn.0047bc12
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00557e89
mov esp, ebp
pop ebp
ret

Function at 0x47c330
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59eea7
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
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
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x224], edi
mov dword [ebp - 0x21c], 0
mov dword [ebp - 4], 1
call fcn.004291f0
mov ecx, eax
test ecx, ecx
je 0x47c44b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x21c], 1
call fcn.0055c530
add esp, 0xc
push esi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x47c407
lea eax, [ebp - 0x228]
push eax
push 4
lea eax, [ebp - 0x220]
push eax
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x47c400
push 0x104
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x220]
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47c410
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.0042a000
mov eax, 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
push 0x80004005
call fcn.00429b00
int3
Function at 0x47c460
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
mov eax, dword [0x63434c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x22c]
push 0x228
push 0
push eax
call fcn.0055c530
push 0x22c
lea eax, [ebp - 0x45c]
push 0
push eax
call fcn.0055c530
add esp, 0x18
mov dword [ebp - 0x230], 0x22c
mov dword [ebp - 0x45c], 0x22c
xor ebx, ebx
mov dword [ebp - 0x454], 0xffffffff
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x47c518
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x47c4f1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [ebp - 0x230]
jmp 0x47c529
cmp dword [ebp - 0x228], edi
je 0x47c50c
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x47c4f1
jmp 0x47c511
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
lea esi, [ebp - 0x45c]
lea eax, [ebp - 0x230]
cmovne esi, eax
mov eax, dword [ebp + 8]
mov ecx, 0x8b
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00557e89
mov esp, ebp
pop ebp
ret

Function at 0x47c550
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x63434c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x47c63c
cmp word [edi], 0
je 0x47c63c
test esi, esi
je 0x47c63c
push 0x228
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x230], 0x22c
push 0
push eax
call fcn.0055c530
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x47c63c
lea eax, [ebp - 0x230]
push eax
push ebx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x47c61a
jmp 0x47c5d0
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.00566ed2
add esp, 8
test eax, eax
jne 0x47c609
mov ecx, dword [esi + 4]
cmp ecx, dword [esi + 8]
je 0x47c5fa
mov eax, dword [ebp - 0x228]
mov dword [ecx], eax
add dword [esi + 4], 4
jmp 0x47c609
lea eax, [ebp - 0x228]
push eax
push ecx
mov ecx, esi
call fcn.0042a490
lea eax, [ebp - 0x230]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x47c5d0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esi]
xor eax, eax
cmp ecx, dword [esi + 4]
pop edi
pop esi
setne al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00557e89
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00557e89
mov esp, ebp
pop ebp
ret
Function at 0x47ca40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59ef7d
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
mov dword [ebp - 4], 0
call fcn.004291f0
mov ecx, eax
test ecx, ecx
je 0x47cc28
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 2
push eax
push 0x20019
push 0
push dword [0x60e45c]
mov dword [ebp - 0x14], 0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [ebp - 0x14]
mov ebx, dword [str.LocationRoot]
mov dword [ebp - 0x18], 0
test eax, eax
je 0x47cb76
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x18]
push ecx
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0
push ebx
push eax
call edi
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x47caf2
cmp eax, 2
jne 0x47cb76
lea ecx, [ebp - 0x10]
call fcn.00429bc0
mov edx, dword [ebp - 0x18]
shr edx, 1
add edx, 1
js 0x47cc1e
mov esi, dword [ebp - 0x10]
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x47cb28
push edx
lea ecx, [ebp - 0x10]
call fcn.00429e50
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x1c]
push eax
push 0
push ebx
push dword [ebp - 0x14]
call edi
test eax, eax
jne 0x47cb76
mov eax, dword [ebp - 0x18]
xor ecx, ecx
shr eax, 1
mov word [esi + eax*2], cx
test esi, esi
jne 0x47cb50
xor eax, eax
jmp 0x47cb64
push dword [esi - 8]
push esi
call fcn.00566c13
add esp, 8
test eax, eax
js 0x47cc1e
cmp eax, dword [esi - 8]
jg 0x47cc1e
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
push str.office6cfgsoem.ini
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.00448eb0
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.00429740
mov edx, dword [ebp - 0x1c]
or edi, 0xffffffff
mov byte [ebp - 4], 2
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x47cbb6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ecx
mov esi, esp
mov dword [ebp - 0x1c], esi
mov ebx, dword [ebp - 0x10]
add ebx, 0xfffffff0
push ebx
call fcn.00429b20
add esp, 4
add eax, 0x10
mov dword [esi], eax
call fcn.00448050
mov ecx, dword [ebp - 0x14]
add esp, 0x10
mov esi, eax
test ecx, ecx
je 0x47cbf1
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], 0
lock xadd dword [ebx + 0xc], edi
dec edi
test edi, edi
jg 0x47cc0a
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
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
push 0x80004005
call fcn.00429b00
int3
Function at 0x47e040
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 4]
push esi
mov esi, dword [ebp + 8]
push edi
push eax
push 0
push 0
push 1
push esi
mov dword [ebp - 4], 0
call ebx
push dword [ebp - 4]
call fcn.00558012
add esp, 4
mov edi, eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push edi
push 1
push esi
call ebx
test eax, eax
je 0x47e12e
mov ebx, dword [edi]
test ebx, ebx
je 0x47e12e
push ebx
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x47e12e
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
push 0
push 0
push 1
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push dword [ebp - 4]
call fcn.00558012
add esp, 4
mov dword [ebp - 8], eax
lea ecx, [ebp - 4]
push ecx
push dword [ebp - 4]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov esi, dword [ebp - 8]
test eax, eax
je 0x47e11c
mov eax, dword [esi]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x47e11c
push eax
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x47e11c
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
push edi
mov esi, eax
call fcn.0055801b
push dword [ebp - 8]
call fcn.0055801b
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.0055801b
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call fcn.0055801b
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret