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

Disassembly:
sub esp, 0x41c
mov eax, dword [0x10041024]
xor eax, esp
mov dword [esp + 0x418], eax
push ebx
push ebp
push esi
mov ebp, 0x400
lea eax, [esp + 0x24]
xor ebx, ebx
push ebp
push ebx
push eax
mov esi, ebx
call fcn.1000de50
add esp, 0xc
mov dword [esp + 0x18], ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0xc], ebx
push 0x20019
push 0x100314d4
push SysReAllocString
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call fcn.1002686f
test eax, eax
jne 0x1000732e
push 0x2001f
push str.Classes
push dword [esp + 0x20]
lea ecx, [esp + 0x18]
call fcn.1002686f
test eax, eax
jne 0x1000732e
push ebp
lea eax, [esp + 0x28]
push eax
push ebx
jmp 0x10007320
push 0xa
lea eax, [esp + 0x28]
push str.JavaPlugin
push eax
call fcn.10016e00
add esp, 0xc
test eax, eax
jne 0x10007309
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x10]
call fcn.10003626
test eax, eax
je 0x1000730a
inc esi
push ebp
lea eax, [esp + 0x28]
push ebx
push eax
call fcn.1000de50
add esp, 0xc
lea eax, [esp + 0x24]
push ebp
push eax
push esi
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x100072df
lea ecx, [esp + 0xc]
call fcn.10002ded
lea ecx, [esp + 0x18]
call fcn.10002ded
mov ecx, dword [esp + 0x424]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1000be90
add esp, 0x41c
ret
Function at 0x10007358
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push 0x960
push 0x1003e9c0
call fcn.1000c180
mov esi, dword [ebp + 8]
mov dword [ebp - 0x964], esi
xor edi, edi
mov dword [ebp - 0x960], edi
push 0x400
push edi
lea eax, [ebp - 0x41c]
push eax
call fcn.1000de50
add esp, 0xc
and dword [ebp - 4], edi
xor ebx, ebx
mov dword [ebp - 0x96c], ebx
cmp ebx, 3
jge 0x1000750d
mov byte [ebp - 0x81c], 0
push esi
mov esi, 0x400
push esi
lea eax, [ebp - 0x81c]
push eax
call fcn.1002686f
push 0x100315cc
push esi
lea eax, [ebp - 0x81c]
push eax
call fcn.1002686f
push dword [ebx*4 + section..data]
push esi
lea eax, [ebp - 0x81c]
push eax
call fcn.1002686f
add esp, 0x24
lea eax, [ebp - 0x95c]
push eax
lea eax, [ebp - 0x81c]
push eax
call dword [sym.imp.kernel32.dll_FindFirstFileA]
mov esi, eax
mov dword [ebp - 0x970], esi
cmp esi, 0xffffffff
je 0x100074d9
mov byte [ebp - 0x41c], 0
push dword [ebp - 0x964]
push 0x400
lea eax, [ebp - 0x41c]
push eax
call fcn.1002686f
push 0x100315d0
push 0x400
lea eax, [ebp - 0x41c]
push eax
call fcn.1002686f
lea eax, [ebp - 0x930]
push eax
push 0x400
lea eax, [ebp - 0x41c]
push eax
call fcn.1002686f
lea eax, [ebp - 0x41c]
push eax
call fcn.10009086
add esp, 0x28
test eax, eax
jne 0x100074c3
push 0x404
call fcn.1002686f
pop ecx
mov dword [ebp - 0x968], eax
test eax, eax
jne 0x10007497
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x10041024
call fcn.1000d760
add esp, 0xc
xor eax, eax
jmp 0x1000751c
mov byte [eax], 0
lea ecx, [ebp - 0x41c]
push ecx
push 0x400
push eax
call fcn.1002686f
add esp, 0xc
mov eax, dword [ebp - 0x968]
mov dword [eax + 0x400], edi
mov edi, eax
mov dword [ebp - 0x960], edi
lea eax, [ebp - 0x95c]
push eax
push esi
call dword [sym.imp.kernel32.dll_FindNextFileA]
test eax, eax
jne 0x10007409
test edi, edi
je 0x10007501
push edi
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov esi, dword [edi + 0x400]
push 0x404
push edi
call fcn.1002686f
pop ecx
pop ecx
mov edi, esi
mov dword [ebp - 0x960], edi
jmp 0x100074d9
inc ebx
mov esi, dword [ebp - 0x964]
jmp 0x10007392
mov dword [ebp - 4], 0xfffffffe
call fcn.10007532
xor eax, eax
inc eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000759d
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x390]
sub esp, 0x410
mov eax, dword [0x10041024]
xor eax, ebp
mov dword [ebp + 0x38c], eax
push ebx
lea eax, [ebp - 0x7c]
xor ebx, ebx
push eax
push 0x20019
push ebx
push 0x100315d4
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10007696
push esi
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x78]
mov esi, ebx
push eax
lea eax, [ebp - 0x74]
push eax
push ebx
jmp 0x10007674
mov eax, ebx
mov ecx, ebx
cmp dword [ebp - 0x78], eax
jbe 0x10007666
cmp byte [ebp + ecx - 0x74], 0x2e
jne 0x10007608
inc eax
cmp eax, 1
jg 0x10007613
inc ecx
cmp ecx, dword [ebp - 0x78]
jb 0x100075fb
cmp eax, 1
jle 0x10007666
push 0x10031600
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.kernel32.dll_lstrcmpiA]
test eax, eax
js 0x10007666
lea eax, [ebp - 0x74]
push eax
call fcn.1000935c
pop ecx
test eax, eax
je 0x10007666
mov eax, dword [ebp - 0x78]
inc eax
push eax
call fcn.1002686f
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x80], eax
push ecx
mov ecx, dword [ebp - 0x78]
push 0x10031608
inc ecx
push ecx
push eax
call fcn.10004e7f
add esp, 0x14
lea eax, [ebp - 0x80]
mov ecx, 0x10041c9c
push eax
call fcn.10007e0f
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x78]
inc esi
push eax
lea eax, [ebp - 0x74]
push eax
push esi
push dword [ebp - 0x7c]
mov dword [ebp - 0x78], 0x400
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x100075f2
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [ebp + 0x38c]
xor ecx, ebp
pop ebx
call fcn.1000be90
add ebp, 0x390
leave
ret

Function at 0x10008890
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x1002af6e
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x10041024]
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 0x214]
lea eax, [ebp]
xor ebx, ebx
push eax
push ebx
push ebx
push 0x1a
push ebx
mov byte [edi], bl
mov dword [ebp - 4], ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
test esi, esi
js 0x1000897c
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.10007fbc
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.1000801a
push 0x104
push eax
push dword [ebp + 0x218]
push edi
call fcn.1002686f
mov ecx, dword [ebp - 0x14]
add esp, 0x10
test ecx, ecx
je 0x10008952
call fcn.1000810d
jmp 0x10008952
xor eax, eax
test esi, esi
setns al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.1000be90
add ebp, 0x20c
leave
ret
push esi
push str.Error:_08x_in_SHGetFolderPathW_NULL__CSIDL_APPDATA__NULL__0__szPath_
call fcn.1000b923
pop ecx
pop ecx
push ebx
push esi
call fcn.1002686f
int3
Function at 0x10008991
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x1002af9e
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x10041024]
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 0x214]
lea eax, [ebp]
xor ebx, ebx
push eax
push ebx
push ebx
push 0x23
push ebx
mov byte [edi], bl
mov dword [ebp - 4], ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
test esi, esi
js 0x10008a7d
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.10007fbc
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.1000801a
push 0x104
push eax
push dword [ebp + 0x218]
push edi
call fcn.1002686f
mov ecx, dword [ebp - 0x14]
add esp, 0x10
test ecx, ecx
je 0x10008a53
call fcn.1000810d
jmp 0x10008a53
xor eax, eax
test esi, esi
setns al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.1000be90
add ebp, 0x20c
leave
ret
push esi
push str.Error:_08x_in_::SHGetFolderPathW_0__CSIDL_COMMON_APPDATA__NULL__SHGFP_TYPE_CURRENT__szPath_
call fcn.1000b923
pop ecx
pop ecx
push ebx
push esi
call fcn.1002686f
int3

Function at 0x10008bf5
Capabilities:
Get common file path

Disassembly:
push 0x14
mov eax, 0x1002afc6
call fcn.1000bf32
mov ebx, dword [ebp + 8]
xor edi, edi
xor eax, eax
mov dword [ebp - 4], edi
mov esi, edi
mov dword [ebp - 0x14], esi
mov word [ebx], ax
call fcn.10008b0c
test eax, eax
je 0x10008c26
call fcn.10008afe
mov esi, eax
mov dword [ebp - 0x14], eax
push 0x104
push ebx
push esi
push edi
push 0x1002f4bc
call dword [sym.imp.SHELL32.dll_SHGetFolderPathEx]
mov esi, eax
test esi, esi
js 0x10008d3c
jmp 0x10008c76
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10008c84
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
test esi, esi
jns 0x10008d34
push ebx
push edi
push edi
push 0x1a
push edi
mov dword [ebp - 4], 2
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
test esi, esi
jns 0x10008ce5
push esi
push str.Error:_08x_in_SHGetFolderPathW_NULL__CSIDL_APPDATA__NULL__0__pPath_
jmp 0x10008d42
or dword [ebp - 4], 0xffffffff
test esi, esi
jns 0x10008d34
push 1
push 0x1a
push ebx
push edi
mov dword [ebp - 4], 4
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, eax
test esi, esi
jns 0x10008d34
push esi
push str.Error:_08x_in_SHGetSpecialFolderPathW_NULL__pPath__CSIDL_APPDATA__TRUE_
jmp 0x10008d42
mov eax, esi
call fcn.1000bea1
ret
push esi
push str.Error:_08x_in_SHGetFolderPathEx_FOLDERID_LocalAppDataLow__0__hToken__pPath__MAX_PATH_
call fcn.1000b923
pop ecx
pop ecx
push edi
push esi
call fcn.1002686f
int3
Function at 0x100098ab
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x80c
mov eax, dword [0x10041024]
xor eax, esp
mov dword [esp + 0x808], eax
push ebx
mov ebx, dword [esp + 0x818]
lea eax, [esp + 0xc]
push ebp
push esi
mov esi, dword [esp + 0x81c]
mov ebp, 0x400
push edi
mov edi, dword [esp + 0x828]
push ebp
push 0
push eax
call fcn.1000de50
push esi
push str.SOFTWAREClassesCLSID_sInprocServer32
lea eax, [esp + 0x2c]
push ebp
push eax
call fcn.10004e7f
add esp, 0x1c
lea eax, [esp + 0x10]
neg edi
sbb edi, edi
push eax
push 0x20019
push 0
lea eax, [esp + 0x24]
add edi, reloc.OLEAUT32.dll_SysReAllocString
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, eax
test ecx, ecx
je 0x10009930
xor eax, eax
cmp ecx, 2
sete al
jmp 0x1000997e
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ebp
push eax
lea eax, [esp + 0x41c]
push eax
push 0x10032fa1
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
push dword [esp + 0x10]
test eax, eax
je 0x10009962
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x1000997e
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x418]
push eax
push ebx
call fcn.1002686f
neg eax
pop ecx
sbb eax, eax
pop ecx
neg eax
mov ecx, dword [esp + 0x818]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1000be90
add esp, 0x80c
ret

Function at 0x1000a2c8
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x108]
sub esp, 0x108
push 0xffffffffffffffff
push 0x1002b021
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x10041024]
xor eax, ebp
mov dword [ebp + 0x104], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x1003392c
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.1002686f
add esp, 0xc
test eax, eax
jne 0x1000a3bd
push dword [ebp - 0x18]
call fcn.1002686f
cmp dword [0x10041ca8], 0
pop ecx
je 0x1000a336
xor eax, eax
inc eax
jmp 0x1000a3bf
lea eax, [ebp]
mov esi, 0x104
push eax
push esi
call dword [sym.imp.kernel32.dll_GetTempPathA]
cmp eax, esi
ja 0x1000a3bd
test eax, eax
je 0x1000a3bd
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10]
call fcn.10007f71
and dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
push str.JavaDeployReg.log
call fcn.10007f71
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x10]
call fcn.100080b4
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
test ecx, ecx
je 0x1000a38b
call fcn.1000810d
push 0x10033958
lea ecx, [ebp - 0x10]
call fcn.1000801a
push eax
push 0x10041ca8
call fcn.1002686f
mov ecx, dword [ebp - 0x10]
add esp, 0xc
mov esi, eax
neg esi
sbb esi, esi
test ecx, ecx
je 0x1000a3b8
call fcn.1000810d
lea eax, [esi + 1]
jmp 0x1000a3bf
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp + 0x104]
xor ecx, ebp
call fcn.1000be90
add ebp, 0x108
leave
ret
Function at 0x1000a882
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x1010
call fcn.1000c210
mov eax, dword [0x10041024]
xor eax, esp
mov dword [esp + 0x100c], eax
push ebx
mov ebx, dword [esp + 0x1018]
lea eax, [esp + 0x10]
push ebp
push esi
push edi
mov edi, dword [esp + 0x1028]
mov ebp, 0x800
xor esi, esi
mov dword [esp + 0x18], 1
push ebp
push esi
push eax
mov dword [esp + 0x1c], esi
call fcn.1000de50
push ebp
lea eax, [esp + 0x82c]
push esi
push eax
call fcn.1000de50
push ebx
call fcn.1002686f
add esp, 0x1c
test eax, eax
je 0x1000a91b
push eax
push dword [esp + 0x1030]
push edi
call fcn.1002686f
add esp, 0xc
test eax, eax
je 0x1000aa92
xor eax, eax
mov ecx, dword [esp + 0x101c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1000be90
add esp, 0x1010
ret
lea eax, [esp + 0x10]
push eax
push 0x20019
push esi
push dword [0x10041014]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000a900
lea eax, [esp + 0x102c]
push eax
push edi
lea eax, [esp + 0x20]
push eax
push esi
push ebx
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x1000aa76
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x800
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
push esi
push 0x10035214
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x1000a996
xor esi, esi
inc esi
jmp 0x1000aa76
push dword [esp + 0x10]
call ebp
lea eax, [esp + 0x10]
push eax
push 0x20019
push esi
push str.SOFTWAREOracleJavaDeploy
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000a98e
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x800
push eax
lea eax, [esp + 0x820]
push eax
lea eax, [esp + 0x20]
push eax
push esi
push str.deployment.modified.timestamp
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1000a98e
lea eax, [esp + 0x1c]
mov dword [esp + 0x14], 0x800
push eax
lea eax, [esp + 0x820]
push eax
call fcn.1002686f
pop ecx
pop ecx
test eax, eax
js 0x1000aa92
lea eax, [esp + 0x14]
push eax
push edi
lea eax, [esp + 0x20]
push eax
push esi
push ebx
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1000a98e
push dword [esp + 0x10]
call ebp
call fcn.1002686f
test eax, eax
jne 0x1000aa92
lea eax, [esp + 0x10]
push eax
push 0x20006
push esi
push dword [0x10041014]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000a900
push dword [esp + 0x14]
push edi
push 1
push esi
push ebx
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x1000aa83
push dword [esp + 0x10]
call ebp
mov eax, esi
jmp 0x1000a902
push dword [esp + 0x10]
call ebp
push edi
push ebx
call fcn.1002686f
pop ecx
pop ecx
xor eax, eax
inc eax
jmp 0x1000a902
Function at 0x1000b7a1
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x824
mov eax, dword [0x10041024]
xor eax, esp
mov dword [esp + 0x820], eax
push ebx
push ebp
mov ebp, dword [esp + 0x830]
lea eax, [esp + 0x428]
push esi
mov esi, dword [esp + 0x838]
xor ebx, ebx
push edi
mov edi, 0x400
push edi
push ebx
push eax
call fcn.1000de50
push esi
push ebx
push ebp
push 0xffffffffffffffff
lea eax, [esp + 0x44c]
push edi
push eax
call fcn.1002686f
movzx ecx, byte [esp + 0x853]
lea edi, [esp + 0x34]
xor edx, edx
test eax, eax
push 8
cmovs ecx, edx
xor eax, eax
mov byte [esp + 0x857], cl
pop ecx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x34]
push 0x20
push eax
call fcn.1002686f
push 0x10038198
lea eax, [esp + 0x40]
push 0x20
push eax
call fcn.1002686f
push 0x400
lea eax, [esp + 0x6c]
push ebx
push eax
call fcn.1000de50
mov ecx, ebp
add esp, 0x44
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000b846
sub ecx, edx
cmp ecx, 6
jbe 0x1000b86d
lea eax, [ebp - 6]
add eax, ecx
push str.__08x_
push eax
call fcn.1002686f
pop ecx
pop ecx
test eax, eax
jne 0x1000b86d
xor ebx, ebx
inc ebx
lea esi, [esp + 0x10]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x1000b874
sub esi, ecx
lea eax, [esp + 0x430]
push eax
mov ecx, 0x10036ae3
test ebx, ebx
mov eax, str.Error:
cmove eax, ecx
push eax
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.kernel32.dll_GetCurrentProcessId]
push eax
push str.P:_04d_T:_04d__s_s
mov eax, 0x3ff
sub eax, esi
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x4c]
add eax, esi
push eax
call fcn.1002686f
mov ecx, dword [esp + 0x44b]
test eax, eax
push esi
lea eax, [esp + 0x34]
mov edx, 0x2e2e2e
push eax
lea eax, [esp + 0x58]
cmovs ecx, edx
push eax
mov dword [esp + 0x457], ecx
call fcn.1000d8d0
lea edi, [esp + 0x5c]
add esp, 0x2c
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1000b8ee
mov ax, word [0x100381c4]
mov word [edi], ax
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x830]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1000be90
add esp, 0x824
ret

Function at 0x1002686f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x1002687e
pop dword [ebp - 0x3c]
mov eax, 0xe26b5df7
sub eax, 0xd268f579
sub dword [ebp - 0x3c], eax
push 0x40
push 0x1000
push 0x3ec8e
push 0
mov eax, 0x6311df17
sub eax, 0x530f1d83
add eax, dword [ebp - 0x3c]
call dword [eax]
mov ecx, 0x3b21e0c
sub ecx, 0x3b1d91a
xor edx, edx
add edx, eax
mov ebx, 0x10046000
add ebx, dword [ebp - 0x3c]
mov esi, 0x306fddab
sub esi, 0x34bf9adb
add dword [ebp - 0x38], 0x3d4d6cf9
mov edi, dword [ebx]
xor dword [ebp - 0x30], 0x16fd6d5
add edi, esi
mov dword [edx], edi
add dword [ebp - 0xc], edx
add edx, 4
add ebx, 0x59672b2a
add ebx, 0xa698d4da
loop 0x100268d9
add eax, 0xfcf6fdaf
add eax, 0x30a08ec
mov ebx, eax
add eax, 5
mov ecx, 0x4d1fb848
sub ecx, 0x3d1fb848
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x1000269d
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x100026eb
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
mov ebx, ecx
test esi, esi
jne 0x100026fc
push 0xd
pop eax
jmp 0x10002726
push edi
xor edi, edi
push esi
call dword [sym.imp.kernel32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x100026ff
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
ret 8

Function at 0x10002cb1
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x1002b19c]
xor eax, ebp
mov dword [ebp + 0x9c], eax
mov eax, dword [ebp + 0xa8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
xor esi, esi
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], esi
call fcn.1001ec81
mov ebx, eax
cmp ebx, esi
je 0x10002d24
lea ecx, [ebp - 0x74]
call fcn.1000133f
mov eax, ebx
mov ecx, dword [ebp + 0x9c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000c2c7
add ebp, 0xa0
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x10002d3c
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x74]
call fcn.10002cb1
cmp eax, esi
jne 0x10002d6e
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x64]
push eax
push esi
push dword [ebp - 0x74]
mov dword [ebp - 0x68], 0x100
call ebx
test eax, eax
je 0x10002d2c
lea ecx, [ebp - 0x74]
call fcn.1000133f
push dword [ebp - 0x78]
mov ecx, edi
call fcn.100025c6
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.1000133f
mov eax, esi
jmp 0x10002d0a
Function at 0x10005086
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8f4]
sub esp, 0x974
mov eax, dword [0x1002b19c]
xor eax, ebp
mov dword [ebp + 0x8f0], eax
push ebx
mov ebx, dword [ebp + 0x914]
push esi
mov esi, dword [ebp + 0x8fc]
push edi
mov edi, 0x400
test ebx, ebx
jne 0x100050d8
push edi
lea eax, [ebp - 0x14]
push eax
push 1
push esi
call fcn.1001ec81
add esp, 0x10
test eax, eax
je 0x100050d8
lea eax, [ebp - 0x14]
push eax
push str._s_ssvagent.exe
jmp 0x100050ee
test esi, esi
jne 0x10005226
test ebx, ebx
je 0x10005226
push ebx
push str._s_bin_ssvagent.exe
lea eax, [ebp + 0x3ec]
push edi
push eax
call fcn.1001ec81
add esp, 0x10
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp + 0x3ec]
push eax
call fcn.1001ec81
pop ecx
pop ecx
test eax, eax
jne 0x10005226
xor edi, edi
mov byte [ebp + 0x7ec], al
mov esi, 0x104
lea eax, [ebp + 0x7ec]
cmp dword [ebp + 0x900], edi
je 0x1000513a
push str.__new
jmp 0x1000513f
push str.__old
push esi
push eax
call fcn.1001ec81
add esp, 0xc
cmp dword [ebp + 0x904], edi
jne 0x10005159
cmp dword [ebp + 0x910], edi
je 0x1000516e
push str.__high
lea eax, [ebp + 0x7ec]
push esi
push eax
call fcn.1001ec81
add esp, 0xc
cmp dword [ebp + 0x90c], edi
je 0x1000518b
push str.__settreatas
lea eax, [ebp + 0x7ec]
push esi
push eax
call fcn.1001ec81
add esp, 0xc
cmp dword [ebp + 0x910], edi
je 0x100051a8
push str.__regdeploy
lea eax, [ebp + 0x7ec]
push esi
push eax
call fcn.1001ec81
add esp, 0xc
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x80]
push edi
push eax
call fcn.1000c3a0
add esp, 0xc
lea eax, [ebp + 0x7ec]
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x6c], eax
cmp dword [ebp + 0x904], edi
je 0x100051dd
call fcn.1001ec81
test eax, eax
je 0x100051dd
mov dword [ebp - 0x74], str.runas
cmp dword [ebp + 0x908], edi
je 0x100051ec
mov dword [ebp - 0x7c], 0x40
lea eax, [ebp + 0x3ec]
mov dword [ebp - 0x70], eax
xor esi, esi
lea eax, [ebp - 0x80]
inc esi
push eax
mov dword [ebp - 0x64], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x10005226
cmp dword [ebp - 0x48], edi
je 0x10005222
push 0xffffffffffffffff
push dword [ebp - 0x48]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
push dword [ebp - 0x48]
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, esi
jmp 0x10005228
xor eax, eax
mov ecx, dword [ebp + 0x8f0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000c2c7
add ebp, 0x8f4
leave
ret
Function at 0x1000533d
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8d0]
sub esp, 0x950
mov eax, dword [0x1002b19c]
xor eax, ebp
mov dword [ebp + 0x8cc], eax
mov eax, dword [ebp + 0x8d8]
push ebx
push esi
push edi
xor ebx, ebx
push 0x3ff
mov dword [ebp - 0x80], eax
lea eax, [ebp + 0x4cd]
push ebx
push eax
mov byte [ebp + 0x4cc], bl
call fcn.1000c3a0
add esp, 0xc
mov dword [ebp - 0x78], ebx
mov edi, 0x1002b10c
mov esi, 0x400
cmp dword [ebp - 0x78], ebx
jne 0x1000545f
push dword [ebp - 0x80]
lea eax, [ebp + 0xcc]
push esi
push eax
mov byte [ebp + 0xcc], bl
call fcn.1001ec81
push 0x10024474
lea eax, [ebp + 0xcc]
push esi
push eax
call fcn.1001ec81
push dword [edi]
lea eax, [ebp + 0xcc]
push esi
push eax
call fcn.1001ec81
add esp, 0x24
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 0xcc]
push eax
call dword [sym.imp.kernel32.dll_FindFirstFileA]
mov dword [ebp - 0x7c], eax
cmp eax, 0xffffffff
je 0x10005450
push dword [ebp - 0x80]
lea eax, [ebp + 0x4cc]
push esi
push eax
mov byte [ebp + 0x4cc], bl
call fcn.1001ec81
push 0x10024478
lea eax, [ebp + 0x4cc]
push esi
push eax
call fcn.1001ec81
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp + 0x4cc]
push esi
push eax
call fcn.1001ec81
lea eax, [ebp + 0x4cc]
push eax
call fcn.100083c7
add esp, 0x28
test eax, eax
je 0x10005449
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.kernel32.dll_FindNextFileA]
test eax, eax
jne 0x100053ea
jmp 0x10005450
mov dword [ebp - 0x78], 1
add edi, 4
cmp edi, 0x1002b118
jl 0x1000538e
push dword [ebp - 0x7c]
call dword [sym.imp.kernel32.dll_FindClose]
mov ecx, dword [ebp + 0x8cc]
mov eax, dword [ebp - 0x78]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000c2c7
add ebp, 0x8d0
leave
ret