joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409110
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43a82b
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x448050]
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 esi, ecx
lea eax, [ebp - 0x21c]
xor ebx, ebx
push eax
mov ecx, 0x43f498
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x21c], ebx
call fcn.00405cd0
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, dword [0x44c38c]
push eax
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str._udata.udat
lea edx, [ebp - 0x218]
push 0x104
push edx
call fcn.00426bfd
add esp, 0xc
push ebx
push ebx
push 4
push ebx
push 3
push SysReAllocString
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
cmp edi, ebx
jne 0x4091e0
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
call fcn.004054c0
jmp 0x409299
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov ebx, eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea ecx, [ebx + 1]
push ecx
call fcn.00424770
add esp, 4
push 0
lea edx, [ebp - 0x224]
push edx
push ebx
mov esi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov byte [esi + ebx], 0
test esi, esi
jne 0x40921e
xor eax, eax
xor ecx, ecx
jmp 0x409266
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
lea ebx, [eax + 1]
cmp ebx, 0x3fffffff
jle 0x409236
xor eax, eax
xor ecx, ecx
jmp 0x409266
lea eax, [ebx + ebx]
call fcn.00433400
mov eax, esp
push 3
push ebx
push esi
push eax
call fcn.0040c6e0
test eax, eax
jne 0x409252
xor ecx, ecx
jmp 0x409266
mov ecx, eax
lea ebx, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x409257
sub ecx, ebx
sar ecx, 1
push eax
lea eax, [ebp - 0x21c]
push eax
mov ebx, ecx
call fcn.00405be0
push esi
call fcn.0042477b
add esp, 4
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
call fcn.004054c0
mov esi, dword [ebp - 0x220]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4092c7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
lea esp, [ebp - 0x234]
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.00424761
mov esp, ebp
pop ebp
ret
Function at 0x409b20
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43a801
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push edi
mov eax, dword [0x448050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp + 8]
push eax
mov ecx, 0x43f498
call fcn.00405cd0
mov dword [ebp - 4], ebx
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov edi, 1
mov ecx, section..data
mov dword [ebp - 0x14], edi
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0xc]
push esi
push str.1717WAN_
push ecx
mov dword [ebp - 4], edi
push str._s_s_s.lnk
lea edi, [ebp - 0x10]
call fcn.0040b730
mov edi, dword [ebp - 0x10]
add esp, 0x10
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x409beb
push edi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov edx, dword [ebp + 8]
push str.1717WAN_
push edx
mov ebx, 8
call fcn.00405be0
test esi, esi
jne 0x409bcb
xor eax, eax
jmp 0x409bdf
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409bd0
sub eax, edx
sar eax, 1
mov ebx, dword [ebp + 8]
push eax
push esi
call fcn.00405390
xor ebx, ebx
mov ecx, dword [edi - 0x10]
lea eax, [edi - 0x10]
mov dword [ebp - 0x18], ecx
cmp dword [eax + 4], ebx
je 0x409c40
cmp dword [eax + 0xc], ebx
lea edx, [eax + 0xc]
jge 0x409c1a
cmp dword [edi - 8], ebx
jge 0x409c10
push 0x80070057
call fcn.00405490
xor eax, eax
mov dword [edi - 0xc], ebx
mov word [edi], ax
jmp 0x409c40
or edi, 0xffffffff
lock xadd dword [edx], edi
dec edi
test edi, edi
jg 0x409c33
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0xc]
push esi
push str.PPTV_
push ecx
push str._s_s_s.lnk
lea edi, [ebp - 0x10]
call fcn.0040b730
mov edi, dword [ebp - 0x10]
add esp, 0x10
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x409cab
push edi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov edx, dword [ebp + 8]
push str.PPTV_
push edx
mov ebx, 5
call fcn.00405be0
test esi, esi
jne 0x409c8a
xor eax, eax
jmp 0x409c9f
mov eax, esi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409c90
sub eax, edx
sar eax, 1
mov ebx, dword [ebp + 8]
push eax
push esi
call fcn.00405390
xor ebx, ebx
lea eax, [edi - 0x10]
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409cca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409ce0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43a108
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x448050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 0x10], esi
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
push ebx
push str.PPTV_
push eax
push str._s_s_s.lnk
lea edi, [ebp - 0x10]
mov dword [ebp - 4], esi
call fcn.0040b730
mov esi, dword [ebp - 0x10]
add esp, 0x10
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x409d93
add esi, 0xfffffff0
mov eax, esi
call fcn.004054c0
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409dfe
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea esi, [ebp - 0x10]
call fcn.00405d70
mov eax, dword [ebp + 0xc]
push ebx
push str.1717WAN_
push eax
push str._s_s_s.lnk
mov edi, esi
call fcn.0040b730
mov esi, dword [ebp - 0x10]
add esp, 0x10
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x409d4a
mov esi, edi
call fcn.00405d70
mov esi, dword [ebp - 0x10]
add esi, 0xfffffff0
mov eax, esi
call fcn.004054c0
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x409dfe
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40c940
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x448050]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
mov dword [ebp - 0x58], ebx
test edi, edi
je 0x40c9a4
push edi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x40c9a4
lea ebx, [eax + eax]
mov eax, ebx
call fcn.00433400
mov esi, esp
test esi, esi
je 0x40c9a1
push 0
push 0
push ebx
push esi
push 0xffffffffffffffff
push edi
push 0
push 3
mov byte [esi], 0
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
mov ebx, dword [ebp - 0x58]
neg eax
sbb eax, eax
and eax, esi
jmp 0x40c9a6
mov ebx, dword [ebp - 0x58]
xor eax, eax
mov ecx, eax
lea esi, [ecx + 1]
jmp 0x40c9b0
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x40c9b0
sub ecx, esi
mov esi, ecx
mov ecx, 0x4494f0
call fcn.0040b1c0
push edi
push 1
push 0
call dword [sym.imp.KERNEL32.DLL_CreateMutexW]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
je 0x40ca58
mov ecx, 0x10
mov esi, 0x43fa70
lea edi, [ebp - 0x54]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea eax, [ebp - 0x54]
xor esi, esi
push 4
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x7c], 0x40cc40
mov dword [ebp - 0x70], ebx
call dword [sym.imp.GDI32.dll_GetStockObject]
push 0x64
push esi
mov dword [ebp - 0x64], eax
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x7f00
push esi
mov dword [ebp - 0x6c], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
lea ecx, [ebp - 0x80]
push ecx
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x80], 3
call dword [sym.imp.USER32.dll_RegisterClassW]
test ax, ax
jne 0x40ca5f
push 0x10
push str.Error
push str.RegisterClassError_
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x40cafb
push esi
push ebx
push esi
push esi
push 0x4b
push 0xcf
push esi
push esi
push SysReAllocString
push str.Win32_API
push str.PPTVIconBubble_12345678987654321
push 0x80
mov dword [0x44c2d0], ebx
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x44c2cc], eax
cmp eax, esi
je 0x40ca58
mov edx, dword [ebp + 8]
push edx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x44c2cc]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
push esi
push esi
push esi
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
lea ecx, [ebp - 0x9c]
push ecx
call esi
test eax, eax
je 0x40caf5
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
mov edi, edi
lea edx, [ebp - 0x9c]
push edx
call edi
lea eax, [ebp - 0x9c]
push eax
call ebx
push 0
push 0
push 0
lea ecx, [ebp - 0x9c]
push ecx
call esi
test eax, eax
jne 0x40cad0
mov eax, dword [ebp - 0x94]
lea esp, [ebp - 0xac]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00424761
mov esp, ebp
pop ebp
ret 4
Function at 0x40cb20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov ebx, eax
test ebx, ebx
jne 0x40cb3d
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov edi, eax
test edi, edi
je 0x40cb8a
push ebx
push 0
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40cb8a
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
test eax, eax
je 0x40cb8a
push ebx
push edi
push eax
call fcn.0042c740
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 0
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jns 0x40cb93
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
push ecx
call fcn.0040da30
add esp, 4
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
push edi
call dword [sym.imp.KERNEL32.DLL_FreeResource]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40dab0
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
cmp dword [edi], esi
jae 0x40dac0
mov eax, 0xea
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
push esi
push eax
push esi
push ebx
call fcn.00425cbe
add esp, 0x10
cmp eax, 0x50
ja case.0x40dadb.1
movzx ecx, byte [eax + 0x40db4c]
jmp dword [ecx*4 + 0x40db3c]
push 0x8007000e
call fcn.00405490
push 0x80070057
call fcn.00405490
mov edx, dword [edi]
mov ecx, dword [0x44c4a0]
push edx
mov edx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
mov eax, dword [edx]
push ebx
push 0
push 1
push ecx
push eax
mov dword [ebp + 0xc], esi
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x40db25
call fcn.00411660
pop ebp
ret 8
mov ecx, dword [ebp + 0xc]
mov dword [edi], ecx
xor eax, eax
pop ebp
ret 8
push 0x80004005
call fcn.00405490
mov edi, edi
neg dl
inc eax
add dl, ah
fiadd dword [eax]
in al, dx
fiadd dword [eax]
xor bl, bl
inc eax
add byte [eax], al
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ecx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [edx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [edx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [eax]
int3
Function at 0x40dba0
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebx], esi
jae 0x40dbb0
mov eax, 0xea
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
push esi
push eax
push esi
push edi
call fcn.00425cbe
add esp, 0x10
cmp eax, 0x50
ja case.0x40dbcb.1
movzx ecx, byte [eax + 0x40dc38]
jmp dword [ecx*4 + 0x40dc28]
push 0x8007000e
call fcn.00405490
push 0x80070057
call fcn.00405490
mov eax, dword [0x44c4a0]
mov ecx, dword [ebp + 8]
lea edx, [ebp + 0xc]
push edx
mov edx, dword [ecx]
push edi
push 0
push 1
push eax
push edx
mov dword [ebp + 0xc], esi
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x40dc11
call fcn.00411660
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
mov dword [ebx], eax
xor eax, eax
pop ebp
ret 8
push 0x80004005
call fcn.00405490
mov edi, edi
out 0xdb, al
inc eax
add dl, dl
fild dword [eax]
invalid
Function at 0x40f590
Capabilities:
Get common file path
Get file size
Query environment variable
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4397fd
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x448050]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x238], eax
mov edi, ecx
mov dword [ebp - 0x224], eax
mov byte [ebp - 0x234], al
xor esi, esi
mov eax, 0x43ef1c
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x240], ebx
mov dword [ebp - 0x220], 0xf
call fcn.0040b1c0
mov dword [ebp - 4], 1
cmp byte [edi + 0x20], 0
je 0x40f67b
lea eax, [ebp - 0x218]
push eax
push 1
push esi
push 0x1a
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x40f667
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push str.USERPROFILE
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
mov esi, eax
test esi, esi
je 0x40f64a
push str.Application_Data
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
jmp 0x40f663
push 0x104
lea eax, [ebp - 0x218]
push eax
push str.ProgramFiles
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
mov esi, eax
test esi, esi
je 0x40f686
push str.PPLiveWebGameClient
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
jmp 0x40f686
lea esi, [ebp - 0x218]
call fcn.00408e10
mov edi, dword [edi]
push edi
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str._idata.inmk
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00426bfd
add esp, 0xc
push 0
push 0
push 4
push 0
push 3
push SysReAllocString
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [ebp - 0x23c], eax
test eax, eax
jne 0x40f715
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], eax
lea edi, [ebp - 0x234]
mov esi, ebx
mov byte [ebx], al
call fcn.0040adf0
mov byte [ebp - 4], 0
cmp dword [ebp - 0x220], 0x10
mov dword [ebp - 0x238], 1
jb 0x40f7c7
mov edx, dword [ebp - 0x234]
push edx
jmp 0x40f7bf
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea eax, [esi + 1]
push eax
call fcn.00424770
mov edx, dword [ebp - 0x23c]
add esp, 4
push 0
lea ecx, [ebp - 0x244]
push ecx
push esi
mov edi, eax
push edi
push edx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov eax, edi
mov byte [edi + esi], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40f755
sub eax, edx
mov esi, eax
mov eax, edi
lea ecx, [ebp - 0x234]
call fcn.0040b1c0
push edi
call fcn.0042477b
mov eax, dword [ebp - 0x23c]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], 0
lea edi, [ebp - 0x234]
mov esi, ebx
mov byte [ebx], 0
call fcn.0040adf0
mov byte [ebp - 4], 0
cmp dword [ebp - 0x220], 0x10
mov dword [ebp - 0x238], 1
jb 0x40f7c7
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.00424756
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00424761
mov esp, ebp
pop ebp
ret
Function at 0x410ca0
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x443eb8
push 0x427ac0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x448050]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov dword [edi], ebx
push 8
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push str.PPTVPASSPORT
push eax
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
call esi
test eax, eax
jne 0x410d2c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x8009000f
jne 0x410e4e
push ebx
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push str.PPTVPASSPORT
mov eax, dword [ebp + 8]
push eax
call esi
test eax, eax
je 0x410e4e
push edi
push 1
push 1
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptGenKey]
test eax, eax
je 0x410e4e
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 7
push 0
mov ecx, dword [edi]
push ecx
mov esi, dword [sym.imp.ADVAPI32.dll_CryptExportKey]
call esi
test eax, eax
je 0x410e4e
mov edx, dword [ebp - 0x20]
push edx
push 0x40
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov ebx, eax
mov dword [ebp - 0x24], ebx
test ebx, ebx
je 0x410e4e
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push 7
push 0
mov ecx, dword [edi]
push ecx
call esi
test eax, eax
je 0x410e4e
mov edx, dword [edi]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov dword [edi], 0
mov esi, dword [ebx + 0xc]
lea ecx, [ebx + 0x10]
xor eax, eax
mov dword [ebp - 0x1c], eax
cmp eax, 4
jge 0x410dc5
test eax, eax
jne 0x410dbe
mov byte [ecx], 1
inc eax
jmp 0x410dac
mov byte [eax + ecx], 0
inc eax
jmp 0x410dac
mov edx, esi
shr edx, 4
mov eax, esi
shr eax, 3
add eax, ecx
lea eax, [eax + edx*2 + 4]
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
cmp ecx, edx
jae 0x410def
test ecx, ecx
jne 0x410de8
mov byte [eax], 1
inc ecx
jmp 0x410dd7
mov byte [ecx + eax], 0
inc ecx
jmp 0x410dd7
add eax, edx
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
cmp ecx, edx
jae 0x410e0b
test ecx, ecx
jne 0x410e04
mov byte [eax], 1
inc ecx
jmp 0x410df3
mov byte [ecx + eax], 0
inc ecx
jmp 0x410df3
lea ecx, [eax + edx*2]
xor eax, eax
mov dword [ebp - 0x1c], eax
mov edx, esi
shr edx, 3
cmp eax, edx
jae 0x410e2d
test eax, eax
jne 0x410e26
mov byte [ecx], 1
inc eax
jmp 0x410e10
mov byte [eax + ecx], 0
inc eax
jmp 0x410e10
push edi
push 0
push 0
mov eax, dword [ebp - 0x20]
push eax
push ebx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x410e4e
mov dword [ebp - 0x28], 1
mov dword [ebp - 4], 0xfffffffe
call fcn.00410e74
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x410f60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
test edi, edi
jne 0x410f72
push 0x80004005
call fcn.00405490
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push edi
push esi
lea eax, [ebp - 4]
push eax
mov eax, dword [edx]
push 0
push ecx
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test esi, esi
je 0x410fd7
mov ecx, dword [edi]
test ecx, ecx
je 0x410fd2
mov edx, dword [ebp - 4]
test edx, edx
je 0x410ffc
cmp edx, 2
jbe 0x410fdd
cmp edx, 7
jne 0x410ffc
test cl, 1
jne 0x410fcd
shr ecx, 1
cmp ecx, 1
jb 0x410fcd
cmp word [esi + ecx*2 - 2], 0
jne 0x410fcd
cmp ecx, 1
jbe 0x410fd7
cmp word [esi + ecx*2 - 4], 0
je 0x410fd7
mov eax, 0xd
xor ecx, ecx
mov word [esi], cx
mov esp, ebp
pop ebp
ret 8
test cl, 1
jne 0x410fec
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x410fd7
xor edx, edx
mov word [esi], dx
mov eax, 0xd
mov esp, ebp
pop ebp
ret 8
xor eax, eax
mov word [esi], ax
mov eax, 0xd
mov esp, ebp
pop ebp
ret 8
Function at 0x411350
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
mov esi, eax
test edi, edi
je 0x41150a
test esi, esi
je 0x41150a
cmp dword [ebp + 0xc], 0
je 0x41150a
mov ebx, dword [ebp + 8]
mov eax, ebx
call fcn.00411520
mov ecx, dword [ebp + 0xc]
cmp dword [ecx], eax
jl 0x41150a
mov eax, 0x55555556
imul ebx
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
lea edx, [ecx*4]
mov eax, 0x6bca1af3
imul edx
sar edx, 5
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], ecx
mov eax, 0x13
mov dword [ebp - 8], 0
js 0x411486
cmp dword [ebp - 8], ebx
jne 0x4113ea
mov edx, ebx
imul edx, edx, 0x4c
lea eax, [ecx*4]
sub eax, edx
cdq
and edx, 3
add eax, edx
sar eax, 2
test eax, eax
jle 0x411458
mov dword [ebp - 0xc], eax
movzx ecx, byte [edi]
movzx edx, byte [edi + 1]
shl ecx, 8
or ecx, edx
movzx edx, byte [edi + 2]
shl ecx, 8
or ecx, edx
shl ecx, 8
mov edx, ecx
shr edx, 0x1a
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_N]
mov byte [esi], dl
shl ecx, 6
mov edx, ecx
shr edx, 0x1a
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_N]
shl ecx, 6
mov byte [esi + 1], dl
mov edx, ecx
shr edx, 0x1a
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_N]
shr ecx, 0x14
and ecx, 0x3f
mov byte [esi + 2], dl
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_N]
mov byte [esi + 3], cl
add edi, 3
add esi, 4
dec dword [ebp - 0xc]
jne 0x4113f1
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
lea edx, [edx + eax*4 + 2]
mov dword [ebp - 4], edx
mov edx, dword [ebp - 8]
inc edx
mov word [esi], 0xa0d
add esi, 2
mov dword [ebp - 8], edx
cmp edx, ebx
jle 0x4113ce
cmp dword [ebp - 4], 0
je 0x411486
sub esi, 2
sub dword [ebp - 4], 2
lea eax, [ecx + ecx*2]
mov ecx, dword [ebp + 8]
sub ecx, eax
je 0x4114f6
lea edx, [ecx + 1]
test edx, edx
je 0x4114f6
xor eax, eax
test ecx, ecx
jle 0x4114a1
movzx eax, byte [edi]
inc edi
shl eax, 8
cmp ecx, 1
jle 0x4114af
movzx ebx, byte [edi]
or eax, ebx
inc edi
shl eax, 8
cmp ecx, 2
jle 0x4114bc
movzx ecx, byte [edi]
or eax, ecx
shl eax, 8
test edx, edx
jle 0x4114d9
mov ecx, edx
mov edi, eax
shr edi, 0x1a
mov bl, byte [edi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_N]
mov byte [esi], bl
inc esi
shl eax, 6
dec ecx
jne 0x4114c5
add dword [ebp - 4], edx
mov edi, 4
sub edi, edx
test edi, edi
jle 0x4114f3
push edi
push 0x3d
push esi
call fcn.00427020
add esp, 0xc
add dword [ebp - 4], edi
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret