joyce8/EMBER2024-capa huggingface dataset:
Function at 0x467b00
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54a975
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.00467cd0
add esp, 8
push str.SetProcessDEPPolicy
push str.Kernel32
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x467b55
push 1
call eax
mov ecx, dword [ebp - 0x48]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x4c]
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
jne 0x467beb
cmp dword [esi + 0x14], 0x10
mov eax, dword [esi + 0x10]
jb 0x467b7e
mov esi, dword [esi]
cmp eax, 9
jne 0x467beb
push eax
push str.__version
push esi
call fcn.00467c60
add esp, 0xc
test eax, eax
jne 0x467beb
lea ecx, [ebp - 0x28]
call fcn.00469ed0
push dword [0x7c2884]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.0046aa30
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00469fb0
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
push 0
cmovae eax, dword [ebp - 0x40]
push str.Version
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp - 0x40]
call fcn.004166b0
lea ecx, [ebp - 0x28]
call fcn.00469f70
xor esi, esi
jmp 0x467c02
push dword [ebp + 0x14]
lea eax, [ebp - 0x64]
push dword [ebp + 0x10]
push eax
push dword [ebp + 8]
call fcn.00449f30
add esp, 0x10
mov esi, eax
lea ecx, [ebp - 0x4c]
call fcn.004320f0
mov edx, dword [ebp - 0x50]
cmp edx, 0x10
jb 0x467c3a
mov ecx, dword [ebp - 0x64]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x467c30
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x467c4b
push edx
push ecx
call fcn.004b9160
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
call fcn.0051bb5f
int3
Function at 0x4684c0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x545d00
push eax
mov eax, 0x1458
mov dword fs:[0], esp
call fcn.00514210
push esi
push edi
mov esi, dword [ebp + 0x20]
xor eax, eax
mov word [ebp - 0x1464], ax
mov byte [ebp - 0x464], al
mov dword [ebp - 4], 0
mov ecx, dword [esi]
mov eax, dword [esi + 4]
push ecx
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x58], eax
call fcn.0044e130
xor ecx, ecx
mov dword [ebp - 0x64], 3
add esp, 4
mov edi, eax
cmp byte [esi + 8], cl
mov eax, 8
cmovne ecx, eax
mov dword [ebp - 0x60], ecx
mov ecx, 1
lock xadd dword [0x5d333c], ecx
inc ecx
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x54], ecx
test eax, eax
je 0x46854b
cmp word [eax], 0
mov dword [ebp - 0x50], eax
jne 0x468552
mov dword [ebp - 0x50], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x4c], eax
xorps xmm0, xmm0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [0x5d3244]
mov dword [ebp - 0x38], edi
movq qword [ebp - 0x24], xmm0
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x34], xmm0
test eax, eax
je 0x4685a5
call eax
mov dword [ebp - 0x18], eax
jmp 0x4685ac
mov dword [ebp - 0x18], 0
mov eax, dword [0x5d3238]
test eax, eax
je 0x4685bb
lea ecx, [ebp - 0x64]
push ecx
call eax
mov eax, dword [0x5d323c]
test eax, eax
je 0x4685d6
push 0x400
lea ecx, [ebp - 0x464]
push ecx
lea ecx, [ebp - 0x64]
push ecx
call eax
mov eax, dword [0x5d3240]
test eax, eax
je 0x4685e5
lea ecx, [ebp - 0x64]
push ecx
call eax
mov eax, dword [0x5d3278]
test eax, eax
je 0x4685fa
test byte [ebp - 0x60], 2
jne 0x4685fa
lea ecx, [ebp - 0x64]
push ecx
call eax
cmp dword [ebp - 0x5c], 0
jl 0x468617
push 0x8000ffff
mov dword [ebp - 0x5c], 0x8000ffff
call fcn.0044d8f0
add esp, 4
mov dword [ebp - 0x58], eax
cmp byte [0x5d321c], 0
jne 0x468640
mov eax, dword [0x5d3218]
test eax, eax
je 0x468630
call eax
movzx eax, al
jmp 0x46863c
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
neg eax
sbb eax, eax
neg eax
test eax, eax
je 0x4686a4
cmp byte [0x5cb2b0], 0
je 0x4686a4
test byte [ebp - 0x60], 2
jne 0x4686a4
mov eax, dword [0x5d3214]
test eax, eax
je 0x468673
cmp byte [0x5d322c], 0
jne 0x468673
push 0x800
lea ecx, [ebp - 0x1464]
push ecx
lea ecx, [ebp - 0x64]
push ecx
call eax
cmp word [ebp - 0x1464], 0
jne 0x468695
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x1464]
push 0x800
push eax
call fcn.0044d300
add esp, 0xc
lea eax, [ebp - 0x1464]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x4686c0
mov eax, dword [0x5d3214]
test eax, eax
je 0x4686c0
cmp byte [0x5d322c], 0
jne 0x4686c0
push 0
push 0
lea ecx, [ebp - 0x64]
push ecx
call eax
test byte [ebp - 0x60], 4
jne 0x4686cf
cmp byte [0x5d3224], 0
je 0x4686da
mov eax, dword [0x5d324c]
test eax, eax
je 0x4686da
call eax
lea eax, [ebp - 0x64]
mov dword [ebp - 4], 0xffffffff
push eax
call fcn.004690d0
int3
Function at 0x46a920
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x10]
mov dword [ebx], 0
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x46a949
push eax
call fcn.004b9160
add esp, 4
mov dword [esi + 4], 0
mov edi, dword [ebp + 8]
mov eax, edi
mov dword [esi], 0x4e40000
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
cmp dword [edi + 0x14], 8
mov dword [ebp - 4], 0
jb 0x46a971
mov eax, dword [edi]
lea ecx, [ebp - 4]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp + 8], eax
test eax, eax
je 0x46aa0d
push eax
call fcn.004b9130
add esp, 4
mov dword [esi + 4], eax
cmp dword [edi + 0x14], 8
jb 0x46a99a
mov edi, dword [edi]
push eax
push dword [ebp + 8]
push dword [ebp - 4]
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x46aa0d
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push ebx
push 0x55570c
push dword [esi + 4]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x46aa0d
lea eax, [ebp + 8]
push eax
lea edi, [esi + 8]
push edi
push str.VarFileInfoTranslation
push dword [esi + 4]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x46a9ff
mov eax, dword [ebp + 8]
cmp eax, 4
jb 0x46a9ff
mov ecx, dword [edi]
shr eax, 2
mov dword [esi + 0xc], eax
movzx eax, word [ecx]
mov word [esi], ax
movzx eax, word [ecx + 2]
mov word [esi + 2], ax
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x46aa24
push ecx
call fcn.004b9160
add esp, 4
mov dword [esi + 4], 0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x46aa30
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x545bdd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60c
push ebx
push esi
push edi
push 0x1f4
lea eax, [ebp - 0x618]
mov esi, ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x104
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x618]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
xor eax, eax
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
lea edx, [ecx + 2]
mov word [ebp - 0x28], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46aaa5
sub ecx, edx
lea eax, [ebp - 0x230]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.0041ffd0
mov eax, dword [esi + 4]
mov dword [ebp - 4], 0
mov dword [esi + 0x10], 0
test eax, eax
je 0x46aae9
push eax
call fcn.004b9160
add esp, 4
mov dword [esi + 4], 0
xor edi, edi
mov dword [esi], 0x4e40000
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x10]
lea eax, [ebp - 0x28]
mov dword [esi + 8], 0
cmovae eax, dword [ebp - 0x28]
lea ebx, [esi + 8]
push ecx
push eax
mov dword [esi + 0xc], 0
mov dword [ebp - 0x10], edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp + 8], eax
test eax, eax
je 0x46aba0
push eax
call fcn.004b9130
add esp, 4
mov dword [esi + 4], eax
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
push eax
push dword [ebp + 8]
push dword [ebp - 0x10]
push ecx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x46aba0
lea eax, [ebp + 8]
mov dword [ebp + 8], edi
push eax
lea eax, [esi + 0x10]
push eax
push 0x55570c
push dword [esi + 4]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x46aba0
lea eax, [ebp + 8]
push eax
push ebx
push str.VarFileInfoTranslation
push dword [esi + 4]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x46ab99
mov eax, dword [ebp + 8]
cmp eax, 4
jb 0x46ab99
mov ecx, dword [ebx]
shr eax, 2
mov dword [esi + 0xc], eax
movzx eax, word [ecx]
mov word [esi], ax
movzx eax, word [ecx + 2]
mov word [esi + 2], ax
mov edi, 1
jmp 0x46abb3
mov eax, dword [esi + 4]
test eax, eax
je 0x46abb3
push eax
call fcn.004b9160
add esp, 4
mov dword [esi + 4], edi
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x46abe9
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46abdf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46abfe
push edx
push ecx
call fcn.004b9160
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
call fcn.0051bb5f
int3

Function at 0x46ad70
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push 0x110
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.00518890
add esp, 0xc
mov dword [ebp - 0x114], 0x114
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x46adc2
cmp dword [ebp - 0x104], 2
jne 0x46adc2
cmp dword [ebp - 0x110], 6
jb 0x46adc2
mov al, 1
mov esp, ebp
pop ebp
ret
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x46bb40
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push edi
mov edi, ecx
push 0
push dword [edi + 0x58]
mov byte [edi + 0x3c], 1
call esi
push 0
push dword [edi + 0x50]
call esi
push 0
push dword [edi + 0x54]
call esi
push 0x46bba0
push 0x12c
push 1
push dword [edi + 0x68]
call dword [sym.imp.USER32.dll_SetTimer]
pop edi
pop esi
ret

Function at 0x46c3f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
movzx ebx, word [ebp + 8]
mov esi, eax
push ebx
push esi
call dword [sym.imp.USER32.dll_LoadBitmapW]
mov dword [ebp - 8], eax
test eax, eax
jne 0x46c533
mov eax, dword fs:[0x2c]
mov ecx, dword [0x7c2908]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x5d346c]
cmp eax, dword [ecx + 0x34]
jg 0x46c53a
push 0x560884
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x46c459
push 0xa
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push 2
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x46c530
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
test esi, esi
je 0x46c530
push ebx
push dword [ebp + 8]
push esi
call fcn.00518310
add esp, 0xc
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x46c522
mov ebx, dword [ebp - 4]
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
test esi, esi
je 0x46c519
lea eax, [ebp + 8]
mov dword [esi], vtable.Gdiplus::Bitmap.0
push eax
push ebx
mov dword [ebp + 8], 0
call sub.gdiplus.dll_GdipCreateBitmapFromStream
mov dword [esi + 8], eax
mov eax, dword [ebp + 8]
mov dword [esi + 4], eax
mov eax, dword [esi + 8]
mov dword [esi + 8], 0
test eax, eax
jne 0x46c511
push 0xffffffffffffffff
lea eax, [ebp - 8]
push eax
push dword [esi + 4]
call sub.gdiplus.dll_GdipCreateHBITMAPFromBitmap
test eax, eax
je 0x46c511
mov dword [esi + 8], eax
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x5d346c
call fcn.00513f0a
add esp, 4
cmp dword [0x5d346c], 0xffffffff
jne 0x46c43a
push 0
push 0x5d3458
push 0x5d3468
mov dword [0x5d3458], 1
mov dword [0x5d345c], 0
mov dword [0x5d3460], 0
mov dword [0x5d3464], 0
call sub.gdiplus.dll_GdiplusStartup
push 0x54f600
call fcn.00513dc2
push 0x5d346c
call fcn.00513ec0
add esp, 8
jmp 0x46c43a
Function at 0x478e90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov edx, ecx
push esi
cmp dword [ecx + 0x14], 8
jb 0x478ea1
mov edx, dword [ecx]
mov eax, dword [ecx + 0x10]
lea edx, [edx + eax*2]
jb 0x478eab
mov ecx, dword [ecx]
xor eax, eax
cmp ecx, edx
je 0x478ed3
push edi
mov edi, eax
mov esi, eax
shr esi, 2
shl edi, 6
add edi, esi
movzx esi, word [ecx]
add esi, 0x9e3779b9
add ecx, 2
add esi, edi
xor eax, esi
cmp ecx, edx
jne 0x478eb2
pop edi
pop esi
pop ebp
ret 4

Function at 0x4794a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x545ebd
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0xc]
mov edi, dword [eax + 4]
mov edx, dword [eax]
sub edi, edx
mov eax, dword [esi + 0x10]
cmp edi, eax
jb 0x47956e
push ebx
mov ebx, edi
sub ebx, eax
cmp ebx, 0x40000
jae 0x4794e8
mov cl, byte [ebp + 8]
test cl, cl
je 0x47951c
push 0
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push ecx
push ebx
add eax, edx
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x47954f
mov ecx, dword [ebp - 0x10]
cmp ecx, ebx
jne 0x47954f
mov eax, dword [esi + 4]
add dword [eax + 0x9c], ecx
mov cl, byte [ebp + 8]
mov dword [esi + 0x10], edi
mov eax, edi
sub eax, dword [esi + 0x14]
pop ebx
cmp eax, 0x100000
jae 0x47952d
test cl, cl
je 0x47953d
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
je 0x479578
mov dword [esi + 0x14], edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
push ebx
lea eax, [ebp - 0x28]
push str.Error_writing__u_bytes_to_file
push eax
call fcn.004b99c0
add esp, 0xc
push eax
mov dword [ebp - 4], 0
call fcn.00437930
push str.Buffer_size_shrunk_between_updates
call fcn.00437a90
push str.Error_flushing_file
call fcn.00437a90
int3
Function at 0x47a330
Capabilities:
Create new key via cryptacquirecontext
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54b44d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x14], esi
push edi
mov dword [ebp - 0x10], esp
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x2c]
push 0x20
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.0041fae0
movups xmm0, xmmword [str.Failed_CryptAcquireContext]
mov dword [ebp - 0x1c], 0x1a
mov dword [ebp - 0x18], 0x1f
movups xmmword [eax], xmm0
movq xmm0, qword [0x56139c]
movq qword [eax + 0x10], xmm0
mov cx, word [0x5613a4]
mov word [eax + 0x18], cx
mov byte [eax + 0x1a], 0
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
push eax
push 0xf0000000
push 1
push 0
push 0
lea edi, [esi + 0x18]
push edi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push eax
call fcn.00437a10
mov edx, dword [ebp - 0x18]
add esp, 8
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x47a42c
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x47a422
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47a507
push edx
push ecx
call fcn.004b9160
add esp, 8
mov dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x2c]
push 0x20
mov byte [ebp - 4], 2
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.0041fae0
movups xmm0, xmmword [str.Failed_CryptCreateHash]
mov edx, eax
mov dword [ebp - 0x1c], 0x16
mov dword [ebp - 0x18], 0x1f
movups xmmword [edx], xmm0
mov ecx, dword [0x5613b8]
mov dword [edx + 0x10], ecx
mov ax, word [0x5613bc]
mov word [edx + 0x14], ax
mov byte [edx + 0x16], 0
mov dword [ebp - 0x2c], edx
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 3
push eax
lea eax, [esi + 0x1c]
push eax
push 0
push 0
push 0x8003
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
push eax
call fcn.00437a10
mov edx, dword [ebp - 0x18]
add esp, 8
cmp edx, 0x10
jb 0x47a4dd
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x47a4d3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47a50c
push edx
push ecx
call fcn.004b9160
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0051bb5f
call fcn.0051bb5f
int3
Function at 0x47a580
Capabilities:
Hash data via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54626d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x434
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x28], ecx
xor ecx, ecx
mov eax, dword [edi]
mov edx, dword [eax + 4]
mov eax, 4
cmp dword [edx + edi + 0x38], ecx
cmovne eax, ecx
mov dword [edx + edi + 0xc], eax
test dword [edx + edi + 0x10], eax
jne 0x47a6d4
push ecx
push ecx
push ecx
mov ecx, edi
call fcn.00437170
push 0
push 0x400
lea eax, [ebp - 0x440]
mov ecx, edi
push eax
call fcn.00436950
mov esi, dword [edi + 8]
mov dword [ebp - 0x24], 0
push 0x20
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0xf
mov byte [ebp - 0x24], 0
call fcn.004b9130
movups xmm0, xmmword [str.Failed_CryptHashData]
mov dword [ebp - 0x14], 0x14
add esp, 4
mov dword [ebp - 0x10], 0x1f
movups xmmword [eax], xmm0
mov ecx, dword [0x5613d0]
mov dword [eax + 0x10], ecx
mov byte [eax + 0x14], 0
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 0
push eax
push 0
push esi
lea eax, [ebp - 0x440]
push eax
mov eax, dword [ebp - 0x28]
push dword [eax + 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push eax
call fcn.00437a10
mov edx, dword [ebp - 0x10]
add esp, 8
mov dword [ebp - 4], 0xffffffff
cmp edx, 0x10
jb 0x47a695
mov ecx, dword [ebp - 0x24]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x47a68b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47a6cf
push edx
push ecx
call fcn.004b9160
add esp, 8
cmp dword [edi + 0xc], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0xf
mov byte [ebp - 0x24], 0
jl 0x47a6bd
jg 0x47a5d1
cmp dword [edi + 8], 0
ja 0x47a5d1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
call fcn.0051bb5f
lea eax, [ebp - 0x2c]
push 1
push eax
call fcn.00422410
add esp, 8
lea ecx, [ebp - 0x40]
push eax
push str.ios_base::badbit_set
call fcn.00415ef0
push 0x5bd8a0
lea eax, [ebp - 0x40]
push eax
call fcn.00518295
int3
Function at 0x47a700
Capabilities:
Hash data via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54626d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
mov esi, ecx
mov dword [ebp - 0x24], 0
push 0x20
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0xf
mov byte [ebp - 0x24], 0
call fcn.0041fae0
movups xmm0, xmmword [str.Failed_CryptHashData]
mov dword [ebp - 0x14], 0x14
mov dword [ebp - 0x10], 0x1f
movups xmmword [eax], xmm0
mov ecx, dword [0x5613d0]
mov dword [eax + 0x10], ecx
mov byte [eax + 0x14], 0
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 0
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push eax
call fcn.00437a10
mov edx, dword [ebp - 0x10]
add esp, 8
pop esi
cmp edx, 0x10
jb 0x47a7bf
mov ecx, dword [ebp - 0x24]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x47a7b5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47a7cf
push edx
push ecx
call fcn.004b9160
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
call fcn.0051bb5f
int3
Function at 0x47d3a0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
mov edx, dword [ebp + 0xc]
push 0xffffffffffffffff
push 0x54b735
push eax
mov dword fs:[0], esp
sub esp, 0x10
cmp dword [edx + 0x14], 0x10
push ebx
push esi
push edi
mov ebx, ecx
mov edi, edx
jb 0x47d3cd
mov edi, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
cmp dword [edx + 0x10], ecx
jbe 0x47d3f2
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, dword [edx + 0x10]
jb 0x47d3e0
push esi
push edx
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
call fcn.0047cd40
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x47d422
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov byte [eax + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [ebx + 8], 0x6666666
je 0x47d586
lea eax, [ebx + 4]
mov dword [ebp - 0x1c], eax
push 0x28
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
call fcn.004b9130
add esp, 4
mov edi, eax
mov dword [ebp - 0x18], edi
push dword [ebp + 0xc]
lea ecx, [edi + 8]
call fcn.004152a0
xorps xmm0, xmm0
movq qword [edi + 0x20], xmm0
mov dword [edi + 0x24], 0
mov eax, dword [ebx + 8]
inc eax
movss xmm3, dword [ebx]
mov dword [ebp - 4], 1
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x557d40]
mov eax, dword [ebx + 0x1c]
cvtpd2ps xmm2, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
movaps xmm1, xmm2
addsd xmm0, qword [eax*8 + 0x557d40]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, xmm3
jbe 0x47d525
divss xmm2, xmm3
sub esp, 8
cvtps2pd xmm0, xmm2
movsd qword [ebp - 0x14], xmm0
fld qword [ebp - 0x14]
fstp qword [esp]
call fcn.005243c0
fstp qword [ebp - 0x14]
movsd xmm0, qword [ebp - 0x14]
add esp, 8
cvtpd2ps xmm0, xmm0
call fcn.00514240
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
mov eax, dword [ebx + 0x1c]
cmp eax, ecx
jae 0x47d509
cmp eax, 0x200
jae 0x47d507
shl eax, 3
cmp eax, ecx
jae 0x47d509
mov eax, ecx
push eax
mov ecx, ebx
call fcn.0047f7b0
push esi
lea eax, [edi + 8]
mov ecx, ebx
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0047cd40
mov edx, dword [eax]
jmp 0x47d528
mov edx, dword [ebp - 0x14]
mov eax, dword [ebx + 8]
mov ecx, dword [edx + 4]
inc eax
mov dword [ebx + 8], eax
mov dword [edi], edx
mov dword [edi + 4], ecx
mov dword [ecx], edi
mov dword [edx + 4], edi
mov eax, dword [ebx + 0x18]
mov dword [ebp + 0xc], ecx
and eax, esi
mov ecx, dword [ebx + 0xc]
mov esi, dword [ecx + eax*8]
cmp esi, dword [ebx + 4]
jne 0x47d554
mov dword [ecx + eax*8], edi
jmp 0x47d566
cmp esi, edx
jne 0x47d55d
mov dword [ecx + eax*8], edi
jmp 0x47d56a
mov edx, dword [ebp + 0xc]
cmp dword [ecx + eax*8 + 4], edx
jne 0x47d56a
mov dword [ecx + eax*8 + 4], edi
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax], edi
pop edi
pop esi
mov byte [eax + 4], 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.unordered_map_set_too_long
call fcn.00515695
int3