joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5497c0
Capabilities:
Create process on windows
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff80
push ebx
push esi
mov eax, dword [0x67d698]
cmp dword [eax], 1
jne 0x5498b5
push 0x5499ac
push 0x5499dc
call sub.user32.dll_FindWindowW
test eax, eax
je 0x5497f2
mov byte [ebp - 1], 1
jmp 0x54999f
lea eax, [ebp - 0x54]
xor ecx, ecx
mov edx, 0x44
call fcn.00403d24
mov dword [ebp - 0x54], 0x44
mov eax, 0x104
call fcn.00403230
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x5498ae
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
push 0x104
push 0
push 0x5499fc
push 0
call sub.KERNEL32.DLL_SearchPathW
test eax, eax
jne 0x54984f
call sub.KERNEL32.DLL_GetLastError_1
test eax, eax
sete byte [ebp - 1]
jmp 0x549898
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push 0x210
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_CreateProcessW
test eax, eax
jne 0x549882
call sub.KERNEL32.DLL_GetLastError_1
test eax, eax
sete byte [ebp - 1]
jmp 0x549898
mov eax, dword [ebp - 0x64]
push eax
call sub.KERNEL32.DLL_CloseHandle_1
mov eax, dword [ebp - 0x60]
push eax
call sub.KERNEL32.DLL_CloseHandle_1
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54999f
mov eax, dword [ebp - 8]
call fcn.0040324c
ret
push 1
push 0
push 0
call sub.advapi32.dll_OpenSCManagerW
mov ebx, eax
test ebx, ebx
jne 0x5498d6
call sub.KERNEL32.DLL_GetLastError_1
test eax, eax
sete byte [ebp - 1]
jmp 0x54999f
push 4
push 0x549a14
push ebx
call sub.advapi32.dll_OpenServiceW
mov esi, eax
test esi, esi
jne 0x5498f8
push 0x10
push 0x549a14
push ebx
call sub.advapi32.dll_OpenServiceW
mov esi, eax
push ebx
call sub.advapi32.dll_CloseServiceHandle
test esi, esi
jne 0x549912
call sub.KERNEL32.DLL_GetLastError_1
test eax, eax
sete byte [ebp - 1]
jmp 0x54999f
lea eax, [ebp - 0x80]
push eax
push esi
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
jne 0x549933
push esi
call sub.advapi32.dll_CloseServiceHandle
call sub.KERNEL32.DLL_GetLastError_1
test eax, eax
sete byte [ebp - 1]
jmp 0x54999f
cmp dword [ebp - 0x7c], 4
jne 0x549945
push esi
call sub.advapi32.dll_CloseServiceHandle
mov byte [ebp - 1], 1
jmp 0x54999f
xor eax, eax
mov dword [ebp - 0x10], eax
push esi
call sub.advapi32.dll_CloseServiceHandle
push 1
push 0
push 0
call sub.advapi32.dll_OpenSCManagerW
mov ebx, eax
push 0x10
push 0x549a14
push ebx
call sub.advapi32.dll_OpenServiceW
mov esi, eax
push ebx
call sub.advapi32.dll_CloseServiceHandle
lea eax, [ebp - 0x10]
push eax
push 0
push esi
call sub.advapi32.dll_StartServiceW
test eax, eax
jne 0x549995
push esi
call sub.advapi32.dll_CloseServiceHandle
call sub.KERNEL32.DLL_GetLastError_1
test eax, eax
sete byte [ebp - 1]
jmp 0x54999f
push esi
call sub.advapi32.dll_CloseServiceHandle
mov byte [ebp - 1], 1
movzx eax, byte [ebp - 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x549a28
Capabilities:
Query service status

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffe4
xor ebx, ebx
mov eax, dword [0x67d698]
cmp dword [eax], 1
jne 0x549a50
push 0x549abc
push 0x549aec
call sub.user32.dll_FindWindowW
test eax, eax
setne bl
jmp 0x549ab0
push 1
push 0
push 0
call sub.advapi32.dll_OpenSCManagerW
mov esi, eax
test esi, esi
jne 0x549a6d
call sub.KERNEL32.DLL_GetLastError_1
test eax, eax
sete bl
jmp 0x549ab0
push 4
push 0x549b0c
push esi
call sub.advapi32.dll_OpenServiceW
mov edi, eax
test edi, edi
je 0x549ab0
push esi
call sub.advapi32.dll_CloseServiceHandle
push esp
push edi
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
jne 0x549a99
push edi
call sub.advapi32.dll_CloseServiceHandle
jmp 0x549ab0
cmp dword [esp + 4], 4
jne 0x549aaa
push edi
call sub.advapi32.dll_CloseServiceHandle
mov bl, 1
jmp 0x549ab0
push edi
call sub.advapi32.dll_CloseServiceHandle
mov eax, ebx
add esp, 0x1c
pop edi
pop esi
pop ebx
ret
Function at 0x549b20
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406ec4
mov eax, dword [ebp - 8]
call fcn.00406ec4
xor eax, eax
push ebp
push 0x549d79
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 1
xor esi, esi
xor eax, eax
mov dword [ebp - 0x1c], eax
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerW
mov ebx, eax
test ebx, ebx
jne 0x549b73
mov byte [ebp - 0xd], 0
push ebx
call sub.advapi32.dll_LockServiceDatabase
mov dword [ebp - 0x14], eax
xor edx, edx
push ebp
push 0x549d57
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [ebp - 0x14], 0
jne 0x549bd1
call sub.KERNEL32.DLL_GetLastError_1
cmp eax, 0x41f
je 0x549ba0
mov byte [ebp - 0xd], 0
push 0x10c
push 0x40
call sub.KERNEL32.DLL_LocalAlloc_1
mov edi, eax
test edi, edi
lea eax, [ebp - 0x18]
push eax
push 0x10c
push edi
push ebx
call sub.advapi32.dll_QueryServiceLockStatusW
test eax, eax
jne 0x549bc8
mov byte [ebp - 0xd], 0
cmp dword [edi], 0
push edi
call sub.KERNEL32.DLL_LocalFree
push 2
mov eax, dword [ebp - 4]
call fcn.00406f68
push eax
push ebx
call sub.advapi32.dll_OpenServiceW
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x549bef
mov byte [ebp - 0xd], 0
xor edx, edx
push ebp
push 0x549d30
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0xc]
cmp eax, 4
ja case.default.0x549c05
jmp dword [eax*4 + 0x549c0c]
xor esi, esi
jmp case.default.0x549c05
mov esi, 1
jmp case.default.0x549c05
mov esi, 2
jmp case.default.0x549c05
mov esi, 3
jmp case.default.0x549c05
mov esi, 4
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push esi
push 0x110
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_ChangeServiceConfigW
test eax, eax
jne 0x549c65
mov byte [ebp - 0xd], 0
push 0x549d8c
call sub.KERNEL32.DLL_GetModuleHandleW_2
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
setne al
test al, al
jne 0x549c8c
call fcn.00405750
call fcn.00405750
jmp 0x549d5e
xor edx, edx
push ebp
push 0x549d12
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x549da8
mov eax, dword [ebp - 0x20]
push eax
call fcn.0040a328
mov ebx, eax
test ebx, ebx
setne al
test al, al
jne 0x549cc7
call fcn.00405750
call fcn.00405750
call fcn.00405750
jmp 0x549d5e
cmp dword [ebp - 8], 0
je 0x549cda
mov eax, dword [ebp - 8]
call fcn.00406f68
mov dword [ebp - 0x24], eax
jmp 0x549cdf
xor eax, eax
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x24]
mov edx, dword [0x671a20]
mov eax, dword [ebp - 0x1c]
call ebx
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x549cfb
mov byte [ebp - 0xd], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x549d19
mov eax, dword [ebp - 0x20]
push eax
call sub.KERNEL32.DLL_FreeLibrary_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x549d80
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406ed4
ret
Function at 0x54c7c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
dec ecx
test ecx, ecx
jl 0x54c82f
inc ecx
xor ebx, ebx
mov eax, dword [ebp - 0x10]
and eax, 0xff
movzx edx, byte [esi + ebx]
xor eax, edx
mov edx, dword [eax*8 + 0x684ad8]
mov eax, dword [eax*8 + 0x684ad4]
push edx
push eax
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
shrd eax, edx, 8
shr edx, 8
xor eax, dword [esp]
xor edx, dword [esp + 4]
add esp, 8
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
inc ebx
dec ecx
jne 0x54c7e4
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x54c840
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
dec ecx
test ecx, ecx
jl 0x54c868
inc ecx
xor ebx, ebx
movzx esi, byte [edx + ebx]
xor esi, eax
and esi, 0xff
mov esi, dword [esi*4 + 0x6846d4]
shr eax, 8
xor esi, eax
mov eax, esi
inc ebx
dec ecx
jne 0x54c84a
pop esi
pop ebx
ret
Function at 0x5501e0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax]
dec al
je 0x550211
dec al
je 0x55024c
dec al
je 0x550291
dec al
je 0x5502fa
jmp 0x550384
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x550384
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx edx, byte [ecx + edx]
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x550221
jmp 0x550384
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x550384
mov esi, 1
movzx eax, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x55025c
jmp 0x550384
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x550384
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov ecx, esi
dec ecx
mov edx, dword [ebx + 0x24]
cmp ecx, edx
jae 0x5502c0
xor ebp, ebp
jmp 0x5502d0
mov ecx, esi
sub ecx, edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx ebp, byte [edx + ecx]
add eax, ebp
sar eax, 1
jns 0x5502d9
adc eax, 0
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [edx + esi]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x5502a1
jmp 0x550384
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x550384
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, esi
dec edx
cmp edx, dword [ebx + 0x24]
jb 0x550353
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx ebp, byte [ecx + edx]
movzx edx, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 4], edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
movzx ecx, byte [esp + 4]
push eax
mov eax, ebp
pop edx
call fcn.0054c86c
add al, byte [esp]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x55030e
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x573ca8
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov dword [esp], edx
mov ebx, eax
xor esi, esi
xor ebp, ebp
movzx edi, byte [ebx + 0x2c9]
movzx eax, byte [ebx + 0x2d0]
push eax
mov eax, edi
pop edx
mov ecx, edx
cdq
idiv ecx
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
jne 0x573ce2
mov dword [esp + 4], 1
call sub.KERNEL32.DLL_GetTickCount_1
sub eax, ebp
cmp eax, dword [ebx + 0x2cc]
jbe 0x573d19
call sub.KERNEL32.DLL_GetTickCount_1
mov ebp, eax
add esi, dword [esp + 4]
cmp edi, esi
jge 0x573d02
mov esi, edi
mov eax, esi
mov byte [ebx + 0x27a], al
push ebx
push fcn.00573b54
mov eax, dword [esp + 8]
call fcn.00498c64
push 2
call sub.KERNEL32.DLL_Sleep
mov eax, dword [esp]
cmp byte [eax + 0xd], 0
jne 0x573d53
mov eax, dword [0x67d250]
mov eax, dword [eax]
cmp byte [eax + 0xa0], 0
jne 0x573d53
cmp dword [ebx + 0x270], 0
je 0x573d53
mov eax, dword [0x67d250]
mov eax, dword [eax]
test byte [eax + 0x1c], 8
jne 0x573d53
cmp edi, esi
jg 0x573ce2
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x573dac
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, edx
mov ebx, eax
movzx eax, byte [ebx + 0x2c9]
mov esi, eax
xor ebp, ebp
mov ecx, eax
movzx eax, byte [ebx + 0x2d0]
push eax
mov eax, ecx
pop edx
mov ecx, edx
cdq
idiv ecx
mov dword [esp], eax
cmp dword [esp], 0
jne 0x573de2
mov dword [esp], 1
call sub.KERNEL32.DLL_GetTickCount_1
sub eax, ebp
cmp eax, dword [ebx + 0x2cc]
jbe 0x573e17
call sub.KERNEL32.DLL_GetTickCount_1
mov ebp, eax
sub esi, dword [esp]
cmp esi, dword [esp]
jge 0x573e02
xor esi, esi
mov eax, esi
mov byte [ebx + 0x27a], al
push ebx
push fcn.00573bb0
mov eax, edi
call fcn.00498c64
push 2
call sub.KERNEL32.DLL_Sleep
mov eax, edi
cmp byte [eax + 0xd], 0
jne 0x573e4f
mov edx, dword [0x67d250]
mov edx, dword [edx]
cmp byte [edx + 0xa0], 0
jne 0x573e4f
mov edx, dword [0x67d250]
mov edx, dword [edx]
test byte [edx + 0x1c], 8
jne 0x573e4f
cmp dword [eax + 0x4c], 1
je 0x573e60
test esi, esi
jg 0x573de2
push ebx
mov eax, dword [ebx]
mov eax, dword [eax + 0xf8]
push eax
mov eax, edi
call fcn.00498954
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x5791d4
Capabilities:
Print debug messages

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov esi, ecx
mov edi, edx
mov ebx, eax
push 6
push ebx
call sub.KERNEL32.DLL_IsBadReadPtr
test eax, eax
je 0x579216
mov eax, dword [0x67d090]
cmp byte [eax], 0
je 0x57920a
mov ecx, 0x11b1
mov edx, 0x57928c
mov eax, 0x5792f0
call fcn.00405d9c
push 0x579334
call sub.KERNEL32.DLL_OutputDebugStringW
jmp 0x579276
mov eax, ebx
call fcn.0057916c
mov ebx, eax
push esp
push 5
push esi
push ebx
call sub.KERNEL32.DLL_GetCurrentProcess
push eax
call sub.KERNEL32.DLL_ReadProcessMemory
test eax, eax
je 0x579276
mov byte [esp + 4], 0xe9
sub edi, ebx
sub edi, 5
mov dword [esp + 5], edi
lea eax, [esp + 0xc]
push eax
push 8
push 5
push ebx
call sub.KERNEL32.DLL_VirtualProtect
push esp
push 5
lea eax, [esp + 0xc]
push eax
push ebx
call sub.KERNEL32.DLL_GetCurrentProcess
push eax
call sub.KERNEL32.DLL_WriteProcessMemory
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x10]
push eax
push 5
push ebx
call sub.KERNEL32.DLL_VirtualProtect
add esp, 0x10
pop edi
pop esi
pop ebx
ret

Function at 0x57935c
Capabilities:
Print debug messages

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov esi, edx
mov ebx, eax
cmp byte [esi], 0
je 0x5793e5
test ebx, ebx
je 0x5793e5
push 6
push ebx
call sub.KERNEL32.DLL_IsBadReadPtr
test eax, eax
je 0x5793a4
mov eax, dword [0x67d090]
cmp byte [eax], 0
je 0x579398
mov ecx, 0x11d2
mov edx, 0x5793f8
mov eax, 0x57945c
call fcn.00405d9c
push 0x5794a0
call sub.KERNEL32.DLL_OutputDebugStringW
jmp 0x5793e5
mov eax, ebx
call fcn.0057916c
mov ebx, eax
test ebx, ebx
je 0x5793e5
lea eax, [esp + 4]
push eax
push 8
push 5
push ebx
call sub.KERNEL32.DLL_VirtualProtect
push esp
push 5
push esi
push ebx
call sub.KERNEL32.DLL_GetCurrentProcess
push eax
call sub.KERNEL32.DLL_WriteProcessMemory
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 8]
push eax
push 5
push ebx
call sub.KERNEL32.DLL_VirtualProtect
mov byte [esi], 0
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x57ae60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
mov esi, ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x57afc5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x44]
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 8]
push eax
push 0
mov eax, edi
call fcn.00406f68
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
push eax
call sub.KERNEL32.DLL_SetLastError
call sub.KERNEL32.DLL_GetLastError_1
test eax, eax
jne 0x57af8b
cmp dword [ebp - 8], 7
jne 0x57af73
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x57ae28]
call fcn.00408788
add esp, 4
xor eax, eax
push ebp
push 0x57af6c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push 0
push 0
mov eax, edi
call fcn.00406f68
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov ebx, dword [ebp - 4]
cmp word [ebx], 0
je 0x57af35
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00407088
mov edx, dword [ebp - 0x10]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x38]
push ebx
call sub.KERNEL32.DLL_lstrlenW_1
inc eax
add eax, eax
add ebx, eax
jmp 0x57af38
add ebx, 2
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
lea eax, [eax + edx - 1]
cmp ebx, eax
jb 0x57af0e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x57afa1
push 0
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x57ae28]
call fcn.00408788
add esp, 4
ret
mov ecx, 0x57afe0
mov dl, 1
mov eax, dword [0x49f6bc]
call fcn.0047893c
call fcn.0040565c
jmp 0x57afa1
mov ecx, 0x57b018
mov dl, 1
mov eax, dword [0x46e9cc]
call fcn.0047893c
call fcn.0040565c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x57afcc
lea eax, [ebp - 0x10]
call fcn.00406ecc
lea eax, [ebp - 4]
mov edx, dword [0x57ae28]
call fcn.004088a8
ret
Function at 0x57b050
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x57b1a7
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x57b0c0
inc ebx
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x57b0b4
sub eax, 4
mov eax, dword [eax]
inc eax
add eax, eax
add dword [ebp - 0x18], eax
inc dword [ebp - 0x14]
dec ebx
jne 0x57b094
mov eax, dword [ebp - 0x18]
call fcn.00403230
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x57b182
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x57b121
inc ebx
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x24]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x24]
call fcn.00406f68
push eax
push esi
call sub.KERNEL32.DLL_lstrcpyW
push esi
call sub.KERNEL32.DLL_lstrlenW_1
inc eax
add eax, eax
add esi, eax
inc dword [ebp - 0x14]
dec ebx
jne 0x57b0f3
mov word [esi], 0
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 7
push 0
mov eax, dword [ebp - 8]
call fcn.00406f68
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegSetValueExW
push eax
call sub.KERNEL32.DLL_SetLastError
call sub.KERNEL32.DLL_GetLastError_1
test eax, eax
je 0x57b16c
mov ecx, 0x57b1c4
mov dl, 1
mov eax, dword [0x46e9cc]
call fcn.0047893c
call fcn.0040565c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x57b189
mov eax, dword [ebp - 0x10]
call fcn.0040324c
ret
Function at 0x57b744
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
xor eax, eax
push ebp
push 0x57b83b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x67ce18]
cmp dword [eax], 6
jl 0x57b820
call fcn.0057b204
mov ebx, eax
lea edx, [ebp - 8]
mov eax, ebx
call fcn.00471048
mov ecx, dword [ebp - 8]
lea eax, [ebp - 4]
mov edx, 0x57b854
call fcn.004072b0
mov eax, dword [ebp - 4]
call fcn.00406f68
push eax
call sub.KERNEL32.DLL_OutputDebugStringW
cmp ebx, 3
jge 0x57b7c8
mov eax, dword [0x67ce18]
cmp dword [eax], 0xa
jge 0x57b7c8
cmp dword [0x6738b4], 0
je 0x57b7b5
call dword [0x6738b4]
cmp dword [0x6738b8], 0
je 0x57b820
push 2
call dword [0x6738b8]
jmp 0x57b820
cmp dword [0x6738b8], 0
je 0x57b7db
push 2
call dword [0x6738b8]
jmp 0x57b820
xor eax, eax
mov dword [0x6b5360], eax
push 0x57b89c
call sub.KERNEL32.DLL_GetModuleHandleW_2
mov dword [0x6b5360], eax
cmp dword [0x6b5360], 0xffffffff
je 0x57b80f
push 0x57b8b4
mov eax, dword [0x6b5360]
push eax
call fcn.0040a328
mov dword [0x6738b8], eax
cmp dword [0x6738b8], 0
je 0x57b820
push 2
call dword [0x6738b8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x57b842
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406ed4
ret

Function at 0x57b998
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, dword [ebp + 8]
mov eax, ebx
xor edx, edx
call fcn.00406edc
push 0
push edi
lea eax, [ebp - 0x20a]
push eax
push esi
call sub.shell32.dll_SHGetSpecialFolderPathW
mov eax, ebx
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.004070dc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x57b9e0
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffe00
mov ebx, edx
push 0xff
lea eax, [esp + 4]
push eax
call sub.KERNEL32.DLL_GetSystemDirectoryW
mov eax, ebx
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.004070dc
add esp, 0x200
pop ebx
ret

Function at 0x57ba10
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffe00
mov ebx, edx
push esp
push 0xff
call sub.KERNEL32.DLL_GetTempPathW
mov eax, ebx
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.004070dc
add esp, 0x200
pop ebx
ret

Function at 0x57ba3c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffe00
mov ebx, edx
push 0xff
lea eax, [esp + 4]
push eax
call sub.KERNEL32.DLL_GetWindowsDirectoryW
mov eax, ebx
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.004070dc
add esp, 0x200
pop ebx
ret

Function at 0x57ba6c
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
mov ebx, eax
mov eax, ebx
xor edx, edx
call fcn.00406edc
mov dword [ebp - 4], 0x104
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x20c]
push eax
call sub.advapi32.dll_GetUserNameW
test eax, eax
je 0x57baa9
mov eax, ebx
lea edx, [ebp - 0x20c]
call fcn.00407088
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x57bab0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
xor edx, edx
mov dword [ebp - 0x20c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x57bb2c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 0x208]
push eax
call sub.KERNEL32.DLL_GetWindowsDirectoryW
test eax, eax
jbe 0x57bb13
push ebx
lea eax, [ebp - 0x20c]
lea edx, [ebp - 0x208]
mov ecx, 0x104
call fcn.004070dc
mov eax, dword [ebp - 0x20c]
mov ecx, 2
mov edx, 1
call fcn.00407530
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x57bb33
lea eax, [ebp - 0x20c]
call fcn.00406ecc
ret