joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7661487d
Capabilities:
Encode data using base64

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
lea esi, [ebx + eax]
cmp ebx, esi
push edi
mov dword [ebp + 8], 0xd
mov edi, ebx
jae 0x766148c9
mov cl, byte [edi]
movsx eax, cl
cmp eax, 0x100
ja 0x766148ba
cmp byte [eax + 0x76614a00], 0x3f
ja 0x766148ba
inc dword [ebp - 4]
jmp 0x766148c4
push ecx
call fcn.76614855
test eax, eax
je 0x766148e9
inc edi
cmp edi, esi
jb 0x766148a0
mov ecx, dword [ebp - 4]
lea eax, [ecx + 3]
shr eax, 2
lea edx, [eax + eax*2]
mov eax, ecx
and eax, 3
jbe 0x7661491c
cmp eax, 2
jbe 0x7661491a
cmp eax, 3
jne 0x7661491c
dec edx
jmp 0x7661491c
mov eax, dword [ebp - 4]
test eax, eax
je 0x7661490d
and eax, 3
je 0x766148c9
push 4
pop ecx
sub ecx, eax
je 0x766148c9
cmp edi, esi
jae 0x76614909
cmp byte [edi], 0x3d
jne 0x76614909
inc edi
dec ecx
jne 0x766148fc
test ecx, ecx
je 0x766148c9
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x766149f4
dec edx
dec edx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jne 0x7661492a
mov ecx, edx
jmp 0x766149e8
mov eax, dword [ebp + 0x14]
cmp edx, dword [eax]
jbe 0x7661493e
mov dword [eax], edx
mov eax, 0xea
mov dword [ebp + 8], eax
push eax
jmp 0x7661490f
cmp dword [ebp - 4], 0
jbe 0x766149e8
xor eax, eax
lea edi, [ebp + 8]
stosd dword es:[edi], eax
xor edi, edi
push 4
pop eax
cmp dword [ebp - 4], eax
ja 0x7661495b
mov eax, dword [ebp - 4]
cmp edi, eax
jae 0x76614981
mov edx, 0x100
jmp 0x76614970
cmp byte [eax + 0x76614a00], 0x3f
jbe 0x76614977
inc ebx
movsx eax, byte [ebx]
cmp eax, edx
jb 0x76614966
mov al, byte [ebx]
mov byte [ebp + edi + 8], al
inc ebx
inc edi
jmp 0x76614950
movzx esi, byte [ebp + 9]
movzx eax, byte [ebp + 8]
mov al, byte [eax + 0x76614a00]
mov dl, byte [esi + 0x76614a00]
shl al, 2
shr dl, 4
or al, dl
mov byte [ecx], al
inc ecx
cmp edi, 2
jbe 0x766149c0
movzx eax, byte [ebp + 0xa]
mov al, byte [eax + 0x76614a00]
mov dl, byte [esi + 0x76614a00]
shr al, 2
shl dl, 4
or al, dl
mov byte [ecx], al
inc ecx
cmp edi, 3
jbe 0x766149df
movzx eax, byte [ebp + 0xa]
mov al, byte [eax + 0x76614a00]
movzx edx, byte [ebp + 0xb]
shl al, 6
or al, byte [edx + 0x76614a00]
mov byte [ecx], al
inc ecx
sub dword [ebp - 4], edi
jne 0x76614948
sub ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
and dword [ebp + 8], 0
mov dword [eax], ecx
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x76614b05
Capabilities:
Encode data using base64

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor edx, edx
push 3
pop ecx
lea eax, [esi + 2]
div ecx
mov ebx, dword [ebp + 0x10]
shr ebx, 0x1f
xor edx, edx
shl eax, 2
lea ecx, [eax + 0x3f]
shr ecx, 6
test ebx, ebx
sete dl
inc edx
imul ecx, edx
add eax, ecx
mov ecx, dword [ebp + 0x14]
test ecx, ecx
jne 0x76614b43
mov ecx, eax
jmp 0x76614c3c
mov edx, dword [ebp + 0x18]
cmp eax, dword [edx]
jbe 0x76614b5f
mov dword [edx], eax
mov eax, 0xea
push eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x76614c46
and dword [ebp + 0xc], 0
test esi, esi
jle 0x76614c3c
push edi
cmp dword [ebp + 0xc], 0x10
jne 0x76614b82
and dword [ebp + 0xc], 0
test ebx, ebx
jne 0x76614b7e
mov byte [ecx], 0xd
inc ecx
mov byte [ecx], 0xa
inc ecx
inc dword [ebp + 0xc]
xor eax, eax
lea edi, [ebp + 0x10]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
inc dword [ebp + 8]
cmp esi, 1
mov al, byte [eax]
jbe 0x76614bb5
mov edx, dword [ebp + 8]
mov dl, byte [edx]
inc dword [ebp + 8]
cmp esi, 2
mov byte [ebp + 0x11], dl
jbe 0x76614bb5
mov edx, dword [ebp + 8]
mov dl, byte [edx]
inc dword [ebp + 8]
mov byte [ebp + 0x12], dl
movzx eax, al
mov edx, eax
shr edx, 2
mov dl, byte [edx + 0x76614c50]
mov byte [ecx], dl
movzx edx, byte [ebp + 0x11]
shl eax, 4
mov edi, edx
shr edi, 4
or edi, eax
and edi, 0x3f
mov al, byte [edi + 0x76614c50]
inc ecx
mov byte [ecx], al
inc ecx
cmp esi, 1
jbe 0x76614bfd
movzx eax, byte [ebp + 0x12]
shr eax, 6
shl edx, 2
or eax, edx
and eax, 0x3f
movzx eax, byte [eax + 0x76614c50]
jmp 0x76614c00
push 0x3d
pop eax
ret
clc
clc
daa
outsb dx, byte [esi]
mov cs, word [ecx + 0xb7b10bd]
fimul word [ebx]
pop ss
and bl, byte [eax]
mov dl, 0x9d
out 0x6e, al
mov eax, 0xce68b2c8
sub al, 0x47
loop 0x76614c9e
push ebx
adc dl, ah
sbb al, 0x3b
fld qword [ebp - 0x30]
ljmp 0xf35c
push ebx
inc edx
pop ebp
add byte [eax], ah
aas
sti
cwde
std
push esi
cmp cl, cl
inc eax
cmp eax, 0x8c88ba9
test dl, dh
xor dword [eax - 2], esp
cmp byte [ebx - 0x55ddb245], ch
adc esi, dword [edi + 0x14a11ded]
aam 0xe8
xchg esp, ebx
sub al, 0xe3
salc
push edx
sub ecx, dword [eax - 0xd]
call 0xd47dfc35
inc ecx
rcr dword [esi], 1
lodsd eax, dword [esi]
pop ecx
push edi
sahf
in al, dx
out 0x83, eax
test eax, 0xb3d31a28
inc edx
stosd dword es:[edi], eax
dec esp
cld
cmp al, 0x21
xor edx, dword [edi]
mov al, byte [0x32053944]
sbb dword [ebx + edi], edx
add esp, esp
push esp
push ds
movd ebx, mm5
xor ebx, esp
pop ss
jbe 0x76614c98
fsub qword [edi - 0x4befc372]
mov ebx, 0xaff4ef5f
test eax, 0xd3fc9c1c
mov al, 0x28
inc ebx
add esp, esp
jl 0x76614cac
cwde
pop dword [edi + edx*8 + 0x67cab50d]
pop eax
ret 0xb424
Function at 0x76619fb1
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0x10]
push edi
xor edi, edi
test al, 0x10
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
je 0x76619fdf
push dword [ebp + 0x14]
shr eax, 5
and eax, 1
push eax
push dword [ebp + 8]
call fcn.7661fd57
jmp 0x7661a0ca
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x14]
shr esi, 5
and esi, 1
push esi
push ebx
call fcn.7661fb72
test eax, eax
jne 0x7661a011
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x7661a0b1
cmp dword [ebp - 4], 0
jne 0x7661a036
push dword [ebx]
call fcn.765e44d7
test eax, eax
je 0x7661a0b1
push dword [ebx]
push eax
call fcn.76616561
mov edi, eax
test edi, edi
je 0x7661a0b1
jmp 0x7661a047
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.76619ec3
mov edi, eax
test edi, edi
je 0x7661a0b1
test byte [ebp + 0x11], 0x20
je 0x7661a069
push dword [ebp + 0xc]
push dword [edi + 8]
call fcn.765ee284
test eax, eax
je 0x7661a069
push 0x80092005
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x7661a0b1
push dword [ebp + 0x1c]
lea eax, [edi + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call fcn.76617e17
test eax, eax
je 0x7661a0b1
push dword [ebp - 4]
call fcn.765e40a0
and dword [ebp - 4], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push edi
call int.76617ad2
test eax, eax
je 0x7661a0b1
push dword [ebp - 8]
push dword [ebp - 4]
push dword [ebp + 0x14]
push esi
push ebx
call fcn.7661fc80
test eax, eax
jne 0x7661a0b5
xor esi, esi
jmp 0x7661a0b8
xor esi, esi
inc esi
push edi
call fcn.76616585
push dword [ebp - 4]
call fcn.765e40a0
mov eax, esi
pop esi
pop ebx
pop edi
leave
ret 0x18
Function at 0x7661dfde
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
and dword [ebp - 8], 0x10000
and dword [ebp - 4], 0
push esi
push edi
cmp dword [ebp - 8], 0
mov eax, dword [ebp - 4]
mov edi, dword [eax + 0x76602950]
jne 0x7661e039
mov eax, ebx
and eax, 0x800
or eax, 0x4000
push eax
push edi
push dword [ebp + 8]
call fcn.765ef441
mov esi, eax
test esi, esi
je 0x7661e04a
push ebx
push esi
push 0
call fcn.765efff9
push esi
mov ebx, eax
call fcn.765ea060
test ebx, ebx
je 0x7661e07c
mov ebx, dword [ebp + 0xc]
push ebx
push edi
push dword [ebp + 8]
call fcn.7661d80c
test eax, eax
jne 0x7661e055
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x7661e07c
add dword [ebp - 4], 4
cmp dword [ebp - 4], 0xc
jb 0x7661dff9
push ebx
push 0x76612348
push dword [ebp + 8]
call fcn.7661d80c
test eax, eax
jne 0x7661e080
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x7661e080
xor eax, eax
jmp 0x7661e083
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x7661f81c
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
or dword [ebp + 8], 0xffffffff
push ebx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x10], eax
push 3
lea eax, [ebp - 0x18]
pop edi
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
xor ebx, ebx
push 1
mov dword [ebp + 0xc], ebx
mov dword [ebp - 0xc], edi
call fcn.765ef18f
cmp eax, ebx
mov dword [ebp + 0x10], eax
je 0x7661f919
mov esi, dword [ebp + 0x14]
and esi, 0x800
push ebx
shl esi, 0xe
or esi, 0x80
push esi
push edi
push ebx
push 1
mov edi, 0x80000000
push edi
push eax
jmp 0x7661f8b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x7661f895
cmp eax, 5
jne 0x7661f8de
cmp ebx, 0x18
jae 0x7661f8de
push dword [ebx + 0x76667a7c]
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push esi
push 3
push 0
push 1
push edi
push dword [ebp + 0x10]
add ebx, 4
call sym.CRYPT32.dll_CreateFileU
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x7661f885
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x7661f919
test esi, esi
jne 0x7661f8e8
push 0x80092003
jmp 0x7661f913
cmp eax, 3
jne 0x7661f912
push 2
pop eax
jmp 0x7661f912
push esi
call fcn.765e44d7
test eax, eax
mov dword [ebp + 0xc], eax
je 0x7661f919
push 0
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x7661f92a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp + 0xc]
xor esi, esi
xor edi, edi
call fcn.765e40a0
mov dword [ebp + 0xc], esi
jmp 0x7661f92d
xor edi, edi
inc edi
push dword [ebp + 0x10]
call fcn.765e40a0
cmp dword [ebp + 8], 0xffffffff
je 0x7661f943
push dword [ebp + 8]
call fcn.76603d77
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
mov eax, dword [ebp + 0x1c]
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x18
Function at 0x7661f95e
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
or dword [ebp + 8], 0xffffffff
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x10]
push ebx
mov dword [ebp - 0x14], eax
push esi
lea eax, [ebp - 0x1c]
push edi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
xor ebx, ebx
push 1
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], 3
call fcn.765ef18f
cmp eax, ebx
mov dword [ebp + 0x10], eax
je 0x7661fa79
push 2
pop edi
lea eax, [ebp - 0x10]
push eax
push 1
mov dword [ebp - 0x10], edi
call fcn.765ef18f
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x7661fa79
push ebx
push eax
call fcn.766600bc
test eax, eax
je 0x7661fa79
mov eax, dword [ebp + 0x14]
mov esi, eax
and esi, 0x800
and eax, 0x2000
shl esi, 0xe
push ebx
or esi, 4
neg eax
push esi
sbb eax, eax
add eax, edi
push eax
push ebx
push ebx
mov edi, 0x40000000
push edi
push dword [ebp + 0x10]
mov dword [ebp + 0x14], eax
call sym.CRYPT32.dll_CreateFileU
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x7661fa4f
mov dword [ebp + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x7661fa1f
cmp eax, 5
jne 0x7661fa6d
mov ecx, dword [ebp + 0xc]
cmp ecx, 0x18
jae 0x7661fa6d
push dword [ecx + 0x76667a7c]
call dword [sym.imp.KERNEL32.dll_Sleep]
add dword [ebp + 0xc], 4
push ebx
push esi
push dword [ebp + 0x14]
push ebx
push ebx
push edi
push dword [ebp + 0x10]
call sym.CRYPT32.dll_CreateFileU
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x7661fa0f
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x7661fa76
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x7661fa79
xor ebx, ebx
inc ebx
cmp dword [ebp + 8], 0xffffffff
je 0x7661fa87
push dword [ebp + 8]
call fcn.76603d77
push dword [ebp + 0x10]
call fcn.765e40a0
push dword [ebp - 4]
call fcn.765e40a0
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x18
Function at 0x7661fb72
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x6c
mov ecx, dword [ebp + 0x14]
mov eax, dword [0x76666130]
and dword [ebp - 0x60], 0
and dword [ebp - 0x5c], 0
mov dword [ebp - 0x6c], ecx
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x68], ecx
mov ecx, dword [eax]
test ecx, ecx
push esi
push edi
je 0x7661fc4d
cmp ecx, 0x14
ja 0x7661fc4d
lea edx, [ebp - 0x58]
push edx
push dword [eax + 4]
push ecx
call fcn.765ee2aa
cmp dword [ebp + 0xc], 0
mov esi, 0x766123fc
jne 0x7661fc46
push 0x76602978
call fcn.76603ce4
test eax, eax
mov dword [ebp - 0x64], eax
je 0x7661fc09
lea ecx, [ebp - 0x5c]
push ecx
lea ecx, [ebp - 0x60]
push ecx
push 0
lea ecx, [ebp - 0x58]
push ecx
push esi
push eax
call fcn.7661f81c
push dword [ebp - 0x64]
mov edi, eax
call fcn.765e40a0
test edi, edi
jne 0x7661fc5a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x7661fc58
mov eax, 0x10000
push ebx
or eax, 0x8000
push eax
call fcn.7661fb3a
mov edi, eax
test edi, edi
je 0x7661fc58
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x60]
push eax
push 0
lea eax, [ebp - 0x58]
push eax
push esi
push edi
call fcn.7660402f
push edi
mov esi, eax
call fcn.765ea060
test esi, esi
je 0x7661fc58
xor edi, edi
inc edi
jmp 0x7661fc5a
mov eax, 0x20000
jmp 0x7661fc0e
push 0x80070057
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor edi, edi
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x6c]
mov dword [ecx], eax
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x68]
mov dword [ecx], eax
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
pop ebx
call fcn.765e4260
leave
ret 0x14
Function at 0x7662001c
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
xor esi, esi
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x7662006d
push dword [ebp + 0x10]
push dword [esi + 0x76602950]
push eax
call fcn.765ef441
mov edi, eax
test edi, edi
jne 0x76620061
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x7662006d
push edi
call fcn.765ea060
xor eax, eax
jmp 0x76620120
push dword [ebp + 0x10]
push edi
push dword [ebp + 0xc]
call fcn.765eff79
test byte [ebp + 0x12], 4
je 0x766200ca
mov eax, dword [ebp + 0xc]
push 0x7661df72
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 8], 1
push dword [esi + 0x76602950]
push dword [ebx + 0x34]
call fcn.76603da5
test eax, eax
jne 0x766200ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x766200ae
cmp eax, 2
jne 0x76620054
test edi, edi
je 0x766200d6
test byte [ebp + 0x11], 0x80
jne 0x766200ca
push dword [ebp + 0x10]
push dword [esi + 0x76602950]
push dword [ebx + 0x34]
push edi
call fcn.7661ff24
test edi, edi
je 0x766200d6
push edi
call fcn.765ea060
xor edi, edi
add esi, 4
cmp esi, 0xc
jb 0x7662002d
test byte [ebp + 0x12], 4
je 0x7662011d
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x7662011d
test byte [ebp + 0x11], 0x80
jne 0x7662011d
push dword [ebp + 0x10]
mov esi, 0x766123fc
push esi
push eax
call fcn.765ef441
mov edi, eax
test edi, edi
je 0x7662011d
push dword [ebp + 0x10]
push esi
push dword [ebx + 0x34]
push edi
call fcn.7661ff24
push edi
call fcn.765ea060
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x7662088a
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea edi, [esi + 4]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp + 0x10]
push dword [esi + 0x38]
push dword [esi + 0x34]
call fcn.765ef441
test eax, eax
mov dword [esi + 0x24], eax
jne 0x766208c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x766208c5
test byte [ebp + 0x11], 0x40
je 0x766208d5
xor ebx, ebx
jmp 0x766208d8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.7662001c
xor ebx, ebx
inc ebx
push dword [esi + 0x24]
call fcn.765ea060
and dword [esi + 0x24], 0
push 0
call fcn.765ed90a
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0xc
Function at 0x766368d9
Capabilities:
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
push edi
xor edi, edi
cmp ebx, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
je 0x76636a1b
mov ecx, dword [ebp + 0xc]
cmp ecx, edi
je 0x76636a1b
cmp dword [ebp + 8], edi
je 0x76636a1b
mov eax, dword [ebp + 0x10]
cmp eax, edi
je 0x76636a1b
mov dword [ecx], edi
push esi
mov dword [ebx], edi
mov dword [eax], edi
lea eax, [ebp - 0x30]
push eax
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x7663696b
test byte [ebp - 0x30], 0x10
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
jne 0x766369f5
cmp dword [ebp - 0x14], edi
jne 0x766369f5
cmp eax, edi
je 0x766369f5
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
call sym.CRYPT32.dll_CreateFileU
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x76636995
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x76636980
call esi
mov esi, eax
jmp 0x76636a16
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x76636a16
push edi
push edi
push edi
push 2
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, edi
mov dword [ebp - 8], eax
je 0x766369bb
push dword [ebp - 0xc]
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
jne 0x766369df
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x766369cd
call esi
mov esi, eax
jmp 0x766369fa
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x766369fa
mov ecx, dword [ebp - 0xc]
mov dword [ebx], ecx
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x10]
xor esi, esi
mov dword [ecx], eax
jmp 0x76636a08
mov esi, 0x80004005
cmp dword [ebp - 4], edi
je 0x76636a08
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], edi
je 0x76636a16
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
jmp 0x76636a20
mov eax, 0x80070057
pop edi
leave
ret 0xc
Function at 0x766371b1
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
xor edi, edi
push 0x76637264
mov dword [ebp - 4], edi
call fcn.766370dc
test eax, eax
je 0x76637245
mov esi, 0x80000
push esi
push dword [ebp + 8]
call fcn.766020d4
xor ebx, ebx
mov edi, eax
inc ebx
test edi, edi
je 0x766371ec
and dword [ebp - 4], 0
jmp 0x76637209
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x76637202
push esi
push dword [ebp + 8]
call fcn.76636d86
mov edi, eax
test edi, edi
je 0x76637245
mov dword [ebp - 4], ebx
push ebx
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x76637245
push 0
push dword [0x76667a0c]
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorOwner]
test eax, eax
je 0x76637245
lea eax, [ebp - 0x18]
push eax
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
test eax, eax
je 0x76637249
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x7663724b
mov esi, ebx
push edi
call fcn.765ea060
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
pop edi
mov dword [eax], ecx
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x76646b7a
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
cmp dword [ebx + 0x6c], eax
push esi
push edi
mov edi, dword [ebx + 0x78]
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
je 0x76646ba5
push 0x80091009
jmp 0x76646bb3
mov eax, dword [ebx + 0x30]
sub eax, 3
je 0x76646bbe
dec eax
push 0x80091004
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x76646c79
mov esi, dword [ebx + 0x38]
test esi, esi
je 0x76646bae
mov eax, dword [ebp + 0x18]
cmp eax, dword [esi + 0x1c]
jb 0x76646bd4
push 0x80091008
jmp 0x76646bb3
lea eax, [esi + 0x6c]
push eax
call fcn.76645ddb
test eax, eax
mov dword [ebp - 0xc], eax
je 0x76646c79
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x10]
push dword [ebp - 0xc]
call fcn.76644ad0
test eax, eax
je 0x76646c79
test edi, edi
je 0x76646c1e
push dword [ebp - 4]
push ebx
call fcn.7664ce1a
test eax, eax
je 0x76646c79
and dword [ebp - 4], 0
jmp 0x76646ca3
test byte [esi + 0x24], 0x80
je 0x76646c2f
mov eax, dword [esi + 0xbc]
mov dword [ebp + 8], eax
jmp 0x76646c33
and dword [ebp + 8], 0
push dword [ebp + 8]
call fcn.765e44b0
test eax, eax
mov dword [ebp - 8], eax
je 0x76646c79
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x76646c86
mov esi, dword [esi + 0xc0]
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp + 8]
push eax
push dword [ebp - 8]
and ecx, 3
push 0
push 1
push 0
rep movsb byte es:[edi], byte [esi]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x76646c86
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
xor esi, esi
jmp 0x76646cb8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov eax, dword [ebp + 8]
and dword [ebp - 4], 0
mov dword [ebx + 0x68], eax
mov eax, dword [ebp - 8]
and dword [ebp - 8], 0
mov dword [ebx + 0x6c], eax
test byte [ebp + 0xd], 0x80
je 0x76646caf
mov eax, dword [ebp + 0x14]
mov dword [ebx + 0x64], eax
mov eax, dword [ebp + 0x18]
xor esi, esi
mov dword [ebx + 0x70], eax
inc esi
push dword [ebp - 0xc]
call fcn.765e40a0
push dword [ebp - 8]
call fcn.765e40a0
cmp dword [ebp - 4], 0
je 0x76646cd7
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push dword [ebp - 0x10]
call fcn.765ffbbd
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x20