joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c1370
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4f8
mov eax, dword [0x5cc128]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov dword [ebp - 0x4f4], esi
push edi
mov edi, edx
mov dword [ebp - 0x4f8], edi
test esi, esi
je 0x4c1562
push ebx
push 0x64
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.0051d210
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x4e0]
add esp, 0xc
push eax
push 8
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
jne 0x4c151f
xor esi, esi
mov dword [ebp - 0x4e4], 0x104
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x4e4]
push eax
lea eax, [ebp - 0x2d4]
push eax
push esi
push dword [ebp - 0x4e0]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4c150b
nop dword [eax]
lea eax, [ebp - 0x4e8]
push eax
push 1
push 0
lea eax, [ebp - 0x2d4]
push eax
push dword [ebp - 0x4e0]
call ebx
test eax, eax
jne 0x4c14d5
lea eax, [ebp - 0x4ec]
mov dword [ebp - 0x4f0], 1
push eax
lea eax, [ebp - 0x4dc]
mov dword [ebp - 0x4ec], 0x208
push eax
lea eax, [ebp - 0x4f0]
push eax
push 0
push str.ServiceName
push dword [ebp - 0x4e8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4c14cd
push 0x64
push eax
lea eax, [ebp - 0xcc]
push eax
call fcn.0051d210
add esp, 8
lea edx, [ebp - 0xcc]
lea ecx, [ebp - 0x4dc]
call fcn.004c1250
add esp, 4
test eax, eax
je 0x4c14cd
cmp byte [ebp - 0x68], 0
je 0x4c14b7
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jns 0x4c14cd
push ecx
lea eax, [ebp - 0xcc]
mov edx, 0x64
push eax
push ecx
lea ecx, [ebp - 0x68]
call fcn.00486f80
push dword [ebp - 0x4e8]
call edi
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x4e4]
mov dword [ebp - 0x4e4], 0x104
push eax
lea eax, [ebp - 0x2d4]
inc esi
push eax
push esi
push dword [ebp - 0x4e0]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x4c1410
push dword [ebp - 0x4e0]
call edi
mov esi, dword [ebp - 0x4f4]
mov edi, dword [ebp - 0x4f8]
cmp byte [ebp - 0x68], 0
pop ebx
je 0x4c1562
xor edx, edx
mov eax, 0x80070057
cmp edi, 0x7fffffff
cmova edx, eax
test edx, edx
js 0x4c154b
push ecx
lea eax, [ebp - 0x68]
mov edx, edi
push eax
push ecx
mov ecx, esi
call fcn.00486f80
mov edx, eax
xor eax, eax
test edx, edx
pop edi
setns al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f88bd
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.004f88bd
mov esp, ebp
pop ebp
ret
Function at 0x4c24f0
Capabilities:
Hash data with md5

Disassembly:
mov dword [ecx], vtable.MD5_CTX.0
xorps xmm0, xmm0
mov dword [ecx + 0x18], 0
mov eax, ecx
mov dword [ecx + 0x14], 0
mov dword [ecx + 4], 0x67452301
mov dword [ecx + 8], 0xefcdab89
mov dword [ecx + 0xc], 0x98badcfe
mov dword [ecx + 0x10], 0x10325476
movups xmmword [ecx + 0x5c], xmm0
movups xmmword [ecx + 0x6c], xmm0
movups xmmword [ecx + 0x7c], xmm0
movups xmmword [ecx + 0x8c], xmm0
mov byte [ecx + 0x5c], 0x80
ret

Function at 0x4c26a0
Capabilities:
Encrypt data using rc4 prga
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x5cc128]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor edx, edx
push edi
mov edi, dword [ebp + 8]
lea eax, [esi + 0x16]
nop dword [eax]
movzx ecx, byte [eax - 2]
lea eax, [eax + 4]
mov byte [ebp + edx - 0xc], cl
movzx ecx, byte [eax - 5]
mov byte [ebp + edx - 0xb], cl
movzx ecx, byte [eax - 4]
mov byte [ebp + edx - 0xa], cl
movzx ecx, byte [eax - 3]
mov byte [ebp + edx - 9], cl
add edx, 4
cmp edx, 8
jb 0x4c26c0
mov edx, dword [esi + 0x14]
lea ebx, [esi + 0x5c]
shr edx, 3
mov ecx, 0x38
and edx, 0x3f
mov eax, 0x78
sub ecx, edx
sub eax, edx
cmp edx, 0x38
cmovb eax, ecx
mov ecx, esi
push eax
push ebx
call fcn.004c25d0
push 8
lea eax, [ebp - 0xc]
mov ecx, esi
push eax
call fcn.004c25d0
lea ecx, [edi + 1]
mov edi, 4
lea edx, [esi + 6]
nop dword [eax]
movzx eax, byte [edx - 2]
lea edx, [edx + 4]
mov byte [ecx - 1], al
lea ecx, [ecx + 4]
movzx eax, byte [edx - 5]
mov byte [ecx - 4], al
movzx eax, byte [edx - 4]
mov byte [ecx - 3], al
movzx eax, byte [edx - 3]
mov byte [ecx - 2], al
sub edi, 1
jne 0x4c2730
xor eax, eax
mov edi, esi
xorps xmm0, xmm0
mov ecx, 0x27
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 4]
mov dword [esi + 0x18], eax
xor ecx, ebp
mov dword [esi + 0x14], eax
mov dword [esi + 4], 0x67452301
mov dword [esi + 8], 0xefcdab89
mov dword [esi + 0xc], 0x98badcfe
mov dword [esi + 0x10], 0x10325476
movups xmmword [ebx], xmm0
pop edi
movups xmmword [ebx + 0x10], xmm0
pop esi
movups xmmword [ebx + 0x20], xmm0
movups xmmword [ebx + 0x30], xmm0
mov byte [ebx], 0x80
pop ebx
call fcn.004f88bd
mov esp, ebp
pop ebp
ret 4
Function at 0x4c35e0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov eax, ecx
mov dword [ebp - 0xc], edx
push edi
lea ecx, [ebp - 4]
mov dword [ebp - 8], eax
push ecx
push eax
mov dword [ebp - 4], 0
xor ebx, ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
jne 0x4c3610
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push edi
call fcn.0053a405
mov esi, eax
add esp, 4
test esi, esi
jne 0x4c3627
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push edi
push 0
push dword [ebp - 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4c3668
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x5a2b74
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4c3668
mov ecx, dword [ebp - 8]
mov ebx, 1
mov edx, dword [ebp - 0xc]
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
push esi
call fcn.00528376
add esp, 4
mov eax, ebx
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c3740
Capabilities:
Get session user name
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, ecx
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x4c38b2
push edi
mov edi, dword [sym.imp.Secur32.dll_GetUserNameExW]
lea eax, [ebp - 8]
push eax
push 0
push 2
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
call edi
test al, al
je 0x4c3792
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
add eax, eax
push esi
push eax
call fcn.0053a405
mov esi, eax
add esp, 4
test esi, esi
je 0x4c38aa
lea eax, [ebp - 8]
push eax
push esi
push 2
call edi
test al, al
je 0x4c38aa
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
push esi
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x4c38a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4c38a1
push dword [ebp - 0x10]
call fcn.0053a405
mov edi, eax
add esp, 4
test edi, edi
je 0x4c38a1
mov eax, dword [ebp - 0xc]
add eax, eax
push ebx
push eax
call fcn.0053a405
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4c382e
push esi
call fcn.00528376
push edi
call fcn.00528376
add esp, 8
xor eax, eax
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 0x10]
push eax
push edi
push esi
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x4c3882
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
test eax, eax
je 0x4c3882
push dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
mov edx, 0x64
call fcn.00435d70
push dword [ebp - 4]
xor ecx, ecx
test eax, eax
setns cl
mov dword [ebp - 0x14], ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 4], 0
push esi
call fcn.00528376
push edi
call fcn.00528376
push ebx
call fcn.00528376
mov eax, dword [ebp - 0x14]
add esp, 0xc
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
push esi
call fcn.00528376
add esp, 4
pop esi
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4c38c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x5cc128]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
xor ebx, ebx
lea eax, [ebp - 0x20c]
push 0x208
push ebx
push eax
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x214], ebx
call fcn.0051d210
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4c3913
push esi
mov ecx, 0xb
lea eax, [ebp - 0x214]
mov esi, 0x5a80d4
lea edx, [ebp - 0x210]
rep movsd dword es:[edi], dword [esi]
push eax
lea ecx, [ebp - 0x20c]
call fcn.004c35e0
add esp, 4
pop esi
test eax, eax
je 0x4c396a
cmp dword [ebp - 0x210], 0x60002
jb 0x4c396a
cmp dword [ebp - 0x214], 0x295a01c8
mov eax, 1
cmovae ebx, eax
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
xor ecx, ebp
pop ebx
call fcn.004f88bd
mov esp, ebp
pop ebp
ret
Function at 0x4c3e50
Capabilities:
Encode data using base64
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5bf6a8
push 0x520ce0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x5cc128]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, edx
mov eax, ecx
mov dword [ebp - 0x40], eax
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x3c], ebx
test eax, eax
je 0x4c3fe9
test ebx, ebx
je 0x4c3fe9
test edi, edi
je 0x4c3fe9
xor esi, esi
mov byte [ebp - 0x34], 0
xorps xmm0, xmm0
movq qword [ebp - 0x33], xmm0
mov dword [ebp - 0x2b], esi
mov word [ebp - 0x27], si
mov byte [ebp - 0x25], 0
mov byte [ebp - 0x24], 0
xor ecx, ecx
mov dword [ebp - 0x23], ecx
mov word [ebp - 0x1f], cx
mov byte [ebp - 0x1d], cl
mov dword [ebp - 4], ecx
push ecx
lea ecx, [ebp - 0x34]
push ecx
mov ecx, eax
call fcn.004c3de0
add esp, 8
test eax, eax
je 0x4c3fde
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
mov edx, edi
mov ecx, dword [ebp - 0x40]
call fcn.004c3d50
add esp, 8
test eax, eax
je 0x4c3fde
xor eax, eax
mov dword [ebp - 0x38], eax
xor edi, edi
mov dword [ebp - 0x44], edi
mov cl, byte [ebp + eax - 0x24]
inc eax
mov dword [ebp - 0x38], eax
cmp eax, 8
jb 0x4c3f26
xor bh, bh
jmp 0x4c3f2e
mov bh, byte [ebp + eax - 0x24]
inc eax
mov dword [ebp - 0x38], eax
cmp eax, 8
jb 0x4c3f37
xor bl, bl
jmp 0x4c3f3f
mov bl, byte [ebp + eax - 0x24]
inc eax
mov dword [ebp - 0x38], eax
movzx edx, cl
mov ecx, edx
shr ecx, 2
movzx ecx, word [ecx*2 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov esi, dword [ebp - 0x3c]
mov word [esi + edi*2], cx
movzx esi, bh
mov ecx, esi
shr ecx, 4
and edx, 3
shl edx, 4
or ecx, edx
movzx ecx, word [ecx*2 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov edx, dword [ebp - 0x3c]
mov word [edx + edi*2 + 2], cx
movzx edx, bl
mov ecx, edx
shr ecx, 6
and esi, 0xf
shl esi, 2
or ecx, esi
movzx ecx, word [ecx*2 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov ebx, dword [ebp - 0x3c]
mov word [ebx + edi*2 + 4], cx
and edx, 0x3f
movzx ecx, word [edx*2 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov word [ebx + edi*2 + 6], cx
add edi, 4
mov dword [ebp - 0x44], edi
cmp eax, 8
jb 0x4c3f15
mov dword [ebx + edi*2 - 2], 0x3d
mov esi, 1
mov dword [ebp - 0x48], esi
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x4c3feb
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x4c3feb
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004f88bd
mov esp, ebp
pop ebp
ret
Function at 0x4c46f0
Capabilities:
Check os version
Delete registry value
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x580498
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x5cc128]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 0x10], 0
mov dword [ebp - 4], 0
je 0x4c4775
mov eax, dword [0x5ccdb8]
mov esi, dword [ebp + 8]
cmp eax, 0xffffffff
jne 0x4c4759
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jb 0x4c4744
mov dword [0x5ccdb8], 1
jmp 0x4c475d
push esi
push dword [ebp + 0xc]
mov dword [0x5ccdb8], 0
call fcn.004c5db0
jmp 0x4c47a0
test eax, eax
je 0x4c476a
push esi
push dword [ebp + 0xc]
call fcn.004c4890
test eax, eax
jne 0x4c47a0
push esi
push dword [ebp + 0xc]
call fcn.004c5db0
jmp 0x4c47a0
push dword [ebp + 0xc]
call fcn.004c58a0
mov edi, dword [ebp + 0xc]
mov esi, dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call esi
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call esi
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c47c2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4c47e0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5804c8
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x5cc128]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov eax, dword [0x5ccdb8]
cmp eax, 0xffffffff
jne 0x4c4836
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jb 0x4c482a
mov dword [0x5ccdb8], 1
jmp 0x4c483a
mov dword [0x5ccdb8], 0
jmp 0x4c4848
test eax, eax
je 0x4c4848
push dword [ebp + 8]
call fcn.004c5af0
mov esi, eax
test esi, esi
jne 0x4c4852
push dword [ebp + 8]
call fcn.004c5fa0
mov esi, eax
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c4874
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4c5db0
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x580946
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x5cc128]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 0
push eax
push 0x2001f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x21c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4c5f37
mov edi, dword [ebp - 0x21c]
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x228], eax
call fcn.00407e20
mov ecx, eax
test ecx, ecx
jne 0x4c5e60
push 0x80004005
call fcn.004079f0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
mov byte [ebp - 4], 1
lea eax, [ebp - 0x21c]
push dword [esi + 8]
push dword [esi]
push str.__s___s
push eax
call fcn.00423d10
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0051d210
add esp, 0x1c
mov dword [ebp - 0x220], 0x104
lea eax, [ebp - 0x220]
lea ecx, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
call fcn.004c67d0
mov esi, dword [ebp - 0x21c]
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.0054aa55
add esp, 8
test eax, eax
je 0x4c5f09
test esi, esi
je 0x4c5f09
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4c5ee5
sub eax, edx
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4c5f25
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, 1
test edi, edi
je 0x4c5f39
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4c5f39
xor esi, esi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f88bd
mov esp, ebp
pop ebp
ret 8
Function at 0x4c5fa0
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x5cc128]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x208
push 0
push eax
call fcn.0051d210
add esp, 0xc
mov dword [ebp - 0x418], 0x104
lea eax, [ebp - 0x418]
mov dword [ebp - 0x41c], 1
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x41c]
push eax
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp word [ebp - 0x20c], 0
je 0x4c6027
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f88bd
mov esp, ebp
pop ebp
ret 4
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.0051d210
add esp, 0xc
mov dword [ebp - 0x418], 0x104
lea eax, [ebp - 0x418]
mov dword [ebp - 0x41c], 1
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x41c]
push eax
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp word [ebp - 0x414], ax
pop esi
setne al
xor ecx, ebp
call fcn.004f88bd
mov esp, ebp
pop ebp
ret 4

Function at 0x4c60a0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp word [0x5d36e8], 0
mov dword [ebp - 8], 0
jne 0x4c60cd
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x100
push eax
push 0x5d36e8
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov ecx, dword [ebp + 8]
push 0x5d36e8
call fcn.00407900
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret 4

Function at 0x4c60f0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp word [0x5d38e8], 0
mov dword [ebp - 8], 0
jne 0x4c611f
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x100
push eax
push 0x5d38e8
push 2
call dword [sym.imp.Secur32.dll_GetUserNameExW]
mov ecx, dword [ebp + 8]
push 0x5d38e8
call fcn.00407900
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret 4

Function at 0x4c6780
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x4c6795
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4c67a0
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x4c67d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4c6841
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x4c680f
cmp eax, 2
jne 0x4c682b
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x4c683b
test ecx, ecx
je 0x4c6836
test cl, 1
jne 0x4c682b
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x4c683b
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x4c6aa0
Capabilities:
Extract resource via kernel32 functions
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5bfbd8
push 0x520ce0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x5cc128]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x2c], ecx
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
test edx, edx
je 0x4c6ae4
mov dword [edx], ebx
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
test edi, edi
je 0x4c6c53
cmp dword [sym.imp.KERNEL32.dll_CloseHandle], ebx
je 0x4c6c53
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov esi, eax
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push dword [ebp - 0x2c]
call edi
mov dword [ebp - 0x2c], eax
cmp eax, 0xffffffff
je 0x4c6b5d
push 0
push 0
push 0
push 0x1000002
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
mov dword [ebp - 0x28], edi
test edi, edi
je 0x4c6b5d
push 0
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
cmovne ebx, edi
push esi
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
test ebx, ebx
je 0x4c6c01
mov dword [ebp - 4], 0
xor edi, edi
mov dword [ebp - 0x20], edi
push 0x10
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4c6bd4
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x4c6bd4
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4c6bd4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4c6bd4
movzx esi, word [eax]
cmp esi, dword [ebp - 0x1c]
ja 0x4c6bcc
mov dword [ebp - 0x1c], esi
add esi, 3
and esi, 0xfffffffc
mov dword [ebp - 0x1c], esi
cmp dword [eax + 0x28], 0xfeef04bd
je 0x4c6bd9
mov edi, 0xd
mov dword [ebp - 0x20], edi
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0xfffffffe
jmp 0x4c6c06
mov edi, 0xd
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4c6c14
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x28]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4c6c24
push eax
call ebx
mov eax, dword [ebp - 0x2c]
cmp eax, 0xffffffff
je 0x4c6c2f
push eax
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
je 0x4c6c53
lea eax, [esi*2 + 4]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret