joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18021f80
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push edi
xor edi, edi
mov bl, dl
mov bh, cl
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edx, [ebp - 4]
mov ecx, eax
call fcn.180a3aba
test eax, eax
je 0x1802209a
cmp dword [ebp - 4], edi
je 0x1802209a
push esi
lea ecx, [ebp - 0xc]
call fcn.1800e74f
push dword [ebp - 0xc]
lea ecx, [ebp - 8]
call fcn.18006d94
push str.GoogleUpdateComRegisterShell64.exe
lea ecx, [ebp - 8]
call fcn.18009d8f
mov esi, dword [ebp - 8]
test eax, eax
jne 0x18021fe6
call fcn.18013c92
mov ebx, eax
jmp 0x18022082
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x18021ffb
mov ebx, 0x80070002
jmp 0x18022082
call fcn.18004001
push eax
lea ecx, [ebp - 8]
call fcn.180070cc
mov eax, 0x1817fc2c
mov ecx, eax
test bl, bl
jne 0x18022019
mov ecx, str._unregister
test bh, bh
jne 0x18022022
mov eax, str._user
push ecx
push eax
lea eax, [ebp - 8]
push 0x181aa7f0
push eax
call fcn.1800f22e
add esp, 0xc
lea ecx, [ebp - 0x38]
push esi
call fcn.1800f533
push edi
push edi
mov edi, dword [ebp - 8]
lea ecx, [ebp - 0x38]
push edi
call fcn.1800f6a7
mov ebx, eax
test ebx, ebx
js 0x18022072
push 0x7530
lea ecx, [ebp - 0x38]
call fcn.1800f78b
movzx ebx, al
neg ebx
sbb ebx, ebx
and ebx, 0x7ff8fa4c
add ebx, 0x800705b4
lea ecx, [ebp - 0x38]
call fcn.1800f64e
lea ecx, [edi - 0x10]
call fcn.18004665
lea ecx, [esi - 0x10]
call fcn.18004665
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.18004665
mov eax, ebx
pop esi
jmp 0x1802209c
xor eax, eax
pop edi
pop ebx
leave
ret

Function at 0x1802340f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
call fcn.18021d6c
mov ebx, eax
test ebx, ebx
je 0x1802343f
cmp dword [ebx], 0
je 0x1802343f
push ecx
mov ecx, ebx
call fcn.18014cd2
mov esi, eax
test esi, esi
js 0x180234bc
add ebx, 0x24
jne 0x18023423
xor ebx, ebx
mov esi, ebx
test esi, esi
js 0x180234df
jne 0x180234dc
cmp byte [edi + 0x3c], 0
je 0x180234c7
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0x30], eax
test eax, eax
je 0x180234c0
lea eax, [ebp - 4]
push eax
push ebx
push edi
push 0x1802589e
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
test ebx, ebx
jne 0x18023491
push dword [edi + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [edi + 0x30], ebx
test ebx, ebx
je 0x180234c0
call dword [sym.imp.ole32.dll_CoResumeClassObjects]
mov esi, eax
test esi, esi
jns 0x180234b3
push dword [edi + 0x30]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [edi + 0x34]
add eax, eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180234cf
xor ebx, ebx
jmp 0x18023443
mov esi, 0x80004005
jmp 0x180234d3
call dword [sym.imp.ole32.dll_CoResumeClassObjects]
mov esi, eax
test esi, esi
jns 0x180234df
mov ecx, edi
call fcn.18021e98
jmp 0x180234df
mov byte [edi + 0x3c], bl
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x18025f09
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x181cb008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
lea eax, [ebp - 0x210]
push 0x208
push esi
mov ebx, 0x181a6a14
mov dword [ebp - 0x220], esi
push eax
mov edi, ecx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x218], esi
call fcn.18147220
lea ecx, [ebp - 0x224]
mov dword [esp], 0x20008
call fcn.18007eef
lea eax, [ebp - 0x210]
push eax
push esi
push dword [ebp - 0x220]
push 0x1c
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
test esi, esi
js 0x18025fb0
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x214]
call fcn.18006d94
mov edx, edi
lea ecx, [ebp - 0x214]
call fcn.180084c5
mov ecx, dword [ebp - 0x214]
mov esi, eax
add ecx, 0xfffffff0
call fcn.18004665
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x224], ebx
call fcn.18007f28
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18144705
leave
ret
Function at 0x18026ce2
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
push edi
xor edi, edi
mov eax, dword [esi]
cmp dword [eax - 0xc], edi
jne 0x18026cfe
mov eax, 0x80070057
jmp 0x18026d6a
call fcn.18004001
push eax
lea ecx, [ebp + 0xc]
call fcn.180070cc
push dword [esi]
lea eax, [ebp + 0xc]
push str._s_last.dmp
push eax
call fcn.1800f22e
lea eax, [ebp + 0xc]
push eax
lea edx, [ebx + 4]
lea ecx, [ebp - 4]
call fcn.1800ee00
mov esi, dword [ebp - 4]
add esp, 0x10
cmp dword [esi - 0xc], edi
jne 0x18026d3d
mov edi, 0x80040709
jmp 0x18026d55
mov eax, dword [ebp + 8]
push edi
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x18026d55
call fcn.18013c92
mov edi, eax
lea ecx, [esi - 0x10]
call fcn.18004665
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.18004665
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x18026d71
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x181cb008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov eax, ecx
lea edi, [ebp - 0x60]
push 0x14
pop ecx
mov esi, str.____________________________________.dmp
lea edx, [ebp - 0x60]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x70]
xor ebx, ebx
push ecx
mov ecx, dword [eax + 4]
movsw word es:[edi], word [esi]
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ebx
call fcn.1800a9c1
mov esi, eax
pop ecx
test esi, esi
js 0x18026ebf
call fcn.1800bd71
mov edi, dword [ebp - 0x6c]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x70]
sub edi, eax
mov dword [ebp - 0x80], edx
cmp edi, 4
jb 0x18026ebd
sar edi, 2
and dword [ebp - 0x78], 0
and dword [ebp - 0x74], 0
mov esi, dword [eax + ebx*4]
mov ecx, esi
call fcn.18008178
movzx eax, al
neg eax
push 0
sbb eax, eax
and eax, 0x2000000
push eax
push 3
push 0
push 1
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
xor eax, eax
mov dword [ebp - 0x64], eax
cmp esi, 0xffffffff
jne 0x18026e1f
call fcn.18013c92
jmp 0x18026e42
push eax
push eax
lea eax, [ebp - 0x78]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
jne 0x18026e38
call fcn.18013c92
mov dword [ebp - 0x64], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x64]
test eax, eax
js 0x18026eb1
mov eax, dword [ebp - 0x7c]
xor ecx, ecx
or ecx, dword [ebp - 0x78]
sub eax, ecx
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 0x88], eax
sbb ecx, dword [ebp - 0x74]
and dword [ebp - 0x90], 0
mov eax, ecx
and ecx, 0x7fffffff
and eax, 0x80000000
mov dword [ebp - 0x84], ecx
fild qword [ebp - 0x88]
mov dword [ebp - 0x8c], eax
push ecx
push ecx
fild qword [ebp - 0x90]
fchs
faddp st(1)
fstp qword [esp]
call fcn.18153322
fcomp qword [0x181c5b60]
fnstsw ax
pop ecx
pop ecx
test ah, 1
jne 0x18026eb1
mov eax, dword [ebp - 0x70]
push dword [eax + ebx*4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x70]
inc ebx
cmp ebx, edi
jne 0x18026ddc
xor esi, esi
lea ecx, [ebp - 0x70]
call fcn.1800b41f
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18144705
leave
ret
Function at 0x1803a49b
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x27c
mov eax, dword [0x181cb008]
xor eax, esp
mov dword [esp + 0x278], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x250
mov dword [esp + 0x18], eax
xor ebx, ebx
lea eax, [esp + 0x34]
mov dword [esp + 0x30], edx
mov esi, ecx
push ebx
push eax
mov dword [esp + 0x1c], esi
call fcn.18147220
add esp, 0xc
lea ecx, [esp + 0x28]
mov edx, esi
push 0x181a6844
call fcn.18006bfe
pop ecx
lea ecx, [esp + 0x30]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [esp + 0x28]
mov esi, eax
lea ecx, [ecx - 0x10]
call fcn.18004665
cmp esi, 0xffffffff
jne 0x1803a53b
call fcn.18013c92
mov edi, eax
mov ebx, edi
cmp esi, 0xffffffff
je 0x1803a524
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x284]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.18144705
mov esp, ebp
pop ebp
ret
mov edi, ebx
mov eax, dword [esp + 0x2c]
sub eax, ebx
je 0x1803a5e5
sub eax, 1
je 0x1803a585
sub eax, 1
jne 0x1803a645
cmp dword [esp + 0x30], 0x80
je 0x1803a56c
test byte [esp + 0x30], 0x10
jne 0x1803a645
push dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x34]
call fcn.1803a3ec
pop ecx
mov edi, eax
jmp 0x1803a645
test byte [esp + 0x30], 0x10
je 0x1803a645
lea ecx, [esp + 0x30]
call fcn.1803a3af
test al, al
jne 0x1803a645
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x1c]
call fcn.18006d94
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x20]
call fcn.1800ee00
pop ecx
mov ecx, dword [esp + 0x18]
lea ecx, [ecx - 0x10]
call fcn.18004665
push dword [esp + 0x14]
lea ecx, [esp + 0x20]
push 2
pop edx
call fcn.1803a49b
pop ecx
mov ecx, dword [esp + 0x1c]
jmp 0x1803a63b
test byte [esp + 0x30], 0x10
je 0x1803a645
lea ecx, [esp + 0x30]
call fcn.1803a3af
test al, al
jne 0x1803a645
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x24]
call fcn.18006d94
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x28]
call fcn.1800ee00
pop ecx
mov ecx, dword [esp + 0x20]
lea ecx, [ecx - 0x10]
call fcn.18004665
push dword [esp + 0x14]
xor edx, edx
lea ecx, [esp + 0x28]
inc edx
call fcn.1803a49b
pop ecx
mov ecx, dword [esp + 0x24]
lea ecx, [ecx - 0x10]
mov edi, eax
call fcn.18004665
test edi, edi
js 0x1803a516
lea eax, [esp + 0x30]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1803a53d
jmp 0x1803a518
Function at 0x1803a8ab
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
and dword [ebp - 0xc], 0
push ebx
push esi
mov ebx, ecx
mov ecx, 0x181cc9b8
push edi
mov dword [ebp - 0x10], ebx
call fcn.18016dc7
lea eax, [ebx + 0x14]
push eax
lea ecx, [ebp - 0x18]
call fcn.1800eb4c
mov esi, dword [ebp + 8]
mov ecx, dword [esi]
sub ecx, 0x10
call fcn.18007149
add eax, 0x10
xor ecx, ecx
inc ecx
mov dword [ebp - 0xc], eax
xor edi, edi
mov dword [ebp - 8], ecx
mov ebx, ecx
cmp dword [eax - 0xc], edi
je 0x1803a92b
mov ecx, dword [esi + 4]
sub ecx, 0x10
call fcn.18007149
push 3
pop ebx
lea esi, [eax + 0x10]
cmp dword [esi - 0xc], edi
mov edi, dword [ebp + 8]
je 0x1803a931
mov ecx, dword [edi + 8]
sub ecx, 0x10
call fcn.18007149
add eax, 0x10
xor ecx, ecx
push 7
pop ebx
cmp dword [eax - 0xc], ecx
je 0x1803a934
mov byte [ebp - 8], cl
jmp 0x1803a934
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 8]
test bl, 4
je 0x1803a941
lea ecx, [eax - 0x10]
call fcn.18004665
test bl, 2
je 0x1803a94e
lea ecx, [esi - 0x10]
call fcn.18004665
mov ecx, dword [ebp - 0xc]
add ecx, 0xfffffff0
call fcn.18004665
cmp byte [ebp - 8], 0
je 0x1803a966
mov ebx, 0x80070057
jmp 0x1803a9e2
call fcn.18004001
push eax
lea ecx, [ebp + 8]
call fcn.180070cc
mov ecx, dword [ebp - 0x10]
lea eax, [ebp + 8]
push eax
push edi
call fcn.1803ae81
mov esi, eax
test esi, esi
js 0x1803a9d5
lea edx, [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.1800eea1
mov ecx, dword [eax]
call fcn.180050ee
mov ecx, dword [ebp - 0x10]
mov esi, eax
lea ecx, [ecx - 0x10]
call fcn.18004665
test esi, esi
js 0x1803a9d5
mov ecx, dword [ebp + 0xc]
lea edx, [ebp + 8]
call fcn.1803a666
mov esi, eax
test esi, esi
js 0x1803a9d5
mov edx, dword [ebp + 0x10]
lea ecx, [ebp + 8]
call fcn.1803afb9
mov esi, eax
test esi, esi
jns 0x1803a9f3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, esi
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.18004665
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
call dword [edx + 8]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0xc
mov ecx, 0x181cc9d8
call fcn.18016dc7
xor ebx, ebx
jmp 0x1803a9d7
Function at 0x1803f6bb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
push 2
xor edi, edi
push edi
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
je 0x1803f6fe
push str.GOOGLEUPDATEAPPLICATIONCOMMANDS
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x1803f6fe
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, 4
jne 0x1803f72c
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x1803f715
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x1803f731
movzx edi, di
or edi, 0x80070000
jmp 0x1803f731
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x1803f727
mov edi, 0x80070006
jmp 0x1803f731
cmp dword [eax], 1
je 0x1803f731
mov edi, 0x8000ffff
test esi, esi
je 0x1803f73c
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x18040197
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 0xc], ebx
call fcn.18004001
push eax
mov ecx, ebx
call fcn.180070cc
xor ecx, ecx
lea eax, [ebx + 4]
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.18007149
xor ebx, ebx
inc ebx
lea edi, [eax + 0x10]
mov dword [ebp - 8], edi
mov dword [ebp + 8], edi
cmp dword [edi - 4], ebx
jle 0x180401f4
push dword [edi - 0xc]
lea ecx, [ebp + 8]
call fcn.180072bc
mov edi, dword [ebp + 8]
mov dword [ebp - 8], edi
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
neg eax
sbb eax, eax
and eax, 0x18004a66
je 0x1804024f
cmp dword [ebp - 4], ebx
jl 0x1804024f
push dword [esi]
mov ecx, dword [ebp - 0xc]
call fcn.18006dc6
cmp dword [ebp - 4], ebx
jle 0x18040253
mov edi, dword [ebp - 0x10]
push dword [esi + ebx*4]
lea ecx, [ebp + 8]
call fcn.18006d94
lea eax, [ebp + 8]
mov ecx, edi
push eax
call fcn.18009e4a
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.18004665
inc ebx
cmp ebx, dword [ebp - 4]
jl 0x18040223
mov edi, dword [ebp - 8]
jmp 0x18040253
test esi, esi
je 0x1804025a
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [edi - 0x10]
call fcn.18004665
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x180403ad
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov eax, dword [edi + 0x24]
cmp eax, esi
je 0x180403cd
test eax, eax
je 0x180403ca
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x24], esi
mov eax, dword [edi + 0x28]
mov esi, dword [ebp + 0xc]
cmp eax, esi
je 0x180403e5
test eax, eax
je 0x180403e2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x28], esi
mov eax, dword [ebp + 0x10]
mov edx, dword [eax + 4]
test edx, edx
je 0x180403f6
lock inc dword [edx + 4]
mov edx, dword [eax + 4]
mov ecx, dword [edi + 0x30]
mov eax, dword [eax]
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], edx
test ecx, ecx
je 0x1804040a
call fcn.1801d408
test edi, edi
je 0x18040414
mov eax, dword [edi]
push edi
call dword [eax + 4]
xor ebx, ebx
push ebx
push ebx
push edi
push 0x18040765
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, dword [edi + 0x34]
mov dword [ebp + 8], eax
cmp esi, eax
je 0x18040443
test esi, esi
je 0x1804043e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
mov dword [edi + 0x34], eax
mov esi, eax
neg esi
sbb esi, esi
and esi, 0x18004a66
jne 0x18040456
call fcn.18013c92
mov ebx, eax
neg esi
sbb esi, esi
not esi
and esi, edi
je 0x18040466
mov eax, dword [esi]
push esi
call dword [eax + 8]
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0xc
Function at 0x1804059a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10018
call fcn.1816bdd0
mov eax, dword [0x181cb008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
push esi
mov dword [ebp - 0x10014], eax
mov esi, dword [eax + 0x28]
test esi, esi
je 0x180406d3
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
xor ecx, ecx
push ecx
mov dword [eax + 0x28], ecx
lea eax, [ebp - 0x1000c]
push eax
push 0x10000
lea eax, [ebp - 0x10008]
mov dword [ebp - 0x1000c], ecx
push eax
push esi
call edi
mov ecx, dword [ebp - 0x1000c]
mov ebx, ecx
jmp 0x1804062d
test ecx, ecx
je 0x18040631
mov ecx, 0x10000
cmp ebx, ecx
je 0x18040631
and dword [ebp - 0x1000c], 0
lea eax, [ebp - 0x1000c]
push 0
push eax
sub ecx, ebx
lea eax, [ebp - 0x10008]
push ecx
add eax, ebx
push eax
push esi
call edi
mov ecx, dword [ebp - 0x1000c]
add ebx, ecx
test eax, eax
jne 0x180405f9
lea eax, [ebp - 0x10018]
mov dword [ebp - 0x10018], 0xf
push eax
push ebx
lea eax, [ebp - 0x10008]
push eax
call dword [sym.imp.ADVAPI32.dll_IsTextUnicode]
mov ecx, dword [ebp - 0x10014]
mov edi, eax
add ecx, 0x38
push ecx
lea ecx, [ebp - 0x10010]
call fcn.1800eb4c
test edi, edi
je 0x1804069a
mov edi, dword [ebp - 0x10014]
xor eax, eax
mov word [ebp + ebx - 0x10008], ax
lea eax, [ebp - 0x10008]
push eax
call fcn.1814b183
pop ecx
push eax
lea eax, [ebp - 0x10008]
push eax
lea ecx, [edi + 0x54]
call fcn.1800704f
jmp 0x180406bf
cmp ebx, 0x10002
jae 0x180406e0
mov ecx, dword [ebp - 0x10014]
lea eax, [ebp - 0x10008]
push eax
mov byte [ebp + ebx - 0x10008], 0
lea ecx, [ecx + 0x54]
call fcn.1800c2bb
mov ecx, dword [ebp - 0x10010]
mov eax, dword [ecx]
call dword [eax + 8]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.18144705
leave
ret
call fcn.18144f79
int3
Function at 0x18046459
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, ecx
xor edx, edx
push edi
xor edi, edi
push edi
mov eax, dword [ebx + 0x88]
push 0x80
cmp dword [eax + 0x30], edi
setne dl
lea edx, [edx*2 + 2]
push edx
push edi
push edi
push 0x40000000
push dword [ebx + 0x48]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x18046511
mov eax, dword [ebx + 0x88]
cmp dword [eax + 0x30], edi
je 0x18046521
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x1804651a
cmp eax, 0x7fffffff
ja 0x1804651a
mov edx, dword [ebx + 0x88]
push edi
cmp eax, dword [edx + 0x30]
mov ecx, dword [edx + 0x34]
mov dword [ebp - 4], ecx
setg cl
cmp eax, dword [edx + 0x34]
setne al
or cl, al
je 0x18046501
push 0x80
push 2
push edi
push edi
push 0x40000000
mov dword [edx + 0x34], edi
push dword [ebx + 0x48]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp esi, ebx
je 0x180464fc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, ebx
cmp esi, 0xffffffff
jmp 0x1804650f
push edi
push edi
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x18046524
call fcn.18013c92
mov edi, eax
jmp 0x1804652e
mov edi, 0x80004005
jmp 0x1804652e
mov dword [eax + 0x34], edi
mov eax, dword [ebp + 8]
mov ecx, esi
or esi, 0xffffffff
mov dword [eax], ecx
cmp esi, 0xffffffff
je 0x1804653a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x18048c92
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0x10]
push esi
push edi
xor esi, esi
mov edi, ecx
mov edx, dword [eax]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov eax, dword [edx - 0xc]
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], edx
lea eax, [eax*2 + 2]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
push eax
push 1
push esi
push esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], esi
push eax
push str.gupdate
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.CRYPT32.dll_CryptProtectData]
test eax, eax
jne 0x18048cee
call fcn.18013c92
jmp 0x18048d12
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
add eax, ecx
push eax
push ecx
push esi
lea ecx, [ebp - 0x24]
call fcn.18047051
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
mov esi, dword [ebp - 0x24]
test eax, eax
js 0x18048db3
push ebx
push edi
lea ecx, [ebp - 0x18]
call fcn.1800eb4c
push dword [ebp + 8]
lea ecx, [edi + 0x1c]
call fcn.1804923c
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x18048d6d
push dword [ebp + 8]
lea ecx, [edi + 0x1c]
call fcn.18049272
push dword [ebp + 0xc]
lea ecx, [edi + 0x28]
call fcn.18049272
lea eax, [ebp - 0x24]
push eax
lea ecx, [edi + 0x34]
call fcn.180491ba
lea eax, [ebp + 8]
mov dword [ebp + 8], 0xffff
push eax
lea ecx, [edi + 0x40]
call fcn.18049113
jmp 0x18048daa
push dword [ebp + 0xc]
lea ecx, [edi + 0x28]
push ebx
call fcn.180490ee
mov ecx, eax
call fcn.18006d3c
push ebx
lea ecx, [edi + 0x34]
call fcn.18049195
lea ecx, [ebp - 0x24]
cmp eax, ecx
je 0x18048d9b
push dword [ebp - 0x20]
mov ecx, eax
push esi
call fcn.180492ff
push ebx
lea ecx, [edi + 0x40]
call fcn.180490ee
mov dword [eax], 0xffff
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx]
call dword [eax + 8]
pop ebx
lea ecx, [ebp - 0x24]
call fcn.1800b3fc
pop edi
pop esi
leave
ret 0xc