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

Disassembly:
mov eax, dword [0x6cf2ac]
sub esp, 0x14
push ebx
xor ebx, ebx
push ebp
push esi
cmp eax, ebx
push edi
mov esi, ecx
jne 0x4fc33c
push str.Advapi32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [0x6cf2ac], eax
je 0x4fc4a9
mov ecx, dword [0x6cf2b0]
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp ecx, ebx
jne 0x4fc361
push str.GetNamedSecurityInfoA
push eax
call ebp
mov ecx, eax
mov eax, dword [0x6cf2ac]
mov dword [0x6cf2b0], ecx
mov edx, dword [0x6cf2b4]
cmp edx, ebx
jne 0x4fc381
push str.SetNamedSecurityInfoA
push eax
call ebp
mov ecx, dword [0x6cf2b0]
mov edx, eax
mov dword [0x6cf2b4], edx
cmp ecx, ebx
je 0x4fc4a9
cmp edx, ebx
je 0x4fc4a9
lea eax, [esi + 8]
add esi, 4
push esi
push ebx
push eax
push ebx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x38]
push ebx
push 4
push 4
push eax
call ecx
test eax, eax
jne 0x4fc4a9
mov ecx, dword [0x6cf2ac]
push str.AllocateAndInitializeSid
push ecx
call ebp
mov edi, eax
cmp edi, ebx
je 0x4fc4a9
mov edx, dword [0x6cf2ac]
push str.GetLengthSid
push edx
call ebp
mov esi, eax
cmp esi, ebx
je 0x4fc4a9
mov eax, dword [0x6cf2ac]
push str.InitializeAcl
push eax
call ebp
cmp eax, ebx
mov dword [esp + 0x14], eax
je 0x4fc4a9
mov ecx, dword [0x6cf2ac]
push str.AddAccessDeniedAce
push ecx
call ebp
mov ebp, eax
cmp ebp, ebx
je 0x4fc4a9
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 1
push eax
mov byte [esp + 0x48], bl
mov byte [esp + 0x49], bl
mov byte [esp + 0x4a], bl
mov byte [esp + 0x4b], bl
mov byte [esp + 0x4c], bl
mov byte [esp + 0x4d], 1
call edi
mov ecx, dword [esp + 0x10]
push ecx
call esi
mov esi, eax
add esi, 0x10
push esi
call fcn.005c541e
add esp, 4
mov edi, eax
push 2
push esi
push edi
call dword [esp + 0x20]
mov edx, dword [esp + 0x10]
push edx
push 0x10000000
push 2
push edi
call ebp
mov eax, dword [esp + 0x28]
push ebx
push edi
push ebx
push ebx
push 4
push 4
push eax
call dword [0x6cf2b4]
test eax, eax
push edi
je 0x4fc49b
call fcn.005c4d0f
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
call fcn.005c4d0f
mov ecx, dword [esp + 0x1c]
add esp, 4
mov dword [ecx], ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
Function at 0x4fda20
Capabilities:
Get hostname

Disassembly:
push ecx
push esi
lea eax, [esp + 4]
lea esi, [ecx + 0x1fc]
push eax
push esi
mov dword [esp + 0xc], 0x32
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x4fda4e
push str.default
push esi
call fcn.005c5558
add esp, 8
pop esi
pop ecx
ret

Function at 0x4fda60
Capabilities:
Get session user name

Disassembly:
push ecx
push esi
lea eax, [esp + 4]
lea esi, [ecx + 0x310]
push eax
push esi
mov dword [esp + 0xc], 0x32
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x4fda8e
push str.default_user
push esi
call fcn.005c5558
add esp, 8
pop esi
pop ecx
ret
Function at 0x500020
Capabilities:
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x6056c8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebp
push esi
mov esi, ecx
xor ebp, ebp
mov eax, dword [esi + 0x18]
cmp eax, ebp
jne 0x500048
lea eax, [esi + 0x1c]
push 0x6a2680
push eax
call fcn.005c62b7
mov ecx, eax
add esp, 8
cmp ecx, ebp
mov dword [esp + 0x14], ecx
je 0x500199
mov eax, dword [0x6ca27c]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x24], ebp
cmp eax, ebp
mov dword [esp + 0x10], ebp
jle 0x50016e
push ebx
push edi
mov ecx, dword [0x6ca27c]
mov dword [esp + 0x14], ecx
mov edx, dword [esi + 8]
push 0
push 0
push 0
mov eax, dword [edx + ebp + 8]
push 0
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
mov byte [esp + 0x4c], 1
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
jle 0x500143
push edi
lea ecx, [esp + 0x18]
call fcn.005e1559
mov ebx, eax
mov eax, dword [esi + 8]
push 0
push 0
mov eax, dword [eax + ebp + 8]
push edi
push ebx
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x500143
mov ecx, dword [0x6ca27c]
mov dword [esp + 0x10], ecx
mov edx, dword [esi + 8]
push ebx
mov byte [esp + 0x30], 2
mov ecx, dword [edx + ebp + 4]
lea eax, [edx + ebp]
push ecx
mov edx, dword [eax]
lea eax, [esp + 0x18]
push edx
push str._ld__s_r_n_s_r_n
push eax
call fcn.005d9fbb
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x24]
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 1
push edx
call fcn.005c614d
add esp, 0x24
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 1
call fcn.005e118c
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 0
call fcn.005e118c
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0xc]
inc eax
add ebp, 0xc
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x500082
mov ecx, dword [esp + 0x1c]
pop edi
pop ebx
push ecx
call fcn.005c60d0
mov eax, dword [esi + 0x24]
add esp, 4
test eax, eax
jne 0x500181
lea eax, [esi + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], 0xffffffff
call fcn.005e118c
mov ecx, dword [esp + 0x1c]
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x501160
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x605800
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
mov al, byte [ecx + 0x14]
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
test al, al
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 4], ebx
jne 0x501272
mov eax, dword [0x6cee40]
cmp eax, ebx
jne 0x5011a9
mov eax, 0x6cee44
mov edx, str._sfoldresHistory.txt
lea esi, [ecx + 0x18]
test edx, edx
je 0x501272
cmp eax, ebx
je 0x501272
push eax
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x2c], ebx
mov word [ebp - 0x30], bx
call fcn.00401f60
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00401070
push str._sfoldresHistory.txt
lea ecx, [ebp - 0x40]
call fcn.00401ed0
mov edi, dword [ebp - 0x38]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.00401f50
push eax
call fcn.005c4b4a
lea ebx, [eax + edi + 2]
lea eax, [ebx + ebx]
push eax
call fcn.005dd58d
mov edi, eax
add esp, 8
test edi, edi
mov dword [esi], edi
je 0x501255
lea ecx, [ebx + ebx]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [ebp - 0x34]
call fcn.00401f50
push eax
lea ecx, [ebp - 0x40]
call fcn.00401f50
push eax
mov eax, dword [esi]
push ebx
push eax
call fcn.005c4ada
mov ecx, dword [esi]
push ecx
call fcn.005c4b4a
add esp, 0x14
mov dword [esi + 8], eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0
call fcn.00401070
mov ecx, dword [ebp - 0x14]
xor ebx, ebx
mov eax, dword [ecx + 0x18]
cmp eax, ebx
jne 0x50127c
lea eax, [ecx + 0x1c]
push ebx
push ebx
push 2
push ebx
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 0x18], edi
je 0x50132a
mov eax, dword [ebp - 0x14]
cmp ebx, dword [eax + 8]
jge 0x50131e
mov eax, dword [eax + 0x10]
lea edx, [ebx + ebx*2]
xor esi, esi
mov ecx, dword [eax + edx*4]
lea eax, [eax + edx*4]
cmp ecx, esi
jne 0x5012ba
lea ecx, [eax + 4]
push ecx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], esi
mov word [ebp - 0x24], si
call fcn.00401f60
mov eax, dword [ebp - 0x28]
cmp eax, esi
jne 0x501311
lea eax, [ebp - 0x24]
lea esi, [ebp - 0x24]
lea ecx, [ebp - 0x1c]
push 0
push ecx
push eax
call fcn.005c4b4a
add esp, 4
shl eax, 1
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call esi
lea edx, [ebp - 0x1c]
push 0
push edx
push 2
push 0x6b96f8
push edi
call esi
lea ecx, [ebp - 0x28]
call fcn.00401070
inc ebx
jmp 0x50129d
mov esi, eax
jmp 0x5012da
cmp edi, 0xffffffff
je 0x50132a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x502920
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x605a96
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x6ca27c]
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi + 0x14], eax
mov ecx, dword [0x6ca27c]
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov dword [esi + 0x34], ecx
push 0xffffffffffffffff
push ebx
push ebx
push 0x17
push 1
push 1
push 0x7d5
lea ecx, [esp + 0x28]
mov byte [esp + 0x34], 1
mov dword [esi], 0x631a50
mov dword [esi + 0x3c], ebx
mov byte [esi + 0x18], bl
mov byte [esi + 0xc], bl
mov dword [esi + 8], 0x78
mov dword [esi + 0x10], ebx
mov dword [esi + 0x38], 1
mov byte [esi + 4], 1
mov byte [esi + 0x19], bl
mov byte [esi + 0x1a], bl
mov byte [esi + 0x1b], bl
mov byte [esi + 0x2c], bl
mov byte [esi + 0x2f], bl
mov byte [esi + 0x2d], bl
mov byte [esi + 0x2e], bl
mov dword [esi + 0x28], 0x7f
call fcn.005da4d6
mov edx, dword [eax]
push 0xffffffffffffffff
push ebx
push 0x1e
push 7
push 1
push 1
mov dword [esi + 0x1c], edx
push 0x7d5
lea ecx, [esp + 0x28]
mov dword [esi + 0x20], ebx
call fcn.005da4d6
mov eax, dword [eax]
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x24], eax
mov byte [esi + 0x30], bl
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x502e40
Capabilities:
Set registry value

Disassembly:
sub esp, 0x10
lea eax, [esp + 0xc]
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x14]
push eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push ecx
push 0
push 0xf003f
push 0
push 0x6ce7c8
push 0
push str.SoftwareDownloadManagerScheduler
push reloc.WS2_32.dll_accept
call ebx
test eax, eax
jne 0x503051
mov al, byte [esi + 0x19]
mov ecx, dword [esp + 0x14]
xor edx, edx
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test al, al
lea eax, [esp + 0x10]
push 4
push eax
push 4
push 0
push str.isStartEnabled
setne dl
push ecx
mov dword [esp + 0x28], edx
call edi
mov al, byte [esi + 0x1a]
mov ecx, dword [esp + 0x14]
xor edx, edx
push 4
test al, al
lea eax, [esp + 0x14]
push eax
push 4
push 0
push str.isStopEnabled
setne dl
push ecx
mov dword [esp + 0x28], edx
call edi
mov cl, byte [esi + 0x1b]
lea eax, [esp + 0x10]
push 4
xor edx, edx
push eax
push 4
test cl, cl
mov ecx, dword [esp + 0x20]
push 0
sete dl
push str.isStartDilay
push ecx
mov dword [esp + 0x28], edx
call edi
mov eax, dword [esp + 0x14]
lea edx, [esi + 0x28]
push 4
push edx
push 4
push 0
push str.startDaysOfWeek
push eax
call edi
mov al, byte [esi + 0x2c]
lea edx, [esp + 0x10]
push 4
xor ecx, ecx
push edx
push 4
test al, al
mov eax, dword [esp + 0x20]
push 0
setne cl
push str.isForceTurnOff
push eax
mov dword [esp + 0x28], ecx
call edi
mov al, byte [esi + 0x2f]
lea edx, [esp + 0x10]
push 4
xor ecx, ecx
push edx
push 4
test al, al
mov eax, dword [esp + 0x20]
push 0
setne cl
push str.isHangUpModem
push eax
mov dword [esp + 0x28], ecx
call edi
xor ecx, ecx
mov al, byte [esi + 0x2d]
lea edx, [esp + 0x10]
push 4
push edx
test al, al
mov eax, dword [esp + 0x1c]
push 4
push 0
push str.isTurnOffComputer
setne cl
push eax
mov dword [esp + 0x28], ecx
call edi
mov al, byte [esi + 0x2e]
lea edx, [esp + 0x10]
push 4
xor ecx, ecx
push edx
push 4
test al, al
mov eax, dword [esp + 0x20]
push 0
setne cl
push str.isExitIDMWhenDone
push eax
mov dword [esp + 0x28], ecx
call edi
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x1c]
lea edx, [esp + 0x18]
push 4
push edx
push 0
push 0
push str.startTime
push eax
mov dword [esp + 0x30], ecx
call edi
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x20]
lea edx, [esp + 0x18]
push 4
push edx
push 0
push 0
push str.startDay
push eax
mov dword [esp + 0x30], ecx
call edi
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x24]
lea edx, [esp + 0x18]
push 4
push edx
push 0
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]
lea eax, [esp + 0x14]
push edx
push eax
push 0
push 0xf003f
push 0
push 0x6ce7c8
push 0
push str.SoftwareDownloadManagerQueue
push reloc.WS2_32.dll_accept
call ebx
test eax, eax
jne 0x503051
mov ecx, dword [esi + 0x38]
lea edx, [esp + 0x10]
push 4
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 esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x505d20
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x605f50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push edi
mov dword [esp + 0xc], 0x61a4b4
mov eax, dword [0x6ca27c]
xor ebx, ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 8], eax
mov cl, 0x21
mov al, 0x20
mov dl, 0x25
mov byte [esp + 0x13], cl
mov byte [esp + 0x15], al
mov byte [esp + 0x1b], al
mov byte [esp + 0x1d], cl
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x10], 0x2b
mov byte [esp + 0x11], 0x26
mov byte [esp + 0x12], dl
mov byte [esp + 0x14], 0x24
mov byte [esp + 0x16], 0x22
mov byte [esp + 0x17], 0x27
mov byte [esp + 0x18], dl
mov byte [esp + 0x19], 0x23
mov byte [esp + 0x1a], 0x2b
mov byte [esp + 0x1c], 0x2a
mov byte [esp + 0x1e], 0x26
mov byte [esp + 0x1f], bl
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x5c], 1
cmp ecx, ebx
jle 0x505dc7
mov dl, byte [esp + eax + 0x10]
xor dl, 0x12
mov byte [esp + eax + 0x10], dl
inc eax
cmp eax, ecx
jl 0x505db7
lea ecx, [esp + 0x10]
lea edx, [esp + 8]
push ecx
push 0x69ffbc
push edx
call fcn.005d9fbb
mov edx, dword [esp + 0x14]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
mov byte [esp + 0x20], 0xa1
mov byte [esp + 0x21], 0xc1
mov byte [esp + 0x22], 0x60
mov byte [esp + 0x23], 0x5b
mov byte [esp + 0x24], 0xb5
mov byte [esp + 0x25], 0xfd
mov byte [esp + 0x26], 0x7d
mov byte [esp + 0x27], 0x8d
mov byte [esp + 0x28], bl
mov byte [esp + 0x29], bl
mov byte [esp + 0x2a], bl
mov byte [esp + 0x2b], bl
mov byte [esp + 0x2c], bl
mov byte [esp + 0x2d], bl
mov byte [esp + 0x2e], bl
mov byte [esp + 0x2f], bl
mov byte [esp + 0x30], bl
mov byte [esp + 0x31], bl
mov byte [esp + 0x32], bl
mov byte [esp + 0x33], bl
mov byte [esp + 0x34], bl
mov byte [esp + 0x35], bl
mov byte [esp + 0x36], bl
mov byte [esp + 0x37], bl
mov byte [esp + 0x38], bl
mov byte [esp + 0x39], bl
mov byte [esp + 0x3a], bl
mov byte [esp + 0x3b], bl
mov byte [esp + 0x3c], bl
mov byte [esp + 0x3d], bl
mov byte [esp + 0x3e], bl
mov byte [esp + 0x3f], bl
mov byte [esp + 0x40], bl
mov byte [esp + 0x41], bl
mov byte [esp + 0x42], bl
mov byte [esp + 0x43], bl
mov byte [esp + 0x44], bl
mov byte [esp + 0x45], bl
mov byte [esp + 0x46], bl
mov byte [esp + 0x47], bl
mov byte [esp + 0x48], bl
mov byte [esp + 0x49], bl
mov byte [esp + 0x4a], bl
mov byte [esp + 0x4b], bl
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], bl
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x20]
push ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push edx
lea eax, [esp + 0x28]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00445290
mov edx, dword [esp + 0x64]
lea ecx, [esp + 0x20]
push ecx
push 0x69ffbc
push edx
call fcn.005d9fbb
add esp, 0xc
lea ecx, [esp + 8]
mov byte [esp + 0x5c], bl
call fcn.005e118c
mov ecx, dword [esp + 0x54]
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0x58
ret
Function at 0x507af0
Capabilities:
Encode data using xor
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x6060e8
push eax
mov dword fs:[0], esp
sub esp, 0x18
push edi
call fcn.00505f10
test eax, eax
jne 0x507c6a
mov eax, dword [0x6ca27c]
mov dword [esp + 8], eax
mov al, 0x66
lea edi, [esp + 0x14]
mov byte [esp + 0x14], al
mov byte [esp + 0x19], al
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x15], 0x64
mov byte [esp + 0x16], 0x74
mov byte [esp + 0x17], 0x60
mov byte [esp + 0x18], 0x76
mov byte [esp + 0x1a], 0
mov dword [esp + 0x24], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x507b6c
mov dl, byte [esp + eax + 0x14]
xor dl, 0x12
mov byte [esp + eax + 0x14], dl
inc eax
cmp eax, ecx
jl 0x507b5c
lea ecx, [esp + 0x14]
lea edx, [esp + 8]
push ecx
push 0x69ffbc
push edx
call fcn.005d9fbb
mov edx, dword [esp + 0x14]
add esp, 0xc
lea eax, [esp + 0xc]
lea ecx, [esp + 4]
push eax
mov eax, dword [0x6cee7c]
push ecx
push 0
push 0
push edx
push eax
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x507c21
mov ecx, dword [esp + 4]
lea edx, [esp + 0x10]
push ecx
lea eax, [ecx - 0x1323f333]
mov dword [esp + 0x14], esp
mov ecx, esp
push edx
push 0
mov dword [ecx], eax
call fcn.005c63ab
add esp, 4
lea ecx, [esp + 0x1c]
push eax
call fcn.0045eec0
mov ecx, eax
call fcn.0045eed0
mov ecx, dword [eax]
mov eax, 0xc22e4507
imul ecx
add edx, ecx
sar edx, 0x10
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [0x6a3f5c]
test eax, eax
je 0x507c10
cmp edx, 5
jge 0x507c09
cmp edx, 0xffffffff
jge 0x507c59
call fcn.00506ed0
jmp 0x507c59
cmp edx, 0x37
jge 0x507c1a
cmp edx, 0xffffffff
jge 0x507c59
call fcn.00506ed0
jmp 0x507c59
lea ecx, [esp + 4]
push ecx
call fcn.005c63ab
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
mov ecx, dword [0x6cee7c]
add edx, 0x1323f333
add esp, 4
mov dword [esp + 4], edx
lea edx, [esp + 4]
push 4
push edx
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [esp + 8]
mov dword [esp + 0x24], 0xffffffff
call fcn.005e118c
mov ecx, dword [esp + 0x1c]
pop edi
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x509c00
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x606360
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov edx, dword [ebp + 0x10]
push ebx
push esi
push edi
lea eax, [ebp + 0x10]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x28], ecx
xor esi, esi
mov ecx, dword [ebp + 0xc]
push eax
push 0x20019
push esi
push ecx
push edx
mov dword [ebp - 4], esi
mov dword [ebp - 0x1c], 0x20019
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x509c6c
push str.Cannot_open_key_for_reading.
mov ecx, dword [ebp + 8]
call fcn.005e148e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea eax, [ebp - 0x1c]
push esi
lea ecx, [ebp - 0x14]
push eax
lea edx, [ebp - 0x18]
push ecx
lea eax, [ebp - 0x34]
push edx
push eax
mov eax, dword [ebp + 0x10]
lea ecx, [ebp + 0xc]
push esi
lea edx, [ebp - 0x20]
push ecx
push edx
push esi
push esi
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x509c9e
push str._Cannot_read_information_about_subkeys.
jmp 0x509c51
mov eax, dword [ebp + 0xc]
inc eax
push eax
mov dword [ebp + 0xc], eax
call fcn.005dd58d
mov ebx, eax
mov eax, dword [ebp - 0x14]
add esp, 4
inc eax
mov dword [ebp - 0x14], eax
push eax
call fcn.005dd58d
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x18]
add esp, 4
inc eax
mov dword [ebp - 0x18], eax
push eax
call fcn.005dd58d
mov edi, dword [ebp + 8]
add esp, 4
mov dword [ebp - 0x30], eax
cmp esi, dword [ebp - 0x20]
jae 0x509d32
push 0x6a0cc0
mov ecx, edi
call fcn.005e148e
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x3c]
push edx
push 0
push 0
lea eax, [ebp - 0x24]
push 0
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp + 0x10]
push eax
push ebx
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x509d1d
push str.Cannot_enumerate_this_object.
mov ecx, edi
call fcn.005e148e
inc esi
jmp 0x509cd9
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x28]
push edx
push eax
push ebx
push edi
call fcn.00509d80
inc esi
jmp 0x509cd9
push ebx
call fcn.005dd5b6
mov ecx, dword [ebp - 0x2c]
add esp, 4
push ecx
call fcn.005dd5b6
mov edx, dword [ebp - 0x30]
add esp, 4
push edx
call fcn.005dd5b6
mov ecx, dword [ebp - 0xc]
add esp, 4
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x50a960
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
push ebp
push esi
mov ebp, ecx
xor esi, esi
push edi
mov dword [ebp], 0x6346d4
mov dword [ebp + 0x930], esi
mov dword [ebp + 0x92c], esi
call fcn.0043f650
mov edx, dword [0x6cee7c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x10]
lea eax, [ebp + 4]
push ecx
push eax
push esi
push esi
push str.evDownloadComplete
push edx
mov dword [esp + 0x28], 0x24a
call ebx
test eax, eax
je 0x50a9bf
mov ecx, 0x82
xor eax, eax
lea edi, [ebp + 0x44]
mov byte [ebp + 0x24c], 0
rep stosd dword es:[edi], eax
mov edi, dword [0x6cfdc0]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
lea edi, [ebp + 4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp + 0x24e]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [0x6cee7c]
lea ecx, [esp + 0x10]
push ecx
push eax
push 0
push 0
push str.evDownloadFailed
push edx
mov dword [esp + 0x28], 0x24a
call ebx
test eax, eax
je 0x50aa23
mov ecx, 0x82
xor eax, eax
lea edi, [ebp + 0x28e]
mov byte [ebp + 0x496], 0
rep stosd dword es:[edi], eax
mov edi, dword [0x6cfdbc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
lea edi, [ebp + 0x24e]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp + 0x498]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [0x6cee7c]
lea ecx, [esp + 0x10]
push ecx
push eax
push 0
push 0
push str.evQueueStarted
push edx
mov dword [esp + 0x28], 0x24a
call ebx
test eax, eax
je 0x50aa8a
mov ecx, 0x82
xor eax, eax
lea edi, [ebp + 0x4d8]
mov byte [ebp + 0x6e0], 0
rep stosd dword es:[edi], eax
mov edi, dword [0x6cfdb4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
lea edi, [ebp + 0x498]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp + 0x6e2]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [0x6cee7c]
lea ecx, [esp + 0x10]
push ecx
push eax
push 0
push 0
push str.evQueueFinished
push edx
mov dword [esp + 0x28], 0x24a
call ebx
test eax, eax
je 0x50aaf1
mov ecx, 0x82
xor eax, eax
lea edi, [ebp + 0x722]
mov byte [ebp + 0x92a], 0
rep stosd dword es:[edi], eax
mov edi, dword [0x6cfdb8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
lea edi, [ebp + 0x6e2]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret