joyce8/EMBER2024-capa huggingface dataset:
Function at 0x514260
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x1c
mov eax, dword [0x7496c8]
xor eax, esp
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
push ebx
push eax
add ecx, 0xc
push 0x66ae98
push ecx
mov dword [esp + 0x18], eax
call fcn.00402f80
mov eax, dword [0x74f4b4]
xor ebx, ebx
add esp, 0xc
cmp eax, ebx
jne 0x5142be
push str.Advapi32.dll
call fcn.00446c90
add esp, 4
mov dword [0x74f4b4], eax
cmp eax, ebx
jne 0x5142be
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00613241
add esp, 0x1c
ret 4
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [0x74f4b8], ebx
jne 0x5142df
push str.GetNamedSecurityInfoA
push eax
call esi
mov dword [0x74f4b8], eax
mov eax, dword [0x74f4b4]
mov ecx, dword [0x74f4bc]
cmp ecx, ebx
jne 0x5142fe
push str.SetNamedSecurityInfoA
push eax
call esi
mov ecx, eax
mov eax, dword [0x74f4b4]
mov dword [0x74f4bc], ecx
cmp dword [0x74f4b8], ebx
je 0x514427
cmp ecx, ebx
je 0x514427
push edi
push str.AllocateAndInitializeSid
push eax
call esi
mov edi, eax
cmp edi, ebx
je 0x51434c
mov eax, dword [0x74f4b4]
push 0x696968
push eax
call esi
mov dword [esp + 0x18], eax
cmp eax, ebx
je 0x51434c
mov ecx, dword [0x74f4b4]
push str.InitializeAcl
push ecx
call esi
mov dword [esp + 0x10], eax
cmp eax, ebx
jne 0x514362
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00613241
add esp, 0x1c
ret 4
mov edx, dword [0x74f4b4]
push ebp
push str.AddAccessAllowedAce
push edx
call esi
mov ebp, eax
cmp ebp, ebx
jne 0x51438e
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00613241
add esp, 0x1c
ret 4
lea eax, [esp + 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 1
lea ecx, [esp + 0x48]
push ecx
mov byte [esp + 0x4c], bl
mov byte [esp + 0x4d], bl
mov byte [esp + 0x4e], bl
mov byte [esp + 0x4f], bl
mov byte [esp + 0x50], bl
mov byte [esp + 0x51], 1
call edi
mov edx, dword [esp + 0x10]
push edx
call dword [esp + 0x20]
mov esi, eax
add esi, 0x10
push esi
call fcn.0061586f
add esp, 4
push 2
mov edi, eax
push esi
push edi
call dword [esp + 0x20]
mov eax, dword [esp + 0x10]
push eax
push 0x10000000
push 2
push edi
call ebp
mov ecx, dword [esp + 0x18]
push ebx
push edi
push ebx
push ebx
push 4
push 4
push ecx
call dword [0x74f4bc]
mov esi, eax
neg esi
sbb esi, esi
push edi
inc esi
call fcn.0061477c
add esp, 4
pop ebp
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00613241
add esp, 0x1c
ret 4
mov ecx, dword [esp + 0x20]
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00613241
add esp, 0x1c
ret 4

Function at 0x5145f0
Capabilities:
Get hostname

Disassembly:
push ecx
push esi
lea eax, [esp + 4]
lea esi, [ecx + 0x40c]
push eax
push esi
mov dword [esp + 0xc], 0x32
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x514621
mov ecx, dword [str.default]
mov dword [esi], ecx
mov edx, dword [0x676494]
mov dword [esi + 4], edx
pop esi
pop ecx
ret
Function at 0x514630
Capabilities:
Get session user name

Disassembly:
push ecx
push esi
lea eax, [esp + 4]
lea esi, [ecx + 0x525]
push eax
push esi
mov dword [esp + 0xc], 0x32
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x514672
mov ecx, dword [0x674c5c]
mov dword [esi], ecx
mov edx, dword [0x674c60]
mov dword [esi + 4], edx
mov eax, dword [0x674c64]
mov dword [esi + 8], eax
mov cl, byte [0x674c68]
mov byte [esi + 0xc], cl
pop esi
pop ecx
ret
Function at 0x518b50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64d11b
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x7496c8]
xor eax, ebp
mov dword [ebp - 0x14], 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, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
xor eax, eax
mov word [ebp - 0x1c], ax
mov byte [ebp - 4], 1
mov eax, dword [0x74ea5c]
cmp eax, ebx
jne 0x518ba6
mov eax, 0x74ea60
push ebx
push eax
push str._sGrabber_
lea ecx, [ebp - 0x20]
call fcn.004021b0
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jne 0x518bbf
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x518ca3
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jne 0x518bd9
lea eax, [ebp - 0x1c]
push 0x5c
add eax, 6
push eax
call fcn.00614db0
add esp, 8
mov esi, eax
lea esp, [esp]
cmp esi, ebx
je 0x518ca3
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jne 0x518c02
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00402180
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
mov ecx, eax
jne 0x518c1b
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jne 0x518c25
lea eax, [ebp - 0x1c]
mov edx, esi
sub edx, eax
sar edx, 1
xor eax, eax
mov word [ecx + edx*2], ax
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
jne 0x518c3b
lea eax, [ebp - 0x28]
push ebx
push eax
call fcn.004a29e0
add esp, 8
test eax, eax
jne 0x518c82
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
jne 0x518c53
lea eax, [ebp - 0x28]
push ebx
push eax
call fcn.004a2bc0
add esp, 8
test eax, eax
jne 0x518c82
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.004011f0
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x20]
call fcn.004011f0
mov eax, 0x7546
jmp 0x518d2b
push 0x5c
add esi, 2
push esi
call fcn.00614db0
add esp, 8
mov esi, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.004011f0
jmp 0x518bf0
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jne 0x518cad
lea eax, [ebp - 0x1c]
push ebx
push eax
push str._sprojects2.dat
lea ecx, [edi + 0x18]
call fcn.004021b0
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jne 0x518cc6
lea eax, [ebp - 0x1c]
push ebx
push eax
push str._sprojects.dat
lea ecx, [edi + 0x24]
call fcn.004021b0
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x20]
call fcn.004011f0
mov dword [ebp - 4], 0xffffffff
xor eax, eax
jmp 0x518d2b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00613241
mov esp, ebp
pop ebp
ret
Function at 0x519e20
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x81c]
sub esp, 0x81c
push 0xffffffffffffffff
push 0x64d3e0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x7496c8]
xor eax, ebp
mov dword [ebp + 0x818], 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, ecx
mov dword [ebp - 0x18], edi
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp byte [edi + 0x14], bl
jne 0x519fe2
mov eax, dword [0x74ea5c]
cmp eax, ebx
jne 0x519e7d
mov eax, 0x74ea60
lea esi, [edi + 0x18]
push ebx
push eax
push str._sfoldresHistory.txt
mov ecx, esi
call fcn.004021b0
mov byte [edi + 0x14], 1
cmp dword [esi], ebx
je 0x519e9a
mov esi, dword [esi]
jmp 0x519e9d
add esi, 4
push ebx
push ebx
push 3
push ebx
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x14], esi
cmp esi, 0xffffffff
je 0x519fe2
mov dword [ebp + 0xc], ebx
mov dword [ebp + 0x14], ebx
xor eax, eax
mov word [ebp + 0x10], ax
mov byte [ebp - 4], 1
mov edi, edi
push 0x800
push ebx
lea ecx, [ebp + 0x18]
push ecx
call fcn.00613900
add esp, 0xc
push ebx
lea edx, [ebp - 0x1c]
push edx
push 0x7fe
lea eax, [ebp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
je 0x519fc9
cmp dword [ebp - 0x1c], ebx
jbe 0x519fc9
lea ecx, [ebp + 0x18]
push ecx
lea ecx, [ebp + 0xc]
call fcn.00405330
mov eax, dword [ebp + 0xc]
cmp eax, ebx
jne 0x519f1e
lea eax, [ebp + 0x10]
push 0xa
push eax
call fcn.00614db0
add esp, 8
mov esi, eax
jmp 0x519f30
cmp esi, ebx
je 0x519fc1
xor edx, edx
mov word [esi], dx
mov edx, dword [ebp + 0xc]
cmp edx, ebx
mov eax, edx
jne 0x519f49
lea eax, [ebp + 0x10]
lea edi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x519f50
sub eax, edi
sar eax, 1
je 0x519f76
cmp edx, ebx
mov eax, edx
jne 0x519f6a
lea eax, [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x18]
add ecx, 4
call fcn.004c00d0
add esi, 2
push esi
lea ecx, [ebp]
call fcn.00402180
mov byte [ebp - 4], 2
mov eax, dword [ebp]
cmp eax, ebx
jne 0x519f90
lea eax, [ebp + 4]
push eax
lea ecx, [ebp + 0xc]
call fcn.004017f0
mov eax, dword [ebp + 0xc]
cmp eax, ebx
jne 0x519fa3
lea eax, [ebp + 0x10]
push 0xa
push eax
call fcn.00614db0
add esp, 8
mov esi, eax
mov byte [ebp - 4], 1
lea ecx, [ebp]
call fcn.004011f0
jmp 0x519f30
mov esi, dword [ebp - 0x14]
jmp 0x519ed0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], bl
lea ecx, [ebp + 0xc]
call fcn.004011f0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x818]
xor ecx, ebp
call fcn.00613241
add ebp, 0x81c
mov esp, ebp
pop ebp
ret
Function at 0x51a020
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64d418
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x7496c8]
xor eax, ebp
mov dword [ebp - 0x14], 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, ecx
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x28], 0xffffffff
mov dword [ebp - 4], 0
cmp byte [edi + 0x14], 0
jne 0x51a085
mov eax, dword [0x74ea5c]
test eax, eax
jne 0x51a075
mov eax, 0x74ea60
push 0
push eax
push str._sfoldresHistory.txt
lea ecx, [edi + 0x18]
call fcn.004021b0
cmp dword [edi + 0x18], 0
je 0x51a090
mov eax, dword [edi + 0x18]
jmp 0x51a093
lea eax, [edi + 0x1c]
push 0
push 0
push 2
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x28], esi
cmp esi, 0xffffffff
je 0x51a161
xor eax, eax
mov dword [ebp - 0x24], eax
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, dword [edi + 8]
jge 0x51a13c
push eax
lea ecx, [edi + 4]
call fcn.0043b0a0
push eax
lea ecx, [ebp - 0x20]
call fcn.00402180
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x20]
test edx, edx
mov eax, edx
jne 0x51a0e9
lea eax, [ebp - 0x1c]
lea edi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x51a0f0
sub eax, edi
sar eax, 1
test edx, edx
mov ecx, edx
jne 0x51a108
lea ecx, [ebp - 0x1c]
push 0
lea edx, [ebp - 0x2c]
push edx
add eax, eax
push eax
push ecx
push esi
call ebx
push 0
lea ecx, [ebp - 0x2c]
push ecx
push 2
push 0x697730
push esi
call ebx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.004011f0
inc dword [ebp - 0x24]
mov eax, dword [ebp - 0x24]
mov edi, dword [ebp - 0x30]
jmp 0x51a0c2
mov dword [ebp - 4], 0xffffffff
jmp 0x51a155
cmp esi, 0xffffffff
je 0x51a161
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00613241
mov esp, ebp
pop ebp
ret
Function at 0x51bdf0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push esi
lea eax, [esp + 0x14]
push eax
mov esi, ecx
lea ecx, [esp + 0x10]
push ecx
push 0
push 0xf003f
push 0
push 0x66b96c
push 0
push str.SoftwareDownloadManagerScheduler
push 0x80000001
call ebx
test eax, eax
jne 0x51bff5
mov ecx, dword [esp + 0xc]
push ebp
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor edx, edx
cmp byte [esi + 0x21], dl
push 4
lea eax, [esp + 0x14]
push eax
push 4
setne dl
push 0
push str.isStartEnabled
push ecx
mov dword [esp + 0x28], edx
call edi
mov ecx, dword [esp + 0x14]
xor edx, edx
cmp byte [esi + 0x22], dl
push 4
lea eax, [esp + 0x14]
push eax
push 4
setne dl
push 0
push str.isStopEnabled
push ecx
mov dword [esp + 0x28], edx
call edi
mov ecx, dword [esp + 0x14]
xor edx, edx
cmp byte [esi + 0x23], dl
push 4
lea eax, [esp + 0x14]
push eax
push 4
sete dl
push 0
push str.isStartDilay
push ecx
mov dword [esp + 0x28], edx
call edi
mov eax, dword [esp + 0x14]
push 4
lea edx, [esi + 0x3c]
push edx
push 4
push 0
push str.startDaysOfWeek
push eax
call edi
mov eax, dword [esp + 0x14]
xor ecx, ecx
cmp byte [esi + 0x40], cl
push 4
lea edx, [esp + 0x14]
push edx
push 4
setne cl
push 0
push str.isForceTurnOff
push eax
mov dword [esp + 0x28], ecx
call edi
mov eax, dword [esp + 0x14]
xor ecx, ecx
cmp byte [esi + 0x43], cl
push 4
lea edx, [esp + 0x14]
push edx
push 4
setne cl
push 0
push str.isHangUpModem
push eax
mov dword [esp + 0x28], ecx
call edi
xor ecx, ecx
cmp byte [esi + 0x41], cl
setne cl
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x14]
push 4
lea edx, [esp + 0x14]
push edx
push 4
push 0
push str.isTurnOffComputer
push eax
call edi
mov eax, dword [esp + 0x14]
xor ecx, ecx
cmp byte [esi + 0x42], cl
push 4
lea edx, [esp + 0x14]
push edx
push 4
setne cl
push 0
push str.isExitIDMWhenDone
push eax
mov dword [esp + 0x28], ecx
call edi
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x24]
push 4
lea edx, [esp + 0x1c]
push edx
push 4
push 0
push str.startTime
push eax
mov dword [esp + 0x30], ecx
call edi
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x2c]
push 4
lea edx, [esp + 0x1c]
push edx
push 4
push 0
push str.startDay
push eax
mov dword [esp + 0x30], ecx
call edi
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x34]
push 4
lea edx, [esp + 0x1c]
push edx
push 4
push 0
push str.stopTime
push eax
mov dword [esp + 0x30], ecx
call edi
mov ecx, dword [esp + 0x14]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call ebp
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
push 0
push 0xf003f
push 0
push 0x66b96c
push 0
push str.SoftwareDownloadManagerQueue
push 0x80000001
call ebx
test eax, eax
jne 0x51bff3
mov ecx, dword [esi + 0x54]
push 4
lea edx, [esp + 0x14]
push edx
push 4
push eax
mov eax, dword [esp + 0x24]
push str.FilesAtTheSameTime
push eax
mov dword [esp + 0x28], ecx
call edi
mov ecx, dword [esp + 0x14]
push ecx
call ebp
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x51c300
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x64d7e6
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
mov eax, dword [0x7496c8]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov dword [esi], vtable.CSchedulerInfo.0
xor ebx, ebx
xor eax, eax
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], ebx
mov word [esi + 0x18], ax
mov dword [esp + 0x3c], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
xor ecx, ecx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x50], ebx
mov word [esi + 0x4c], cx
mov byte [esp + 0x3c], 1
lea edx, [esp + 0x10]
push edx
mov dword [esi + 0x5c], ebx
mov byte [esi + 0x20], bl
mov byte [esi + 0xc], bl
mov dword [esi + 8], 0x78
mov dword [esi + 0x10], ebx
mov dword [esi + 0x54], 1
mov byte [esi + 4], 1
mov byte [esi + 0x21], bl
mov byte [esi + 0x22], bl
mov byte [esi + 0x23], bl
mov byte [esi + 0x40], bl
mov byte [esi + 0x43], bl
mov byte [esi + 0x41], bl
mov byte [esi + 0x42], bl
mov dword [esi + 0x3c], 0x7f
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], 0x17
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], 0x77
mov dword [esp + 0x34], 0xffffffff
call fcn.00619560
mov ecx, eax
and ecx, edx
add esp, 4
cmp ecx, 0xffffffff
jne 0x51c3ec
push 0x80070057
call fcn.00401090
mov dword [esi + 0x28], edx
lea edx, [esp + 0x10]
push edx
mov dword [esi + 0x24], eax
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], 0x1e
mov dword [esp + 0x1c], 7
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], 0x77
mov dword [esp + 0x34], 0xffffffff
call fcn.00619560
mov ecx, eax
and ecx, edx
add esp, 4
cmp ecx, 0xffffffff
jne 0x51c448
push 0x80070057
call fcn.00401090
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], edx
mov byte [esi + 0x44], bl
mov dword [esi + 0x58], ebx
mov dword [esp + 0x3c], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x34
ret
Function at 0x520950
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
mov eax, dword [0x7496c8]
xor eax, esp
mov dword [esp + 8], eax
mov al, 0x66
mov byte [esp], al
mov byte [esp + 5], al
lea eax, [esp]
push esi
mov esi, dword [esp + 0x14]
mov byte [esp + 5], 0x64
mov byte [esp + 6], 0x74
mov byte [esp + 7], 0x60
mov byte [esp + 8], 0x76
mov byte [esp + 0xa], 0
lea edx, [eax + 1]
jmp 0x520990
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x520990
sub eax, edx
xor ecx, ecx
test eax, eax
jle 0x5209aa
nop
xor byte [esp + ecx + 4], 0x12
inc ecx
cmp ecx, eax
jl 0x5209a0
lea eax, [esp + 4]
push eax
push 0x66ae98
push esi
call fcn.00402f80
mov ecx, dword [esp + 0x18]
add esp, 0xc
pop esi
xor ecx, esp
call fcn.00613241
add esp, 0xc
ret

Function at 0x5209d0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
mov eax, dword [0x7496c8]
xor eax, esp
mov dword [esp + 8], eax
mov al, 0x61
mov byte [esp], al
mov byte [esp + 4], al
lea eax, [esp]
push esi
mov esi, dword [esp + 0x14]
mov byte [esp + 5], 0x71
mov byte [esp + 6], 0x73
mov byte [esp + 7], 0x7c
mov byte [esp + 9], 0x79
mov byte [esp + 0xa], 0
lea edx, [eax + 1]
jmp 0x520a10
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x520a10
sub eax, edx
xor ecx, ecx
test eax, eax
jle 0x520a2a
nop
xor byte [esp + ecx + 4], 0x12
inc ecx
cmp ecx, eax
jl 0x520a20
lea eax, [esp + 4]
push eax
push 0x66ae98
push esi
call fcn.00402f80
mov ecx, dword [esp + 0x18]
add esp, 0xc
pop esi
xor ecx, esp
call fcn.00613241
add esp, 0xc
ret

Function at 0x520a50
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
sub esp, 0x14
mov eax, dword [0x7496c8]
xor eax, esp
mov dword [esp + 0x10], eax
mov al, 0x20
mov dl, 0x25
mov cl, 0x21
mov byte [esp + 5], al
mov byte [esp + 0xb], al
lea eax, [esp]
push esi
mov esi, dword [esp + 0x1c]
mov byte [esp + 6], dl
mov byte [esp + 0xc], dl
mov byte [esp + 4], 0x2b
mov byte [esp + 5], 0x26
mov byte [esp + 7], cl
mov byte [esp + 8], 0x24
mov byte [esp + 0xa], 0x22
mov byte [esp + 0xb], 0x27
mov byte [esp + 0xd], 0x23
mov byte [esp + 0xe], 0x2b
mov byte [esp + 0x10], 0x2a
mov byte [esp + 0x11], cl
mov byte [esp + 0x12], 0x26
mov byte [esp + 0x13], 0
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x520ac0
sub eax, edx
xor ecx, ecx
test eax, eax
jle 0x520ada
nop
xor byte [esp + ecx + 4], 0x12
inc ecx
cmp ecx, eax
jl 0x520ad0
lea eax, [esp + 4]
push eax
push 0x66ae98
push esi
call fcn.00402f80
mov ecx, dword [esp + 0x20]
add esp, 0xc
pop esi
xor ecx, esp
call fcn.00613241
add esp, 0x14
ret
Function at 0x5218b0
Capabilities:
Access peb ldr_data
Contain obfuscated stackstrings
Encode data using xor
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x64e068
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x7496c8]
xor eax, esp
mov dword [esp + 0x5c], eax
push esi
push edi
mov eax, dword [0x7496c8]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x7c]
lea ecx, [esp + 0xc]
call fcn.00402500
mov dword [esp + 0x74], 0
lea eax, [esp + 0xc]
push eax
call fcn.005209d0
push 0x32
lea ecx, [esp + 0x3c]
push 0
push ecx
call fcn.00613900
mov ecx, dword [esp + 0x1c]
add esp, 0x10
lea edx, [esp + 0x18]
push edx
mov edx, dword [0x74ea0c]
lea eax, [esp + 0x38]
push eax
push 0
push 0
push ecx
push edx
mov dword [esp + 0x30], 0x32
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x52195f
push edi
call fcn.00521420
add esp, 4
mov esi, eax
mov dword [esp + 0x74], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.00402570
mov eax, esi
jmp 0x521a8a
lea ecx, [esp + 0x10]
call fcn.00402500
mov byte [esp + 0x74], 1
lea eax, [esp + 0x10]
push eax
call fcn.00520a50
add esp, 4
mov dword [esp + 0x14], vtable.CProtection.0
mov byte [esp + 0x74], 2
mov ecx, dword [esp + 0x10]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x521990
sub eax, esi
push eax
push ecx
push 0x28
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x24]
call fcn.00447de0
mov al, 0x73
mov byte [esp + 0x21], al
mov byte [esp + 0x27], al
mov al, 0x61
mov cl, 0x4e
mov dl, 0x51
mov byte [esp + 0x28], al
mov byte [esp + 0x29], al
mov byte [esp + 0x2b], al
lea eax, [esp + 0x1c]
mov byte [esp + 0x24], cl
mov byte [esp + 0x2c], cl
mov byte [esp + 0x32], cl
mov byte [esp + 0x1c], 0x41
mov byte [esp + 0x1d], 0x7d
mov byte [esp + 0x1e], 0x74
mov byte [esp + 0x1f], 0x66
mov byte [esp + 0x20], 0x65
mov byte [esp + 0x22], 0x60
mov byte [esp + 0x23], 0x77
mov byte [esp + 0x25], dl
mov byte [esp + 0x26], 0x7e
mov byte [esp + 0x2a], 0x77
mov byte [esp + 0x2d], dl
mov byte [esp + 0x2e], 0x5e
mov byte [esp + 0x2f], 0x41
mov byte [esp + 0x30], 0x5b
mov byte [esp + 0x31], 0x56
mov byte [esp + 0x33], 0
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x521a28
sub eax, ecx
xor ecx, ecx
test eax, eax
jle 0x521a41
xor byte [esp + ecx + 0x1c], 0x12
inc ecx
cmp ecx, eax
jl 0x521a37
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x20]
push eax
push 0x698480
push edi
call fcn.00402f80
add esp, 0x10
mov byte [esp + 0x74], 1
mov dword [esp + 0x14], vtable.CProtection.0
mov byte [esp + 0x74], 0
lea ecx, [esp + 0x10]
call fcn.00402570
mov dword [esp + 0x74], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.00402570
mov eax, 1
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.00613241
add esp, 0x6c
ret
Function at 0x522c30
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x64e1d8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x7496c8]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
call fcn.00522bb0
test eax, eax
jne 0x522d49
lea ecx, [esp + 0xc]
call fcn.00402500
mov dword [esp + 0x24], 0
lea eax, [esp + 0xc]
push eax
call fcn.00520950
mov eax, dword [esp + 0x10]
add esp, 4
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [0x74ea0c]
lea edx, [esp + 0x14]
push edx
push 0
push 0
push eax
push ecx
mov dword [esp + 0x2c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x522d02
mov eax, dword [esp + 0x10]
add eax, 0xecdc0ccd
cdq
push 0
mov esi, eax
mov edi, edx
call fcn.006169e1
add esp, 4
cdq
push 0
sub eax, esi
push 0x15180
sbb edx, edi
push edx
push eax
call fcn.00617220
cmp dword [0x743d1c], 0
je 0x522cf1
cmp eax, 5
jge 0x522cea
cmp eax, 0xffffffff
jge 0x522d38
call fcn.00521ab0
jmp 0x522d38
cmp eax, 0x37
jge 0x522cfb
cmp eax, 0xffffffff
jge 0x522d38
call fcn.00521ab0
jmp 0x522d38
lea edx, [esp + 0x18]
push edx
call fcn.006169e1
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add esp, 4
push 4
lea ecx, [esp + 0x14]
push ecx
push 4
add eax, 0x1323f333
push 0
mov dword [esp + 0x20], eax
mov eax, dword [0x74ea0c]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [esp + 0x24], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.00402570
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x1c
ret