joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45b179
Capabilities:
Hash data with md5

Disassembly:
and dword [ecx + 0x14], 0
and dword [ecx + 0x10], 0
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret

Function at 0x45bb0a
Capabilities:
Get file size
Read file on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c
mov eax, dword [0x634254]
xor eax, esp
mov dword [esp + 0x88], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
xor esi, esi
mov dword [esp + 0x20], ecx
push esi
push esi
push 3
push esi
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x45bcd1
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov edi, eax
test edi, edi
je 0x45bcca
cmp edi, 0x400000
jae 0x45bbb1
push edi
call fcn.0056d555
pop ecx
push esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], eax
push ecx
push edi
push eax
push ebx
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov esi, dword [esp + 0x10]
test eax, eax
je 0x45bba5
cmp dword [esp + 0x14], edi
jne 0x45bba5
push dword [esp + 0x20]
push edi
push esi
call fcn.0045ba68
add esp, 0xc
push esi
call fcn.0056d55e
pop ecx
jmp 0x45bcca
push esi
push esi
push esi
push 2
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingW]
mov edx, eax
mov dword [esp + 0x24], edx
cmp edx, 0xffffffff
je 0x45bcd1
mov eax, edi
lea ecx, [esp + 0x28]
shr eax, 0x10
mov dword [esp + 0x1c], eax
mov eax, esi
mov dword [esp + 0x10], eax
call fcn.0045b179
mov dword [esp + 0x14], esi
cmp dword [esp + 0x1c], eax
jbe 0x45bc46
push 0x10000
push eax
push esi
push 4
push edx
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov dword [esp + 0x18], eax
test eax, eax
je 0x45bcc0
push 0x10000
mov edx, eax
lea ecx, [esp + 0x2c]
call fcn.0045b19d
pop ecx
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
add eax, 0x10000
mov edx, dword [esp + 0x24]
inc ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
cmp ecx, dword [esp + 0x1c]
jb 0x45bbef
test di, di
je 0x45bc7d
push esi
push dword [esp + 0x14]
push esi
push 4
push edx
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov dword [esp + 0x18], eax
test eax, eax
je 0x45bcc0
sub edi, dword [esp + 0x10]
lea ecx, [esp + 0x28]
push edi
mov edx, eax
call fcn.0045b19d
pop ecx
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
xor eax, eax
lea edi, [esp + 0x84]
stosd dword es:[edi], eax
lea edx, [esp + 0x28]
lea ecx, [esp + 0x84]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0045b239
mov edi, dword [esp + 0x20]
movzx eax, byte [esp + esi + 0x84]
push eax
push 0x60ba00
push 3
push edi
call fcn.0040b185
add esp, 0x10
add edi, 4
inc esi
cmp esi, 0x10
jl 0x45bc9e
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0056d855
mov esp, ebp
pop ebp
ret
Function at 0x45be52
Capabilities:
Check if file exists
Get common file path
Get file attributes
Get program files directory

Disassembly:
push 0x26c
mov eax, 0x5d3a24
call fcn.0056df1d
mov ebx, edx
mov edi, ecx
mov dword [ebp - 0x264], edi
xor eax, eax
mov dword [ebp - 0x278], edi
mov dword [ebp - 0x274], eax
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x26c], eax
mov dword [ebp - 0x268], eax
xor esi, esi
inc esi
mov dword [ebp - 4], esi
call fcn.0040a5dd
push 0x20019
push str.SOFTWARETencentQQ2009
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x270]
mov dword [ebp - 0x274], esi
call fcn.0045a08f
test eax, eax
jne 0x45bf44
mov eax, 0x15e
mov ecx, edi
push eax
mov dword [ebp - 0x264], eax
call fcn.0040b8b2
push 0x15e
mov ecx, edi
mov esi, eax
call fcn.0040b94d
lea eax, [ebp - 0x264]
push eax
push esi
push str.Install
lea ecx, [ebp - 0x270]
call fcn.00459fc9
push 0xffffffffffffffff
mov ecx, edi
call fcn.0040b978
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
je 0x45bf44
push 1
lea eax, [ebp - 0x264]
mov ecx, edi
push eax
call fcn.0041bf94
mov edx, 0x6058cc
mov ecx, dword [eax]
call fcn.0041c62a
mov ecx, dword [ebp - 0x264]
mov esi, eax
lea ecx, [ecx - 0x10]
call fcn.0040b785
test esi, esi
je 0x45bf44
push 0x6058cc
mov ecx, edi
call fcn.0041cd17
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jne 0x45bfac
push 0x104
mov ecx, edi
call fcn.0040b8b2
push 0x104
mov ecx, edi
mov esi, eax
call fcn.0040b94d
push esi
xor eax, eax
push eax
push eax
push 0x26
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0xffffffffffffffff
mov ecx, edi
call fcn.0040b978
push str.TencentQQ_
mov ecx, edi
call fcn.0041cd17
lea eax, [ebp - 0x260]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
test eax, eax
je 0x45bfa5
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
jmp 0x45bfac
mov ecx, edi
call fcn.0041cd7d
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jne 0x45bfe8
push ebx
mov ecx, edi
call fcn.0041cf3c
push 0x6058cc
mov ecx, edi
call fcn.0041cd17
push str..._QQ.exe
mov ecx, edi
call fcn.0041cd17
push dword [edi]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x45bfe8
mov ecx, edi
call fcn.0041cd7d
cmp dword [ebp - 0x270], 0
je 0x45bffd
push dword [ebp - 0x270]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
call fcn.0056decc
ret
Function at 0x4601d8
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0056d570
mov eax, dword [0x634254]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x1008]
push esi
mov esi, dword [ebp + 0xc]
push edi
push edx
lea edx, [ebp - 0x100c]
mov dword [ebp - 0x1008], 1
push edx
lea edx, [ebp - 0x804]
mov dword [ebp - 0x100c], 0x800
push edx
push eax
call fcn.004601aa
test al, al
je 0x46027f
cmp dword [ebp - 0x1008], 1
jne 0x46023c
lea eax, [ebp - 0x804]
push eax
jmp 0x460274
cmp dword [ebp - 0x1008], 2
jne 0x46027f
mov edi, 0x400
lea eax, [ebp - 0x1004]
push edi
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
mov dword [ebp - 0x100c], eax
test eax, eax
je 0x46027f
cmp eax, edi
ja 0x46027f
lea ecx, [ebp - 0x1004]
push ecx
mov ecx, esi
call fcn.004089a4
mov al, 1
jmp 0x460281
xor al, al
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0056d855
leave
ret 8

Function at 0x46050b
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
call fcn.004604f4
test al, al
je 0x460549
lea eax, [ebp - 0xc]
mov dword [ebp - 4], 0x104
push eax
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 4]
push eax
lea eax, [esi + 0xc]
push eax
push dword [esi + 8]
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x460549
mov al, 1
jmp 0x460551
xor eax, eax
mov word [esi + 0xc], ax
xor al, al
pop esi
leave
ret

Function at 0x462ba9
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x462bb7
xor eax, eax
pop ebp
ret
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not ecx
cmp esi, 8
jb 0x462c76
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5fbeb0]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5fbeb0]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5fbeb0]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5fbeb0]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5fbeb0]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5fbeb0]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5fbeb0]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5fbeb0]
sub edi, 1
jne 0x462bcf
pop edi
test esi, esi
je 0x462c92
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5fbeb0]
inc edx
sub esi, 1
jne 0x462c7a
not ecx
mov eax, ecx
pop esi
pop ebp
ret
Function at 0x463205
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [esi + 0x6af60], edi
cmp dword [esi + 0x6af58], edi
jne 0x46322e
mov dword [esi + 0x6af60], 1
mov dword [esi + 0x6af58], 0x10000
push 0x1fffc
lea eax, [esi + 0x4af58]
mov dword [esi + 0x6af54], edi
push edi
push eax
call fcn.005713c0
add esp, 0xc
mov dword [esi + 0x6af84], 0x20
mov eax, 0x102
mov dword [esi + 0x6af7c], 0x1000
lea ebx, [esi + 0x1af58]
mov dword [esi + 0x6af80], eax
mov ecx, esi
mov dword [esi + 0x6af88], eax
push 0x10000
push ebx
mov dword [esi + 0x6af6c], edi
mov dword [esi + 0x6af5c], edi
call fcn.00462cfc
mov dword [esi + 0x6af78], eax
test eax, eax
je 0x4632d5
cmp eax, 0xffffffff
je 0x4632d5
mov dword [esi + 0x6af74], edi
cmp eax, 0x106
jae 0x4632b0
mov ecx, esi
call fcn.004630ca
mov dword [esi + 0x6af64], edi
mov ecx, edi
movzx eax, byte [ebx + edi]
shl ecx, 5
xor ecx, eax
and ecx, 0x7fff
inc edi
mov dword [esi + 0x6af64], ecx
cmp edi, 2
jb 0x4632b8
jmp 0x4632e5
mov dword [esi + 0x6af74], 1
mov dword [esi + 0x6af78], edi
pop edi
pop esi
pop ebx
ret
Function at 0x465f8d
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x330
mov eax, dword [0x634254]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x6364dc]
push esi
xor esi, esi
push edi
mov edi, 0xfffffc18
cmp eax, 0xffffffff
jne 0x46610b
push 0x110
lea eax, [ebp - 0x324]
mov dword [0x6364dc], edi
push esi
push eax
mov dword [ebp - 0x328], 0x114
call fcn.005713c0
add esp, 0xc
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
test eax, eax
je 0x466101
cmp dword [ebp - 0x318], 2
jne 0x466101
cmp dword [ebp - 0x324], 5
jne 0x466096
mov eax, dword [ebp - 0x320]
test eax, eax
jne 0x46601b
inc eax
jmp 0x466191
cmp eax, 1
jne 0x466087
push 0x7f
lea eax, [ebp - 0x314]
push eax
push str.Service_Pack_1
call fcn.005a1fe8
add esp, 0xc
test eax, eax
jne 0x466041
push 3
jmp 0x466190
push 0x7f
lea eax, [ebp - 0x314]
push eax
push str.Service_Pack_2
call fcn.005a1fe8
add esp, 0xc
test eax, eax
jne 0x466062
push 4
jmp 0x466190
push 0x7f
lea eax, [ebp - 0x314]
push eax
push str.Service_Pack_3
call fcn.005a1fe8
add esp, 0xc
neg eax
sbb eax, eax
and eax, 0xfffffffd
add eax, 5
jmp 0x466191
cmp eax, 2
jne 0x466101
push 6
pop eax
mov dword [0x6364dc], eax
jmp 0x466106
cmp dword [ebp - 0x324], 6
jne 0x466101
cmp dword [ebp - 0x320], esi
jne 0x4660ed
push 0x7f
lea eax, [ebp - 0x314]
push eax
push str.Service_Pack_1
call fcn.005a1fe8
add esp, 0xc
test eax, eax
jne 0x4660c8
push 8
jmp 0x466190
push 0x7f
lea eax, [ebp - 0x314]
push eax
push str.Service_Pack_2
call fcn.005a1fe8
add esp, 0xc
neg eax
sbb eax, eax
and eax, 0xfffffffe
add eax, 9
jmp 0x466191
cmp dword [ebp - 0x320], 1
mov eax, dword [0x6364dc]
push 0xa
pop ecx
cmove eax, ecx
jmp 0x46608f
mov eax, dword [0x6364dc]
cmp eax, 0xffffffff
je 0x466113
cmp eax, edi
jne 0x4661af
push 0x208
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.005713c0
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x104
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
push str.kernel32.dll
lea eax, [ebp - 0x210]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x330]
mov dword [ebp - 0x32c], esi
push eax
lea edx, [ebp - 0x32c]
mov dword [ebp - 0x330], esi
lea ecx, [ebp - 0x210]
call fcn.00465c9a
pop ecx
test eax, eax
je 0x4661aa
mov eax, dword [ebp - 0x32c]
cmp eax, 0x60002
jne 0x466187
push 0xb
jmp 0x466190
cmp eax, 0x60003
jne 0x466198
push 0xc
pop eax
mov dword [0x6364dc], eax
jmp 0x4661af
cmp eax, 0xa0000
je 0x4661a6
cmp eax, 0x60004
jne 0x4661aa
push 0xd
jmp 0x466190
mov eax, dword [0x6364dc]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0056d855
leave
ret
Function at 0x466247
Capabilities:
Check os version

Disassembly:
push 0x124
mov eax, 0x5d4043
call fcn.0056df1d
mov edi, ecx
mov dword [ebp - 0x128], edi
mov dword [ebp - 0x130], edi
xor esi, esi
mov dword [ebp - 0x12c], esi
xor eax, eax
mov dword [edi], esi
mov dword [edi + 0x10], esi
mov dword [edi + 0x14], 7
mov word [edi], ax
xor ebx, ebx
mov dword [ebp - 4], esi
lea eax, [ebp - 0x124]
mov dword [ebp - 0x124], 0x114
inc ebx
push eax
mov dword [ebp - 0x12c], ebx
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
mov eax, dword [ebp - 0x114]
sub eax, esi
je 0x46643c
sub eax, ebx
je 0x4663e2
sub eax, ebx
je 0x4662c4
push str.Unknown
jmp 0x466441
mov eax, dword [ebp - 0x120]
cmp eax, 5
jne 0x466332
mov eax, dword [ebp - 0x11c]
cmp eax, 2
jne 0x4662f7
push str.Windows_2003
mov ecx, edi
call fcn.004089a4
mov eax, dword [ebp - 0x120]
cmp eax, 5
jne 0x466332
mov eax, dword [ebp - 0x11c]
cmp eax, ebx
jne 0x466318
push str.Windows_XP
mov ecx, edi
call fcn.004089a4
mov eax, dword [ebp - 0x120]
cmp eax, 5
jne 0x466332
mov eax, dword [ebp - 0x11c]
test eax, eax
jne 0x466448
push str.Windows_2000
mov ecx, edi
call fcn.004089a4
mov eax, dword [ebp - 0x120]
cmp eax, 4
ja 0x466349
push str.Windows_NT
mov ecx, edi
call fcn.004089a4
mov eax, dword [ebp - 0x120]
push 6
pop esi
cmp eax, esi
jne 0x4663d6
mov eax, dword [ebp - 0x11c]
test eax, eax
jne 0x46637a
push str.Windows_Vista
mov ecx, edi
call fcn.004089a4
mov eax, dword [ebp - 0x120]
cmp eax, esi
jne 0x4663d6
mov eax, dword [ebp - 0x11c]
cmp eax, ebx
jne 0x46639a
push str.Windows_7
mov ecx, edi
call fcn.004089a4
mov eax, dword [ebp - 0x120]
cmp eax, esi
jne 0x4663d6
mov eax, dword [ebp - 0x11c]
cmp eax, 2
jne 0x4663bb
push str.Windows_8
mov ecx, edi
call fcn.004089a4
mov eax, dword [ebp - 0x120]
cmp eax, esi
jne 0x4663d6
mov eax, dword [ebp - 0x11c]
cmp eax, 3
jne 0x466448
push str.Windows_8.1
mov ecx, edi
call fcn.004089a4
mov eax, dword [ebp - 0x120]
cmp eax, 0xa
jne 0x466448
push str.Windows_10
jmp 0x466441
cmp dword [ebp - 0x120], 4
jne 0x466448
mov eax, dword [ebp - 0x11c]
test eax, eax
jne 0x466410
push str.Windows_95
mov ecx, edi
call fcn.004089a4
cmp dword [ebp - 0x120], 4
jne 0x466448
mov eax, dword [ebp - 0x11c]
cmp eax, 0xa
jne 0x466430
push str.Windows_98
mov ecx, edi
call fcn.004089a4
cmp dword [ebp - 0x120], 4
jne 0x466448
mov eax, dword [ebp - 0x11c]
cmp eax, 0x5a
jne 0x466448
push str.Windows_ME
jmp 0x466441
push str.Windows_Win32s
mov ecx, edi
call fcn.004089a4
lea ecx, [ebp - 0x128]
call fcn.0040a5dd
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x128]
push dword [ebp - 0x118]
push dword [ebp - 0x11c]
push dword [ebp - 0x120]
push str.__build_d._d._d_
push eax
call fcn.0042072b
add esp, 0x14
cmp word [ebp - 0x110], 0
je 0x4664a0
push 0x60ca70
mov ecx, edi
call fcn.004092d1
lea eax, [ebp - 0x110]
mov ecx, edi
push eax
call fcn.004092d1
mov esi, dword [ebp - 0x128]
mov ecx, edi
push esi
call fcn.004092d1
lea ecx, [esi - 0x10]
call fcn.0040b785
mov eax, edi
call fcn.0056decc
ret
Function at 0x47172b
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, ecx
xor eax, eax
push esi
mov esi, edx
mov dword [ebp - 4], eax
push edi
mov edx, dword [ebx + 0x3c]
mov dword [ebp - 8], esi
cmp dword [edx], eax
jne 0x47175b
push dword [ebx + 0x78]
call fcn.004712f2
mov dword [ebp - 4], eax
pop ecx
test eax, eax
jne 0x471844
mov ecx, dword [ebx + 0x18]
cmp ecx, dword [ebx + 0x24]
jbe 0x471792
mov eax, dword [ebx + 0x80]
push 0
cdq
push ecx
push edx
push eax
call fcn.0056d480
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 0x3c]
mov dword [ebp - 0x14], edx
lea edx, [ebp - 0x18]
push edx
push 5
mov ecx, dword [eax]
push eax
call dword [ecx + 0x28]
mov eax, dword [ebx + 0x18]
add esp, 0xc
mov dword [ebx + 0x24], eax
mov eax, dword [ebp - 4]
test esi, esi
je 0x471844
mov edi, dword [esi + 0x14]
mov dword [ebp - 0x14], edi
cmp edi, dword [ebx + 0x18]
ja 0x471836
test byte [esi + 0x18], 0x20
jne 0x471836
mov eax, dword [ebx + 0x80]
lea ecx, [edi - 1]
cdq
push edx
push eax
push 0
push ecx
call fcn.0056d480
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], edx
cmp edi, 1
jne 0x4717dc
mov ecx, esi
call fcn.00470d96
push dword [ebp - 4]
mov ecx, dword [ebx + 0x80]
push dword [ebp - 0xc]
mov eax, dword [esi + 4]
mov edx, eax
push ecx
mov ecx, dword [ebx + 0x3c]
mov dword [ebp - 0x10], eax
call fcn.004684ec
add esp, 0xc
mov dword [ebp - 4], eax
cmp edi, 1
jne 0x471817
mov esi, dword [ebp - 0x10]
lea edi, [ebx + 0x64]
add esi, 0x18
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0x14]
cmp edi, dword [ebx + 0x20]
jbe 0x47181f
mov dword [ebx + 0x20], edi
inc dword [ebx + 0xa8]
mov edx, edi
push dword [esi + 4]
mov ecx, dword [ebx + 0x58]
call fcn.0047c8e3
mov eax, dword [ebp - 4]
pop ecx
mov esi, dword [esi + 0xc]
mov dword [ebp - 8], esi
test eax, eax
je 0x471795
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4b9006
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x4b9018
push 0xd
pop eax
jmp 0x4b904a
mov ecx, edx
push ebx
push edi
xor ebx, ebx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4b9021
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop ebx
pop esi
pop ebp
ret 0xc

Function at 0x4b92bb
Capabilities:
Get file version info

Disassembly:
push 0xc
mov eax, 0x5d5103
call fcn.0056deea
mov ebx, ecx
mov dword [ebp - 0x18], ebx
lea esi, [ebx + 0x34]
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
push 0x34
push eax
mov dword [ebp - 4], eax
push ebx
mov byte [ebx + 0x40], al
call fcn.005713c0
add esp, 0xc
push 0
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x4b9342
push ecx
push edi
mov ecx, esi
call fcn.00409396
push dword [esi]
push edi
push 0
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4b9342
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x6058cc
push dword [esi]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4b9342
mov esi, dword [ebp - 0x14]
mov edi, ebx
push 0xd
pop ecx
rep movsd dword es:[edi], dword [esi]
mov byte [ebx + 0x40], 1
mov eax, ebx
call fcn.0056deb8
ret 4

Function at 0x4b9844
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, edx
mov eax, ecx
xor esi, esi
mov dword [ebp - 8], eax
test edi, edi
jne 0x4b9867
push 0x57
call dword [sym.imp.KERNEL32.DLL_SetLastError]
xor eax, eax
jmp 0x4b98fe
push ebx
push eax
push esi
push 0x400
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x4b989e
push 0x104
push edi
push ebx
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
test eax, eax
je 0x4b9895
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov esi, eax
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x4b98fb
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 5
jne 0x4b98fb
lea ecx, [ebp - 4]
mov dword [ebp - 4], esi
call fcn.004b086e
test eax, eax
jne 0x4b98fb
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4b98fb
mov eax, ebx
mov ecx, dword [ebp - 8]
cmp dword [eax + 0x44], ecx
jne 0x4b98d9
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x4b98d9
movzx edx, word [eax + 0x38]
test dx, dx
jne 0x4b98e5
mov ecx, dword [eax]
test ecx, ecx
je 0x4b98f4
add eax, ecx
jne 0x4b98c1
jmp 0x4b98f4
mov eax, edx
shr eax, 1
push eax
push ecx
mov ecx, edi
call fcn.004b96d8
mov esi, edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LocalFree]
mov eax, esi
pop ebx
pop edi
pop esi
leave
ret
Function at 0x4bb78b
Capabilities:
Get session user name
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc18
mov eax, dword [0x634254]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x63c418], 0
push ebx
mov ebx, 0x200
push esi
mov esi, ecx
mov dword [ebp - 0xc14], ebx
je 0x4bb7cd
push 0x63c418
push ebx
push esi
call fcn.005a5f40
add esp, 0xc
xor eax, eax
inc eax
jmp 0x4bb8e5
push edi
mov edi, 0x400
xor eax, eax
push edi
push eax
lea eax, [ebp - 0x404]
push eax
call fcn.005713c0
push edi
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.005713c0
push edi
lea eax, [ebp - 0xc04]
push 0
push eax
call fcn.005713c0
add esp, 0x24
mov byte [esi], 0
lea eax, [ebp - 0xc08]
mov dword [ebp - 0xc08], ebx
mov dword [ebp - 0xc0c], ebx
mov dword [ebp - 0xc10], ebx
push eax
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
pop edi
test eax, eax
jne 0x4bb841
mov dword [0x63c410], 0x6c
jmp 0x4bb8e3
lea eax, [ebp - 0x404]
push str.SYSTEM
push eax
call fcn.00592981
pop ecx
pop ecx
test eax, eax
jne 0x4bb864
mov dword [0x63c410], 0x6b
jmp 0x4bb8e3
lea ecx, [ebp - 0x404]
xor ebx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4bb86f
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
mov dword [ebp - 0xc08], eax
lea eax, [ebp - 0xc18]
push eax
lea eax, [ebp - 0xc10]
push eax
lea eax, [ebp - 0xc04]
push eax
lea eax, [ebp - 0xc0c]
push eax
lea eax, [ebp - 0x804]
push eax
lea eax, [ebp - 0x404]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x4bb8d9
lea eax, [ebp - 0xc14]
mov edx, esi
push eax
lea ecx, [ebp - 0x804]
call fcn.004bb627
pop ecx
test eax, eax
jne 0x4bb7c5
mov dword [0x63c410], 0x6d
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0056d855
leave
ret
Function at 0x4bb918
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, edx
mov ebx, ecx
lea eax, [edi + 2]
test eax, eax
js 0x4bba3b
push 3
cdq
pop ecx
idiv ecx
cmp eax, 0x40000000
jge 0x4bba3b
mov edx, dword [ebp + 0xc]
shl eax, 2
cmp dword [edx], eax
jl 0x4bba3b
push esi
mov esi, dword [ebp + 8]
cmp edi, 2
jle 0x4bb9c8
lea eax, [edi - 3]
xor edx, edx
div ecx
push 3
lea edx, [eax + 1]
imul ecx, edx, 0xfffffffd
add edi, ecx
mov dword [ebp - 4], edi
pop edi
movzx ecx, byte [ebx]
shr ecx, 2
mov al, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], al
movzx ecx, byte [ebx]
movzx eax, byte [ebx + 1]
and ecx, edi
shr eax, 4
add ecx, ecx
mov al, byte [eax + ecx*8 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 1], al
movzx ecx, byte [ebx + 1]
movzx eax, byte [ebx + 2]
and ecx, 0xf
shr eax, 6
mov al, byte [eax + ecx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 2], al
movzx eax, byte [ebx + 2]
add ebx, edi
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 3], al
add esi, 4
sub edx, 1
jne 0x4bb96a
mov edi, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
test edi, edi
je 0x4bba2c
movzx eax, byte [ebx]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], al
lea eax, [esi + 2]
movzx ecx, byte [ebx]
and ecx, 3
mov dword [ebp - 4], eax
shl ecx, 4
cmp edi, 1
jle 0x4bba18
movzx eax, byte [ebx + 1]
shr eax, 4
mov al, byte [eax + ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 1], al
movzx eax, byte [ebx + 1]
mov esi, dword [ebp - 4]
and eax, 0xf
mov al, byte [eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], al
mov byte [esi + 1], 0x3d
jmp 0x4bba29
mov al, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 1], al
mov esi, dword [ebp - 4]
mov word [esi], 0x3d3d
add esi, 2
mov eax, esi
sub eax, dword [ebp + 8]
mov dword [edx], eax
xor eax, eax
mov byte [esi], 0
pop esi
jmp 0x4bba3e
or eax, 0xffffffff
pop edi
pop ebx
leave
ret