joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b2360
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x6c9614]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
push 0x208
xor edi, edi
push edi
push eax
call fcn.004eddc0
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
add esp, 0xc
or ecx, 0x8000
cmp byte [ebp + 0x10], 0
cmove ecx, dword [ebp + 0xc]
push eax
push edi
push edi
push ecx
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ecx, esi
test eax, eax
je 0x4b23ba
push edi
jmp 0x4b23c1
lea eax, [ebp - 0x20c]
push eax
call fcn.00401f8f
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004d5d93
mov esp, ebp
pop ebp
ret

Function at 0x4b2791
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 8], 0
push ebx
push edi
je 0x4b2841
cmp dword [ebp + 0xc], 0
je 0x4b2841
push 0
push 0x80
push 3
push 0
push 5
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4b27d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4b2844
lea eax, [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [ebp - 8], edi
cmp edi, 0xffffffff
je 0x4b27ce
jb 0x4b27f2
push 8
pop eax
jmp 0x4b2844
push esi
mov esi, eax
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4b27fe
mov dword [eax], edi
inc esi
push esi
call fcn.004d68e8
mov ecx, dword [ebp + 0xc]
push esi
xor esi, esi
push esi
push eax
mov dword [ecx], eax
call fcn.004eddc0
add esp, 0x10
mov dword [ebp + 8], esi
lea eax, [ebp + 8]
push esi
push eax
mov eax, dword [ebp + 0xc]
push edi
push dword [eax]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
pop esi
test eax, eax
je 0x4b27ce
cmp dword [ebp + 8], edi
jne 0x4b2841
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4b2844
xor eax, eax
inc eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b284a
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp dword [edi + 0x10], ebx
je 0x4b296d
push esi
mov esi, dword [ebp + 0xc]
cmp dword [esi + 0x10], ebx
je 0x4b296c
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x4b2877
mov eax, dword [esi]
lea ecx, [ebp - 0x10]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0xc], eax
test eax, eax
je 0x4b296c
push 0x64fd82
push eax
call fcn.004d6fea
mov dword [ebp + 8], eax
pop ecx
pop ecx
test eax, eax
je 0x4b296c
cmp dword [esi + 0x14], 0x10
jb 0x4b28ac
mov esi, dword [esi]
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push esi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4b2956
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push str.VarFileInfoTranslation
push dword [ebp + 8]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4b2956
mov eax, dword [ebp - 0x14]
push 0x64fd82
push 0x80
movzx ecx, word [eax]
movzx eax, word [eax + 2]
shl ecx, 0x10
or ecx, eax
mov dword [ebp - 0xc], ecx
call fcn.004d6fea
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4b2958
cmp dword [edi + 0x14], 0x10
jb 0x4b290b
mov edi, dword [edi]
push edi
push dword [ebp - 0xc]
push str.StringFileInfo_08lx_s
push 0x80
push esi
call fcn.0040360d
add esp, 0x14
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 8]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4b2952
mov ecx, dword [ebp - 4]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b293d
sub ecx, edx
push ecx
push dword [ebp - 4]
mov ecx, dword [ebp + 0x10]
call fcn.00405b9e
mov bl, 1
jmp 0x4b2958
mov esi, ebx
push dword [ebp + 8]
call fcn.004d609d
pop ecx
test esi, esi
je 0x4b296c
push esi
call fcn.004d609d
pop ecx
pop esi
pop edi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b298d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
test eax, eax
je 0x4b29f0
xor edi, edi
cmp word [eax], di
je 0x4b29f0
push edi
push 0x80
push 2
push edi
push edi
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4b29c6
pop edi
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4b29e5
pop edi
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4b29f3
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret
Function at 0x4b2ec0
Capabilities:
Get common file path
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3100
call fcn.004d6ea0
mov eax, dword [0x6c9614]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, 0x104
mov dword [ebp - 0x3100], ecx
push esi
xor ebx, ebx
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.004eddc0
push esi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004eddc0
add esp, 0x18
lea eax, [ebp - 0x108]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
movsx eax, byte [ebp - 0x108]
push eax
push str.._c:
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0040360d
add esp, 0x10
lea eax, [ebp - 0x20c]
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4b2f53
mov al, 1
jmp 0x4b3065
push edi
push 0x2710
lea eax, [ebp - 0x30ec]
mov dword [ebp - 0x30fc], ebx
push ebx
push eax
call fcn.004eddc0
mov edi, 0x3e8
lea eax, [ebp - 0x9dc]
push edi
push ebx
push eax
call fcn.004eddc0
push edi
lea eax, [ebp - 0x5f4]
push ebx
push eax
call fcn.004eddc0
xor eax, eax
lea edi, [ebp - 0x30f8]
stosd dword es:[edi], eax
add esp, 0x24
stosd dword es:[edi], eax
push ebx
stosd dword es:[edi], eax
lea eax, [ebp - 0x30fc]
push eax
push 0x2710
lea eax, [ebp - 0x30ec]
mov dword [ebp - 0x30f8], ebx
push eax
push 0xc
lea eax, [ebp - 0x30f8]
mov dword [ebp - 0x30f4], ebx
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x4b2fdb
mov bl, 2
jmp 0x4b305b
lea eax, [ebp - 0x5f4]
push eax
push ebx
push dword [ebp - 0x30dc]
lea eax, [ebp - 0x30ec]
push eax
call fcn.004b3075
lea eax, [ebp - 0x9dc]
push eax
push 1
push dword [ebp - 0x30d4]
lea eax, [ebp - 0x30ec]
push eax
call fcn.004b3075
lea ecx, [ebp - 0x5f4]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b301c
mov edi, dword [ebp - 0x3100]
lea eax, [ebp - 0x5f4]
sub ecx, edx
push ecx
push eax
mov ecx, edi
call fcn.004b3d8e
lea edx, [ebp - 0x9dc]
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4b3043
sub edx, ecx
lea eax, [ebp - 0x9dc]
push edx
push eax
mov ecx, edi
call fcn.004b3d8e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004d5d93
mov esp, ebp
pop ebp
ret

Function at 0x4b3537
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov byte [ecx + 0x68], al
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret
Function at 0x4b83bf
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x20
mov eax, 0x638852
call fcn.004d668f
mov dword [ebp - 0x14], ecx
cmp dword [ebp + 8], 0
jne 0x4b83de
mov eax, 0x80004003
jmp 0x4b84b1
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 5
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4b840b
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4b84b1
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [ebp - 0x1c], edi
cmp edi, 0xffffffff
je 0x4b8400
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
cmp eax, ebx
ja 0x4b84ae
cmp edi, 0xffffffff
jae 0x4b84ae
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
push 0xffffffffffffffff
push edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.004b92b4
mov ebx, dword [ebp - 0x28]
cmp edi, ebx
mov edi, dword [ebp - 0x2c]
jne 0x4b849a
xor eax, eax
cmp dword [ebp - 0x10], eax
jne 0x4b849a
push eax
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4b847b
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4b8496
cmp dword [ebp + 8], ebx
je 0x4b8485
push 0x26
pop esi
jmp 0x4b849f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x14]
push ebx
push edi
call fcn.004b8178
mov esi, eax
jmp 0x4b849f
mov esi, 0x8007000e
test edi, edi
je 0x4b84aa
push edi
call fcn.004f29a4
pop ecx
mov eax, esi
jmp 0x4b84b1
xor eax, eax
inc eax
call fcn.004d6658
ret 4

Function at 0x4b8f6a
Capabilities:
Write file on windows

Disassembly:
push 0x10
mov eax, 0x638935
call fcn.004d668f
mov esi, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x4b9015
xor edi, edi
cmp word [eax], di
je 0x4b9015
push edi
push 0x80
push 2
push edi
push edi
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4b8fb3
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4b901a
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
push 1
push dword [ebp + 0x10]
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], edi
push dword [ebp + 0xc]
mov ecx, esi
push eax
call fcn.004b8dec
mov edi, dword [ebp - 0x1c]
mov esi, eax
test esi, esi
js 0x4b9006
push 0
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x18]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4b8ffd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x4b9006
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
test edi, edi
je 0x4b9011
push edi
call fcn.004f29a4
pop ecx
mov eax, esi
jmp 0x4b901a
mov eax, 0x80070057
call fcn.004d6658
ret 0xc
Function at 0x4ba658
Capabilities:
Create thread

Disassembly:
cmp dword [0x6d5f90], 0
jne 0x4ba696
push esi
mov ecx, 0x6d5fb0
call fcn.004ba907
xor esi, esi
push esi
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push esi
push esi
push esi
push 0x4ba59a
push esi
push esi
mov dword [0x6d5f8c], eax
call fcn.004f80bf
add esp, 0x18
mov dword [0x6d5f90], eax
pop esi
ret
Function at 0x4bacd8
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x6c
mov eax, 0x638b00
call fcn.004d66c3
mov esi, ecx
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x28]
mov edx, dword [ebp + 0x18]
test edx, edx
mov ebx, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x74], eax
mov eax, 0x6b2654
cmovne eax, edx
mov dword [ebp - 0x78], ebx
push eax
call fcn.00401f8f
xor ecx, ecx
add esi, 4
mov dword [ebp - 4], ecx
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x64], ecx
cmp dword [esi + 0x10], ecx
ja 0x4bad46
lea eax, [ebp - 0x58]
push eax
call fcn.004aefb1
pop ecx
push eax
mov ecx, esi
call fcn.00403bf9
lea ecx, [ebp - 0x58]
call fcn.00401ce8
xor ecx, ecx
cmp dword [esi + 0x14], 8
jb 0x4bad4e
mov esi, dword [esi]
lea eax, [ebp - 0x5c]
push eax
push 0x20119
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push reloc.WS2_32.dll_closesocket
call esi
test eax, eax
je 0x4bad82
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
push ecx
mov ecx, edi
call fcn.00401f8f
jmp 0x4baeb1
lea eax, [ebp - 0x6c]
push eax
push 0x20119
push 0
push 0x64bc48
push dword [ebp - 0x5c]
call esi
test eax, eax
je 0x4badb2
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
jmp 0x4bad76
lea eax, [ebp - 0x68]
push eax
push 0x20119
push 0
push dword [ebp - 0x70]
push dword [ebp - 0x6c]
call esi
test eax, eax
je 0x4baddb
push dword [ebp - 0x6c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x5c]
call esi
jmp 0x4bada4
lea eax, [ebp - 0x64]
push eax
push 0x20119
push 0
push dword [ebp - 0x74]
push dword [ebp - 0x68]
call esi
test eax, eax
je 0x4bae02
push dword [ebp - 0x64]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x68]
jmp 0x4badd2
lea eax, [ebp - 0x28]
xor esi, esi
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
call fcn.00401ad6
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 1
push eax
push esi
push esi
push esi
push ebx
push dword [ebp - 0x64]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x60], esi
call ebx
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x4bae84
inc eax
xor ecx, ecx
push 2
pop edx
mov dword [ebp - 0x60], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004d68e8
push dword [ebp - 0x60]
mov esi, eax
push 0
push esi
call fcn.004eddc0
add esp, 0x10
lea eax, [ebp - 0x60]
push eax
push esi
push 0
push 0
push dword [ebp - 0x78]
push dword [ebp - 0x64]
call ebx
test eax, eax
jne 0x4bae7d
push esi
lea ecx, [ebp - 0x40]
call fcn.00401f68
push esi
call fcn.004d609d
pop ecx
push dword [ebp - 0x64]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x68]
call esi
push dword [ebp - 0x6c]
call esi
push dword [ebp - 0x5c]
call esi
lea eax, [ebp - 0x40]
mov ecx, edi
push eax
call fcn.00403c58
lea ecx, [ebp - 0x40]
call fcn.00401ce8
lea ecx, [ebp - 0x28]
call fcn.00401ce8
mov eax, edi
call fcn.004d666d
ret 0x14
Function at 0x4baec3
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x6c9614]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
mov esi, ecx
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
cmp dword [esi + 0x14], ebx
ja 0x4baf1b
lea eax, [ebp - 0x1c]
push eax
call fcn.004aefb1
pop ecx
lea ecx, [esi + 4]
push eax
call fcn.00403bf9
lea ecx, [ebp - 0x1c]
call fcn.00401ce8
lea eax, [esi + 4]
cmp dword [eax + 0x14], 8
jb 0x4baf26
mov eax, dword [eax]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp - 0x20]
push ecx
push 0xf013f
push ebx
push eax
push reloc.WS2_32.dll_closesocket
call esi
test eax, eax
je 0x4baf49
xor al, al
jmp 0x4bb002
lea eax, [ebp - 0x24]
push eax
push 0xf013f
push ebx
push 0x64bc48
push dword [ebp - 0x20]
call esi
test eax, eax
je 0x4baf6c
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4baf42
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [ebp - 0x2c]
push ebx
push eax
push ebx
push 0xf013f
push ebx
push ebx
push ebx
push dword [ebp - 0x30]
push dword [ebp - 0x24]
call esi
test eax, eax
je 0x4baf9e
push dword [ebp - 0x24]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x20]
call esi
jmp 0x4baf42
push ebx
lea eax, [ebp - 0x28]
push eax
push ebx
push 0xf013f
push ebx
push ebx
push ebx
push dword [ebp - 0x34]
push dword [ebp - 0x2c]
call esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4baff1
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4bafc3
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edi
push 1
push ebx
push dword [ebp - 0x38]
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x28]
call esi
mov bl, 1
push dword [ebp - 0x2c]
call esi
push dword [ebp - 0x24]
call esi
push dword [ebp - 0x20]
call esi
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d5d93
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4bb015
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x6c9614]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
push 0x208
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x20c]
push 0
mov dword [ebp - 0x220], edi
mov edi, dword [ebp + 0xc]
push eax
mov dword [ebp - 0x21c], esi
call fcn.004eddc0
add esp, 0xc
mov ebx, 0x20019
lea eax, [ebp - 0x210]
push eax
push ebx
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x4bb0da
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0x104
push eax
xor eax, eax
push eax
push eax
push eax
push dword [ebp - 0x218]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x4bb0ce
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push esi
push dword [ebp - 0x218]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 2
jne 0x4bb0ff
cmp edi, reloc.OLEAUT32.dll_SysReAllocString
jne 0x4bb0ff
cmp ebx, 0x20019
jne 0x4bb0ff
mov esi, dword [ebp - 0x21c]
mov ebx, 0x20119
jmp 0x4bb064
mov ecx, dword [ebp - 0x220]
lea eax, [ebp - 0x20c]
push eax
call fcn.00401f8f
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x220]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004d5d93
mov esp, ebp
pop ebp
ret
Function at 0x4bc619
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, ecx
cmp byte [edx + 4], 0
je 0x4bc649
push esi
xor esi, esi
cmp dword [edx + 0x3cc], esi
jle 0x4bc648
mov ecx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
sub edi, ecx
mov al, byte [edi + ecx]
xor byte [ecx], al
inc ecx
inc esi
cmp esi, dword [edx + 0x3cc]
jl 0x4bc638
pop edi
pop esi
pop ebp
ret 8

Function at 0x4bc83f
Capabilities:
Encode data using base64

Disassembly:
push 0x10
mov eax, 0x638be5
call fcn.004d668f
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov edi, dword [ebp + 8]
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], 0xf
mov byte [edi], bl
mov eax, dword [ebp + 0x10]
mov edi, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], 1
test eax, eax
je 0x4bc9c6
push 3
pop esi
mov ecx, dword [ebp + 0xc]
dec eax
mov dword [ebp + 0x10], eax
mov al, byte [ecx]
mov byte [ebp + edi - 0x14], al
inc edi
mov dl, byte [ebp - 0x13]
inc ecx
mov dword [ebp + 0xc], ecx
mov ch, byte [ebp - 0x12]
mov cl, byte [ebp - 0x14]
mov byte [ebp - 0xf], ch
mov byte [ebp - 0xd], dl
mov byte [ebp - 0xe], cl
cmp edi, esi
jne 0x4bc90f
mov esi, dword [ebp + 8]
mov al, cl
shr al, 2
and cl, 3
mov byte [ebp - 0x18], al
mov edi, ebx
shl cl, 4
mov al, dl
shr al, 4
add cl, al
mov al, ch
mov byte [ebp - 0x17], cl
mov cl, dl
and cl, 0xf
shr al, 6
shl cl, 2
add cl, al
mov al, ch
and al, 0x3f
mov byte [ebp - 0x16], cl
mov byte [ebp - 0x15], al
cmp dword [0x6c94a0], 0x10
mov ecx, 0x6c948c
movzx eax, byte [ebp + edi - 0x18]
cmovae ecx, dword [0x6c948c]
movzx eax, byte [eax + ecx]
mov ecx, esi
push eax
call fcn.0040d400
inc edi
cmp edi, 4
jl 0x4bc8d7
mov dl, byte [ebp - 0xd]
mov edi, ebx
mov cl, byte [ebp - 0xe]
mov ch, byte [ebp - 0xf]
push 3
pop esi
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x4bc879
mov dword [ebp + 0x10], edi
test edi, edi
je 0x4bc9c6
mov eax, edi
cmp edi, esi
jge 0x4bc945
cmp eax, esi
jae 0x4bc9cf
mov byte [ebp + eax - 0x14], bl
inc eax
cmp eax, esi
jl 0x4bc92d
mov ch, byte [ebp - 0x12]
mov dl, byte [ebp - 0x13]
mov cl, byte [ebp - 0x14]
mov al, cl
and cl, 3
shr al, 2
mov byte [ebp - 0x18], al
mov al, dl
shr al, 4
and dl, 0xf
shl cl, 4
add cl, al
shl dl, 2
mov al, ch
mov byte [ebp - 0x17], cl
shr al, 6
and ch, 0x3f
add dl, al
mov byte [ebp - 0x15], ch
lea eax, [edi + 1]
mov byte [ebp - 0x16], dl
mov dword [ebp - 0x14], eax
test eax, eax
jle 0x4bc9b1
mov esi, dword [ebp + 8]
mov edi, eax
cmp dword [0x6c94a0], 0x10
mov ecx, 0x6c948c
movzx eax, byte [ebp + ebx - 0x18]
cmovae ecx, dword [0x6c948c]
movzx eax, byte [eax + ecx]
mov ecx, esi
push eax
call fcn.0040d400
inc ebx
cmp ebx, edi
jl 0x4bc982
mov edi, dword [ebp + 0x10]
push 3
pop esi
cmp edi, esi
jge 0x4bc9c6
sub esi, edi
mov ecx, dword [ebp + 8]
push 0x3d
call fcn.0040d400
sub esi, 1
jne 0x4bc9b7
mov eax, dword [ebp + 8]
call fcn.004d6658
ret
call fcn.004d6a14
int3
Function at 0x4c6850
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x64]
add ecx, 2
mov dword [ebp - 0x68], ecx
mov edx, dword [ebp - 0x64]
mov ax, word [edx]
mov word [ebp - 0x6a], ax
add dword [ebp - 0x64], 2
cmp word [ebp - 0x6a], 0
jne 0x4c6868
mov ecx, dword [ebp - 0x64]
sub ecx, dword [ebp - 0x68]
sar ecx, 1
mov dword [ebp - 0x70], ecx
mov edx, dword [ebp - 0x70]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
add eax, 1
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004d68e8
add esp, 4
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
add eax, 1
push eax
push 0
mov ecx, dword [ebp - 8]
push ecx
call fcn.004030f2
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
add ecx, 1
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.004fe3d8
add esp, 0xc
mov byte [ebp - 9], 1
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
jmp 0x4c68ff
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 4]
jg 0x4c696d
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + eax*2]
cmp edx, 0x5c
jne 0x4c696b
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
mov dx, word [ecx + eax*2]
mov word [ebp - 0x18], dx
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
mov word [edx + ecx*2], ax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4c6954
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4c6954
mov byte [ebp - 9], 0
jmp 0x4c696d
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
mov dx, word [ebp - 0x18]
mov word [ecx + eax*2], dx
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x14], eax
jmp 0x4c68f6
mov eax, dword [ebp - 8]
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x60]
push ecx
call fcn.004d609d
add esp, 4
mov al, byte [ebp - 9]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret