joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ed910
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
mov eax, 0x1fffffff
bsr ecx, eax
push esi
push edi
mov edi, 1
mov dword [ebp - 0x10], ebx
mov eax, edi
shl eax, cl
mov ecx, dword [ebp + 8]
cmp ecx, eax
ja 0x4eda6a
lea eax, [ecx - 1]
mov esi, dword [ebx + 4]
or eax, edi
mov dword [ebp - 0xc], esi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
lea ecx, [ebx + 0xc]
lea eax, [edi + edi]
push eax
call fcn.00476120
mov ecx, dword [ebx + 4]
lea eax, [edi - 1]
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], edi
mov ecx, dword [ecx]
mov edx, ecx
cmp ecx, esi
je 0x4eda3c
movzx eax, byte [ecx + 8]
xor eax, 0x811c9dc5
mov edx, dword [edx]
imul edi, eax, 0x1000193
movzx eax, byte [ecx + 9]
xor edi, eax
movzx eax, byte [ecx + 0xa]
imul edi, edi, 0x1000193
xor edi, eax
movzx eax, byte [ecx + 0xb]
imul edi, edi, 0x1000193
xor edi, eax
imul eax, edi, 0x1000193
mov edi, dword [ebx + 0x18]
and edi, eax
mov eax, dword [ebx + 0xc]
mov ebx, dword [eax + edi*8]
lea eax, [eax + edi*8]
mov dword [ebp - 8], eax
cmp ebx, esi
jne 0x4ed9c3
mov dword [eax], ecx
mov dword [eax + 4], ecx
jmp 0x4eda2f
mov eax, dword [eax + 4]
mov edi, dword [ecx + 8]
cmp edi, dword [eax + 8]
jne 0x4ed9fa
mov eax, dword [eax]
cmp eax, ecx
je 0x4ed9f2
mov ebx, dword [ecx + 4]
mov dword [ebp - 4], ebx
mov dword [ebx], edx
mov ebx, dword [edx + 4]
mov dword [ebx], eax
mov edi, dword [eax + 4]
mov dword [edi], ecx
mov dword [eax + 4], ebx
mov eax, dword [ebp - 4]
mov dword [edx + 4], eax
mov dword [ecx + 4], edi
mov eax, dword [ebp - 8]
mov dword [eax + 4], ecx
jmp 0x4eda2f
cmp ebx, eax
je 0x4eda0c
nop
mov eax, dword [eax + 4]
cmp edi, dword [eax + 8]
je 0x4eda45
cmp ebx, eax
jne 0x4eda00
mov ebx, dword [ecx + 4]
mov dword [ebp - 4], ebx
mov dword [ebx], edx
mov ebx, dword [edx + 4]
mov dword [ebx], eax
mov edi, dword [eax + 4]
mov dword [edi], ecx
mov dword [eax + 4], ebx
mov eax, dword [ebp - 4]
mov dword [edx + 4], eax
mov eax, dword [ebp - 8]
mov dword [ecx + 4], edi
mov dword [eax], ecx
mov ebx, dword [ebp - 0x10]
mov ecx, edx
cmp edx, esi
jne 0x4ed972
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ebp - 4], eax
mov esi, dword [ebp - 4]
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov eax, dword [eax + 4]
mov dword [eax], ecx
mov dword [esi + 4], edi
mov esi, dword [ebp - 0xc]
mov dword [edx + 4], ebx
mov dword [ecx + 4], eax
jmp 0x4eda2f
push str.invalid_hash_bucket_count
call fcn.0067e976
int3
Function at 0x4fd1c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x82f084]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x4fd282
cmp byte [esi + 0x3e], 0
je 0x4fd282
mov eax, dword [esi]
push edi
push 0xffff
call dword [eax + 0xc]
mov ecx, 0xffff
cmp cx, ax
je 0x4fd270
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x4fd238
sub eax, 1
je 0x4fd23c
sub eax, 2
jne 0x4fd270
mov byte [esi + 0x3e], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0067d681
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3e], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4fd259
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00698451
add esp, 0x10
cmp edi, eax
jne 0x4fd270
cmp byte [esi + 0x3e], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0067d681
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0067d681
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.0067d681
mov esp, ebp
pop ebp
ret
Function at 0x51a7d0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6ec123
mov eax, dword fs:[0]
push eax
sub esp, 0x288
mov eax, dword [0x82f084]
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, edx
push ecx
lea ecx, [ebp - 0x28]
call fcn.0042fc50
mov dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0
je 0x51a92f
push 2
push 0x782464
lea ecx, [ebp - 0x28]
call fcn.0042ff20
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x278]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x51a92f
nop dword [eax]
test byte [ebp - 0x278], 0x10
jne 0x51a909
xor eax, eax
mov dword [ebp - 0x284], 0
mov word [ebp - 0x294], ax
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x280], 7
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x51a883
sub eax, edx
lea ecx, [ebp - 0x294]
sar eax, 1
push eax
lea eax, [ebp - 0x24c]
push eax
call fcn.0042fe00
mov byte [ebp - 4], 1
mov eax, dword [esi + 4]
cmp eax, dword [esi + 8]
je 0x51a8eb
movups xmm0, xmmword [ebp - 0x294]
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x284]
movq qword [eax + 0x10], xmm0
xor eax, eax
add dword [esi + 4], 0x18
mov dword [ebp - 0x284], 0
mov dword [ebp - 0x280], 7
mov word [ebp - 0x294], ax
jmp 0x51a8fa
lea ecx, [ebp - 0x294]
push ecx
push eax
mov ecx, esi
call fcn.00448540
lea ecx, [ebp - 0x294]
mov byte [ebp - 4], 0
call fcn.0042fd70
lea eax, [ebp - 0x278]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x51a850
push edi
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov byte [ebp - 0x279], 1
jmp 0x51a936
mov byte [ebp - 0x279], 0
lea ecx, [ebp - 0x28]
call fcn.0042fd70
mov al, byte [ebp - 0x279]
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.0067d681
mov esp, ebp
pop ebp
ret
Function at 0x51b6c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x82f084]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, 0xffff
mov esi, ecx
cmp ax, di
jne 0x51b6f5
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0067d681
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push ebx
mov ecx, dword [eax]
test ecx, ecx
je 0x51b733
mov edx, dword [esi + 0x30]
mov ebx, dword [edx]
lea eax, [ecx + ebx*2]
cmp ecx, eax
jae 0x51b733
lea ecx, [ebx - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], di
pop ebx
mov ax, di
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0067d681
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x51b7fc
mov ebx, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [ebx], eax
jne 0x51b75d
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [ebx], ecx
mov eax, dword [esi + 0x1c]
sar edx, 1
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x51b76a
push dword [esi + 0x4c]
push edi
jmp 0x51b7a5
movzx eax, di
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x2c]
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x26]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x51b7fc
cmp eax, 1
jle 0x51b7cf
cmp eax, 3
jne 0x51b7fc
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.006a59df
mov ecx, 0xffff
add esp, 8
cmp ax, cx
movzx eax, di
jne 0x51b801
pop ebx
pop edi
mov eax, ecx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0067d681
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub ebx, eax
je 0x51b7ec
push dword [esi + 0x4c]
push ebx
push 1
push eax
call fcn.00698451
add esp, 0x10
cmp ebx, eax
jne 0x51b7fc
lea eax, [ebp - 0x28]
mov byte [esi + 0x3e], 1
cmp dword [ebp - 0x30], eax
jne 0x51b71d
mov eax, 0xffff
mov ecx, dword [ebp - 4]
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.0067d681
mov esp, ebp
pop ebp
ret 4
Function at 0x51caf0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6ec5c6
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x82f084]
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, ecx
lea eax, [ebp - 0x224]
mov dword [ebp - 0x224], 0x80
push eax
lea eax, [ebp - 0x118]
mov esi, 1
push eax
push 6
call dword [sym.imp.Secur32.dll_GetUserNameExW]
test al, al
je 0x51cbf4
lea ecx, [ebp - 0x118]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x51cb56
sub ecx, edx
lea eax, [ebp - 0x118]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.0042fe00
xor eax, eax
mov dword [ebp - 0x230], 0
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x22c], 7
mov word [ebp - 0x240], ax
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x51cba0
sub ecx, edx
lea eax, [ebp - 0x118]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x240]
call fcn.0042fe00
push edi
lea eax, [ebp - 0x240]
mov dword [ebp - 4], 0
push eax
push 1
call fcn.004f1470
lea ecx, [ebp - 0x240]
mov bl, al
call fcn.0042fd70
test bl, bl
je 0x51cc8c
xor eax, eax
jmp 0x51cc8e
lea eax, [ebp - 0x228]
mov dword [ebp - 0x228], 0x80
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
xor eax, eax
mov dword [ebp - 0x248], 0
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x244], 7
mov word [ebp - 0x258], ax
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x51cc40
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x258]
call fcn.0042fe00
push edi
lea eax, [ebp - 0x258]
mov dword [ebp - 4], 1
push eax
push 1
call fcn.004f1470
lea ecx, [ebp - 0x258]
mov bl, al
call fcn.0042fd70
xor eax, eax
test bl, bl
cmovne esi, eax
mov eax, esi
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.0067d681
mov esp, ebp
pop ebp
ret
Function at 0x51e3a0
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6ec810
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x50
mov eax, dword [0x82f084]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 0x48], 0xff
jb 0x51e3fc
mov eax, dword [esi]
mov byte [eax], 0
xorps xmm0, xmm0
lea eax, [ebp - 0x24]
mov dword [ebp - 0x40], 0
push eax
mov byte [ebp - 0x41], 0
movlpd qword [ebp - 0x24], xmm0
call fcn.00680af2
add esp, 4
mov dword [ebp - 4], 0
lea eax, [ebp - 0x24]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x41]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x2c]
push eax
push 0x5253f0
push 0x8563f0
call fcn.0067eab8
add esp, 0xc
test eax, eax
lea eax, [ebp - 0x24]
push eax
je 0x51e560
call fcn.00680b9b
add esp, 4
mov ecx, 0x783198
cmp byte [0x8570ec], 0
mov eax, 0x783188
cmove eax, ecx
movups xmm0, xmmword [eax]
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 1
push eax
push 0
push 0
lea eax, [ebp - 0x3c]
push eax
movups xmmword [ebp - 0x3c], xmm0
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x51e53b
mov edx, dword [ebp - 0x40]
test edx, edx
je 0x51e53b
mov ecx, edx
mov dword [ebp - 0x50], 0
xor eax, eax
mov dword [ebp - 0x4c], 7
mov word [ebp - 0x60], ax
lea edi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x51e4c0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x60]
call fcn.0042fe00
mov edx, esi
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x60]
call fcn.0050d290
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 1
call fcn.0042fd70
push 1
push 0x781a34
mov ecx, esi
call fcn.00441730
push 5
push 0x782900
mov ecx, esi
call fcn.00441730
push 1
push 0x781a34
mov ecx, esi
call fcn.00441730
push dword [ebp - 0x40]
xor esi, esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x51e540
mov esi, 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0067d681
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00680c74
add esp, 4
test al, al
jne 0x51e571
call fcn.0067ead0
sub esp, 8
lea eax, [ebp - 0x24]
mov ecx, esp
push eax
call fcn.004bb7d0
call fcn.004bb820
int3
Function at 0x51e590
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6ec848
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x38
mov eax, dword [0x82f084]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x34], 0xff
jb 0x51e5ec
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x30]
movups xmm0, xmmword [0x7831e8]
push eax
push ecx
push ecx
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x30], ecx
push eax
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 4], ecx
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x51e693
mov edx, dword [ebp - 0x30]
test edx, edx
je 0x51e693
mov ecx, edx
mov dword [ebp - 0x3c], 0
xor eax, eax
mov dword [ebp - 0x38], 7
mov word [ebp - 0x4c], ax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x51e636
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x4c]
call fcn.0042fe00
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 1
cmp esi, eax
je 0x51e66d
cmp dword [ebp - 0x38], 8
mov ecx, esi
push dword [ebp - 0x3c]
cmovae eax, dword [ebp - 0x4c]
push eax
call fcn.0042fe00
lea ecx, [ebp - 0x4c]
call fcn.0042fd70
push dword [ebp - 0x30]
xor esi, esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x51e698
mov esi, 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0067d681
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x51e6c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6ec878
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x82f084]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x2c], 0xff
jb 0x51e708
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x28]
movups xmm0, xmmword [0x7831d8]
push eax
push ecx
push ecx
lea eax, [ebp - 0x24]
mov dword [ebp - 0x28], ecx
push eax
movups xmmword [ebp - 0x24], xmm0
mov dword [ebp - 4], ecx
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x51e7a9
mov edx, dword [ebp - 0x28]
test edx, edx
je 0x51e7a9
mov ecx, edx
mov dword [ebp - 0x34], 0
xor eax, eax
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x51e752
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x44]
call fcn.0042fe00
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 1
cmp esi, eax
je 0x51e789
cmp dword [ebp - 0x30], 8
mov ecx, esi
push dword [ebp - 0x34]
cmovae eax, dword [ebp - 0x44]
push eax
call fcn.0042fe00
lea ecx, [ebp - 0x44]
call fcn.0042fd70
push dword [ebp - 0x28]
xor esi, esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x51e7ae
mov esi, 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0067d681
mov esp, ebp
pop ebp
ret
Function at 0x51e7d0
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6ec8a8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x38
mov eax, dword [0x82f084]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 0x34], 0xff
jb 0x51e82c
mov eax, dword [esi]
mov byte [eax], 0
lea eax, [ebp - 0x30]
movups xmm0, xmmword [0x7831b8]
push eax
push 0
push 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x30], 0
push eax
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 4], 0
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x51e901
mov edx, dword [ebp - 0x30]
test edx, edx
je 0x51e901
mov ecx, edx
mov dword [ebp - 0x3c], 0
xor eax, eax
mov dword [ebp - 0x38], 7
mov word [ebp - 0x4c], ax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x51e886
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x4c]
call fcn.0042fe00
mov edx, esi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4c]
call fcn.0050d290
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0
call fcn.0042fd70
push 1
push 0x781a34
mov ecx, esi
call fcn.00441730
push 5
push 0x782900
mov ecx, esi
call fcn.00441730
push 1
push 0x781a34
mov ecx, esi
call fcn.00441730
push dword [ebp - 0x30]
xor esi, esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x51e906
mov esi, 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0067d681
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x5219f0
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6eccc8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x82f084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ecx + 0x10]
mov esi, dword [ebp + 0xc]
test edi, edi
je 0x521b18
mov eax, dword [edx + 0x10]
test eax, eax
je 0x521b18
cmp byte [ebp + 8], 0
jne 0x521b0d
cmp dword [ecx + 0x14], 0x10
jb 0x521a45
mov ecx, dword [ecx]
cmp dword [edx + 0x14], 0x10
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], edi
jb 0x521a53
mov edx, dword [edx]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x30]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x38]
mov dword [ebp - 0x34], edx
push eax
push 0
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.CRYPT32.dll_CryptProtectData]
test eax, eax
je 0x521b18
push dword [ebp - 0x30]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
push dword [ebp - 0x2c]
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.00430160
mov dword [ebp - 4], 0
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.DLL_LocalFree]
mov dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 0x10
jb 0x521abc
mov eax, dword [esi]
mov byte [eax], 0
lea eax, [ebp - 0x28]
cmp esi, eax
je 0x521ad9
cmp dword [ebp - 0x14], 0x10
mov ecx, esi
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00430160
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x521b09
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x521aff
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x521b38
push edx
push ecx
call fcn.0067d913
add esp, 8
xor eax, eax
jmp 0x521b1d
push esi
call fcn.00521820
add esp, 4
jmp 0x521b1d
mov eax, 1
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.0067d681
mov esp, ebp
pop ebp
ret
call fcn.00692c95
int3
Function at 0x521d10
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6eccf8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x82f084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ecx + 0x10]
mov esi, dword [ebp + 0xc]
test edi, edi
je 0x521e38
mov eax, dword [edx + 0x10]
test eax, eax
je 0x521e38
cmp byte [ebp + 8], 0
jne 0x521e2d
cmp dword [ecx + 0x14], 0x10
jb 0x521d65
mov ecx, dword [ecx]
cmp dword [edx + 0x14], 0x10
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], edi
jb 0x521d73
mov edx, dword [edx]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x30]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x38]
mov dword [ebp - 0x34], edx
push eax
push 0
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x521e38
push dword [ebp - 0x30]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
push dword [ebp - 0x2c]
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.00430160
mov dword [ebp - 4], 0
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.DLL_LocalFree]
mov dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 0x10
jb 0x521ddc
mov eax, dword [esi]
mov byte [eax], 0
lea eax, [ebp - 0x28]
cmp esi, eax
je 0x521df9
cmp dword [ebp - 0x14], 0x10
mov ecx, esi
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00430160
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x521e29
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x521e1f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x521e58
push edx
push ecx
call fcn.0067d913
add esp, 8
xor eax, eax
jmp 0x521e3d
push esi
call fcn.00521b40
add esp, 4
jmp 0x521e3d
mov eax, 1
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.0067d681
mov esp, ebp
pop ebp
ret
call fcn.00692c95
int3
Function at 0x521fe0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6ecd5b
mov eax, dword fs:[0]
push eax
mov eax, 0x114c
call fcn.0067e1a0
mov eax, dword [0x82f084]
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, ecx
push 0x118
xor ebx, ebx
lea eax, [ebp - 0x112c]
push ebx
push eax
call fcn.00690480
add esp, 0xc
mov dword [ebp - 0x1130], 0x11c
xor eax, eax
mov dword [ebp - 0x1148], ebx
lea ecx, [ebp - 0x1158]
mov dword [ebp - 0x1144], 7
mov word [ebp - 0x1158], ax
push 9
push str.ntdll.dll
call fcn.0042fe00
push 0x800
lea eax, [ebp - 0x810]
mov dword [ebp - 4], ebx
push ebx
push eax
mov dword [ebp - 0x1134], ebx
call fcn.00690480
add esp, 0xc
lea eax, [ebp - 0x1010]
push 0x800
push ebx
push eax
call fcn.00690480
add esp, 0xc
lea eax, [ebp - 0x1158]
mov dword [ebp - 0x113c], eax
lea eax, [ebp - 0x1134]
mov dword [ebp - 0x1138], eax
lea eax, [ebp - 0x810]
push 0x400
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
test eax, eax
je 0x5220d7
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x113c]
call fcn.00521ef0
test eax, eax
jne 0x5220ff
push 0x400
lea eax, [ebp - 0x1010]
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
test eax, eax
je 0x5220ff
lea eax, [ebp - 0x1010]
push eax
lea ecx, [ebp - 0x113c]
call fcn.00521ef0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1158]
mov esi, dword [ebp - 0x1134]
call fcn.0042fd70
test esi, esi
je 0x522144
push str.RtlGetVersion
push esi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x522139
lea ecx, [ebp - 0x1130]
mov ebx, 1
push ecx
call eax
push esi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
test ebx, ebx
jne 0x522175
mov esi, dword [sym.imp.KERNEL32.DLL_GetVersionExW]
lea eax, [ebp - 0x1130]
push eax
call esi
test eax, eax
jne 0x522175
lea eax, [ebp - 0x1130]
mov dword [ebp - 0x1130], 0x114
push eax
call esi
test eax, eax
jne 0x522175
mov eax, 1
jmp 0x52219b
mov eax, dword [ebp - 0x112c]
mov dword [edi], eax
mov eax, dword [ebp - 0x1128]
mov dword [edi + 4], eax
movzx eax, byte [ebp - 0x1016]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x1124]
mov dword [edi + 0xc], eax
xor eax, eax
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.0067d681
mov esp, ebp
pop ebp
ret