joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413a2a
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x413a4b
xor eax, eax
jmp 0x413a9b
push esi
lea eax, [ebp - 0x10]
push eax
push str.SeShutdownPrivilege
xor esi, esi
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
test eax, eax
jne 0x413a47
push 0x80020003
push 0x12
call dword [sym.imp.USER32.dll_ExitWindowsEx]
neg eax
sbb eax, eax
neg eax
leave
ret 4
Function at 0x414451
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4f2be0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4d5038]
mov dword [ebp - 0xc], eax
mov eax, dword [0x4d503c]
mov dword [ebp - 8], eax
mov ax, word [ebp + 0xc]
mov word [ebp - 0xc], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x41448e
xor eax, eax
xor edx, edx
jmp 0x4144ba
push 8
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.00474a10
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push 0
push 0
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x414488
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00474a8a
leave
ret 8

Function at 0x4145f6
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x810
mov eax, dword [0x4f2be0]
xor eax, esp
mov dword [esp + 0x80c], eax
push esi
push edi
mov edi, dword [ebp + 8]
push 0x800
lea eax, [esp + 0x14]
push 0
push eax
call fcn.00474a10
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov eax, dword [ebp + 0xc]
push 0
cdq
push 0x100000
push edx
push eax
lea esi, [esp + 0x20]
call fcn.0047e3b0
cmp word [esp + 0x10], 0
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
je 0x414688
movzx ecx, word [esi]
mov eax, dword [edi]
push ecx
push edi
call dword [eax + 0x50]
cmp edx, dword [esp + 0xc]
ja 0x4146a0
jb 0x414677
cmp eax, dword [esp + 8]
ja 0x4146a0
push esi
call fcn.004754ae
lea esi, [esi + eax*2 + 2]
cmp word [esi], 0
pop ecx
jne 0x41465f
xor eax, eax
mov ecx, dword [esp + 0x814]
pop edi
pop esi
xor ecx, esp
call fcn.00474a8a
mov esp, ebp
pop ebp
ret 8
mov ax, word [esi]
jmp 0x41468a

Function at 0x4146a5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x808
mov eax, dword [0x4f2be0]
xor eax, esp
mov dword [esp + 0x804], eax
push 0x800
lea eax, [esp + 4]
push 0
push eax
call fcn.00474a10
add esp, 0xc
push 0x400
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, dword [esp + 0x804]
mov ax, word [esp]
xor ecx, esp
call fcn.00474a8a
mov esp, ebp
pop ebp
ret 4
Function at 0x414887
Capabilities:
Delete file

Disassembly:
push 4
mov eax, 0x4afb92
call fcn.00475a5f
push 0x4f8ce0
lea ecx, [ebp - 0x10]
call fcn.004029af
and dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
je 0x4148b5
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.004028fb
lea ecx, [ebp - 0x10]
call fcn.0041597a
mov ecx, eax
call fcn.004159e2
mov edi, dword [ebp + 8]
lea esi, [edi + 4]
mov ecx, esi
call fcn.0041597a
mov ecx, eax
call fcn.004159e2
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jne 0x414902
mov edx, dword [esi]
cmp dword [edx - 0xc], ecx
jne 0x4148ee
lea ecx, [eax - 0x10]
jmp 0x414915
test ecx, ecx
jne 0x414902
mov eax, dword [edi]
lea ecx, [ebp - 0x10]
push ecx
push edi
call dword [eax + 0x8c]
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
je 0x4148e9
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004029d4
call fcn.00475b37
ret 8

Function at 0x414d67
Capabilities:
Get file size

Disassembly:
xor eax, eax
push esi
mov esi, dword [esp + 0xc]
mov dword [esi], eax
mov dword [esi + 4], eax
cmp dword [esp + 0x10], eax
je 0x414dab
push edi
push eax
push 0x80
push 3
push eax
push 7
push closesocket
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x414daa
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
ret 0xc

Function at 0x414db1
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x4f2be0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0x808
lea eax, [ebp - 0x80c]
push 0
push eax
call fcn.00474a10
add esp, 0xc
push 1
push 0x1a
lea eax, [ebp - 0x80c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.360Safe_
lea eax, [ebp - 0x80c]
push eax
call esi
push 0
lea eax, [ebp - 0x80c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.360safe.setup.log
lea eax, [ebp - 0x80c]
push eax
call esi
lea eax, [ebp - 0x80c]
push eax
mov ecx, edi
call fcn.004028fb
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
inc eax
pop esi
call fcn.00474a8a
leave
ret 8
Function at 0x415c49
Capabilities:
Check if file exists

Disassembly:
push 4
mov eax, 0x4b523d
call fcn.00475a5f
mov esi, ecx
mov dword [ebp - 0x10], esi
lea edi, [esi + 8]
mov dword [esi], vtable.CFileManagerEx.0
mov dword [esi + 4], vtable.CFileManagerEx.1.0
mov dword [edi], vtable.CFileManagerEx.2.0
push 1
push esi
mov dword [ebp - 4], 3
call fcn.00415dcb
push dword [0x4fac48]
mov eax, dword [esi + 0x80]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsPrefixW]
test eax, eax
jne 0x415cb8
push dword [esi + 0x80]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x415cb8
push esi
call fcn.00416174
push dword [esi + 0x80]
call fcn.00402c14
pop ecx
lea eax, [esi + 0x84]
push eax
mov byte [ebp - 4], 2
call fcn.00416333
mov ecx, dword [esi + 0x80]
sub ecx, 0x10
call fcn.004029d4
mov dword [esi + 0x64], vtable._BaseModule::CCriticalSection.0
add esi, 0x68
push esi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ecx, edi
call fcn.0042316a
call fcn.00475b37
ret

Function at 0x415d5a
Capabilities:
Check if file exists
Create directory
Create thread

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
xor edi, edi
cmp esi, edi
je 0x415dc4
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x415d7a
push edi
push esi
push edi
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push esi
mov esi, dword [esp + 0x10]
lea ecx, [esi + 0x80]
call fcn.004028fb
push edi
push edi
push esi
push 0x415d3d
push edi
push edi
call fcn.004755c9
add esp, 0x18
push edi
push edi
push 1
push edi
mov dword [esi + 0xa4], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0xb8], eax
cmp dword [esi + 0xa4], edi
je 0x415dc4
cmp eax, edi
je 0x415dc4
xor eax, eax
inc eax
jmp 0x415dc6
xor eax, eax
pop edi
pop esi
ret 8

Function at 0x418478
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push 8
mov eax, 0x4b3741
call fcn.00475a5f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4184a6
and al, 0x10
xor cl, cl
cmp cl, al
sbb eax, eax
neg eax
je 0x4184a6
xor eax, eax
call fcn.00475b37
ret
push dword [ebp + 8]
lea eax, [ebp - 0x14]
call fcn.004181c5
xor edi, edi
mov dword [ebp - 4], edi
mov esi, dword [ebp - 0x14]
push esi
call fcn.004754ae
cmp eax, 1
pop ecx
jle 0x4184d4
lea eax, [esi + eax*2 - 2]
cmp word [eax], 0x5c
jne 0x4184d4
xor ecx, ecx
mov word [eax], cx
push 0x5c
push esi
call fcn.00474750
pop ecx
pop ecx
cmp eax, edi
jne 0x4184f0
push 0xf
pop edi
push esi
call fcn.004760d4
pop ecx
mov eax, edi
jmp 0x4184a0
xor ecx, ecx
push esi
mov word [eax], cx
call fcn.00418478
pop ecx
cmp eax, edi
je 0x418504
mov edi, eax
jmp 0x4184e5
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4184e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x418500
jmp 0x4184e5
Function at 0x418b05
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4f2be0]
xor eax, ebp
mov dword [ebp - 4], eax
or dword [edi + 8], 0xffffffff
push ebx
push esi
xor esi, esi
mov ebx, ecx
mov dword [edi + 0xc], esi
cmp ebx, esi
jne 0x418b2d
xor eax, eax
jmp 0x418bf3
mov ecx, edi
call fcn.00418c01
lea ecx, [edi + 0x10]
mov dword [ebp - 0x14], 0x12
xor edx, edx
mov eax, esi
div ebx
inc esi
mov al, byte [edx + 0x4d2ec2]
mov byte [ebp - 0x15], al
xor edx, edx
mov eax, esi
div ebx
inc esi
mov al, byte [edx + 0x4d2ec2]
mov byte [ebp - 0x16], al
xor edx, edx
mov eax, esi
div ebx
inc esi
mov al, byte [edx + 0x4d2ec2]
mov byte [ebp - 0x17], al
xor edx, edx
mov eax, esi
div ebx
inc esi
mov al, byte [edx + 0x4d2ec2]
mov byte [ebp - 0x18], al
mov eax, dword [ebp - 0x18]
xor dword [ecx], eax
add ecx, 4
dec dword [ebp - 0x14]
jne 0x418b3e
and dword [ebp - 0x10], 0
and dword [ebp - 0xc], 0
lea ebx, [edi + 0x14]
mov dword [ebp - 0x14], 9
lea esi, [ebp - 0x10]
mov eax, edi
call fcn.0041b48f
mov eax, dword [ebp - 0x10]
mov dword [ebx - 4], eax
mov eax, dword [ebp - 0xc]
mov dword [ebx], eax
add ebx, 8
dec dword [ebp - 0x14]
jne 0x418b9d
lea ebx, [edi + 0x5c]
mov dword [ebp - 0x18], 4
mov dword [ebp - 0x14], 0x80
lea esi, [ebp - 0x10]
mov eax, edi
call fcn.0041b48f
mov eax, dword [ebp - 0x10]
mov dword [ebx - 4], eax
mov eax, dword [ebp - 0xc]
mov dword [ebx], eax
add ebx, 8
dec dword [ebp - 0x14]
jne 0x418bcb
dec dword [ebp - 0x18]
jne 0x418bc4
xor eax, eax
inc eax
mov dword [edi + 0xc], eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00474a8a
leave
ret
Function at 0x41bde6
Capabilities:
Get thread local storage value

Disassembly:
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ebp, ebp
cmp dword [esi + 0x1108], eax
je 0x41be0e
lea eax, [esi + 0x10cc]
mov dword [eax + 0x18], 0x3f3
mov dword [eax + 0x1c], ebp
mov dword [eax + 0x20], ebp
xor eax, eax
pop ebp
ret
mov eax, dword [0x4fa75c]
cmp eax, 0xffffffff
je 0x41be32
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, ebp
je 0x41be32
lea eax, [esi + 0x10cc]
mov dword [eax + 0x18], 0x3f4
jmp 0x41be04
push esi
push 1
call fcn.0041c25d
pop ecx
pop ecx
test eax, eax
jne 0x41be52
lea eax, [esi + 0x10cc]
mov dword [eax + 0x18], ebp
mov dword [eax + 0x1c], 0xe
jmp 0x41be07
push ebx
lea ebx, [esi + 0x10cc]
mov eax, ebx
call fcn.00418855
cmp dword [esi + 0x10f0], ebp
jne 0x41bf07
cmp dword [esi + 0x110c], ebp
jne 0x41bf0b
push edi
push str.Cabinet.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FDICreate
push eax
mov dword [esi + 0x110c], eax
call edi
push str.FDICopy
push dword [esi + 0x110c]
mov dword [esi + 0x1110], eax
call edi
push str.FDIIsCabinet
push dword [esi + 0x110c]
mov dword [esi + 0x1114], eax
call edi
push str.FDIDestroy
push dword [esi + 0x110c]
mov dword [esi + 0x1118], eax
call edi
mov dword [esi + 0x111c], eax
pop edi
cmp dword [esi + 0x1110], ebp
je 0x41bef4
cmp dword [esi + 0x1114], ebp
je 0x41bef4
cmp dword [esi + 0x1118], ebp
je 0x41bef4
cmp eax, ebp
jne 0x41bf0b
mov dword [esi + 0x110c], ebp
mov dword [ebx + 0x18], 0x3e8
mov dword [ebx + 0x1c], ebp
mov dword [ebx + 0x20], ebp
xor eax, eax
jmp 0x41bf49
push ebx
push 1
push 0x41c36c
push fcn.0041c34b
push 0x41c320
push 0x41c2f9
push 0x41c297
push 0x41c292
push 0x41c28d
call dword [esi + 0x1110]
xor ecx, ecx
add esp, 0x24
cmp eax, ebp
setne cl
mov dword [esi + 0x10f0], eax
mov eax, ecx
pop ebx
pop ebp
ret
Function at 0x41cc88
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
test dword [ebp + 0xc], 0x100
je 0x41cca2
push 0x80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0047e0ad
add esp, 0xc
pop ebp
ret 0xc

Function at 0x41ccb7
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x41cd3b
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
test eax, eax
je 0x41cd27
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
test esi, 0x100
ja 0x41cd19
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
lea eax, [ebp - 0xc]
push eax
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and esi, 0x27
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop edi
pop esi
leave
ret 0xc
Function at 0x41e739
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b50e3
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push esi
mov eax, dword [0x4f2be0]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
jne 0x41e781
xor eax, eax
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41e76b
push str.version1.0_encodingutf_16
lea ecx, [esp + 0x18]
call fcn.00402a0f
push dword [ebp + 0xc]
lea ecx, [esp + 0x14]
mov dword [esp + 0x6c], ebx
call fcn.00402a0f
lea eax, [esp + 0x14]
push eax
push ebx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x54]
mov byte [esp + 0x74], 1
call fcn.004123cb
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
je 0x41e7d2
call fcn.00402aa8
mov byte [esp + 0x68], 4
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
je 0x41e7e4
call fcn.00402aa8
cmp dword [esp + 0x4c], ebx
sete al
cmp al, bl
sete al
cmp al, bl
jne 0x41e804
lea ecx, [esp + 0x48]
call fcn.00411da4
mov eax, ebx
jmp 0x41e76d
push 0x4d715c
lea ecx, [esp + 0x18]
call fcn.00402a0f
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x70], 5
call fcn.00411d27
mov byte [esp + 0x68], 7
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
je 0x41e83c
call fcn.00402aa8
cmp dword [esp + 0x40], ebx
mov esi, dword [ebp + 8]
sete al
cmp al, bl
sete al
cmp al, bl
je 0x41e86b
cmp dword [esp + 0x3c], ebx
sete al
cmp al, bl
sete al
cmp al, bl
je 0x41e86b
lea ecx, [esi + 8]
lea edx, [esp + 0x38]
call fcn.0041e9b9
push str.Plugin_AfterSetup
lea ecx, [esp + 0x18]
call fcn.00402a0f
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x70], 8
call fcn.00411d27
mov byte [esp + 0x68], 0xa
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
je 0x41e8a3
call fcn.00402aa8
cmp dword [esp + 0x30], ebx
sete al
cmp al, bl
sete al
cmp al, bl
je 0x41e8cf
cmp dword [esp + 0x2c], ebx
sete al
cmp al, bl
sete al
cmp al, bl
je 0x41e8cf
lea ecx, [esi + 0x20]
lea edx, [esp + 0x28]
call fcn.0041e9b9
push str.Plugin_BeforeUninstall
lea ecx, [esp + 0x18]
call fcn.00402a0f
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x70], 0xb
call fcn.00411d27
mov byte [esp + 0x68], 0xd
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
je 0x41e907
call fcn.00402aa8
cmp dword [esp + 0x20], ebx
sete al
cmp al, bl
sete al
cmp al, bl
je 0x41e933
cmp dword [esp + 0x1c], ebx
sete al
cmp al, bl
sete al
cmp al, bl
je 0x41e933
lea ecx, [esi + 0x38]
lea edx, [esp + 0x18]
call fcn.0041e9b9
lea ecx, [esp + 0x18]
mov byte [esp + 0x68], 0xa
call fcn.00402b60
lea ecx, [esp + 0x28]
mov byte [esp + 0x68], 7
call fcn.00402b60
lea ecx, [esp + 0x38]
mov byte [esp + 0x68], 4
call fcn.00402b60
xor ebx, ebx
inc ebx
jmp 0x41e7f4
Function at 0x420b21
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b4f0c
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x4f2be0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [edi + 4]
call fcn.004212b0
push 0x4d73a0
lea ecx, [esp + 0x10]
call fcn.00402a0f
mov ecx, dword [ebp + 0xc]
and dword [esp + 0x38], 0
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.0041fc6f
mov byte [esp + 0x38], 2
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x420b8e
call fcn.00402aa8
lea eax, [esp + 0x10]
call fcn.004110dc
test al, al
je 0x420bb5
or dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x18]
test eax, eax
je 0x420bae
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
jmp 0x420c42
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], eax
test eax, eax
jle 0x420b9b
xor esi, esi
test eax, eax
jle 0x420c2c
push esi
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
call fcn.00411bb5
mov byte [esp + 0x38], 3
cmp dword [esp + 0x24], 0
sete al
test al, al
sete al
test al, al
je 0x420c1e
cmp dword [esp + 0x20], 0
sete al
test al, al
sete al
test al, al
je 0x420c1e
push edi
lea ecx, [esp + 0x20]
call fcn.00420d86
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 2
call fcn.00402b60
inc esi
cmp esi, dword [esp + 0xc]
jl 0x420bc7
jmp 0x420c2c
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 2
call fcn.00402b60
or dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x18]
test eax, eax
je 0x420c3f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
inc eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x4210fd
Capabilities:
Delete registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x634
mov eax, dword [0x4f2be0]
xor eax, esp
mov dword [esp + 0x630], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
push edi
call dword [eax + 4]
and dword [esp + 0x10], 0
mov dword [esp + 0x14], eax
test eax, eax
jle 0x4211de
mov ebx, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push dword [esp + 0x10]
lea esi, [edi + 4]
call fcn.00421225
mov edx, dword [eax + 4]
cmp dword [edx - 0xc], 0
je 0x4211cc
cmp dword [edi + 0x1c], 0
je 0x4211c3
mov ecx, dword [eax + 0xc]
test ecx, ecx
jne 0x421166
push 4
lea ecx, [eax + 0x14]
push ecx
push 4
jmp 0x421177
cmp ecx, 1
jne 0x42117f
mov ecx, dword [eax + 0x18]
mov esi, dword [ecx - 0xc]
add esi, esi
push esi
push ecx
push 1
push dword [eax + 8]
push edx
push dword [eax]
jmp 0x4211bf
cmp ecx, 2
jne 0x4211cc
mov eax, dword [edi]
lea ecx, [esp + 0x18]
push ecx
push dword [esp + 0x14]
push edi
call dword [eax + 8]
lea eax, [esp + 0x430]
push eax
call fcn.004754ae
pop ecx
add eax, eax
push eax
lea eax, [esp + 0x434]
push eax
push 1
lea eax, [esp + 0x230]
push eax
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x2c]
call ebx
jmp 0x4211cc
push edx
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x14]
jl 0x42113a
mov ecx, dword [esp + 0x63c]
pop edi
pop esi
xor eax, eax
pop ebx
xor ecx, esp
inc eax
call fcn.00474a8a
mov esp, ebp
pop ebp
ret 4
Function at 0x421bc0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
xor esi, esi
push edi
cmp dword [ebx + 0x28], esi
je 0x421bd7
lea edi, [ebx + 0xc]
call fcn.004222a3
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push esi
push 0x80
push 3
push esi
push 7
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 8], edi
cmp edi, 0xffffffff
jne 0x421c04
xor eax, eax
jmp 0x421cac
push 0xffffffffffffffff
push 0xffffffffffffffff
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LockFile]
lea eax, [ebp - 0xc]
push eax
push edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x3200000
mov dword [ebp - 4], eax
jge 0x421c80
cmp dword [ebp - 0xc], esi
jne 0x421c80
add eax, 4
push eax
call fcn.00476b1d
mov edi, eax
pop ecx
cmp edi, esi
je 0x421c80
mov eax, dword [ebp - 4]
add eax, 4
push eax
push esi
push edi
call fcn.00474a10
add esp, 0xc
push esi
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x14], esi
push edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 4]
mov ecx, ebx
push edi
call fcn.00421d40
push edi
mov dword [ebp - 0x10], 1
call fcn.0047668c
pop ecx
push 0xffffffffffffffff
push 0xffffffffffffffff
push esi
push esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_UnlockFile]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
lea ecx, [ebx + 0x30]
call fcn.00423506
mov eax, dword [ebp + 0xc]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x10]
pop edi
pop esi
leave
ret 8
Function at 0x423296
Capabilities:
Check if file exists
Get system information on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
mov eax, dword [0x4f2be0]
xor eax, esp
mov dword [esp + 0x50], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x1c]
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
mov dword [esp + 0x14], edi
cmp dword [eax - 0xc], ebx
jne 0x4232d2
mov eax, 0xffffd8ee
jmp 0x423420
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4232c8
mov eax, dword [esi + 0x1c]
push ebx
push 1
push 3
push ebx
push 7
push closesocket
push eax
mov dword [esp + 0x28], 0xffffd8f0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x1c], eax
cmp eax, ebx
je 0x42340e
cmp eax, 0xffffffff
je 0x423404
push ebx
push ebx
push ebx
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esp + 0x10], eax
cmp eax, ebx
je 0x423404
mov edi, dword [esi + 4]
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, edi
xor edx, edx
div dword [esp + 0x44]
push ebx
sub edi, edx
mov eax, edi
mov edi, dword [esi + 4]
push eax
push ebx
push 4
push dword [esp + 0x20]
sub edi, eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esp + 0x24], eax
cmp eax, ebx
je 0x4233f6
add edi, eax
mov dword [esp + 0x20], edi
cmp edi, ebx
je 0x4233ec
lea eax, [esp + 0x4c]
push eax
push dword [esi + 8]
push edi
call fcn.0040d2d1
push 0x10
lea eax, [esi + 0xc]
push eax
lea eax, [esp + 0x60]
push eax
call fcn.004777e4
add esp, 0x18
test eax, eax
je 0x42339d
mov dword [esp + 0xc], 0xffffd8ee
jmp 0x4233ec
push dword [esi + 8]
call fcn.00476b1d
mov edi, eax
pop ecx
cmp edi, ebx
je 0x4232c8
push dword [esi + 8]
push dword [esp + 0x24]
push edi
call fcn.00479020
push dword [esp + 0x20]
mov eax, dword [esi + 8]
push dword [esp + 0x28]
mov ecx, dword [esi + 0x1c]
cdq
push edx
push eax
push edi
push ecx
call fcn.004729ed
push edi
mov esi, eax
call fcn.0047668c
add esp, 0x28
cmp esi, ebx
jl 0x4233ec
mov dword [esp + 0xc], 1
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x14]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
je 0x42341c
push dword [esp + 0xc]
mov eax, dword [edi]
push edi
call dword [eax + 0xc]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00474a8a
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4238f0
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x68
mov eax, dword [0x4f2be0]
xor eax, esp
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x6c]
xor ecx, ecx
push esi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ecx
push eax
mov eax, dword [esp + 0x78]
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x67452301
mov dword [esp + 0x10], 0xefcdab89
mov dword [esp + 0x14], 0x98badcfe
mov dword [esp + 0x18], 0x10325476
call fcn.00427250
add esp, 4
lea esi, [esp + 8]
mov ecx, edi
call fcn.004272f0
mov ecx, dword [esp + 0x64]
pop esi
xor ecx, esp
call fcn.00474a8a
add esp, 0x68
ret