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

Disassembly:
sub esp, 0x2a0
mov eax, dword [0x70a308]
xor eax, esp
mov dword [esp + 0x29c], eax
push esi
lea eax, [esp + 4]
push eax
mov esi, ecx
mov dword [esp + 8], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x5aeebe
mov eax, dword [esp + 0x14]
cmp eax, 2
jne 0x5aed59
xor eax, eax
lea ecx, [ecx]
movzx ecx, word [eax + str.security.dll]
mov word [esp + eax + 0x98], cx
add eax, 2
test cx, cx
jne 0x5aed40
jmp 0x5aed87
cmp eax, 1
jne 0x5aeebe
xor eax, eax
jmp 0x5aed70
movzx ecx, word [eax + str.secur32.dll]
mov word [esp + eax + 0x98], cx
add eax, 2
test cx, cx
jne 0x5aed70
cmp dword [esi + 0x1a4], 0
jne 0x5aeda6
lea ecx, [esp + 0x98]
push ecx
call fcn.00445b00
add esp, 4
mov dword [esi + 0x1a4], eax
mov eax, dword [esi + 0x1a4]
test eax, eax
je 0x5aeebe
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FreeCredentialsHandle
push eax
call edi
mov edx, dword [esi + 0x1a4]
push str.QuerySecurityPackageInfoA
push edx
mov dword [esi + 0x1a8], eax
call edi
mov dword [esi + 0x1b0], eax
mov eax, dword [esi + 0x1a4]
push str.AcquireCredentialsHandleA
push eax
call edi
mov ecx, dword [esi + 0x1a4]
push str.FreeContextBuffer
push ecx
mov dword [esi + 0x1ac], eax
call edi
mov edx, dword [esi + 0x1a4]
push str.InitializeSecurityContextA
push edx
mov dword [esi + 0x1b4], eax
call edi
mov dword [esi + 0x1b8], eax
mov eax, dword [esi + 0x1a4]
push str.CompleteAuthToken
push eax
call edi
mov ecx, dword [esi + 0x1a4]
push str.EnumerateSecurityPackagesA
push ecx
mov dword [esi + 0x1bc], eax
call edi
mov edx, dword [esi + 0x1a4]
push str.DeleteSecurityContext
push edx
mov dword [esi + 0x1c0], eax
call edi
cmp dword [esi + 0x1a8], 0
mov dword [esi + 0x1c4], eax
pop edi
je 0x5aeea7
cmp dword [esi + 0x1b0], 0
je 0x5aeea7
cmp dword [esi + 0x1ac], 0
je 0x5aeea7
cmp dword [esi + 0x1b4], 0
je 0x5aeea7
cmp dword [esi + 0x1b8], 0
je 0x5aeea7
cmp dword [esi + 0x1c0], 0
je 0x5aeea7
mov eax, 1
pop esi
mov ecx, dword [esp + 0x29c]
xor ecx, esp
call fcn.005f85e7
add esp, 0x2a0
ret
mov eax, dword [esi + 0x1a4]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0x1a4], 0
mov ecx, dword [esp + 0x2a0]
pop esi
xor ecx, esp
xor eax, eax
call fcn.005f85e7
add esp, 0x2a0
ret
Function at 0x5af9f0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x637ea8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x70a308]
xor eax, esp
mov dword [esp + 0xc], eax
push esi
mov eax, dword [0x70a308]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x460], 0
je 0x5afaa8
mov ecx, dword [esi + 0x34]
xor eax, eax
push ecx
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], 0
mov word [esp + 0x10], ax
call fcn.004017d0
mov dword [esp + 0x20], 0
mov eax, dword [esp + 8]
test eax, eax
jne 0x5afa62
lea eax, [esp + 0xc]
push eax
call fcn.005ae7f0
mov eax, dword [esp + 0xc]
add esp, 4
test eax, eax
jne 0x5afa77
lea eax, [esp + 0xc]
mov edx, dword [esp + 0x10]
lea ecx, [edx + edx + 2]
mov edx, dword [esi + 0x460]
push ecx
push eax
push 0
push 0
push str.EncLNFSW
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esp + 8]
call fcn.004011f0
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.005f85e7
add esp, 0x1c
ret
Function at 0x5b2600
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
mov dword [esi + 0x2f0], eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x5b2654
cmp dword [esi + 0x460], 0
jne 0x5b2628
push eax
call fcn.005b24a0
test al, al
je 0x5b2654
mov eax, dword [esi + 0x460]
xor ecx, ecx
cmp dword [esi + 0x2f0], ecx
push 4
lea edx, [esp + 0xc]
push edx
push 4
setne cl
push 0
push str.needER
push eax
mov dword [esp + 0x20], ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop esi
ret 8

Function at 0x5b2710
Capabilities:
Delete registry value
Set registry value

Disassembly:
sub esp, 0xc
push esi
lea eax, [esp + 4]
push edi
push eax
mov esi, ecx
call fcn.005fbfd3
lea ecx, [esp + 0xc]
push ecx
call fcn.005fec26
lea edx, [eax + 0x14]
push edx
add eax, 4
push eax
lea edi, [esi + 0x44]
push str._.15s__.4s
push edi
call fcn.005fb4cb
mov eax, dword [esi + 0xa8]
add esp, 0x18
test eax, eax
je 0x5b2761
push eax
call fcn.005cfa9b
add esp, 4
mov dword [esi + 0xa8], 0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x5b27b7
cmp dword [esi + 0x460], 0
jne 0x5b277e
push eax
mov ecx, esi
call fcn.005b24a0
test al, al
je 0x5b27b7
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5b2783
sub eax, edx
inc eax
push eax
mov eax, dword [esi + 0x460]
push edi
push 1
push 0
push str.lastTryDate
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esi + 0x460]
push str.lastResult
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
pop edi
pop esi
add esp, 0xc
ret 4

Function at 0x5b27c0
Capabilities:
Set registry value

Disassembly:
sub esp, 0xc
push esi
lea eax, [esp + 4]
push edi
push eax
mov esi, ecx
call fcn.005fbfd3
lea ecx, [esp + 0xc]
push ecx
call fcn.005fec26
lea edx, [eax + 0x14]
push edx
add eax, 4
push eax
lea edi, [esi + 0x74]
push str._.15s__.4s
push edi
call fcn.005fb4cb
mov eax, dword [esp + 0x30]
add esp, 0x18
test eax, eax
je 0x5b2838
cmp dword [esi + 0x460], 0
jne 0x5b2811
push eax
mov ecx, esi
call fcn.005b24a0
test al, al
je 0x5b2838
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5b2816
sub eax, edx
inc eax
push eax
mov eax, dword [esi + 0x460]
push edi
push 1
push 0
push str.dateAdded
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x5b28a0
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
test eax, eax
je 0x5b295e
cmp dword [esi + 0x460], 0
jne 0x5b28c6
push eax
call fcn.005b24a0
test al, al
je 0x5b295e
cmp byte [esi + 0x320], 0
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [esp + 0xc], 1
je 0x5b28f7
mov ecx, dword [esi + 0x460]
push 4
lea eax, [esp + 0x10]
push eax
push 4
push 0
push str.bPHSBU
push ecx
call edi
cmp byte [esi + 0x321], 0
je 0x5b2919
mov eax, dword [esi + 0x460]
push 4
lea edx, [esp + 0x10]
push edx
push 4
push 0
push str.bFLSBU
push eax
call edi
cmp byte [esi + 0x17a], 0
je 0x5b293b
mov edx, dword [esi + 0x460]
push 4
lea ecx, [esp + 0x10]
push ecx
push 4
push 0
push str.bRPCHK
push edx
call edi
cmp byte [esi + 0x175], 0
je 0x5b295d
mov ecx, dword [esi + 0x460]
push 4
lea eax, [esp + 0x10]
push eax
push 4
push 0
push str.bMUIMPV
push ecx
call edi
pop edi
pop esi
ret 4

Function at 0x5b29a0
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x460], 0
jne 0x5b29ba
mov eax, dword [esp + 8]
push eax
call fcn.005b24a0
test al, al
je 0x5b29e5
mov eax, dword [esi + 0x310]
test eax, eax
je 0x5b29e5
mov edx, dword [esi + 0x460]
push 4
lea ecx, [esp + 0xc]
push ecx
push 4
push 0
push str.nAggrV
push edx
mov dword [esp + 0x20], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop esi
ret 4

Function at 0x5b29f0
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
test eax, eax
je 0x5b2a33
cmp dword [esi + 0x460], 0
jne 0x5b2a0e
push eax
call fcn.005b24a0
test al, al
je 0x5b2a33
mov ecx, dword [esi + 0x460]
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push str.bSaved
push ecx
mov dword [esp + 0x20], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop esi
ret 4
Function at 0x5b2d10
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
test eax, eax
je 0x5b2d5a
cmp dword [esi + 0x460], 0
jne 0x5b2d2e
push eax
call fcn.005b24a0
test al, al
je 0x5b2d5a
mov edx, dword [esi + 0x460]
xor eax, eax
cmp byte [esi + 0x177], al
push 4
lea ecx, [esp + 0xc]
push ecx
push 4
sete al
push 0
push str.bMPDDNUAS
push edx
mov dword [esp + 0x20], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop esi
ret 4
Function at 0x5b4270
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x63e070
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x70a308]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x14], edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [edi + 0x20]
cmp eax, ebx
je 0x5b42b5
push eax
call fcn.005cfa9b
add esp, 4
mov esi, dword [ebp + 8]
cmp esi, ebx
jne 0x5b42d5
mov dword [edi + 0x20], ebx
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x5b42e0
sub eax, edx
je 0x5b42bc
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x5b42f0
sub eax, edx
inc eax
push eax
call fcn.005cfaa6
add esp, 4
mov dword [edi + 0x20], eax
cmp eax, ebx
jne 0x5b432f
push str.URL::set_LastModified__:_Not_enough_memory__n
mov ecx, edi
call fcn.005ae830
mov eax, 0x753b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, esi
mov edx, eax
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
cmp al, bl
jne 0x5b4333
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x5b42bf
cmp dword [edi + 0x460], ebx
jne 0x5b4375
push eax
mov ecx, edi
call fcn.005b24a0
test al, al
jne 0x5b4375
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [edi + 0x20]
mov eax, edx
lea esi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x5b4380
sub eax, esi
inc eax
push eax
push edx
push 1
push ebx
push str.LastModified
mov eax, dword [edi + 0x460]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x5b49e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x63e100
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x70a308]
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 esi, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 0
cmp dword [esi + 0x460], 0
jne 0x5b4a4b
mov eax, dword [ebp + 0x214]
push eax
call fcn.005b24a0
test al, al
jne 0x5b4a4b
mov eax, 1
jmp 0x5b4b38
mov ebx, 0x208
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp]
push edx
push 0
push 0
push str.LocalPath
mov eax, dword [esi + 0x460]
push eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
call edi
test eax, eax
jne 0x5b4a41
lea ecx, [ebp]
push ecx
call fcn.005fb393
add esp, 4
test eax, eax
jne 0x5b4a41
lea edx, [ebp]
push edx
mov ecx, esi
call fcn.005ae740
test eax, eax
jne 0x5b4a41
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp]
push ecx
push 0
push 0
push 0x65d364
mov edx, dword [esi + 0x460]
push edx
call edi
test eax, eax
jne 0x5b4a41
lea eax, [ebp]
push eax
mov ecx, esi
call fcn.005b16d0
test eax, eax
jne 0x5b4a41
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp]
push edx
push eax
push eax
push str.LogFileName
mov eax, dword [esi + 0x460]
push eax
call edi
test eax, eax
jne 0x5b4a41
lea edx, [ebp]
mov eax, dword [esi + 0x458]
add eax, 4
lea esp, [esp]
movzx ecx, word [edx]
mov word [eax], cx
add edx, 2
add eax, 2
test cx, cx
jne 0x5b4b00
xor eax, eax
jmp 0x5b4b38
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.005f85e7
add ebp, 0x20c
mov esp, ebp
pop ebp
ret 4
Function at 0x5b4b60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x63e138
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x70a308]
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 dword [ebp - 0x20], ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x14]
call fcn.004024e0
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0x218]
push eax
mov ecx, dword [ebp + 0x214]
push ecx
push str.SoftwareDownloadManagerGrabberStsProjects_ld_ld_
lea edx, [ebp - 0x14]
push edx
call fcn.00402f60
add esp, 0x10
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x18]
push ecx
push ebx
push 0xf003f
push ebx
push 0x64f8bc
push ebx
mov edx, dword [ebp - 0x14]
push edx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x5b4c28
mov edi, 0x208
mov dword [ebp - 0x1c], edi
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp]
push ecx
push ebx
push ebx
push str.LocalPath
mov edx, dword [ebp - 0x18]
push edx
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
call esi
test eax, eax
je 0x5b4c3d
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.00402550
mov eax, 1
jmp 0x5b4d0d
lea ecx, [ebp]
push ecx
call fcn.005fb393
add esp, 4
test eax, eax
je 0x5b4c53
mov edx, dword [ebp - 0x18]
push edx
jmp 0x5b4c22
lea eax, [ebp]
push eax
mov ecx, dword [ebp - 0x20]
call fcn.005ae740
test eax, eax
je 0x5b4c69
mov ecx, dword [ebp - 0x18]
push ecx
jmp 0x5b4c22
mov dword [ebp - 0x1c], edi
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp]
push eax
push ebx
push ebx
push 0x65d364
mov ecx, dword [ebp - 0x18]
push ecx
call esi
test eax, eax
jne 0x5b4c4d
lea eax, [ebp]
push eax
mov ecx, dword [ebp - 0x20]
call fcn.005b16d0
test eax, eax
jne 0x5b4c63
mov dword [ebp - 0x1c], edi
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp]
push eax
push ebx
push ebx
push str.LogFileName
mov ecx, dword [ebp - 0x18]
push ecx
call esi
test eax, eax
jne 0x5b4c4d
lea edx, [ebp]
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x458]
add eax, 4
movzx ecx, word [edx]
mov word [eax], cx
add edx, 2
add eax, 2
cmp cx, bx
jne 0x5b4cc0
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.00402550
xor eax, eax
jmp 0x5b4d0d
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.005f85e7
add ebp, 0x20c
mov esp, ebp
pop ebp
ret 8
Function at 0x5b62d0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x624318
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x70a308]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, dword [esp + 0x20]
test esi, esi
je 0x5b6385
push esi
lea ecx, [esp + 0x24]
call fcn.004030e0
mov dword [esp + 0x18], 0
lea eax, [esp + 0x20]
push eax
push esi
call fcn.00474060
add esp, 8
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0xc]
push edx
push 0
push 0xf003f
push 0
push 0x64f8bc
push 0
push str.SoftwareDownloadManager_sites_sf
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x5b6374
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 8]
push 4
lea eax, [esp + 0x28]
push eax
push 4
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], 0xffffffff
lea ecx, [esp + 0x20]
call fcn.00402550
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret

Function at 0x5b63a0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x637db8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x70a308]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
test esi, esi
je 0x5b641d
push esi
lea ecx, [esp + 0x28]
call fcn.004030e0
mov dword [esp + 0x1c], 0
lea eax, [esp + 0x24]
push eax
push esi
call fcn.00474060
add esp, 8
lea ecx, [esp + 8]
push ecx
push 0xf003f
push 0
push str.SoftwareDownloadManager_sites_sf
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x5b6430
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.00402550
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x18
ret
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
xor esi, esi
push esi
push esi
push ecx
push edx
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5b646d
mov eax, dword [esp + 0x10]
test eax, eax
je 0x5b646d
mov ecx, dword [esp + 0x28]
mov dword [ecx], eax
mov esi, 1
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.00402550
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x18
ret
Function at 0x5b7140
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x63e2d0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x70a308]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 4], 0
mov bl, byte [ebp + 0xc]
mov byte [esi + 0x16c], bl
mov al, byte [ebp + 0x10]
mov byte [esi + 0x16b], al
mov eax, dword [ebp + 8]
test eax, eax
je 0x5b7363
cmp dword [esi + 0x460], 0
jne 0x5b71a8
push eax
call fcn.005b24a0
test al, al
je 0x5b7363
xor ecx, ecx
test bl, bl
setne cl
mov dword [ebp + 0xc], ecx
push 4
lea edx, [ebp + 0xc]
push edx
push 4
push 0
push str.bGICompl
mov eax, dword [esi + 0x460]
push eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call edi
xor ecx, ecx
cmp byte [ebp + 0x10], cl
setne cl
mov dword [ebp + 0xc], ecx
push 4
lea edx, [ebp + 0xc]
push edx
push 4
push 0
push str.bRetAfFR
mov eax, dword [esi + 0x460]
push eax
call edi
lea ecx, [esi + 0x44]
cmp byte [ecx], 0
je 0x5b7224
mov eax, ecx
lea ebx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x5b7200
sub eax, ebx
inc eax
push eax
push ecx
mov ebx, 1
push ebx
push 0
push str.lastTryDate
mov ecx, dword [esi + 0x460]
push ecx
call edi
jmp 0x5b7229
mov ebx, 1
cmp byte [esi + 0x16c], 0
je 0x5b735c
cmp byte [esi + 0x335], 0
je 0x5b726e
mov eax, dword [esi + 0x364]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5b7248
sub eax, edx
je 0x5b726e
mov dword [ebp + 0xc], ebx
push 4
lea edx, [ebp + 0xc]
push edx
push 4
push 0
push str.bUseCstmHdrs
mov eax, dword [esi + 0x460]
push eax
call edi
cmp byte [esi + 0x16c], 0
je 0x5b735c
cmp byte [esi + 0x336], 0
je 0x5b729f
mov dword [ebp + 0xc], ebx
push 4
lea ecx, [ebp + 0xc]
push ecx
push 4
push 0
push str.bFGzHdr
mov edx, dword [esi + 0x460]
push edx
call edi
cmp byte [esi + 0x16c], 0
je 0x5b735c
cmp byte [esi + 0x338], 0
je 0x5b72d0
mov dword [ebp + 0xc], ebx
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push 0
push str.bIPV4SsCn
mov ecx, dword [esi + 0x460]
push ecx
call edi
cmp byte [esi + 0x16c], 0
je 0x5b735c
mov bl, byte [esi + 0x335]
test bl, bl
je 0x5b72fb
mov eax, dword [esi + 0x364]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5b72f0
sub eax, edx
jne 0x5b730d
cmp byte [esi + 0x336], 0
jne 0x5b730d
cmp byte [esi + 0x338], 0
je 0x5b735c
xor edx, edx
mov dword [ebp - 0x14], edx
cmp byte [esi + 0x336], dl
je 0x5b7322
mov edx, 1
mov dword [ebp - 0x14], edx
test bl, bl
je 0x5b7341
mov eax, dword [esi + 0x364]
lea edi, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5b7330
sub eax, edi
je 0x5b7341
or edx, 2
mov dword [ebp - 0x14], edx
cmp byte [esi + 0x338], 0
je 0x5b7350
or edx, 4
mov dword [ebp - 0x14], edx
push edx
mov edx, dword [esi]
push edx
call fcn.005b62d0
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x5b7cc0
Capabilities:
Encode data using base64

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
lea ecx, [edi + 3]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 1
lea edx, [edx + edi + 4]
push edx
push esi
call fcn.00564350
add esp, 8
test eax, eax
jne 0x5b7ced
pop edi
pop esi
ret 0xc
push ebp
push esi
call fcn.00540d70
add esp, 4
xor ebp, ebp
mov ecx, eax
test edi, edi
jbe 0x5b7d85
lea edx, [edi - 1]
mov eax, 0xaaaaaaab
mul edx
mov eax, dword [esp + 0x10]
mov esi, edx
shr esi, 1
inc esi
lea ebp, [esi + esi*2]
push ebx
lea ebx, [ebx]
movzx edx, byte [eax]
shr edx, 2
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
movzx edx, byte [eax]
movzx ebx, byte [eax + 1]
and edx, 3
shl edx, 4
shr ebx, 4
or edx, ebx
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], dl
movzx edx, byte [eax + 1]
movzx ebx, byte [eax + 2]
inc ecx
and edx, 0xf
add edx, edx
add edx, edx
shr ebx, 6
or edx, ebx
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], dl
movzx edx, byte [eax + 2]
and edx, 0x3f
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], dl
inc ecx
add eax, 3
sub esi, 1
jne 0x5b7d20
pop ebx
lea eax, [edi + 1]
cmp ebp, eax
jne 0x5b7d9e
pop ebp
pop edi
mov byte [ecx - 1], 0x3d
mov byte [ecx], 0
mov eax, 1
pop esi
ret 0xc
add edi, 2
cmp ebp, edi
jne 0x5b7dad
mov al, 0x3d
mov byte [ecx - 1], al
mov byte [ecx - 2], al
pop ebp
pop edi
mov byte [ecx], 0
mov eax, 1
pop esi
ret 0xc