joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c3eb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4439cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00408a64
and dword [ebp - 0x14], 0
cmp dword [0x2c5ef2c], 0
mov dword [ebp - 0x18], eax
jne 0x40c49e
push 0x402220
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40c546
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402214
push ebx
call edi
test eax, eax
je 0x40c546
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x402204
push ebx
mov dword [0x2c5ef2c], eax
call edi
push eax
call esi
push 0x4021f0
push ebx
mov dword [0x2c5ef30], eax
call edi
push eax
call esi
push 0x4021d4
push ebx
mov dword [0x2c5ef34], eax
call edi
push eax
call esi
mov dword [0x2c5ef3c], eax
test eax, eax
je 0x40c49e
push 0x4021bc
push ebx
call edi
push eax
call esi
mov dword [0x2c5ef38], eax
mov eax, dword [0x2c5ef38]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40c4f7
cmp dword [0x2c5ef3c], ecx
je 0x40c4f7
push eax
call esi
push dword [0x2c5ef3c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40c4f7
test ebx, ebx
je 0x40c4f7
call edi
test eax, eax
je 0x40c4ee
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40c4ee
test byte [ebp - 8], 1
jne 0x40c4f7
or dword [ebp + 0x10], 0x200000
jmp 0x40c52a
mov eax, dword [0x2c5ef30]
cmp eax, dword [ebp - 0x18]
je 0x40c52a
push eax
call esi
test eax, eax
je 0x40c52a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40c52a
mov eax, dword [0x2c5ef34]
cmp eax, dword [ebp - 0x18]
je 0x40c52a
push eax
call esi
test eax, eax
je 0x40c52a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x2c5ef2c]
call esi
test eax, eax
je 0x40c546
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40c548
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409037
leave
ret
Function at 0x401020
Capabilities:
Accept command line arguments
Identify system language via api
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401069
push str.SetDefaultDllDirectories
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x401069
push 0x800
mov ecx, esi
call dword [0x424300]
call esi
test eax, eax
jne 0x4010a8
push 0x424604
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4010a8
push str.LdrEnumerateLoadedModules
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4010a8
push 0
push 0x401180
push 0
mov ecx, esi
call dword [0x424300]
call esi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx edi, ax
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, 1
mov ebx, eax
cmp dword [ebp - 4], esi
jle 0x40111c
nop word [eax + eax]
push str._langId:
push dword [ebx + esi*4]
call dword [sym.imp.SHLWAPI.dll_StrStrW]
test eax, eax
je 0x4010f7
add eax, 0x10
jmp 0x40110c
push str._language:
push dword [ebx + esi*4]
call dword [sym.imp.SHLWAPI.dll_StrStrW]
test eax, eax
je 0x401116
add eax, 0x14
push eax
call dword [sym.imp.SHLWAPI.dll_StrToIntW]
movzx edi, ax
inc esi
cmp esi, dword [ebp - 4]
jl 0x4010e0
test ebx, ebx
je 0x401127
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0xa
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
jne 0x40114c
push edi
push 0x2777
call fcn.00403e90
add esp, 8
push 0xc000001d
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.004090c0
cmp eax, 0x6010100
jae 0x401171
push edi
push 0x2778
call fcn.00403e90
add esp, 8
push 0x47e
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.004119ae
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4026b0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x42f008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x28]
mov ebx, dword [ebp + 0x20]
mov esi, dword [ebp + 0x18]
mov dword [ebp - 0x44], eax
movzx eax, byte [ebp + 0x14]
mov dword [ebp - 0x40], eax
mov ax, word [ebp + 0xc]
mov dword [ebp - 0x2c], esi
mov esi, dword [ebp - 0x48]
mov dword [ebp - 0x3c], ecx
mov word [ebp - 0x38], ax
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], ebx
mov edi, dword [ebp + 0x24]
mov dword [ebp - 8], edi
cmp esi, 0xffffffff
je 0x40276a
push 0
push 0
xorps xmm0, xmm0
movq qword [ebp - 0x4c], xmm0
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x402760
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x40276a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x4027c4
test ebx, ebx
je 0x402774
mov dword [ebx], 0
test edi, edi
je 0x40277e
mov dword [edi], 0
xor esi, esi
lea eax, [ebp - 0x44]
push eax
call fcn.004029f0
add esp, 4
test al, al
jne 0x40279a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x4027af
mov eax, 0x51eb851f
mul dword [ebp - 0x20]
shr edx, 5
cmp edx, 2
je 0x4027c2
mov edi, 0x10dc
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 5
jl 0x402780
jmp 0x4027c4
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
test edi, edi
pop edi
sete al
xor ecx, ebp
pop esi
pop ebx
call fcn.00411c8e
mov esp, ebp
pop ebp
ret
Function at 0x4033f0
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x42f008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x44]
push 0x20
xor esi, esi
push eax
mov dword [ebp - 0x48], esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x4034a0
cmp eax, 0x20
ja 0x4034a0
call fcn.0040a340
push esi
mov ebx, eax
mov dword [ebp - 0x58], edx
lea eax, [ebp - 0x48]
push eax
push 1
push str.D:P_A_CIOI_FA___SY__A_CIOI_FA___BA__A_CIOI_FRFX___BU_
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorA
test eax, eax
je 0x4034a0
mov eax, dword [ebp - 0x48]
push ebx
push dword [ebp - 0x58]
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x44]
push eax
push str._sTemp_asw._08x_08x
push edi
mov dword [ebp - 0x54], 0xc
mov dword [ebp - 0x4c], esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea eax, [ebp - 0x54]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4034a8
movzx eax, word [ebp - 0x44]
push ebx
push dword [ebp - 0x58]
push eax
push str._c:_asw._08x_08x
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea eax, [ebp - 0x54]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4034a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x4034b6
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
test esi, esi
pop edi
sete al
xor ecx, ebp
pop esi
pop ebx
call fcn.00411c8e
mov esp, ebp
pop ebp
ret
Function at 0x4034e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push 0xa
push str.EDAT_ECOO
push 0x400000
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x4035f9
push edi
push ebx
push 0x400000
call dword [sym.imp.KERNEL32.dll_LoadResource]
push ebx
push 0x400000
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x4035f8
cmp ebx, 0x40
jae 0x4035f8
test edi, edi
je 0x4035f8
mov ecx, dword [esi + 0x10]
cmp ebx, ecx
ja 0x403556
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x40354b
mov eax, dword [esi]
xor ecx, ecx
mov dword [esi + 0x10], ebx
mov word [eax + ebx*2], cx
jmp 0x403562
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.00403f70
cmp dword [esi + 0x14], 8
jb 0x40356a
mov esi, dword [esi]
lea eax, [ebx + edi]
xor edx, edx
xor ecx, ecx
cmp edi, eax
cmova ebx, edx
test ebx, ebx
je 0x4035f8
cmp ebx, 0x20
jb 0x4035e2
lea eax, [edi - 1]
add eax, ebx
lea edx, [ebx - 1]
lea edx, [esi + edx*2]
cmp esi, eax
ja 0x403592
cmp edx, edi
jae 0x4035e2
mov eax, ebx
and eax, 0xffffffe0
nop word [eax + eax]
movq xmm1, qword [edi]
xorps xmm0, xmm0
punpcklbw xmm1, xmm0
add ecx, 0x20
movups xmmword [esi], xmm1
movq xmm1, qword [edi + 8]
punpcklbw xmm1, xmm0
movups xmmword [esi + 0x10], xmm1
movq xmm1, qword [edi + 0x10]
punpcklbw xmm1, xmm0
movups xmmword [esi + 0x20], xmm1
movq xmm1, qword [edi + 0x18]
add edi, 0x20
punpcklbw xmm1, xmm0
movups xmmword [esi + 0x30], xmm1
add esi, 0x40
cmp ecx, eax
jne 0x4035a0
cmp ecx, ebx
je 0x4035f8
sub edi, ecx
movzx eax, byte [edi + ecx]
lea esi, [esi + 2]
inc ecx
mov word [esi - 2], ax
cmp ecx, ebx
jne 0x4035e8
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x403b20
Capabilities:
Extract resource via kernel32 functions
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x42f008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x10], ecx
push esi
push esi
push esi
push 0x1000002
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
test ebx, ebx
jne 0x403b60
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x403bf6
push edi
push 0
push 0
push 0
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0x403b80
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x403bee
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x403bdf
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x403bdf
lea ecx, [ebp - 8]
mov dword [ebp - 0xc], esi
push ecx
lea ecx, [ebp - 0xc]
push ecx
push 0x424850
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x403bdf
mov ecx, dword [ebp - 0xc]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push 0x424854
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
jmp 0x403be7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
test esi, esi
pop esi
sete al
xor ecx, ebp
pop ebx
call fcn.00411c8e
mov esp, ebp
pop ebp
ret
Function at 0x403c20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x42f008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, 0x400000
push 0x10
cmovne esi, eax
mov dword [ebp - 0x18], ecx
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x403d1f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x403d1f
lea eax, [ebp - 0xc]
mov dword [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x14]
push eax
push 0x424850
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x403d1f
mov ecx, dword [ebp - 0x14]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push 0x424854
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
test ebx, ebx
je 0x403ce3
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push str.StringFileInfo040904b0Edition
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x403ce3
push dword [ebp - 0x10]
call fcn.004160ba
add esp, 4
mov dword [ebx], eax
test edi, edi
je 0x403d0c
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push str.StringFileInfo040904b0SubEdition
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x403d0c
push dword [ebp - 0x10]
push 0x40
push edi
call fcn.004154b6
add esp, 0xc
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411c8e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411c8e
mov esp, ebp
pop ebp
ret

Function at 0x403dd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x42f008]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, word [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push eax
mov eax, ebx
mov esi, ebx
shr eax, 4
and esi, 0xf
inc eax
movzx eax, ax
push eax
push 6
push 0x400000
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x403e40
push eax
push 0x400000
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edx, eax
test edx, edx
je 0x403e40
xor ecx, ecx
nop
movzx eax, word [edx]
add edx, 2
mov edi, eax
test ax, ax
je 0x403e36
cmp ecx, esi
je 0x403e6d
lea edx, [edx + edi*2]
jmp 0x403e3a
cmp ecx, esi
je 0x403e40
inc ecx
cmp ecx, 0x10
jl 0x403e20
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push ebx
push 0x400000
call dword [sym.imp.USER32.dll_LoadStringW]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411c8e
mov esp, ebp
pop ebp
ret
test edx, edx
je 0x403e40
mov ecx, dword [ebp - 4]
mov eax, edx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411c8e
mov esp, ebp
pop ebp
ret
Function at 0x4048c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x42f008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 8]
push ecx
push 0
push eax
push 0x4044d0
push 0
push 0
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x4048fb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], 0
je 0x404908
lock inc dword [0x42fa04]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411c8e
mov esp, ebp
pop ebp
ret

Function at 0x404920
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x42f008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 8]
push ecx
push 0
push eax
push 0x404670
push 0
push 0
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x40495b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], 0
je 0x404968
lock inc dword [0x42fa04]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411c8e
mov esp, ebp
pop ebp
ret
Function at 0x408f50
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4233c0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x42f008]
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 eax, dword [ebp + 8]
lea ecx, [ebp - 0x1c]
push ecx
push 8
push eax
mov dword [ebp - 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x409053
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x20], edi
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push 0x19
push edi
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov eax, dword [ebp - 0x14]
xor ecx, ecx
shr eax, 3
mov edx, 8
inc eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004120e3
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
push dword [ebp - 0x14]
push esi
push 0x19
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x409075
mov ebx, dword [esi]
push ebx
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x409097
push ebx
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthorityCount]
movzx eax, byte [eax]
dec eax
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
push esi
mov ebx, dword [eax]
call fcn.004120ec
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
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.00411c8e
mov esp, ebp
pop ebp
ret
push str.Unable_to_open_process_token_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x30]
call fcn.00408ea0
push 0x42c3e0
lea eax, [ebp - 0x30]
push eax
call fcn.0041314a
push str.Unable_to_retrieve_process_mandatory_label_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x30]
call fcn.00408ea0
push 0x42c3e0
lea eax, [ebp - 0x30]
push eax
call fcn.0041314a
push str.Unable_to_verify_mandatory_label_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x40]
call fcn.00408ea0
push 0x42c3e0
lea eax, [ebp - 0x40]
push eax
call fcn.0041314a
int3
Function at 0x409500
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423460
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x42f008]
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, dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4095e9
cmp dword [ebp - 0x14], 0
jl 0x409561
jg 0x409552
cmp dword [ebp - 0x18], 0x40000000
jbe 0x409561
push str.Unable_to_process_files_over_1GB_
push 0xdf
jmp 0x4095f5
push 0
push 0
push 0
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
test esi, esi
jne 0x40957f
push str.Unable_to_open_file_mapping_
jmp 0x4095ee
mov dword [ebp - 0x2c], esi
push 0
push 0
push 0
push 4
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0x4095a5
push str.Unable_to_open_file_mapping_
jmp 0x4095ee
mov dword [ebp - 0x30], edi
push dword [ebp + 0xc]
mov byte [ebp - 4], 1
push dword [ebp - 0x18]
push edi
call fcn.00409610
add esp, 0xc
mov bl, al
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
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.00411c8e
mov esp, ebp
pop ebp
ret
push str.Unable_to_determine_file_size_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x28]
call fcn.00408ea0
push 0x42c3e0
lea eax, [ebp - 0x28]
push eax
call fcn.0041314a
int3
Function at 0x409eb0
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4234d8
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x42f008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x78], esi
mov dword [esi], 0
movups xmm0, xmmword [str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider]
mov eax, dword [0x425aec]
mov dword [ebp - 0x40], eax
mov ax, word [0x425af0]
movups xmmword [ebp - 0x70], xmm0
push 0x2a
movups xmm0, xmmword [0x425acc]
mov word [ebp - 0x3c], ax
lea eax, [ebp - 0x3a]
push 0
movups xmmword [ebp - 0x60], xmm0
push eax
movups xmm0, xmmword [0x425adc]
mov dword [ebp - 4], 0
movups xmmword [ebp - 0x50], xmm0
call fcn.00412ff0
add esp, 0xc
call fcn.004090c0
cmp eax, 0x5020000
jae 0x409f4c
push str.__Prototype_
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0xf0000040
push 0x18
lea eax, [ebp - 0x70]
push eax
push 0
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x409f97
mov eax, dword [esi]
mov ecx, dword [ebp - 0x74]
mov dword [esi], ecx
test eax, eax
je 0x409f7b
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00411c8e
mov esp, ebp
pop ebp
ret
push str.Unable_to_acquire_cryptographic_provider_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x88]
call fcn.00408ea0
push 0x42c3e0
lea eax, [ebp - 0x88]
push eax
call fcn.0041314a
int3
Function at 0x40a000
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423519
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x42f008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x14]
mov edi, dword [ebp + 0xc]
push 0
push 0
push eax
push 0
push 1
mov dword [ebp - 0x20], esi
push 0
mov dword [ebp - 0x1c], 0
push edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40a0c2
lea ecx, [ebp - 0x15]
xorps xmm0, xmm0
push ecx
movq qword [esi], xmm0
mov ecx, esi
push eax
mov dword [esi + 8], 0
call fcn.00409e10
push 0
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push eax
push dword [esi]
mov dword [ebp - 0x1c], 1
push 1
push 0
push edi
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
je 0x40a0e4
mov eax, esi
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.00411c8e
mov esp, ebp
pop ebp
ret
push str.Unable_to_decode_base64_string_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x30]
call fcn.00408ea0
push 0x42c3e0
lea eax, [ebp - 0x30]
push eax
call fcn.0041314a
push str.Unable_to_decode_base64_string_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x30]
call fcn.00408ea0
push 0x42c3e0
lea eax, [ebp - 0x30]
push eax
call fcn.0041314a
int3