joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100433a0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10083498
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [section..data]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x10043408
push edi
call fcn.1006c1fc
mov esi, eax
add esp, 4
test esi, esi
je 0x10043408
push esi
push edi
push 0
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x1004340a
push esi
call fcn.1006d370
add esp, 4
xor esi, esi
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov edi, dword [ebp + 8]
add edi, 0xfffffff0
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1004342e
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10046b20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10085160
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
call fcn.10021470
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x10046b82
push 0x80004005
call fcn.10021340
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x40], 0
movzx eax, word [esp + 0x2c]
push eax
movzx eax, word [esp + 0x2e]
push eax
movzx eax, word [esp + 0x30]
push eax
movzx eax, word [esp + 0x32]
push eax
movzx eax, word [esp + 0x32]
push eax
lea eax, [esp + 0x28]
push str._02d__02d__02d:_02d:_02d
push eax
call fcn.1003f740
add esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x1c]
push eax
push ebx
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
call fcn.10021470
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x10046c0a
push 0x80004005
call fcn.10021340
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
push edi
mov byte [esp + 0x44], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov edi, dword [esp + 0x18]
push edx
push eax
push edi
push dword [esp + 0x2c]
lea eax, [esp + 0x24]
push dword [esp + 0x2c]
push ebx
push str.__d:_d____d____s__llu_:__s_r_n
push eax
call fcn.1003f740
add esp, 0x24
push 0
push 0x80
push 4
push 0
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, dword [esp + 0x10]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10046ca8
push 2
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10046c80
sub eax, edx
lea ecx, [esp + 0x18]
push 0
sar eax, 1
push ecx
add eax, eax
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esi - 0x10]
mov byte [esp + 0x40], 0
or esi, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x10046cc9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov dword [esp + 0x40], 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x10046ce8
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.1006abfd
mov esp, ebp
pop ebp
ret
Function at 0x100478f0
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 8
push ebx
push esi
push edi
mov edi, edx
mov dword [eax], 0
push edi
push 0x40
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x10047970
push edi
push ebx
push esi
call fcn.1006f6d0
add esp, 0xc
lea eax, [ebp - 4]
push 0xf0000000
push 0x18
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x10047969
mov ecx, dword [ebp - 4]
call fcn.1002b210
mov ebx, eax
test ebx, ebx
je 0x1004795e
sub esp, 8
mov edx, esi
mov ecx, ebx
push edi
call fcn.1002b360
add esp, 0xc
push ebx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10047980
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100828d8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], edx
push ecx
mov edx, 0x100b2f08
lea ecx, [ebp - 0x10]
call fcn.10022e60
add esp, 4
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocStringLen
mov dword [ebp - 4], 0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10047a7e
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x10047a70
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x10047a62
push 0
lea eax, [ebp - 0x18]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10047a4a
push dword [ebp + 8]
mov edx, esi
mov ecx, edi
call fcn.100478f0
mov ecx, dword [ebp - 0x14]
add esp, 4
mov esi, 8
mov dword [ecx], eax
xor ecx, ecx
test eax, eax
push edi
cmovne esi, ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10047a86
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10047a86
push ebx
mov esi, 8
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10047a86
push ebx
mov esi, 0x54f
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10047a86
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10047aaa
mov ecx, dword [edx]
push edx
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
Function at 0x10047ac0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov eax, edx
mov dword [ebp - 4], 0
mov edx, dword [ebp + 8]
mov esi, ecx
lea ecx, [ebp - 4]
push edi
push ecx
mov ecx, dword [eax]
call fcn.100478f0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x10047af5
lea eax, [ebx + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
mov edx, 0x100b2f08
lea ecx, [ebp - 8]
call fcn.10022e60
add esp, 4
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x10047b59
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10047b48
push edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10047b61
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10047b61
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [ebp - 8]
or ecx, 0xffffffff
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10047b85
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10047b90
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push ecx
mov edx, 0x100b2f08
lea ecx, [ebp - 4]
call fcn.10022e60
add esp, 4
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x10047bb8
xor esi, esi
jmp 0x10047bc0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov edi, dword [ebp - 4]
or edx, 0xffffffff
add edi, 0xfffffff0
lea ecx, [edi + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10047bdd
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10048390
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10082778
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push edx
mov edx, ecx
lea ecx, [ebp - 0x14]
call fcn.10046e90
add esp, 4
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
push dword [ebp - 0x14]
mov edx, 0x100b2f08
call fcn.10022e60
add esp, 4
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x100483f1
xor esi, esi
jmp 0x100483f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ebx, dword [ebp - 0x10]
or edi, 0xffffffff
add ebx, 0xfffffff0
mov ecx, edi
lea edx, [ebx + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10048418
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x10048439
mov ecx, dword [edx]
push edx
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
Function at 0x10048fd0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008546b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], 0
call fcn.10021470
xor edx, edx
mov ecx, eax
test ecx, ecx
setne dl
test edx, edx
jne 0x10049020
push 0x80004005
call fcn.10021340
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx + 4], eax
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
push str.CFileMustExist
push eax
call fcn.1003a800
add esp, 8
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x10]
call fcn.100394f0
mov byte [ebp - 4], 1
or eax, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x1004906d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 8]
mov dword [ebx], 0xffffffff
mov esi, dword [ebx + 4]
sub esi, 0x10
lea ecx, [eax - 0x10]
cmp ecx, esi
je 0x100490c5
cmp dword [esi + 0xc], 0
jl 0x100490b9
mov edx, dword [ecx]
cmp edx, dword [esi]
jne 0x100490b9
call fcn.100236e0
mov dword [ebp - 0x10], eax
lea edx, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x100490b1
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x10]
add eax, 0x10
mov dword [ebx + 4], eax
jmp 0x100490c5
push dword [eax - 0xc]
lea ecx, [ebx + 4]
push eax
call fcn.10023530
mov ecx, dword [ebx + 4]
sub ecx, 0x10
call fcn.100236e0
lea esi, [eax + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
lea edx, [esi - 0x10]
cmp eax, 0xffffffff
lea eax, [edx + 0xc]
setne cl
or esi, 0xffffffff
mov dword [ebp - 0x10], ecx
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10049101
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x10], 0
jne 0x10049128
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x10049149
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 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 4
Function at 0x10054730
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10086230
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [section..data]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x10]
push str.SetFolder
push eax
call fcn.1003a800
add esp, 8
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x10]
call fcn.100394f0
mov dword [ebp - 4], 0xffffffff
or edi, 0xffffffff
mov edx, dword [ebp - 0x10]
mov eax, edi
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x1005479d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x14], 0
test esi, esi
je 0x10054802
mov eax, dword [esi]
lea ecx, [ebp - 0x14]
push ecx
push 0x80058000
push esi
call dword [eax + 0x14]
test eax, eax
js 0x10054802
push dword [ebp - 0x14]
lea eax, [ebp + 0xc]
push str.SetFolder:__s
push eax
call fcn.1003a800
add esp, 0xc
mov dword [ebp - 4], 1
mov edx, dword [ebp + 0xc]
call fcn.100394f0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x10054802
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 8]
push esi
mov eax, dword [eax + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x100549b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100837c8
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push esi
push str.SetDefaultExtension:__s
push eax
call fcn.1003a800
add esp, 0xc
mov dword [ebp - 4], 0
mov edx, dword [ebp + 0xc]
call fcn.100394f0
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10054a1d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp + 8]
test esi, esi
jne 0x10054a28
xor ecx, ecx
jmp 0x10054a3f
mov ecx, esi
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10054a30
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [edi + 0x30]
call fcn.10023530
mov eax, dword [edi + 0xc]
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x58]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x100567b0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov esi, 0x64
push 0xd934
mov dword [ebp - 0x238], edi
mov dword [ebp - 0x240], esi
call fcn.1006bba0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x100568f6
push edi
push 2
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x244], eax
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x100568e6
xor edx, edx
mov ecx, 1
mov eax, 0xd934
mov dword [ebp - 0x234], edx
mov dword [ebp - 0x23c], ecx
mov dword [ebp - 0x248], eax
lea ecx, [ecx]
cmp ecx, esi
jne 0x10056874
add eax, 0xd930
add esi, 0x64
push eax
push ebx
mov dword [ebp - 0x240], esi
mov dword [ebp - 0x248], eax
call fcn.1006c6bc
add esp, 8
test eax, eax
je 0x100568d3
mov ecx, dword [ebp - 0x23c]
mov ebx, eax
mov edx, dword [ebp - 0x234]
inc dword [ebp - 0x238]
lea eax, [ebp - 0x230]
inc ecx
lea edi, [ebx + 4]
mov dword [ebp - 0x23c], ecx
lea esi, [ebp - 0x230]
add edi, edx
mov ecx, 0x8b
push eax
push dword [ebp - 0x244]
add edx, 0x22c
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x234], edx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x100568e0
mov esi, dword [ebp - 0x240]
mov eax, dword [ebp - 0x248]
mov ecx, dword [ebp - 0x23c]
mov edx, dword [ebp - 0x234]
jmp 0x10056840
push ebx
call fcn.1006ac0c
add esp, 4
xor edi, edi
jmp 0x100568e6
mov edi, dword [ebp - 0x238]
push dword [ebp - 0x244]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx], edi
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1006abfd
mov esp, ebp
pop ebp
ret
Function at 0x100569d0
Capabilities:
Delete registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov eax, ecx
xor esi, esi
mov dword [ebp - 0x10], eax
mov ebx, edx
push edi
test eax, eax
je 0x10056aae
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
mov ecx, dword [ebp - 8]
call fcn.10056950
mov edi, eax
test edi, edi
je 0x10056aae
lea eax, [ebp - 0xc]
mov dword [ebp - 4], esi
push eax
lea eax, [ebp - 4]
mov dword [ebp - 0xc], 4
push eax
push esi
push esi
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10056aa7
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.10056910
mov dword [ebp - 0x10], eax
test eax, eax
je 0x10056a9f
push dword [ebp + 8]
add eax, 0x24
push eax
call fcn.1006af63
add esp, 8
test eax, eax
jne 0x10056a9f
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x10056a9f
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 8]
jne 0x10056a9f
push ecx
mov eax, esp
push dword [ebp - 4]
push str.IsServerProcessRunning:_found_PID___u_
push eax
call fcn.1003a800
add esp, 0xc
call fcn.10021810
add esp, 4
mov esi, 1
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10056ac0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10085cc8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [section..data]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], edx
mov edi, ecx
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
mov ecx, dword [ebp - 0x18]
call fcn.10056950
mov esi, eax
test esi, esi
je 0x10056b6c
push edi
push dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push str.MemorizeServerProcess:___u___s
push eax
call fcn.1003a800
add esp, 0x10
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x10]
call fcn.100394f0
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10056b53
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 4
lea eax, [ebp - 0x14]
push eax
push 4
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10057790
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100864ae
mov eax, dword fs:[0]
push eax
mov eax, 0x1030
call fcn.10074c80
mov eax, dword [section..data]
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, edx
mov esi, ecx
mov edi, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 4], 0
push 0x800
push eax
mov word [ebp - 0x1020], ax
lea eax, [ebp - 0x101e]
push eax
mov dword [ebp - 0x1024], 0
mov dword [ebp - 0x1028], 0
call fcn.1006df00
add esp, 0xc
xor eax, eax
mov word [ebp - 0x818], ax
push 0x800
push eax
lea eax, [ebp - 0x816]
push eax
call fcn.1006df00
add esp, 0xc
mov dword [ebp - 0x1030], 0x401
call fcn.10021470
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x10057846
push 0x80004005
call fcn.10021340
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x102c], eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1034], eax
lea eax, [ebp - 0x1024]
push eax
push esi
mov esi, dword [sym.imp.ole32.dll_StringFromCLSID]
call esi
lea eax, [ebp - 0x1028]
push eax
push edi
call esi
push dword [ebp - 0x1024]
lea eax, [ebp - 0x818]
push str.SoftwareClassesCLSID_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x1030]
push eax
lea eax, [ebp - 0x1020]
push eax
lea eax, [ebp - 0x818]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov eax, str.in_process
test bl, 0x14
je 0x100578ca
mov eax, str.out_of_process
push eax
push ebx
push dword [ebp - 0x1028]
lea eax, [ebp - 0x1020]
push eax
push dword [ebp - 0x1024]
lea eax, [ebp - 0x102c]
push dword [ebp + 8]
push dword [ebp + 0x10]
push str._.8x__s:_clsid_s___s__riid_s_dwClsContext_08X___s_
push eax
call fcn.1003f740
mov ebx, dword [ebp - 0x102c]
add esp, 0x24
add ebx, 0xfffffff0
mov ecx, ebx
call fcn.100236e0
lea esi, [eax + 0x10]
mov dword [ebp - 0x1038], esi
mov edx, esi
mov byte [ebp - 4], 2
call fcn.100394f0
add esi, 0xfffffff0
mov byte [ebp - 4], 1
or edi, 0xffffffff
mov eax, edi
lea ecx, [esi + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x1005793d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x1024]
mov esi, dword [sym.imp.ole32.dll_CoTaskMemFree]
call esi
push dword [ebp - 0x1028]
call esi
push dword [ebp - 0x1034]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [ebp - 4], 0
lea eax, [ebx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10057979
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x1005799a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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.1006abfd
mov esp, ebp
pop ebp
ret