joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40dca0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40dccd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40dccd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4569d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x4f000]
push edi
jmp 0x4569ea
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4569f1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4569e0
mov eax, 1
add ebx, ebx
jne 0x456a03
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4569f8
jne 0x456a14
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4569f8
xor ecx, ecx
sub eax, 3
jb 0x456a28
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x456a9a
mov ebp, eax
add ebx, ebx
jne 0x456a33
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x456a40
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x456a64
inc ecx
add ebx, ebx
jne 0x456a50
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x456a45
jne 0x456a61
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x456a45
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x456a84
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x456a75
jmp 0x4569e6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x456a84
add edi, ecx
jmp 0x4569e6
pop esi
mov edi, esi
mov ecx, 0x3ec
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x456aa2
cmp byte [edi], 5
jne 0x456aa2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x456aa7
lea edi, [esi + 0x54000]
mov eax, dword [edi]
or eax, eax
je 0x456b16
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x564a0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x56518]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x456ad4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x5651c]
or eax, eax
je 0x456b10
mov dword [ebx], eax
add ebx, 4
jmp 0x456af1
call dword [esi + 0x5652c]
mov ebp, dword [esi + 0x56520]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x456b4a
sub esp, 0xffffff80
jmp 0x402c35
Function at 0x401020
Capabilities:
Terminate process

Disassembly:
push esi
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 0x401063
push str.SetDefaultDllDirectories
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x401063
push 0x800
mov ecx, esi
call dword [0x4232e0]
call esi
test eax, eax
jne 0x4010a2
push 0x4235c4
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4010a2
push str.LdrEnumerateLoadedModules
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4010a2
push 0
push 0x401100
push 0
mov ecx, esi
call dword [0x4232e0]
call esi
push 0xa
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
jne 0x4010c6
push 0x2777
call fcn.00403b50
add esp, 4
push 0xc000001d
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.00407dc0
cmp eax, 0x5010300
jae 0x4010ea
push 0x2778
call fcn.00403b50
add esp, 4
push 0x47e
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.0041066e
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x402460
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x42d008]
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 - 0x3c], eax
mov eax, dword [ebp + 0x28]
mov ebx, dword [ebp + 0x20]
mov esi, dword [ebp + 0x18]
mov dword [ebp - 0x38], eax
movzx eax, byte [ebp + 0x14]
mov dword [ebp - 0x34], eax
mov ax, word [ebp + 0xc]
mov dword [ebp - 0x20], esi
mov esi, dword [ebp - 0x3c]
mov dword [ebp - 0x30], ecx
mov word [ebp - 0x2c], ax
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], ebx
mov edi, dword [ebp + 0x24]
mov dword [ebp - 8], edi
cmp esi, 0xffffffff
je 0x402505
push 0
push 0
xorps xmm0, xmm0
movq qword [ebp - 0x40], xmm0
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x4024fb
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x402505
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x402564
test ebx, ebx
je 0x40250f
mov dword [ebx], 0
test edi, edi
je 0x402519
mov dword [edi], 0
xor esi, esi
nop dword [eax + eax]
lea eax, [ebp - 0x38]
push eax
call fcn.00402790
add esp, 4
test al, al
jne 0x40253a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x40254f
mov eax, 0x51eb851f
mul dword [ebp - 0x14]
shr edx, 5
cmp edx, 2
je 0x402562
mov edi, 0x10dc
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 5
jl 0x402520
jmp 0x402564
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.0041094e
mov esp, ebp
pop ebp
ret
Function at 0x403170
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x42d008]
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 0x403220
cmp eax, 0x20
ja 0x403220
call fcn.00408ff0
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 0x403220
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 0x403228
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 0x403228
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x403236
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.0041094e
mov esp, ebp
pop ebp
ret
Function at 0x403260
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 0x403379
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 0x403378
cmp ebx, 0x40
jae 0x403378
test edi, edi
je 0x403378
mov ecx, dword [esi + 0x10]
cmp ebx, ecx
ja 0x4032d6
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4032cb
mov eax, dword [esi]
xor ecx, ecx
mov dword [esi + 0x10], ebx
mov word [eax + ebx*2], cx
jmp 0x4032e2
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.00403c70
cmp dword [esi + 0x14], 8
jb 0x4032ea
mov esi, dword [esi]
lea eax, [ebx + edi]
xor edx, edx
xor ecx, ecx
cmp edi, eax
cmova ebx, edx
test ebx, ebx
je 0x403378
cmp ebx, 0x20
jb 0x403362
lea eax, [edi - 1]
add eax, ebx
lea edx, [ebx - 1]
lea edx, [esi + edx*2]
cmp esi, eax
ja 0x403312
cmp edx, edi
jae 0x403362
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 0x403320
cmp ecx, ebx
je 0x403378
sub edi, ecx
movzx eax, byte [edi + ecx]
lea esi, [esi + 2]
inc ecx
mov word [esi - 2], ax
cmp ecx, ebx
jne 0x403368
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4038a0
Capabilities:
Extract resource via kernel32 functions
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x42d008]
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 0x4038e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x403976
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 0x403900
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x40396e
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40395f
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40395f
lea ecx, [ebp - 8]
mov dword [ebp - 0xc], esi
push ecx
lea ecx, [ebp - 0xc]
push ecx
push 0x423800
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40395f
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 0x423804
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
jmp 0x403967
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.0041094e
mov esp, ebp
pop ebp
ret
Function at 0x4039a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x42d008]
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 0x403a9f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x403a9f
lea eax, [ebp - 0xc]
mov dword [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x14]
push eax
push 0x423800
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x403a9f
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 0x423804
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
test ebx, ebx
je 0x403a63
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 0x403a63
push dword [ebp - 0x10]
call fcn.00414c8a
add esp, 4
mov dword [ebx], eax
test edi, edi
je 0x403a8c
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 0x403a8c
push dword [ebp - 0x10]
push 0x40
push edi
call fcn.00414086
add esp, 0xc
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041094e
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.0041094e
mov esp, ebp
pop ebp
ret

Function at 0x4043c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x42d008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 8]
push ecx
push 0
push eax
push 0x404000
push 0
push 0
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x4043fb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], 0
je 0x404408
lock inc dword [0x42d9b4]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041094e
mov esp, ebp
pop ebp
ret

Function at 0x404420
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x42d008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 8]
push ecx
push 0
push eax
push 0x404190
push 0
push 0
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x40445b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], 0
je 0x404468
lock inc dword [0x42d9b4]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041094e
mov esp, ebp
pop ebp
ret
Function at 0x407c50
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421e50
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x42d008]
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 0x407d53
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.00410a73
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 0x407d75
mov ebx, dword [esi]
push ebx
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x407d97
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.00410a7c
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.0041094e
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.00407b80
push 0x42b0f4
lea eax, [ebp - 0x30]
push eax
call fcn.00411dca
push str.Unable_to_retrieve_process_mandatory_label_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x30]
call fcn.00407b80
push 0x42b0f4
lea eax, [ebp - 0x30]
push eax
call fcn.00411dca
push str.Unable_to_verify_mandatory_label_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x40]
call fcn.00407b80
push 0x42b0f4
lea eax, [ebp - 0x40]
push eax
call fcn.00411dca
int3
Function at 0x4081b0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421ef0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x42d008]
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 0x408299
cmp dword [ebp - 0x14], 0
jl 0x408211
jg 0x408202
cmp dword [ebp - 0x18], 0x40000000
jbe 0x408211
push str.Unable_to_process_files_over_1GB_
push 0xdf
jmp 0x4082a5
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 0x40822f
push str.Unable_to_open_file_mapping_
jmp 0x40829e
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 0x408255
push str.Unable_to_open_file_mapping_
jmp 0x40829e
mov dword [ebp - 0x30], edi
push dword [ebp + 0xc]
mov byte [ebp - 4], 1
push dword [ebp - 0x18]
push edi
call fcn.004082c0
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.0041094e
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.00407b80
push 0x42b0f4
lea eax, [ebp - 0x28]
push eax
call fcn.00411dca
int3
Function at 0x408b60
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421f68
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x42d008]
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 [0x42495c]
mov dword [ebp - 0x40], eax
mov ax, word [0x424960]
movups xmmword [ebp - 0x70], xmm0
push 0x2a
movups xmm0, xmmword [0x42493c]
mov word [ebp - 0x3c], ax
lea eax, [ebp - 0x3a]
push 0
movups xmmword [ebp - 0x60], xmm0
push eax
movups xmm0, xmmword [0x42494c]
mov dword [ebp - 4], 0
movups xmmword [ebp - 0x50], xmm0
call fcn.00411c70
add esp, 0xc
call fcn.00407dc0
cmp eax, 0x5020000
jae 0x408bfc
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 0x408c47
mov eax, dword [esi]
mov ecx, dword [ebp - 0x74]
mov dword [esi], ecx
test eax, eax
je 0x408c2b
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.0041094e
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.00407b80
push 0x42b0f4
lea eax, [ebp - 0x88]
push eax
call fcn.00411dca
int3
Function at 0x408cb0
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421fa9
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x42d008]
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 0x408d72
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.00408ac0
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 0x408d94
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.0041094e
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.00407b80
push 0x42b0f4
lea eax, [ebp - 0x30]
push eax
call fcn.00411dca
push str.Unable_to_decode_base64_string_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x30]
call fcn.00407b80
push 0x42b0f4
lea eax, [ebp - 0x30]
push eax
call fcn.00411dca
int3
Function at 0x408dc0
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421ff9
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x42d008]
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 edi, dword [ebp + 8]
lea ecx, [ebp - 0x18]
mov ebx, dword [ebp + 0xc]
xorps xmm0, xmm0
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], 0
movlpd qword [ebp - 0x18], xmm0
call fcn.00408b60
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push esi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x408f12
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
test ecx, ecx
je 0x408e4d
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 0x14]
push 0
push dword [ebp + 0x10]
mov dword [ebp - 4], 1
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x408f34
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x1c]
push 0
push eax
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 2
push eax
push 4
push esi
mov dword [ebp - 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x408f56
lea eax, [ebp - 0x22]
mov byte [ebp - 0x21], 0
push eax
lea eax, [ebp - 0x21]
xorps xmm0, xmm0
push eax
push dword [ebp - 0x20]
movq qword [edi], xmm0
mov ecx, edi
mov dword [edi + 8], 0
call fcn.00408a20
push 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x28], 2
push eax
push dword [edi]
push 2
push esi
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x408f78
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x408ee4
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x408ef4
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, edi
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.0041094e
mov esp, ebp
pop ebp
ret
push str.Unable_to_create_hash_context_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00407b80
push 0x42b0f4
lea eax, [ebp - 0x3c]
push eax
call fcn.00411dca
push str.Unable_to_update_hash_context_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x4c]
call fcn.00407b80
push 0x42b0f4
lea eax, [ebp - 0x4c]
push eax
call fcn.00411dca
push str.Unable_to_determine_digest_size_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x4c]
call fcn.00407b80
push 0x42b0f4
lea eax, [ebp - 0x4c]
push eax
call fcn.00411dca
push str.Unable_to_retrieve_digest_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00407b80
push 0x42b0f4
lea eax, [ebp - 0x3c]
push eax
call fcn.00411dca
int3