joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e050
Capabilities:
Check if file exists
Create directory
Create thread

Disassembly:
push edi
mov edi, dword [esp + 0xc]
test edi, edi
je 0x40e0e1
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40e071
push eax
push edi
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push ebx
push esi
mov esi, dword [esp + 0x10]
mov ecx, edi
lea eax, [esi + 0x80]
lea ebx, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x40e082
sub ecx, ebx
sar ecx, 1
push edi
mov ebx, ecx
call fcn.00402230
push 0
push 0
push esi
push 0x40e030
push 0
push 0
call fcn.0045cc9c
add esp, 0x18
push 0
push 0
push 1
push 0
mov dword [esi + 0x9c], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp dword [esi + 0x9c], 0
mov dword [esi + 0xb0], eax
pop esi
pop ebx
je 0x40e0e1
test eax, eax
je 0x40e0e1
mov eax, 1
pop edi
ret 8
xor eax, eax
pop edi
ret 8
Function at 0x40e690
Capabilities:
Check if file exists
Get system information on windows
Read file via mapping

Disassembly:
sub dword [esp + 4], 8
jmp method.CFileManagerEx.virtual_8

Function at 0x40e750
Capabilities:
Delete file

Disassembly:
push ecx
push esi
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0x80
push 1
push 0
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40e780
xor eax, eax
pop esi
pop ecx
ret
mov eax, dword [edi + 4]
mov edx, dword [edi + 8]
push eax
push esi
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
call fcn.0040e7b0
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
pop ecx
ret

Function at 0x40e7b0
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x1010
call fcn.0045cb30
mov eax, dword [0x494db8]
xor eax, esp
mov dword [esp + 0x100c], eax
mov eax, dword [esp + 0x1014]
push ebx
push ebp
push edi
mov edi, dword [esp + 0x1024]
mov ebx, edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
cmp eax, 0xffffffff
je 0x40e8db
xor ebp, ebp
cmp edi, ebp
je 0x40e8db
cmp ebx, ebp
jle 0x40e8db
mov eax, ebx
cdq
and edx, 0xfff
add eax, edx
push esi
mov esi, eax
sar esi, 0xc
and ebx, 0x80000fff
jns 0x40e81f
dec ebx
or ebx, 0xfffff000
inc ebx
cmp esi, ebp
mov dword [esp + 0x10], ebp
jle 0x40e87c
jmp 0x40e830
push 0x1000
lea edx, [esp + 0x20]
push edi
push edx
call fcn.0045c2d0
mov edx, dword [esp + 0x20]
add esp, 0xc
push 0
lea eax, [esp + 0x14]
push eax
push 0x1000
lea ecx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40e8ab
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40e871
mov ecx, dword [esp + 0x10]
add dword [eax], ecx
inc ebp
add edi, 0x1000
cmp ebp, esi
jl 0x40e830
test ebx, ebx
jle 0x40e8d4
push ebx
lea edx, [esp + 0x20]
push edi
push edx
call fcn.0045c2d0
mov edx, dword [esp + 0x20]
add esp, 0xc
push 0
lea eax, [esp + 0x14]
push eax
push ebx
lea ecx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40e8c6
xor eax, eax
pop esi
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.0045bbec
add esp, 0x1010
ret
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40e8d4
mov ecx, dword [esp + 0x10]
add dword [eax], ecx
mov eax, 1
jmp 0x40e8ad
mov ecx, dword [esp + 0x1018]
pop edi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0045bbec
add esp, 0x1010
ret
Function at 0x40e900
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x477da0
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x494db8]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [0x496df8]
mov edx, dword [eax + 0xc]
mov ecx, 0x496df8
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
xor ebx, ebx
push eax
mov dword [esp + 0x24], ebx
call fcn.004010f0
add esp, 4
test eax, eax
jne 0x40e981
mov dword [esp + 0x20], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e97a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x40eaaf
mov ebp, dword [esp + 0x14]
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [esp + 0x28]
mov eax, ebp
call fcn.0040e750
test eax, eax
jne 0x40e9a8
mov dword [esp + 0x20], 0xffffffff
lea eax, [ebp - 0x10]
jmp 0x40e961
mov edx, dword [0x496df8]
mov eax, dword [edx + 0xc]
mov ecx, 0x496df8
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
lea ecx, [esp + 0x28]
push ecx
mov byte [esp + 0x24], 1
call fcn.004010f0
mov esi, dword [esp + 0x2c]
add esp, 4
push esi
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
cmp dword [esp + 0x30], ebx
je 0x40ea22
push ebx
push esi
push ebp
call fcn.00449ae0
add esp, 0xc
test eax, eax
jge 0x40ea52
lea eax, [esi - 0x10]
mov byte [esp + 0x20], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ea12
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x20], 0xffffffff
lea eax, [ebp - 0x10]
jmp 0x40e961
cmp ebp, ebx
je 0x40ea3c
cmp esi, ebx
je 0x40ea3c
push esi
push 0x40ead0
push ebx
push ebp
call dword [sym.imp.SETUPAPI.dll_SetupIterateCabinetW]
cmp eax, ebx
jne 0x40ea52
lea eax, [esi - 0x10]
mov byte [esp + 0x20], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x40ea06
mov edi, dword [esp + 0x2c]
lea eax, [esp + 0x28]
call fcn.00401e10
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esi - 0x10]
mov byte [esp + 0x20], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ea86
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40eaaa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0xc
Function at 0x40ebe0
Capabilities:
Get common file path

Disassembly:
mov eax, 0x2004
call fcn.0045cb30
mov eax, dword [0x494db8]
xor eax, esp
mov dword [esp + 0x2000], eax
xor eax, eax
test ebx, ebx
je 0x40ecd5
mov word [ebx], ax
test edi, edi
jne 0x40ec1e
mov ecx, dword [esp + 0x2000]
xor ecx, esp
call fcn.0045bbec
add esp, 0x2004
ret
push esi
mov esi, 0x484650
mov ecx, dword [esi]
push edi
push ecx
call fcn.0045ca28
add esp, 8
test eax, eax
je 0x40ec57
add esi, 8
cmp esi, str.Q360SafeMonClass
jl 0x40ec24
xor eax, eax
pop esi
mov ecx, dword [esp + 0x2000]
xor ecx, esp
call fcn.0045bbec
add esp, 0x2004
ret
mov esi, dword [esi + 4]
cmp esi, 0xffffffff
je 0x40eca8
push 0x2000
lea edx, [esp + 8]
push 0
push edx
call fcn.0045bc00
add esp, 0xc
push 1
push esi
lea eax, [esp + 0xc]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40eca8
lea eax, [esp + 4]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ec90
sub eax, edx
sar eax, 1
cmp eax, dword [esp + 0x200c]
jl 0x40ecc0
xor eax, eax
pop esi
mov ecx, dword [esp + 0x2000]
xor ecx, esp
call fcn.0045bbec
add esp, 0x2004
ret
push eax
lea ecx, [esp + 8]
push ecx
push ebx
call fcn.0045cd4c
add esp, 0xc
mov eax, 1
pop esi
mov ecx, dword [esp + 0x2000]
xor ecx, esp
call fcn.0045bbec
add esp, 0x2004
ret

Function at 0x40ed40
Capabilities:
Get file version info

Disassembly:
mov eax, 0x4010
call fcn.0045cb30
mov eax, dword [0x494db8]
xor eax, esp
mov dword [esp + 0x400c], eax
push ebx
xor eax, eax
push 0x3ffe
mov ebx, ecx
push eax
lea ecx, [esp + 0x1a]
push ecx
mov word [esp + 0x1c], ax
call fcn.0045bc00
add esp, 0xc
mov dword [esp + 8], 0
test esi, esi
je 0x40ee25
test edi, edi
je 0x40ee25
lea edx, [esp + 8]
push edx
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x40ee25
cmp eax, 0x3fff
ja 0x40ee25
lea ecx, [esp + 0x10]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40ee25
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 8]
push eax
push 0x484358
lea ecx, [esp + 0x1c]
push ecx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40ee25
lea edx, [ebx + ebx]
push edx
push 0
push edi
call fcn.0045bc00
mov eax, dword [esp + 0x10]
movzx ecx, word [eax + 0xc]
movzx edx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
push edx
movzx edx, word [eax + 0xa]
push ecx
push edx
push str._d._d._d._d
dec ebx
push ebx
push edi
call fcn.0045f139
add esp, 0x28
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x400c]
xor ecx, esp
call fcn.0045bbec
add esp, 0x4010
ret
mov ecx, dword [esp + 0x4010]
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0045bbec
add esp, 0x4010
ret
Function at 0x40ee40
Capabilities:
Delete file
Move file

Disassembly:
mov eax, 0x2024
call fcn.0045cb30
mov eax, dword [0x494db8]
xor eax, esp
mov dword [esp + 0x2020], eax
xor eax, eax
test esi, esi
je 0x40eecb
push 0x2000
mov dword [esp + 8], eax
push eax
mov dword [esp + 8], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov word [esp + 0x24], ax
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x10], 3
call fcn.0045bc00
push 0x1000
lea ecx, [esp + 0x30]
push esi
push ecx
call fcn.0045cd4c
add esp, 0x18
lea ecx, [esp]
lea edx, [esp + 0x20]
mov eax, 0x614
push ecx
mov dword [esp + 0xc], edx
mov word [esp + 0x14], ax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov eax, 1
mov ecx, dword [esp + 0x2020]
xor ecx, esp
call fcn.0045bbec
add esp, 0x2024
ret

Function at 0x40f1b0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x477d40
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x494db8]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov dword [esp + 0x1c], vtable.CResourceUnpack.0
mov edx, dword [esp + 0x40]
xor ebx, ebx
mov dword [esp + 0x30], ebx
mov ecx, dword [esp + 0x44]
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x40]
push ecx
mov ecx, dword [0x4982e0]
push edx
mov edx, dword [ecx + 0x28]
push eax
push 0x4982e0
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
call edx
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
cmp eax, ebx
jne 0x40f22c
xor eax, eax
jmp 0x40f2ad
mov eax, dword [0x496df8]
mov edx, dword [eax + 0xc]
mov ecx, 0x496df8
xor ebp, ebp
call edx
add eax, 0x10
mov dword [esp + 0x44], eax
lea eax, [esp + 0x44]
push eax
mov byte [esp + 0x34], 1
call fcn.004010f0
mov esi, dword [esp + 0x48]
add esp, 4
test eax, eax
je 0x40f283
mov eax, esi
lea edi, [esp + 0x1c]
call fcn.0040e750
test eax, eax
je 0x40f283
mov eax, dword [esp + 0x38]
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push esi
push eax
call edx
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esi - 0x10]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov byte [esp + 0x30], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f2ab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0x10
Function at 0x40fd10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x478528
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x494db8]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x10]
push eax
call fcn.00402700
mov esi, dword [ebp + 8]
lea ecx, [esp + 0x10]
push ecx
push esi
lea ebx, [esp + 0x1c]
mov dword [esp + 0x30], 0
call fcn.0040fb70
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40fd8b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esi + 0x1c]
mov esi, dword [esi + 4]
test esi, esi
je 0x40fd9b
cmp esi, dword [esp + 0x14]
je 0x40fda0
call fcn.0045c23a
xor eax, eax
cmp edi, dword [esp + 0x18]
setne al
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x40fdc0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x478528
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x494db8]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x10]
push eax
call fcn.00402700
mov esi, dword [ebp + 8]
lea ecx, [esp + 0x10]
push ecx
push esi
lea ebx, [esp + 0x1c]
mov dword [esp + 0x30], 0
call fcn.0040fb70
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40fe3b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x14]
mov ebx, dword [esi + 0x1c]
mov eax, dword [esi + 4]
add esi, 4
test edi, edi
je 0x40fe50
cmp edi, eax
je 0x40fe55
call fcn.0045c23a
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x40fe6a
push eax
push edi
lea ecx, [esp + 0x1c]
push ecx
push esi
call fcn.004101c0
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x411080
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x478678
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push esi
push edi
mov eax, dword [0x494db8]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x41112a
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41112a
lea eax, [esp + 0x14]
push eax
mov edi, 0x484ee0
call fcn.00402490
lea ecx, [esp + 0x10]
push ecx
mov edi, esi
mov dword [esp + 0x6c], 0
call fcn.00402490
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x50]
push ecx
mov byte [esp + 0x74], 1
call fcn.0040a820
lea edi, [esp + 0x10]
call fcn.00402530
lea edi, [esp + 0x14]
mov byte [esp + 0x68], 4
call fcn.00402530
cmp dword [esp + 0x4c], 0
sete al
test al, al
sete al
test al, al
jne 0x411140
lea ecx, [esp + 0x48]
call fcn.0040a4e0
xor eax, eax
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
lea edx, [esp + 0x14]
push edx
mov edi, 0x4857f0
call fcn.00402490
lea eax, [esp + 0x48]
push eax
lea edx, [esp + 0x18]
lea esi, [esp + 0x3c]
mov byte [esp + 0x6c], 5
call fcn.0040a3e0
lea edi, [esp + 0x14]
mov byte [esp + 0x68], 7
call fcn.00402530
cmp dword [esp + 0x40], 0
sete al
test al, al
sete al
test al, al
je 0x4111a3
cmp dword [esp + 0x3c], 0
sete al
test al, al
sete al
test al, al
je 0x4111a3
mov edx, dword [ebp + 8]
add edx, 8
mov ecx, esi
call fcn.00411320
lea ecx, [esp + 0x14]
push ecx
mov edi, str.Plugin_AfterSetup
call fcn.00402490
lea edx, [esp + 0x48]
push edx
lea edx, [esp + 0x18]
lea esi, [esp + 0x2c]
mov byte [esp + 0x6c], 8
call fcn.0040a3e0
lea edi, [esp + 0x14]
mov byte [esp + 0x68], 0xa
call fcn.00402530
cmp dword [esp + 0x30], 0
sete al
test al, al
sete al
test al, al
je 0x411206
cmp dword [esp + 0x2c], 0
sete al
test al, al
sete al
test al, al
je 0x411206
mov edx, dword [ebp + 8]
add edx, 0x20
mov ecx, esi
call fcn.00411320
lea eax, [esp + 0x14]
push eax
mov edi, str.Plugin_BeforeUninstall
call fcn.00402490
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x18]
lea esi, [esp + 0x1c]
mov byte [esp + 0x6c], 0xb
call fcn.0040a3e0
lea edi, [esp + 0x14]
mov byte [esp + 0x68], 0xd
call fcn.00402530
cmp dword [esp + 0x20], 0
sete al
test al, al
sete al
test al, al
je 0x411269
cmp dword [esp + 0x1c], 0
sete al
test al, al
sete al
test al, al
je 0x411269
mov edx, dword [ebp + 8]
add edx, 0x38
mov ecx, esi
call fcn.00411320
lea ecx, [esp + 0x18]
mov byte [esp + 0x68], 0xa
call fcn.00402600
lea ecx, [esp + 0x28]
mov byte [esp + 0x68], 7
call fcn.00402600
lea ecx, [esp + 0x38]
mov byte [esp + 0x68], 4
call fcn.00402600
lea ecx, [esp + 0x48]
call fcn.0040a4e0
mov eax, 1
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x4147f0
Capabilities:
Delete registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x634
mov eax, dword [0x494db8]
xor eax, esp
mov dword [esp + 0x630], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
mov ecx, dword [eax + 4]
push edi
push esi
call ecx
xor edi, edi
cmp eax, edi
mov dword [esp + 0x14], eax
jle 0x41491d
mov ebx, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov dword [esp + 0x10], edi
mov ecx, dword [esi + 0x14]
sub ecx, dword [esi + 0x10]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x414852
call fcn.0045c23a
mov eax, dword [esi + 0x10]
add eax, dword [esp + 0x10]
mov ecx, dword [eax + 4]
cmp dword [ecx - 0xc], 0
je 0x41490d
cmp dword [esi + 0x1c], 0
je 0x414903
mov edx, dword [eax + 0xc]
test edx, edx
jne 0x41488e
push 4
lea edx, [eax + 0x14]
push edx
mov edx, dword [eax + 8]
mov eax, dword [eax]
push 4
push edx
push ecx
push eax
call ebx
jmp 0x41490d
cmp edx, 1
jne 0x4148b1
mov edx, dword [eax + 0x18]
mov ebx, dword [edx - 0xc]
add ebx, ebx
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push edx
mov edx, dword [eax + 8]
mov eax, dword [eax]
push 1
push edx
push ecx
push eax
call ebx
jmp 0x41490d
cmp edx, 2
jne 0x41490d
mov ecx, dword [esi]
mov eax, dword [ecx + 8]
lea edx, [esp + 0x18]
push edx
push edi
push esi
call eax
lea eax, [esp + 0x430]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4148d0
sub eax, edx
sar eax, 1
lea ecx, [eax + eax]
push ecx
lea edx, [esp + 0x434]
push edx
mov edx, dword [esp + 0x20]
push 1
lea eax, [esp + 0x230]
push eax
lea ecx, [esp + 0x2c]
push ecx
push edx
call ebx
jmp 0x41490d
mov eax, dword [eax]
push ecx
push eax
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
add dword [esp + 0x10], 0x1c
inc edi
cmp edi, dword [esp + 0x14]
jl 0x414830
mov ecx, dword [esp + 0x63c]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0045bbec
mov esp, ebp
pop ebp
ret 4
Function at 0x415cb0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x28], edi
je 0x415ce7
mov eax, dword [ebp + 0x24]
mov ecx, dword [eax + 4]
lea esi, [ebp + 0xc]
push ecx
mov ecx, esi
call fcn.00416ea0
mov eax, dword [esi + 0x18]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x18]
mov dword [esi + 0x1c], edi
mov dword [eax], eax
mov esi, dword [esi + 0x18]
mov dword [esi + 8], esi
mov edx, dword [esp + 0x20]
mov eax, dword [edx]
push edi
push 0x80
push 3
push edi
push 7
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x415d17
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
push 0xffffffffffffffff
push 0xffffffffffffffff
push edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LockFile]
lea eax, [esp + 0x1c]
push eax
push esi
mov dword [esp + 0x18], edi
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0x3200000
jge 0x415d9b
cmp dword [esp + 0x1c], edi
jne 0x415d9b
lea eax, [ebx + 4]
push eax
call fcn.0045dc63
mov edi, eax
add esp, 4
test edi, edi
je 0x415d9b
lea eax, [ebx + 4]
push eax
push 0
push edi
call fcn.0045bc00
add esp, 0xc
push 0
lea ecx, [esp + 0x18]
push ecx
push ebx
push edi
push esi
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
push edi
mov ecx, ebp
call fcn.00415f30
push edi
mov dword [esp + 0x14], 1
call fcn.0045d4f6
add esp, 4
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_UnlockFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x20]
lea esi, [ebp + 0x30]
call fcn.00418d40
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
pop edi
pop esi
mov dword [ebp + 8], edx
pop ebp
pop ebx
add esp, 8
ret 0xc

Function at 0x418220
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
mov eax, dword [0x494db8]
xor eax, esp
mov dword [esp + 0x70], eax
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
push esi
mov dword [edi + 0xc], eax
cmp ecx, eax
jne 0x418256
pop esi
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.0045bbec
mov esp, ebp
pop ebp
ret
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
push ecx
lea esi, [esp + 0xc]
mov dword [esp + 0x14], 0x67452301
mov dword [esp + 0x18], 0xefcdab89
mov dword [esp + 0x1c], 0x98badcfe
mov dword [esp + 0x20], 0x10325476
call fcn.00419520
add esp, 4
mov eax, esi
call fcn.00419630
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x68]
mov dword [edi], eax
mov eax, dword [esp + 0x6c]
mov dword [edi + 4], ecx
mov ecx, dword [esp + 0x74]
pop esi
mov dword [edi + 8], edx
mov dword [edi + 0xc], eax
xor ecx, esp
mov eax, 1
call fcn.0045bbec
mov esp, ebp
pop ebp
ret