joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401d44
Capabilities:
Write file on windows

Disassembly:
push 0x54
mov eax, 0x55eadd
call fcn.00539a44
mov ebx, ecx
cmp dword [ebx + 0x3c], 0
mov dword [ebp - 0x38], ebx
je 0x401e59
cmp byte [ebx + 0x41], 0
je 0x401e59
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 4]
cmp eax, 0xffffffff
jne 0x401d7c
xor al, al
jmp 0x401e5b
push 0
push 8
pop edi
lea esi, [ebp - 0x30]
call fcn.00401b52
and dword [ebp - 4], 0
lea eax, [ebx + 0x44]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x30]
call fcn.00401bdf
mov esi, eax
call fcn.00401ea2
mov edi, eax
add edi, dword [ebp - 0x40]
lea eax, [ebp - 0x60]
lea ecx, [ebp - 0x30]
call fcn.00401bdf
mov esi, eax
call fcn.00401ea2
mov ecx, dword [ebx + 0x3c]
mov edx, dword [ecx]
lea esi, [ebp - 0x34]
push esi
push edi
push eax
push dword [ebp - 0x3c]
call dword [edx + 0x18]
sub eax, 0
je 0x401df1
dec eax
je 0x401df5
dec eax
dec eax
je 0x401e55
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x30]
call fcn.00403211
mov al, bl
jmp 0x401e5b
mov byte [ebx + 0x41], 0
lea eax, [ebp - 0x58]
lea ecx, [ebp - 0x30]
call fcn.00401bdf
mov esi, eax
call fcn.00401ea2
mov edi, dword [ebp - 0x34]
sub edi, eax
je 0x401e33
push dword [ebx + 0x4c]
lea eax, [ebp - 0x50]
push edi
push 1
lea ecx, [ebp - 0x30]
call fcn.00401bdf
mov esi, eax
call fcn.00401ea2
push eax
call fcn.005303c1
add esp, 0x10
cmp edi, eax
jne 0x401ddf
cmp byte [ebx + 0x41], 0
je 0x401e55
test edi, edi
jne 0x401d93
push edi
push 8
pop ebx
lea edi, [ebp - 0x30]
call fcn.00401b98
mov ebx, dword [ebp - 0x38]
jmp 0x401d93
mov bl, 1
jmp 0x401de1
mov al, 1
call fcn.00539ac7
ret

Function at 0x403980
Capabilities:
Hash data with md5

Disassembly:
and dword [eax + 4], 0
and dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
ret
Function at 0x40433c
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2d1c
call fcn.005482e0
mov eax, dword [0x5afee0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
mov dword [ebp - 0x2d18], eax
cmp eax, ebx
je 0x40448f
push esi
mov dword [ebp - 0x2d10], ebx
mov dword [ebp - 0x2d0c], ebx
push edi
push dword [ebp - 0x2d0c]
mov eax, 0x200
push str..PhysicalDrive_d
lea edi, [ebp - 0x204]
call fcn.00403dcb
pop ecx
pop ecx
push ebx
push ebx
push 3
push ebx
push 3
push ebx
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2d14], eax
cmp eax, 0xffffffff
je 0x404472
xor eax, eax
lea edi, [ebp - 0x2d08]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov esi, 0x2710
push esi
lea eax, [ebp - 0x2cfc]
push ebx
push eax
mov dword [ebp - 0x2d1c], ebx
mov dword [ebp - 0x2d08], ebx
mov dword [ebp - 0x2d04], ebx
call fcn.00537010
add esp, 0xc
push ebx
lea eax, [ebp - 0x2d1c]
push eax
push esi
lea eax, [ebp - 0x2cfc]
push eax
push 0xc
lea eax, [ebp - 0x2d08]
push eax
push 0x2d1400
push dword [ebp - 0x2d14]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x40445e
push 0x3e8
lea eax, [ebp - 0x5ec]
push ebx
push eax
call fcn.00537010
mov eax, dword [ebp - 0x2ce4]
add esp, 0xc
lea esi, [ebp - 0x5ec]
lea ecx, [ebp - 0x2cfc]
call fcn.00403ac3
mov edx, dword [ebp - 0x2d18]
mov eax, esi
push eax
push 0x64
pop ecx
call fcn.0042a12f
test eax, eax
jne 0x40445e
mov dword [ebp - 0x2d10], 1
push dword [ebp - 0x2d14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2d10], ebx
jne 0x404485
inc dword [ebp - 0x2d0c]
cmp dword [ebp - 0x2d0c], 0x10
jl 0x404375
mov eax, dword [ebp - 0x2d10]
pop edi
pop esi
jmp 0x404491
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0052f7d0
leave
ret
Function at 0x40470b
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4f8
mov eax, dword [0x5afee0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
mov dword [ebp - 0x4f8], eax
cmp eax, ebx
je 0x4048b7
push 0x64
lea eax, [ebp - 0x68]
push ebx
push eax
call fcn.00537010
add esp, 0xc
lea eax, [ebp - 0x4e0]
push eax
push 8
push ebx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x404895
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x4e8]
push eax
lea eax, [ebp - 0x2d4]
push eax
mov dword [ebp - 0x4e4], ebx
push ebx
jmp 0x40486e
lea eax, [ebp - 0x4ec]
push eax
push 1
push ebx
lea eax, [ebp - 0x2d4]
push eax
push dword [ebp - 0x4e0]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x404850
lea eax, [ebp - 0x4f4]
push eax
lea eax, [ebp - 0x4dc]
push eax
lea eax, [ebp - 0x4f0]
push eax
push ebx
push str.ServiceName
push dword [ebp - 0x4ec]
mov dword [ebp - 0x4f0], 1
mov dword [ebp - 0x4f4], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x404844
push 0x64
lea eax, [ebp - 0xcc]
push ebx
push eax
call fcn.00537010
lea eax, [ebp - 0x4dc]
push eax
lea ecx, [ebp - 0xcc]
call fcn.00404609
add esp, 0x10
test eax, eax
je 0x404844
cmp byte [ebp - 0x68], bl
je 0x40482e
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jge 0x404844
push 0x7ffffffe
push 0x64
lea eax, [ebp - 0xcc]
pop ecx
lea edx, [ebp - 0x68]
call fcn.00403dfa
push dword [ebp - 0x4ec]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0x4e4]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x4e8]
push eax
lea eax, [ebp - 0x2d4]
push eax
push dword [ebp - 0x4e4]
push dword [ebp - 0x4e0]
mov dword [ebp - 0x4e8], 0x104
call esi
test eax, eax
je 0x404788
push dword [ebp - 0x4e0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
cmp byte [ebp - 0x68], bl
je 0x4048b7
mov edx, dword [ebp - 0x4f8]
lea eax, [ebp - 0x68]
push eax
push 0x64
pop ecx
call fcn.0042a12f
xor ecx, ecx
test eax, eax
setge cl
mov eax, ecx
jmp 0x4048b9
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0052f7d0
leave
ret
Function at 0x404a63
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x514
mov eax, dword [0x5afee0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
test ebx, ebx
je 0x404b79
mov esi, 0x400
push esi
lea eax, [ebp - 0x508]
push 0
push eax
mov dword [ebp - 0x510], 1
mov dword [ebp - 0x50c], esi
call fcn.00537010
add esp, 0xc
lea eax, [ebp - 0x50c]
push eax
lea eax, [ebp - 0x508]
push eax
lea eax, [ebp - 0x510]
push eax
push 0x577764
push str.Software360SafeLiveup
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x404b79
lea eax, [ebp - 0x508]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404ae1
sub eax, edx
cmp eax, 0x40
jne 0x404b79
push 0x20
lea eax, [ebp - 0x508]
mov ecx, 0x80
lea edx, [ebp - 0x88]
call fcn.00403dfa
lea eax, [ebp - 0x4e8]
push eax
mov ecx, 0x80
lea edx, [ebp - 0x108]
call fcn.0042a12f
push esi
lea eax, [ebp - 0x508]
push 0
push eax
call fcn.00537010
add esp, 0xc
lea eax, [ebp - 0x508]
push esi
push eax
lea ecx, [ebp - 0x88]
call fcn.00403e6c
pop ecx
pop ecx
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x508]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x404b79
lea eax, [ebp - 0x88]
push eax
push 0x40
pop ecx
mov edx, ebx
call fcn.0042a12f
neg eax
sbb eax, eax
inc eax
jmp 0x404b7b
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0052f7d0
leave
ret

Function at 0x406195
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.005482e0
mov eax, dword [0x5afee0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
lea edx, [ebp - 0x100c]
push edx
lea edx, [ebp - 0x804]
push edx
lea edx, [ebp - 0x1008]
push edx
mov eax, ecx
mov ecx, dword [ebp + 8]
push 0
push ecx
push dword [eax]
xor esi, esi
inc esi
mov dword [ebp - 0x1008], esi
mov dword [ebp - 0x100c], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test ebx, ebx
jne 0x40624d
cmp dword [ebp - 0x1008], esi
jne 0x406208
lea eax, [ebp - 0x804]
push eax
mov ecx, edi
call fcn.00406430
jmp 0x40624d
cmp dword [ebp - 0x1008], 2
jne 0x406248
mov esi, 0x400
push esi
lea eax, [ebp - 0x1004]
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x100c], eax
test eax, eax
je 0x406241
cmp eax, esi
ja 0x406241
lea eax, [ebp - 0x1004]
jmp 0x4061fe
mov ebx, 0xea
jmp 0x40624d
mov ebx, 0x3f4
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0052f7d0
leave
ret 8
Function at 0x40772f
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x5afee0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x84], eax
xor ecx, ecx
movzx eax, byte [ecx + str.80_]
mov esi, dword [ebp + 0xc]
mov edx, eax
sar edx, 3
mov dl, byte [edx + esi]
and eax, 7
test byte [eax*2 + 0x5ba434], dl
setne al
mov byte [ebp + ecx - 0x74], al
inc ecx
cmp ecx, 0x38
jl 0x407752
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x7c], 0x78
mov dword [ebp - 0x78], 0x7c
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x78]
mov esi, dword [ebp - 0x7c]
movzx eax, byte [eax + 0x5ba4e0]
lea ecx, [ebp + ecx - 0x104]
lea esi, [ebp + esi - 0x104]
mov dword [ecx], ebx
mov dword [esi], ebx
xor edx, edx
mov edi, eax
cmp edi, 0x1c
jge 0x4077bd
mov bl, byte [ebp + edi - 0x74]
jmp 0x4077c4
mov bl, byte [ebp + edi - 0x90]
mov byte [ebp + edx - 0x3c], bl
inc edx
inc edi
cmp edx, 0x1c
jl 0x4077b2
push 0x1c
pop edi
add eax, edi
cmp eax, 0x38
jge 0x4077df
mov dl, byte [ebp + eax - 0x74]
jmp 0x4077e6
mov dl, byte [ebp + eax - 0x90]
mov byte [ebp + edi - 0x3c], dl
inc edi
inc eax
cmp edi, 0x38
jl 0x4077d4
xor ebx, ebx
xor eax, eax
lea edx, [eax + 0x5ba508]
movzx edi, byte [edx - 0x18]
cmp byte [ebp + edi - 0x3c], bl
je 0x40780e
mov edi, dword [eax*4 + 0x5ba448]
or dword [esi], edi
movzx edx, byte [edx]
cmp byte [ebp + edx - 0x3c], bl
je 0x407820
mov edx, dword [eax*4 + 0x5ba448]
or dword [ecx], edx
inc eax
cmp eax, 0x18
jl 0x4077f5
sub dword [ebp - 0x78], 8
inc dword [ebp - 0x80]
sub dword [ebp - 0x7c], 8
cmp dword [ebp - 0x78], 0xfffffffc
jg 0x40778c
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x84]
call fcn.0040785e
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0052f7d0
leave
ret 8
Function at 0x407910
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov eax, edx
shr eax, 4
xor eax, ecx
and eax, 0xf0f0f0f
xor ecx, eax
shl eax, 4
xor edx, eax
mov eax, edx
shr eax, 0x10
xor eax, ecx
and eax, 0xffff
xor ecx, eax
shl eax, 0x10
xor edx, eax
mov eax, ecx
shr eax, 2
xor eax, edx
and eax, 0x33333333
xor edx, eax
shl eax, 2
xor ecx, eax
mov eax, ecx
shr eax, 8
xor eax, edx
and eax, 0xff00ff
xor edx, eax
shl eax, 8
xor eax, ecx
rol eax, 1
mov ecx, eax
push ebx
xor ecx, edx
and ecx, 0xaaaaaaaa
push esi
xor eax, ecx
push edi
xor ecx, edx
rol ecx, 1
push 0x3f
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 8
pop edi
mov ecx, dword [ebp + 0xc]
mov esi, eax
ror esi, 4
xor esi, dword [ecx]
add ecx, 4
mov edx, esi
shr edx, 0x18
mov ebx, esi
shr ebx, 0x10
and ebx, edi
and edx, edi
mov edx, dword [edx*4 + 0x5ba520]
or edx, dword [ebx*4 + 0x5ba720]
mov ebx, esi
shr ebx, 8
and ebx, edi
or edx, dword [ebx*4 + 0x5ba920]
and esi, edi
or edx, dword [esi*4 + 0x5bab20]
mov esi, dword [ecx]
add ecx, 4
mov dword [ebp + 0xc], ecx
xor esi, eax
mov ecx, esi
shr ecx, 0x18
and ecx, edi
mov ecx, dword [ecx*4 + 0x5ba620]
mov ebx, esi
shr ebx, 0x10
and ebx, edi
or ecx, dword [ebx*4 + 0x5ba820]
mov ebx, esi
shr ebx, 8
and ebx, edi
or ecx, dword [ebx*4 + 0x5baa20]
and esi, edi
or ecx, dword [esi*4 + 0x5bac20]
or ecx, edx
xor dword [ebp - 4], ecx
mov esi, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
ror esi, 4
xor esi, dword [ecx]
add ecx, 4
mov edx, esi
shr edx, 0x18
mov ebx, esi
shr ebx, 0x10
and ebx, edi
and edx, edi
mov edx, dword [edx*4 + 0x5ba520]
or edx, dword [ebx*4 + 0x5ba720]
mov ebx, esi
shr ebx, 8
and ebx, edi
or edx, dword [ebx*4 + 0x5ba920]
and esi, edi
or edx, dword [esi*4 + 0x5bab20]
mov esi, dword [ecx]
xor esi, dword [ebp - 4]
add ecx, 4
mov dword [ebp + 0xc], ecx
mov ecx, esi
shr ecx, 0x18
and ecx, edi
mov ecx, dword [ecx*4 + 0x5ba620]
mov ebx, esi
shr ebx, 0x10
and ebx, edi
or ecx, dword [ebx*4 + 0x5ba820]
mov ebx, esi
shr ebx, 8
and ebx, edi
or ecx, dword [ebx*4 + 0x5baa20]
and esi, edi
or ecx, dword [esi*4 + 0x5bac20]
or ecx, edx
xor eax, ecx
dec dword [ebp - 8]
jne 0x40798b
ror eax, 1
mov edx, eax
xor edx, dword [ebp - 4]
pop edi
and edx, 0xaaaaaaaa
xor eax, edx
xor edx, dword [ebp - 4]
ror edx, 1
mov ecx, edx
shr ecx, 8
xor ecx, eax
and ecx, 0xff00ff
xor eax, ecx
shl ecx, 8
xor edx, ecx
mov ecx, edx
shr ecx, 2
xor ecx, eax
and ecx, 0x33333333
xor eax, ecx
shl ecx, 2
xor edx, ecx
mov ecx, eax
shr ecx, 0x10
xor ecx, edx
and ecx, 0xffff
xor edx, ecx
shl ecx, 0x10
xor eax, ecx
mov ecx, eax
shr ecx, 4
xor ecx, edx
and ecx, 0xf0f0f0f
mov esi, ecx
shl esi, 4
xor esi, eax
mov eax, dword [ebp + 8]
mov dword [eax], esi
xor ecx, edx
pop esi
mov dword [eax + 4], ecx
pop ebx
leave
ret 8
Function at 0x407c14
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
mov esi, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x407c6b
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x407c5d
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x407c59
cmp edi, eax
jae 0x407c5d
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x407c4b
cmp edi, eax
jb 0x407c61
xor eax, eax
jmp 0x407c6a
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x407e6c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push dword [ebp + 8]
mov esi, 0xfa000
mov edi, esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x407ea1
xor eax, eax
jmp 0x407ee4
cmp dword [ebp + 0x10], esi
jae 0x407ea9
mov edi, dword [ebp + 0x10]
push 0
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x407ecd
cmp edi, dword [ebp + 0x10]
je 0x407ed8
sub dword [ebp + 0x10], esi
add dword [ebp + 0xc], edi
jmp 0x407ea1
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x407e9d
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x408595
Capabilities:
Get session user name
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
xor esi, esi
push edi
cmp dword [ebp + 8], esi
je 0x4086ce
lea eax, [ebp - 0xc]
push eax
push esi
push 2
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
call sub.Secur32.dll_GetUserNameExW
test al, al
jne 0x4086ce
mov eax, dword [ebp - 0xc]
add eax, eax
push eax
call fcn.0052f86d
mov ebx, eax
pop ecx
cmp ebx, esi
je 0x4086ce
lea eax, [ebp - 0xc]
push eax
push ebx
push 2
call sub.Secur32.dll_GetUserNameExW
test al, al
je 0x4086ce
mov edi, dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push ebx
push esi
call edi
test eax, eax
jne 0x4086c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4086c7
push dword [ebp - 0x14]
call fcn.0052f86d
pop ecx
mov dword [ebp - 8], eax
cmp eax, esi
je 0x4086c7
mov eax, dword [ebp - 0x10]
add eax, eax
push eax
call fcn.0052f86d
pop ecx
mov dword [ebp - 0x20], eax
cmp eax, esi
jne 0x40865d
push ebx
call fcn.0052f9c9
push dword [ebp - 8]
call fcn.0052f9c9
pop ecx
jmp 0x4086cd
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 8]
push ebx
push esi
call edi
test eax, eax
je 0x4086a9
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
call sub.ADVAPI32.dll_ConvertSidToStringSidW
test eax, eax
je 0x4086a9
push dword [ebp + 8]
mov edx, dword [ebp - 4]
push 0x64
pop ecx
call fcn.00408533
push dword [ebp - 4]
xor ecx, ecx
test eax, eax
setge cl
mov dword [ebp - 0x18], ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 4], esi
push ebx
call fcn.0052f9c9
push dword [ebp - 8]
call fcn.0052f9c9
push dword [ebp - 0x20]
call fcn.0052f9c9
mov eax, dword [ebp - 0x18]
add esp, 0xc
jmp 0x4086d0
push ebx
call fcn.0052f9c9
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408b74
Capabilities:
Encode data using base64

Disassembly:
push 0x34
push 0x598220
call fcn.0055a19c
mov esi, ecx
mov ebx, edx
xor ecx, ecx
cmp esi, ecx
je 0x408cc8
cmp ebx, ecx
je 0x408cc8
cmp dword [ebp + 8], ecx
jbe 0x408cc8
mov dword [ebp - 0x3c], ecx
mov byte [ebp - 0x34], cl
xor eax, eax
lea edi, [ebp - 0x33]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x24], cl
xor eax, eax
lea edi, [ebp - 0x23]
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 4], ecx
push dword [ebp + 8]
lea edi, [ebp - 0x34]
mov ecx, esi
call fcn.004086d5
pop ecx
test eax, eax
je 0x408cbc
mov eax, edi
push eax
push esi
lea esi, [ebp - 0x24]
mov eax, dword [ebp + 8]
call fcn.00408b01
pop ecx
pop ecx
test eax, eax
je 0x408cbc
xor esi, esi
mov dword [ebp - 0x40], esi
xor edx, edx
mov dword [ebp - 0x44], edx
mov al, byte [ebp + esi - 0x24]
mov byte [ebp - 0x36], al
inc esi
mov dword [ebp - 0x40], esi
cmp esi, 8
jb 0x408c0c
xor cl, cl
jmp 0x408c14
mov cl, byte [ebp + esi - 0x24]
inc esi
mov dword [ebp - 0x40], esi
cmp esi, 8
jb 0x408c1f
mov byte [ebp - 0x35], 0
jmp 0x408c2a
mov al, byte [ebp + esi - 0x24]
mov byte [ebp - 0x35], al
inc esi
mov dword [ebp - 0x40], esi
movzx eax, byte [ebp - 0x36]
mov edi, eax
shr edi, 2
mov di, word [edi*2 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov word [ebx + edx*2], di
movzx ecx, cl
mov edi, ecx
shr edi, 4
and eax, 3
shl eax, 4
or edi, eax
mov ax, word [edi*2 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov word [ebx + edx*2 + 2], ax
movzx eax, byte [ebp - 0x35]
mov edi, eax
shr edi, 6
and ecx, 0xf
shl ecx, 2
or edi, ecx
mov cx, word [edi*2 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov word [ebx + edx*2 + 4], cx
and eax, 0x3f
mov ax, word [eax*2 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov word [ebx + edx*2 + 6], ax
add edx, 4
mov dword [ebp - 0x44], edx
cmp esi, 8
jb 0x408bf8
lea edx, [ebx + edx*2]
push 0x3d
pop eax
mov word [edx - 2], ax
xor eax, eax
mov word [edx], ax
mov dword [ebp - 0x3c], 1
jmp 0x408cbc
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x3c]
jmp 0x408cca
xor eax, eax
call fcn.0055a1e4
ret
Function at 0x408e35
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 0xc], 0
and dword [ebp - 8], 0
push esi
mov esi, ecx
xor ecx, ecx
cmp byte [ebp + 0x10], cl
push edi
sete cl
dec ecx
and ecx, 0x100
add ecx, 0x20006
cmp dword [eax + 0x18], 8
jb 0x408e67
mov eax, dword [eax + 4]
jmp 0x408e6a
add eax, 4
push ecx
push eax
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.004060f7
mov edi, eax
test edi, edi
jne 0x408ecb
mov edi, dword [esi + 0x18]
lea ecx, [esi + 4]
cmp edi, 8
jb 0x408e8c
mov eax, dword [ecx]
jmp 0x408e8e
mov eax, ecx
lea esi, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x408e91
sub eax, esi
sar eax, 1
cmp edi, 8
jb 0x408ea6
mov ecx, dword [ecx]
mov edx, dword [ebp + 0xc]
cmp dword [edx + 0x18], 8
jb 0x408eb4
mov edx, dword [edx + 4]
jmp 0x408eb7
add edx, 4
add eax, eax
push eax
push ecx
push 2
push 0
push edx
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
lea ecx, [ebp - 0xc]
call fcn.00406119
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x408ed9
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 0xc], 0
and dword [ebp - 8], 0
push esi
mov esi, ecx
xor ecx, ecx
cmp byte [ebp + 0x10], cl
push edi
sete cl
dec ecx
and ecx, 0x100
add ecx, 0x20006
cmp dword [eax + 0x18], 8
jb 0x408f0b
mov eax, dword [eax + 4]
jmp 0x408f0e
add eax, 4
push ecx
push eax
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.004060f7
mov edi, eax
test edi, edi
jne 0x408f6f
mov edi, dword [esi + 0x18]
lea ecx, [esi + 4]
cmp edi, 8
jb 0x408f30
mov eax, dword [ecx]
jmp 0x408f32
mov eax, ecx
lea esi, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x408f35
sub eax, esi
sar eax, 1
cmp edi, 8
jb 0x408f4a
mov ecx, dword [ecx]
mov edx, dword [ebp + 0xc]
cmp dword [edx + 0x18], 8
jb 0x408f58
mov edx, dword [edx + 4]
jmp 0x408f5b
add edx, 4
add eax, eax
push eax
push ecx
push 1
push 0
push edx
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
lea ecx, [ebp - 0xc]
call fcn.00406119
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x408f7d
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
xor ecx, ecx
push ebx
xor ebx, ebx
cmp byte [ebp + 0xc], bl
mov dword [ebp - 8], ebx
sete cl
mov dword [ebp - 4], ebx
dec ecx
and ecx, 0x100
add ecx, 0x20006
cmp dword [eax + 0x18], 8
jb 0x408fac
mov eax, dword [eax + 4]
jmp 0x408faf
add eax, 4
push ecx
push eax
push dword [ebp + 8]
lea ecx, [ebp - 8]
call fcn.004060f7
test eax, eax
jne 0x408fde
cmp dword [esi + 0x18], 8
jb 0x408fcb
mov eax, dword [esi + 4]
jmp 0x408fce
lea eax, [esi + 4]
push eax
push dword [ebp - 8]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
test eax, eax
jne 0x408fde
mov bl, 1
lea ecx, [ebp - 8]
call fcn.00406119
mov al, bl
pop ebx
leave
ret