joyce8/EMBER2024-capa huggingface dataset:
Function at 0x65bdd0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x857060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ebx
mov word [ebp - 8], 0x500
push esi
push edi
test ecx, ecx
jne 0x65be10
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, eax
mov dword [ebp - 0x1c], esi
jmp 0x65be23
push ecx
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x1c], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x65be4a
call edi
cmp eax, 5
jne 0x65be4a
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006d0965
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x14]
mov dword [ebp - 0x20], ebx
push eax
push 8
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x65bf09
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push 0
push 2
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x65be85
call edi
cmp eax, 0x7a
jne 0x65bf09
push dword [ebp - 0x10]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push ebx
push 2
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x65bf09
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x65bf09
xor edi, edi
cmp dword [ebx], edi
jbe 0x65bf09
lea esi, [ebx + 8]
nop dword [eax]
push dword [esi - 4]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x65bef5
test byte [esi], 4
jne 0x65beff
inc edi
add esi, 8
cmp edi, dword [ebx]
jb 0x65bee0
jmp 0x65bf06
mov dword [ebp - 0x20], 1
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x65bf17
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
test ebx, ebx
je 0x65bf22
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x65bf32
push eax
call edi
test esi, esi
je 0x65bf39
push esi
call edi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x20]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.006d0965
mov esp, ebp
pop ebp
ret
Function at 0x65d970
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [0x857060]
xor eax, esp
mov dword [esp + 0x1c], eax
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x65d9c1
lea eax, [esp + 4]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x65d9d2
push dword [esp]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.006d0965
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 4]
push 0
push 0
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
push 0
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
push eax
push 0
push dword [esp + 0x14]
mov dword [esp + 0x24], 1
mov dword [esp + 0x30], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [esp]
test eax, eax
je 0x65d9bb
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x1c]
mov al, 1
xor ecx, esp
call fcn.006d0965
mov esp, ebp
pop ebp
ret
Function at 0x65e370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ecx, 0x87c5b0
push 0
call fcn.006d22b6
mov edi, eax
mov dword [ebp - 8], 1
test edi, edi
je 0x65e505
mov eax, dword [ebp + 8]
shr eax, 4
mov dword [ebp - 0x10], eax
lea ecx, [eax + 1]
movzx eax, cx
mov dword [ebp - 0xc], eax
nop dword [eax + eax]
push 0
push eax
push 6
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov ebx, eax
test ebx, ebx
je 0x65e40c
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x65e40c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x65e40c
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, dword [ebp + 8]
mov ecx, ebx
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x65e402
cmp esi, edx
jae 0x65e40c
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x65e3f0
cmp esi, edx
jae 0x65e40c
cmp word [esi], 0
jne 0x65e42d
mov ebx, dword [ebp - 8]
mov ecx, 0x87c5b0
push ebx
call fcn.006d22b6
mov edi, eax
inc ebx
mov dword [ebp - 8], ebx
test edi, edi
je 0x65e505
mov eax, dword [ebp - 0xc]
jmp 0x65e3b0
test edi, edi
je 0x65e505
mov eax, dword [ebp - 0x10]
inc eax
push 6
movzx eax, ax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x65e505
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x65e505
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x65e505
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and ebx, 0xf
jbe 0x65e496
cmp esi, ecx
jae 0x65e505
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ebx, 1
jne 0x65e484
cmp esi, ecx
jae 0x65e505
movzx eax, word [esi]
test ax, ax
je 0x65e505
mov edx, dword [ebp - 4]
mov edi, eax
mov ebx, eax
mov ecx, 1
mov edx, dword [edx]
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, edi
or ecx, eax
jge 0x65e4cc
mov ebx, dword [ebp - 4]
mov ecx, ebx
push edi
call fcn.00561f20
mov edx, dword [ebx]
movzx ebx, word [esi]
movzx ecx, bx
lea eax, [esi + 2]
push ecx
push eax
push edi
push edx
call fcn.007062d6
push eax
call fcn.00562990
mov ecx, dword [ebp - 4]
add esp, 0x14
mov eax, dword [ecx]
cmp edi, dword [eax - 8]
jg 0x65e510
mov dword [eax - 0xc], edi
mov eax, dword [ecx]
xor ecx, ecx
mov word [eax + edi*2], cx
lea eax, [ecx + 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00560f60
int3
Function at 0x660370
Capabilities:
Set http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x748b18
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x857060]
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, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x40]
push 0x79cd88
push edx
push eax
call fcn.0048f950
add esp, 0xc
mov dword [ebp - 4], 0
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x6603c2
mov ecx, dword [esi]
push dword [esi + 0x10]
push ecx
mov ecx, eax
call fcn.0044a2e0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x18], xmm0
mov word [eax], cx
lea ecx, [ebp - 0x40]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
call fcn.00426ce0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0xa0000000
cmovae eax, dword [ebp - 0x28]
push 0xffffffffffffffff
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
lea ecx, [ebp - 0x28]
call fcn.00426ce0
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.006d0965
mov esp, ebp
pop ebp
ret
Function at 0x6640d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x748d88
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x857060]
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 ebx, [edi + 4]
mov dword [edi], 0
mov dword [ebx], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [ebp - 0x18], 0x104
mov dword [ebp - 0x1c], 0
call fcn.00561070
mov ecx, eax
test ecx, ecx
je 0x664269
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 0
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftInternet_Explorer
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x664224
mov edx, dword [ebp - 0x18]
test edx, edx
js 0x66425f
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x664194
push edx
lea ecx, [ebp - 0x14]
call fcn.00561f20
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x18]
push eax
push esi
push 0
push 0
push str.svcVersion
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x6641f2
mov ecx, dword [ebp - 0x18]
test ecx, ecx
js 0x66425f
mov eax, dword [esi - 8]
mov edx, 1
sub edx, dword [esi - 4]
sub eax, ecx
or eax, edx
jge 0x6641d7
push ecx
lea ecx, [ebp - 0x14]
call fcn.00561f20
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x18]
push eax
push esi
push 0
push 0
push str.Version
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x66421b
cmp dword [ebp - 0x18], 0
jbe 0x66421b
lea eax, [edi + 0xc]
push eax
lea eax, [edi + 8]
push eax
push ebx
push edi
push str._d._d._d._d
push esi
call fcn.004d51b0
add esp, 0x18
cmp eax, 4
je 0x66421b
mov dword [edi], 0
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x664243
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
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.006d0965
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00560f60
push 0x80004005
call fcn.00560f60
int3
Function at 0x664280
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x748dc6
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x857060]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x21c], ecx
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 7
mov word [ebp - 0x238], ax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x24c], eax
lea edx, [ecx + 2]
mov dword [ebp - 0x248], 7
mov word [ebp - 0x25c], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x664307
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x25c]
call fcn.00426d40
mov byte [ebp - 4], 1
lea eax, [ebp - 0x25c]
cmp dword [ebp - 0x248], 8
cmovae eax, dword [ebp - 0x25c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov edx, eax
lea esi, [edx + 2]
nop dword [eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x664350
sub edx, esi
lea ecx, [ebp - 0x238]
sar edx, 1
push edx
push eax
call fcn.00426d40
lea ecx, [ebp - 0x25c]
call fcn.00426ce0
push 0
lea eax, [ebp - 0x244]
mov dword [ebp - 0x244], 0
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push str.SOFTWAREMicrosoftInternet_ExplorerMainFeatureControlFEATURE_BROWSER_EMULATION
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x6644a5
cmp dword [ebp - 0x224], 8
lea ecx, [ebp - 0x23c]
push ecx
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x220], eax
push ecx
lea ecx, [ebp - 0x240]
mov dword [ebp - 0x23c], 4
push ecx
lea eax, [ebp - 0x238]
mov dword [ebp - 0x240], 4
cmovae eax, dword [ebp - 0x238]
push 0
push eax
push dword [ebp - 0x244]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
jne 0x664451
cmp dword [ebp - 0x224], 8
lea ecx, [ebp - 0x21c]
push 4
push ecx
push 4
lea eax, [ebp - 0x238]
cmovae eax, dword [ebp - 0x238]
push 0
push eax
push dword [ebp - 0x244]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x664495
push dword [ebp - 0x244]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x238]
call fcn.00426ce0
jmp 0x6644b4
test eax, eax
jne 0x664438
mov eax, dword [ebp - 0x220]
cmp eax, dword [ebp - 0x21c]
je 0x6644a1
cmp dword [ebp - 0x224], 8
lea ecx, [ebp - 0x21c]
push 4
push ecx
push 4
lea eax, [ebp - 0x238]
cmovae eax, dword [ebp - 0x238]
push 0
push eax
push dword [ebp - 0x244]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x6644a1
push dword [ebp - 0x244]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov bl, 1
jmp 0x6644a7
xor bl, bl
lea ecx, [ebp - 0x238]
call fcn.00426ce0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006d0965
mov esp, ebp
pop ebp
ret
Function at 0x665660
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x721c78
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x857060]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
xor eax, eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
lea esi, [edi + 0x18]
mov dword [ebp - 4], eax
push 0x40
mov dword [ebp - 0x10], esi
mov dword [esi], eax
mov dword [esi + 4], eax
call fcn.006d0976
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
xor eax, eax
mov word [edi + 0x20], ax
mov eax, edi
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x665740
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [0x857060]
xor eax, esp
mov dword [esp + 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x8c], 1
jne 0x6657e2
xor eax, eax
cmp dword [edi + 0x60], 8
mov word [esp + 0xc], ax
mov dword [esp + 0x10], eax
lea eax, [edi + 0x4c]
jb 0x66577b
mov eax, dword [eax]
push str.rb__ccsUTF_8
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00703e30
mov eax, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
je 0x6657e2
push eax
push 2
lea eax, [esp + 0x14]
push 1
push eax
call fcn.006f7196
push dword [esp + 0x20]
call fcn.006f212d
mov ax, word [esp + 0x20]
add esp, 0x14
cmp al, 0xff
jne 0x6657bf
cmp ah, 0xfe
je 0x6657e2
cmp ah, 0xff
jne 0x6657c8
cmp al, 0xfe
je 0x6657e2
mov eax, dword [ebx]
test eax, eax
je 0x6657db
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx], 0
mov ecx, edi
call fcn.00667560
lea esi, [edi + 0x4c]
mov ecx, esi
call fcn.0065b7b0
test eax, eax
je 0x66580c
cmp eax, 1
jne 0x66585e
push ecx
mov dl, al
mov ecx, esi
call fcn.00653dc0
add esp, 4
test al, al
je 0x66585e
mov dword [ebx], 0xffffffff
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x665816
mov eax, dword [esi]
push 0
push 0x200080
push 3
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx], eax
cmp eax, 0xffffffff
jne 0x6658b3
cmp dword [esi + 0x14], 8
jb 0x66583e
mov esi, dword [esi]
push 0
push 0x200080
push 1
push 0
push 3
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx], eax
cmp eax, 0xffffffff
jne 0x665874
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.006d0965
mov esp, ebp
pop ebp
ret 4
cmp dword [edi + 0x8c], 1
push 0
jne 0x665894
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], 0xfeff
push ecx
push 2
lea ecx, [esp + 0x1c]
jmp 0x6658ab
lea ecx, [esp + 0x14]
mov word [esp + 0x10], 0xbbef
push ecx
mov byte [esp + 0x16], 0xbf
lea ecx, [esp + 0x14]
push 3
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x14]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.006d0965
mov esp, ebp
pop ebp
ret 4
Function at 0x665d10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x857060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov esi, edi
lea ecx, [esi + 2]
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x665d30
push 2
push 0
push 0
push dword [ebx + 0x68]
sub esi, ecx
sar esi, 1
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
add esi, esi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
push dword [ebx + 0x68]
call esi
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 4
push 0x79cd74
push dword [ebx + 0x68]
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006d0965
mov esp, ebp
pop ebp
ret 4

Function at 0x665da0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x857060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov esi, edi
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x665dc0
push 2
push 0
push 0
push dword [ebx + 0x68]
sub esi, ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
push dword [ebx + 0x68]
call esi
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 2
push 0x80b1dc
push dword [ebx + 0x68]
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006d0965
mov esp, ebp
pop ebp
ret 4
Function at 0x667560
Capabilities:
Check if file exists
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7491c0
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x857060]
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 esi, [edi + 0x4c]
push esi
lea ecx, [ebp - 0x28]
call fcn.00449230
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.00544140
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.00678250
lea eax, [ebp - 0x58]
mov edx, 0x78f250
push eax
lea ecx, [ebp - 0x70]
call fcn.00457400
add esp, 4
mov byte [ebp - 4], 2
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x6675ea
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x28]
call fcn.0044a2e0
lea ecx, [ebp - 0x70]
call fcn.00426ce0
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea edx, [ebp - 0x40]
mov byte [ebp - 4], 3
mov ecx, esi
call fcn.006783f0
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.005441c0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
je 0x66769a
mov ecx, esi
call fcn.0065b7b0
test eax, eax
jne 0x66769a
cmp dword [esi + 0x10], eax
je 0x66769a
cmp dword [ebp - 0x18], eax
je 0x66769a
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp dword [esi + 0x14], 8
jb 0x66766a
mov esi, dword [esi]
push eax
push esi
call fcn.007047c5
add esp, 8
test eax, eax
jne 0x66769a
lea ecx, [edi + 0xd4]
lea eax, [ebp - 0x28]
cmp ecx, eax
je 0x667696
cmp dword [ebp - 0x14], 8
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00426d40
mov bl, 1
jmp 0x66769c
xor bl, bl
lea ecx, [ebp - 0x40]
call fcn.00426ce0
lea ecx, [ebp - 0x58]
call fcn.00426ce0
lea ecx, [ebp - 0x28]
call fcn.00426ce0
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.006d0965
mov esp, ebp
pop ebp
ret
Function at 0x66ac50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x749567
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x857060]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebp - 4], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x30], 0
lea edi, [ebx + 0x34]
mov byte [ebp - 4], 3
lea ecx, [edi + 4]
mov dword [ebp - 0x14], edi
call fcn.00697a00
mov dword [edi], vtable.CryptoPP::Integer.0
mov ecx, 2
mov dword [edi + 8], 2
call fcn.00688150
mov ecx, 8
call fcn.006858d0
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 0
mov dword [eax + 4], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
lea edi, [ebx + 0x48]
mov byte [ebp - 4], 4
lea ecx, [edi + 4]
mov dword [ebp - 0x14], edi
call fcn.00697a00
mov dword [edi], vtable.CryptoPP::Integer.0
mov ecx, 2
mov dword [edi + 8], 2
call fcn.00688150
mov ecx, 8
call fcn.006858d0
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 0
mov dword [eax + 4], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, ebx
mov byte [ebx + 0x5c], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x66b570
Capabilities:
Hash data with md5

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 0x74961b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xc0
mov eax, dword [0x857060]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0xcc], ecx
mov esi, dword [ebx + 0x10]
push 0x11
mov dword [esi], 0x10
call fcn.006d0f4b
add esp, 4
mov dword [edi], eax
mov ecx, dword [esi]
inc ecx
push ecx
push 0
push eax
call fcn.006e9470
add esp, 0xc
lea eax, [ebp - 0xc8]
push 0xb0
push 0
push eax
call fcn.006e9470
lea eax, [ebp - 0xb8]
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0x6c], eax
add esp, 0xc
lea eax, [ebp - 0x68]
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0x70], 0x10
mov byte [ebp - 0x77], 1
mov dword [ebp - 0x20], 0x10
mov byte [ebp - 0x27], 1
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x68], 0x67452301
mov dword [ebp - 0x64], 0xefcdab89
mov dword [ebp - 0x60], 0x98badcfe
mov dword [ebp - 0x5c], 0x10325476
mov dword [ebp - 0xc8], vtable.CryptoPP::Weak1::MD5.0
push dword [ebx + 8]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xc8]
push dword [ebp - 0xcc]
mov esi, dword [edi]
call fcn.006881d0
mov eax, dword [ebp - 0xc8]
lea ecx, [ebp - 0xc8]
push esi
call dword [eax + 0x14]
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x68]
cmp edi, eax
jne 0x66b690
mov ecx, dword [ebp - 0x20]
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x6c]
lea eax, [ebp - 0xb8]
cmp edi, eax
jne 0x66b6a4
mov ecx, dword [ebp - 0x70]
xor eax, eax
rep stosd dword es:[edi], eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.006d0965
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret

Function at 0x66caa0
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov dword [ebp - 4], esi
call fcn.0066ac50
mov byte [esi + 0xb1], 1
lea eax, [esi + 0x70]
mov dword [eax + 0x48], 0x10
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], 0
mov dword [eax + 0x4c], eax
lea eax, [esi + 0xc0]
mov byte [eax + 0x41], 1
mov dword [eax + 0x48], 0x10
mov dword [eax + 0x4c], eax
mov eax, dword [esi + 0x10c]
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov eax, esi
mov dword [esi + 0x60], vtable.CryptoPP::SHA1.0
mov dword [esi], vtable.CryptoPP::PK_MessageAccumulatorImpl_class_CryptoPP::SHA1_.0
pop esi
mov esp, ebp
pop ebp
ret