joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42def0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x6319d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov eax, dword [ebp + 8]
cmp eax, 0xa
jne 0x42df4b
lea eax, [ebp - 0x108]
mov edx, esi
mov ecx, eax
sub edx, ecx
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x42df30
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00599ed4
mov esp, ebp
pop ebp
ret 8
cmp eax, 0xb
jne 0x42dfa5
lea eax, [ebp - 0x108]
mov edx, esi
mov ecx, eax
sub edx, ecx
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x42df60
lea eax, [esi - 1]
lea ecx, [ecx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x42df70
mov edx, dword [str._system32]
mov dword [eax], edx
mov ecx, dword [0x5d2150]
mov dword [eax + 4], ecx
mov dx, word [0x5d2154]
mov word [eax + 8], dx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00599ed4
mov esp, ebp
pop ebp
ret 8
cmp eax, 0xc
jne 0x42e00a
lea eax, [ebp - 0x108]
mov edx, esi
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x42dfb6
lea eax, [esi - 1]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x42dfc3
mov edx, dword [str._system32drivers]
mov dword [eax], edx
mov ecx, dword [0x5d213c]
mov dword [eax + 4], ecx
mov edx, dword [0x5d2140]
mov dword [eax + 8], edx
mov ecx, dword [0x5d2144]
mov dword [eax + 0xc], ecx
mov dx, word [0x5d2148]
mov word [eax + 0x10], dx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00599ed4
mov esp, ebp
pop ebp
ret 8
push esi
push 0
push 0
add eax, 0xffffc000
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00599ed4
mov esp, ebp
pop ebp
ret 8
Function at 0x433ab0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
call fcn.0046d4f0
test eax, eax
je 0x433b37
push 0
push str.CInf_::_GetArchitectureTag_n
push 0x6629b0
call fcn.00599ee3
mov eax, dword [str.ENTRY:]
mov ecx, dword [0x5ccf7c]
mov dword [0x6628b0], eax
mov eax, 0x6629b0
mov dword [0x6628b4], ecx
add esp, 0xc
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x433af3
mov edi, 0x6628b0
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x433b04
mov ecx, eax
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.0046d6a0
mov ecx, eax
call fcn.0046d500
push 0x6628b0
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
push str.Kernel32.dll
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, dword [ebp + 8]
mov esi, eax
test esi, esi
je 0x433b9c
push str.GetNativeSystemInfo
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x433b91
lea edx, [ebp - 0x24]
push edx
call eax
mov ax, word [ebp - 0x24]
cmp ax, 9
jne 0x433b81
mov eax, dword [str.AMD64]
mov dword [edi], eax
mov cx, word [0x5d2af8]
mov word [edi + 4], cx
jmp 0x433b8c
test ax, ax
jne 0x433b91
mov dword [edi], 0x363858
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
jne 0x433bd4
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ax, word [ebp - 0x24]
cmp ax, 9
jne 0x433bc4
mov eax, dword [str.AMD64]
mov dword [edi], eax
mov cx, word [0x5d2af8]
mov word [edi + 4], cx
jmp 0x433bcf
test ax, ax
jne 0x433bd4
mov dword [edi], 0x363858
mov ebx, 1
call fcn.0046d4f0
test eax, eax
je 0x433c53
push ebx
push str.CInf_::_GetArchitectureTag_:_bRetVal__d_n
push 0x6627b0
call fcn.00599ee3
mov eax, dword [0x5ccefc]
mov edx, dword [str.EXIT:]
mov dword [0x6626b4], eax
mov eax, 0x6627b0
add esp, 0xc
mov dword [0x6626b0], edx
mov esi, eax
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x433c10
mov edi, 0x6626b0
sub eax, esi
dec edi
nop
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x433c20
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0x6626b0
rep movsb byte es:[edi], byte [esi]
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d510
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x440b80
Capabilities:
Log keystrokes

Disassembly:
push esi
push 0x3e8
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, esi
pop esi
jmp 0x45ba30
add ecx, 0x4064
jmp fcn.004015f0
Function at 0x453100
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
call fcn.0046d4f0
test eax, eax
je 0x453184
push 0
push str.CInstallRegOps_::_GetMode_n
push 0x67e6b0
call fcn.00599ee3
mov eax, dword [str.ENTRY:]
mov ecx, dword [0x5ccf7c]
mov dword [0x67e5b0], eax
mov eax, 0x67e6b0
mov dword [0x67e5b4], ecx
add esp, 0xc
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x453140
mov edi, 0x67e5b0
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x453151
mov ecx, eax
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.0046d6a0
mov ecx, eax
call fcn.0046d500
push 0x67e5b0
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
call fcn.0046d4f0
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
test eax, eax
je 0x4531b8
push esi
push edi
push str.dwAppCase___d__dwAppStatusMode___d
push 0x67e4b0
call fcn.00599ee3
add esp, 0x10
push 0x67e4b0
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
test edi, 0x20000000
je 0x4531e0
mov eax, esi
dec eax
je 0x4531cb
dec eax
je 0x4531d9
dec eax
je 0x4531d2
mov ebx, 1
jmp 0x45320b
mov ebx, 0x100
jmp 0x45320b
mov ebx, 0x10
jmp 0x45320b
test edi, 0x40000000
je 0x453208
mov eax, esi
dec eax
je 0x4531f3
dec eax
je 0x453201
dec eax
je 0x4531fa
mov ebx, 2
jmp 0x45320b
mov ebx, 0x200
jmp 0x45320b
mov ebx, 0x20
jmp 0x45320b
mov ebx, dword [ebp + 0xc]
call fcn.0046d4f0
test eax, eax
je 0x453288
push ebx
push str.CInstallRegOps::GetMode_:_dwMode___d_n
push 0x67e3b0
call fcn.00599ee3
mov eax, dword [0x5ccefc]
mov edx, dword [str.EXIT:]
mov dword [0x67e2b4], eax
mov eax, 0x67e3b0
add esp, 0xc
mov dword [0x67e2b0], edx
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x453244
mov edi, 0x67e2b0
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x453255
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0x67e2b0
rep movsb byte es:[edi], byte [esi]
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d510
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 8
Function at 0x459500
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x6319d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x18]
push str.push_me_x
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x18]
push ecx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x459647
mov edx, dword [esi]
mov ecx, dword [edi]
mov eax, dword [edx - 0xc]
mov ecx, dword [ecx - 0xc]
lea edx, [ecx + eax + 0x3c]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
test esi, esi
je 0x45962d
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
push 1
push ebx
and ecx, 0x3100
and eax, 0x2200000
push ecx
push eax
call fcn.0059c310
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x2c], edx
mov edx, dword [ebp - 0x28]
mov edx, dword [edx]
push edx
push ecx
push eax
mov eax, dword [ebp + 0x10]
and eax, 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx]
push eax
push edx
push str._s_0x_X__u__u__u__s
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
push 0x44
lea eax, [ebp - 0x7c]
push 0
push eax
call fcn.00599fb0
add esp, 0x2c
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0x7c]
push edx
push 0
push 0
push 0
push 1
push 0
push 0
push esi
push 0
mov dword [ebp - 0x7c], 0x44
mov dword [ebp - 0x50], 0x80
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
mov eax, dword [ebp - 0x34]
push eax
call edi
mov ecx, dword [ebp - 0x38]
push ecx
call edi
test esi, esi
je 0x45962d
mov edx, dword [ebp - 0x20]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x45962d
mov dword [ebp - 0x1c], 1
mov eax, dword [ebp - 0x20]
push eax
call edi
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00599ed4
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00599ed4
mov esp, ebp
pop ebp
ret
Function at 0x4598c0
Capabilities:
Copy file
Delete file
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b9b61
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x6319d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x220]
call fcn.00403380
lea edx, [ebp - 0x114]
push edx
push 0x104
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push str.KUIU.EXE
lea ecx, [ebp - 0x228]
call fcn.00403380
mov esi, eax
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 1
call fcn.00403380
push esi
push eax
lea ecx, [ebp - 0x21c]
push ecx
mov byte [ebp - 4], 2
call fcn.00402910
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
add esp, 0xc
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45998e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x228]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4599b4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x21c]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x80
push ecx
call esi
test eax, eax
je 0x4599d9
mov edx, dword [ebp - 0x21c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x220]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov edx, dword [ebp - 0x21c]
push 0x80
push edx
call esi
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x21c]
push ecx
call fcn.00459500
mov esi, eax
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
add esp, 0x14
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x459a43
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x459a6c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00599ed4
mov esp, ebp
pop ebp
ret
Function at 0x45b740
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b9d26
mov eax, dword fs:[0]
push eax
sub esp, 0x41c
mov eax, dword [0x6319d0]
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 eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push eax
push 0x3e8
lea eax, [ebp - 0x3f8]
mov dword [ebp - 0x428], edx
mov edx, dword [ebp + 0x14]
push eax
xor esi, esi
push ecx
mov dword [ebp - 0x420], edx
mov dword [ebp - 0x400], esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
mov dword [ebp - 0x424], eax
cmp eax, esi
jle 0x45b983
xor edi, edi
mov dword [ebp - 0x40c], edi
mov dword [ebp - 0x404], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x41c], esi
mov dword [ebp - 0x414], esi
mov ebx, dword [ebp - 0x408]
mov byte [ebp - 4], 1
mov byte [ebp + eax - 0x3f8], 0
mov dword [ebp - 0x410], esi
mov al, byte [ebp + esi - 0x3f8]
test al, al
je 0x45b820
lea ecx, [ebp - 0x3fc]
push ecx
lea ecx, [ebp - 0x40c]
mov byte [ebp - 0x3fc], al
mov byte [ebp - 0x3fb], 0
call fcn.00404960
mov ebx, dword [ebp - 0x408]
mov edi, dword [ebp - 0x40c]
jmp 0x45b929
push 0x5d36cc
push edi
call fcn.0059ade0
add esp, 8
test eax, eax
je 0x45b913
sub eax, edi
mov esi, eax
cmp esi, 0xffffffff
je 0x45b913
mov eax, dword [ebp - 0x404]
cmp esi, eax
jae 0x45b86c
add eax, 5
push eax
push 0
push ebx
call fcn.00599fb0
push esi
push edi
push ebx
call fcn.0059ae70
add esp, 0x18
mov byte [ebx + esi], 0
mov eax, ebx
jmp 0x45b86e
mov eax, edi
push eax
lea ecx, [ebp - 0x41c]
call fcn.004048c0
lea ecx, [ebp - 0x41c]
call fcn.004335d0
lea ecx, [ebp - 0x41c]
call fcn.00433680
mov edx, dword [ebp - 0x428]
mov eax, dword [ebp - 0x41c]
push edx
push eax
call fcn.00599e8d
add esp, 8
test eax, eax
jne 0x45b913
inc esi
push esi
push eax
lea ecx, [ebp - 0x40c]
call fcn.00433760
lea ecx, [ebp - 0x40c]
call fcn.004335d0
lea ecx, [ebp - 0x40c]
call fcn.00433680
push 0x22
lea ecx, [ebp - 0x40c]
call fcn.0043d240
mov esi, dword [ebp - 0x420]
mov edi, dword [ebp - 0x40c]
mov edx, esi
mov eax, edi
sub edx, edi
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x45b8f0
push esi
call fcn.0045b060
mov ebx, dword [ebp - 0x408]
add esp, 4
mov dword [ebp - 0x400], 1
test edi, edi
je 0x45b91a
mov byte [edi], 0
cmp dword [ebp - 0x400], 0
jne 0x45b93e
mov esi, dword [ebp - 0x410]
mov ecx, esi
inc esi
mov dword [ebp - 0x410], esi
cmp ecx, dword [ebp - 0x424]
jl 0x45b7e5
mov esi, dword [ebp - 0x41c]
mov byte [ebp - 4], 0
test esi, esi
je 0x45b961
mov edx, dword [ebp - 0x418]
push edx
call fcn.004a6dca
push esi
call fcn.004a6dca
add esp, 8
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x45b97b
push ebx
call fcn.004a6dca
push edi
call fcn.004a6dca
add esp, 8
mov eax, dword [ebp - 0x400]
jmp 0x45b985
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.00599ed4
mov esp, ebp
pop ebp
ret 0x10
Function at 0x47ac60
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov edx, dword [ecx + 0x1f8]
mov ecx, dword [ecx]
push esi
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp + 8]
or edx, 0x20019
push edx
xor esi, esi
push esi
push eax
push ecx
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x47acc4
mov ecx, dword [ebp + 8]
push esi
push esi
push esi
push esi
lea edx, [ebp - 8]
push edx
push esi
push esi
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], esi
jne 0x47acc4
lea eax, [esi + 1]
cmp dword [ebp - 8], esi
je 0x47acc6
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x47ae00
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1f8
mov eax, dword [0x6319d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
add eax, esi
push 0x5cd28c
push eax
mov ebx, ecx
call fcn.0059ade0
add esp, 8
test eax, eax
je 0x47ae5a
push edi
mov edi, eax
sub edi, esi
push edi
lea eax, [ebp - 0x1f8]
push esi
push eax
call fcn.0059ae70
add esp, 0xc
mov byte [ebp + edi - 0x1f8], 0
inc edi
push edi
push esi
mov ecx, ebx
call fcn.0047ae00
pop edi
lea ecx, [ebp - 0x1f8]
push ecx
mov ecx, ebx
call fcn.0047ac60
test eax, eax
je 0x47ae97
mov eax, dword [ebx]
lea edx, [ebp - 0x1f8]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x47ae97
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00599ed4
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00599ed4
mov esp, ebp
pop ebp
ret 8
Function at 0x47aeb0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
mov eax, dword [0x6319d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push edi
mov ebx, ecx
mov dword [ebp - 0x3fc], edi
mov dword [ebp - 0x3f0], esi
mov dword [ebp - 0x3f4], esi
call fcn.0047ac10
test eax, eax
je 0x47b0d3
cmp dword [ebp + 0x10], esi
je 0x47aefa
push edi
mov ecx, ebx
call fcn.0047aa90
call fcn.0049cb90
test eax, eax
je 0x47af5f
test dword [ebx + 0x1f8], 0x100
je 0x47af5f
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x47af5f
push str.RegDeleteKeyExA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x47af4b
mov ecx, dword [ebx]
push 0
push 0xf013f
push edi
push ecx
call eax
test eax, eax
jne 0x47af4b
mov dword [ebp - 0x3f0], 1
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x3f0], 0
jne 0x47b0a4
mov eax, dword [ebx + 0x1f8]
mov ecx, dword [ebx]
lea edx, [ebp - 0x3f8]
push edx
or eax, 0xf003f
push eax
push 0
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x47b0ba
push 0x1f4
lea edx, [ebp - 0x3ec]
push edx
push eax
lea esi, [eax + 1]
mov eax, dword [ebp - 0x3f8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x47b07b
lea edx, [ebp - 0x1f8]
sub edx, edi
mov dword [ebp - 0x400], edx
jmp 0x47afc6
mov edx, dword [ebp - 0x400]
inc dword [ebp - 0x3f4]
mov eax, edi
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x47afd0
lea edi, [ebp - 0x1f8]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x47afe1
mov cx, word [0x5cd28c]
lea eax, [ebp - 0x3ec]
mov word [edi], cx
mov edx, eax
jmp 0x47b000
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x47b000
lea edi, [ebp - 0x1f8]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x47b010
mov ecx, eax
shr ecx, 2
mov esi, edx
mov edx, dword [ebp + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor esi, esi
push esi
push edx
push esi
lea eax, [ebp - 0x1f8]
push eax
mov ecx, ebx
call fcn.0047aeb0
test eax, eax
je 0x47b04d
mov esi, 1
sub dword [ebp - 0x3f4], esi
mov edx, dword [ebp - 0x3f4]
mov eax, dword [ebp - 0x3f8]
push 0x1f4
lea ecx, [ebp - 0x3ec]
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, dword [ebp - 0x3fc]
test eax, eax
je 0x47afc0
mov ecx, dword [ebp - 0x3f8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x47b0ba
mov edx, dword [ebx]
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x47b0ba
mov dword [ebp - 0x3f0], 1
cmp dword [ebp + 0xc], 0
je 0x47b0ba
cmp dword [ebp + 0x14], 0
je 0x47b0ba
push 0
push edi
mov ecx, ebx
call fcn.0047ae00
mov eax, dword [ebp - 0x3f0]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00599ed4
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00599ed4
mov esp, ebp
pop ebp
ret 0x10
Function at 0x47b0f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x6319d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 0x10]
lea esi, [edi + 4]
push str.CNXT_XYZ_UIU
push esi
mov dword [ebp - 0x204], edi
mov dword [ebp - 0x208], eax
mov dword [ebp - 0x20c], ecx
mov dword [ebp - 0x1fc], 0
call fcn.00599e8d
add esp, 8
test eax, eax
je 0x47b1be
push ebx
push esi
call fcn.00599e8d
add esp, 8
test eax, eax
je 0x47b1be
lea edx, [ebp - 0x1f8]
mov eax, esi
sub edx, esi
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x47b160
lea edi, [ebp - 0x1f8]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x47b171
mov dx, word [0x5cd28c]
mov eax, ebx
mov word [edi], dx
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x47b187
lea edi, [ebp - 0x1f8]
sub eax, ecx
mov esi, ecx
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x47b1a0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x204]
jmp 0x47b1d2
lea edx, [ebp - 0x1f8]
mov eax, ebx
sub edx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x47b1c8
mov ecx, dword [edi + 0x1f8]
lea eax, [ebp - 0x200]
push eax
mov eax, dword [edi]
or ecx, 0xf003f
push ecx
push 0
lea edx, [ebp - 0x1f8]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
pop edi
pop esi
pop ebx
test eax, eax
jne 0x47b23c
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x20c]
push ecx
mov ecx, dword [ebp - 0x200]
push edx
push 1
push eax
mov eax, dword [ebp - 0x208]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x47b22f
mov dword [ebp - 0x1fc], 1
mov edx, dword [ebp - 0x200]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1fc]
xor ecx, ebp
call fcn.00599ed4
mov esp, ebp
pop ebp
ret 0x10
Function at 0x47b260
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x6319d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 0x10]
lea esi, [edi + 4]
push str.CNXT_XYZ_UIU
push esi
mov dword [ebp - 0x204], edi
mov dword [ebp - 0x208], eax
mov dword [ebp - 0x20c], ecx
mov dword [ebp - 0x1fc], 0
call fcn.00599e8d
add esp, 8
test eax, eax
je 0x47b32e
push ebx
push esi
call fcn.00599e8d
add esp, 8
test eax, eax
je 0x47b32e
lea edx, [ebp - 0x1f8]
mov eax, esi
sub edx, esi
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x47b2d0
lea edi, [ebp - 0x1f8]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x47b2e1
mov dx, word [0x5cd28c]
mov eax, ebx
mov word [edi], dx
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x47b2f7
lea edi, [ebp - 0x1f8]
sub eax, ecx
mov esi, ecx
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x47b310
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x204]
jmp 0x47b342
lea edx, [ebp - 0x1f8]
mov eax, ebx
sub edx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x47b338
mov ecx, dword [edi + 0x1f8]
lea eax, [ebp - 0x200]
push eax
mov eax, dword [edi]
or ecx, 0xf003f
push ecx
push 0
lea edx, [ebp - 0x1f8]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
pop edi
pop esi
pop ebx
test eax, eax
jne 0x47b3af
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 0x20c]
mov eax, dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp - 0x208]
push edx
mov edx, dword [ebp - 0x200]
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x47b3a2
mov dword [ebp - 0x1fc], 1
mov eax, dword [ebp - 0x200]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1fc]
xor ecx, ebp
call fcn.00599ed4
mov esp, ebp
pop ebp
ret 0x14