joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47cde0
Capabilities:
Create directory
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ff55b
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x53000c]
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, edx
mov esi, ecx
push 0
push 0x1c
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
mov dword [ebp - 0x220], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47ce50
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.0041a5b0
push 0xd
push 0x520184
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], 0
call fcn.0041a710
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push 0
cmovae eax, dword [ebp - 0x230]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push 4
push str.SSCI
lea ecx, [ebp - 0x230]
call fcn.0041a710
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
cmp dword [edi + 0x14], 8
jb 0x47ced8
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x47cee0
mov esi, dword [esi]
push eax
push edi
push esi
push str._General
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov edx, dword [ebp - 0x21c]
test eax, eax
setne bl
cmp edx, 8
jb 0x47cf2f
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47cf25
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47cf4d
push edx
push ecx
call fcn.0048e9ad
add esp, 8
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.0048e99c
mov esp, ebp
pop ebp
ret
call fcn.004c5929
int3
Function at 0x47cf60
Capabilities:
Create directory
Get common file path
Get startup folder
Read .ini file

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 0x4ff59b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x250
mov eax, dword [0x53000c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x240], edx
mov esi, ecx
mov edi, dword [ebx + 8]
lea eax, [ebp - 0x220]
push 0
push 0x1c
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
mov dword [ebp - 0x228], 0
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x224], 7
mov word [ebp - 0x238], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47cfe5
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x238]
call fcn.0041a5b0
push 0xd
push 0x520184
lea ecx, [ebp - 0x238]
mov dword [ebp - 4], 0
call fcn.0041a710
cmp dword [ebp - 0x224], 8
lea eax, [ebp - 0x238]
push 0
cmovae eax, dword [ebp - 0x238]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push 4
push str.SSCI
lea ecx, [ebp - 0x238]
call fcn.0041a710
push 0x208
call fcn.0048f04d
mov ecx, eax
lea edx, [ebp - 0x238]
mov eax, dword [ebp - 0x240]
add esp, 4
cmp dword [ebp - 0x224], 8
mov dword [ebp - 0x244], ecx
cmovae edx, dword [ebp - 0x238]
cmp dword [eax + 0x14], 8
jb 0x47d088
mov eax, dword [eax]
cmp dword [esi + 0x14], 8
jb 0x47d090
mov esi, dword [esi]
push edx
push 0x104
push ecx
push eax
push esi
push str._General
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, dword [ebp - 0x244]
mov ecx, esi
mov dword [ebp - 0x240], eax
xor eax, eax
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x248], 7
mov word [ebp - 0x25c], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47d0d2
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x25c]
call fcn.0041a5b0
lea eax, [ebp - 0x25c]
cmp edi, eax
je 0x47d118
mov ecx, edi
call fcn.0041a210
movups xmm0, xmmword [ebp - 0x25c]
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x24c]
movq qword [edi + 0x10], xmm0
jmp 0x47d158
mov edx, dword [ebp - 0x248]
cmp edx, 8
jb 0x47d158
mov ecx, dword [ebp - 0x25c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47d14e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47d1d3
push edx
push ecx
call fcn.0048e9ad
add esp, 8
push 2
push esi
call fcn.0048e9ad
mov edx, dword [ebp - 0x224]
add esp, 8
cmp dword [ebp - 0x240], 0
seta al
mov byte [ebp - 0x239], al
cmp edx, 8
jb 0x47d1b5
mov ecx, dword [ebp - 0x238]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47d1a5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47d1d8
push edx
push ecx
call fcn.0048e9ad
mov al, byte [ebp - 0x239]
add esp, 8
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.0048e99c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004c5929
call fcn.004c5929
int3
Function at 0x47d1e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x53000c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 0
mov esi, ecx
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x51fa58
movzx ecx, si
mov edi, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x47d232
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048e99c
mov esp, ebp
pop ebp
ret
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
mov ebx, eax
push edi
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x47d25f
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048e99c
mov esp, ebp
pop ebp
ret
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [ebp - 8]
push edi
push eax
call fcn.004bcd60
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
push 0
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov eax, dword [ebp - 0xc]
push 0x10
mov dword [ebp - 0x10], eax
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov esi, eax
test esi, esi
je 0x47d2ca
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push dword [ebp - 0x10]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi], vtable.Gdiplus::Bitmap.0
call dword [sym.imp.gdiplus.dll_GdipCreateBitmapFromStream]
mov dword [esi + 8], eax
mov eax, dword [ebp - 8]
mov dword [esi + 4], eax
jmp 0x47d2cc
xor esi, esi
mov eax, dword [ebp - 0x14]
push ebx
mov dword [eax], esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [ebp - 4]
mov eax, 1
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.0048e99c
mov esp, ebp
pop ebp
ret
Function at 0x47d300
Capabilities:
Check if file exists
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4218
call fcn.004fa330
mov eax, dword [0x53000c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x4218], esi
mov eax, edi
mov dword [ebp - 0x4218], esi
cmp dword [edi + 0x14], 8
jb 0x47d333
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x47d356
push eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
push 0x51c79c
jmp 0x47d492
push 0x4000
lea eax, [ebp - 0x420c]
push 0
push eax
call fcn.004bcaf0
add esp, 0xc
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x47d376
mov eax, dword [edi]
lea ecx, [ebp - 0x4210]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
test eax, eax
je 0x47d460
cmp eax, 0x3fff
ja 0x47d460
cmp dword [edi + 0x14], 8
jb 0x47d39f
mov edi, dword [edi]
lea ecx, [ebp - 0x420c]
push ecx
push eax
push 0
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x47d442
lea eax, [ebp - 0x4214]
push eax
lea eax, [ebp - 0x4218]
push eax
push 0x51c798
lea eax, [ebp - 0x420c]
push eax
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x47d442
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004bcaf0
mov ecx, dword [ebp - 0x4218]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push str._d._d._d._d
lea eax, [ebp - 0x20c]
push 0x103
push eax
call fcn.0041a950
add esp, 0x28
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.0041a2b0
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048e99c
mov esp, ebp
pop ebp
ret
push 0x51c79c
mov ecx, esi
call fcn.0041a2b0
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048e99c
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [esi + 0x10], 0
xor ecx, ecx
mov dword [esi + 0x14], 7
mov word [esi], ax
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47d480
sub ecx, edx
sar ecx, 1
push ecx
push 0
mov ecx, esi
call fcn.0041a5b0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0048e99c
mov esp, ebp
pop ebp
ret

Function at 0x47d4b0
Capabilities:
Terminate process

Disassembly:
push esi
push ecx
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x47d4c9
xor al, al
pop esi
ret
push ebx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
push esi
setne bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop ebx
pop esi
ret
Function at 0x47d4f0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x53000c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
mov edi, ecx
mov dword [ebp - 0x230], 0x22c
push 2
mov ebx, edx
mov dword [ebp - 0x234], edi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x47d5e4
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
lea ecx, [ebp - 0x20c]
mov eax, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x47d56b
test dx, dx
je 0x47d567
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x47d56b
add eax, 4
add ecx, 4
test dx, dx
jne 0x47d545
xor eax, eax
jmp 0x47d570
sbb eax, eax
or eax, 1
test eax, eax
je 0x47d5f7
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
lea eax, [ebp - 0x230]
push eax
push esi
call edi
test eax, eax
je 0x47d5dd
nop dword [eax]
mov ecx, dword [ebp - 0x234]
lea eax, [ebp - 0x20c]
nop dword [eax]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x47d5c6
test dx, dx
je 0x47d5c2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x47d5c6
add ecx, 4
add eax, 4
test dx, dx
jne 0x47d5a0
xor eax, eax
jmp 0x47d5cb
sbb eax, eax
or eax, 1
test eax, eax
je 0x47d5f7
lea eax, [ebp - 0x230]
push eax
push esi
call edi
test eax, eax
jne 0x47d590
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048e99c
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x47d603
mov eax, dword [ebp - 0x228]
mov dword [ebx], eax
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048e99c
mov esp, ebp
pop ebp
ret
Function at 0x47d620
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x53000c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
mov esi, ecx
mov dword [ebp - 0x230], 0x22c
push 2
mov dword [ebp - 0x234], esi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x47d755
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
lea ecx, [ebp - 0x20c]
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x47d698
test dx, dx
je 0x47d694
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x47d698
add eax, 4
add ecx, 4
test dx, dx
jne 0x47d672
xor eax, eax
jmp 0x47d69d
sbb eax, eax
or eax, 1
test eax, eax
jne 0x47d6b4
mov ecx, dword [ebp - 0x228]
test ecx, ecx
je 0x47d6b4
push ecx
call fcn.0047d4b0
add esp, 4
push ebx
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x47d751
lea eax, [ebp - 0x20c]
mov ecx, esi
nop dword [eax]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x47d706
test dx, dx
je 0x47d702
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x47d706
add ecx, 4
add eax, 4
test dx, dx
jne 0x47d6e0
xor eax, eax
jmp 0x47d70b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x47d73f
mov eax, dword [ebp - 0x228]
test eax, eax
je 0x47d73f
push eax
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x47d739
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call ebx
mov esi, dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x47d6d1
push edi
call ebx
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0048e99c
mov esp, ebp
pop ebp
ret
Function at 0x4879e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fc420
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x53000c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edx, dword [esi + 0x50]
xor al, al
mov ecx, dword [esi + 0x4c]
mov edi, edx
rep stosb byte es:[edi], al
push edx
call fcn.004c5979
mov edx, dword [esi + 0x30]
xor al, al
mov ecx, dword [esi + 0x2c]
mov edi, edx
rep stosb byte es:[edi], al
push edx
call fcn.004c5979
add esp, 8
mov dword [ebp - 4], 0
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x487a41
mov eax, dword [ecx]
push 1
call dword [eax]
test byte [ebp + 8], 1
je 0x487a52
push 0x60
push esi
call fcn.0048e9ad
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x49ab10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1470
call fcn.004fa330
mov eax, dword [0x53000c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x49ad13
mov ebx, dword [ebp + 0xc]
cmp ebx, 0x20
jb 0x49ad13
cmp dword [ebp + 0x10], 0
je 0x49abb9
push 0x400
lea eax, [ebp - 0x468]
mov dword [ebp - 0x1470], 1
push 0
push eax
mov dword [ebp - 0x146c], 0x400
call fcn.004bcaf0
add esp, 0xc
lea eax, [ebp - 0x146c]
push eax
lea eax, [ebp - 0x468]
push eax
lea eax, [ebp - 0x1470]
push eax
push 0x50c6d8
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallHYJiang
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x49abb9
lea eax, [ebp - 0x468]
push eax
push ebx
push edi
call fcn.0049c610
neg eax
sbb eax, eax
add eax, 1
jne 0x49acfe
push 0x1000
lea eax, [ebp - 0x1468]
push 0
push eax
call fcn.004bcaf0
lea eax, [ebp - 0x68]
push 0x64
push eax
call fcn.0049bc50
add esp, 0x14
test eax, eax
jne 0x49ac14
lea eax, [ebp - 0x68]
push 0x64
push eax
call fcn.0049be60
add esp, 8
test eax, eax
jne 0x49ac14
lea eax, [ebp - 0x68]
push 0x64
push eax
call fcn.0049c3a0
add esp, 8
test eax, eax
jne 0x49ac14
lea eax, [ebp - 0x68]
push 0x64
push eax
call fcn.0049c110
add esp, 8
test eax, eax
je 0x49ac56
lea ecx, [ebp - 0x68]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x49ac20
sub ecx, edx
je 0x49ac41
nop dword [eax + eax]
dec ecx
cmp byte [ebp + ecx - 0x68], 0x20
jne 0x49ac41
mov byte [ebp + ecx - 0x68], 0
test ecx, ecx
jne 0x49ac30
lea eax, [ebp - 0x68]
push eax
push 0x1000
lea eax, [ebp - 0x1468]
push eax
call fcn.0049c560
lea eax, [ebp - 0x68]
push 0x64
push eax
call fcn.0049aec0
add esp, 8
test eax, eax
jne 0x49ac7a
lea eax, [ebp - 0x68]
push 0x64
push eax
call fcn.0049ad30
add esp, 8
test eax, eax
je 0x49ac8f
lea eax, [ebp - 0x68]
push eax
push 0x1000
lea eax, [ebp - 0x1468]
push eax
call fcn.0049c560
push esi
xor esi, esi
cmp byte [ebp - 0x1468], 0
jne 0x49acd9
lea ecx, [ebp - 0x1468]
mov esi, str.Mid2Failed
mov eax, ecx
mov edx, 0x1000
sub esi, eax
nop
lea eax, [edx + 0x7fffeffe]
test eax, eax
je 0x49acc9
mov al, byte [esi + ecx]
test al, al
je 0x49acc9
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x49acb0
test edx, edx
lea eax, [ecx - 1]
mov esi, 1
cmovne eax, ecx
mov byte [eax], 0
push ebx
lea eax, [ebp - 0x1468]
push edi
push eax
call fcn.0049b1b0
add esp, 0xc
test esi, esi
pop esi
jne 0x49acfe
cmp dword [ebp + 0x10], 0
je 0x49acfe
push edi
call fcn.0049c520
add esp, 4
pop edi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048e99c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop ebx
call fcn.0048e99c
mov esp, ebp
pop ebp
ret
Function at 0x49b1b0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c8
mov eax, dword [0x53000c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x160]
push esi
mov esi, dword [ebp + 8]
push 0x104
push 0
push eax
call fcn.004bcaf0
push esi
push 0x51fdb0
lea eax, [ebp - 0x160]
mov dword [ebp - 0x1c4], 0
push 0x104
push eax
mov dword [ebp - 0x1c8], 0
mov dword [ebp - 0x1c0], 0x67452301
mov dword [ebp - 0x1bc], 0xefcdab89
mov dword [ebp - 0x1b8], 0x98badcfe
mov dword [ebp - 0x1b4], 0x10325476
call fcn.0049c690
lea ecx, [ebp - 0x160]
add esp, 0x1c
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x49b240
sub ecx, edx
lea eax, [ebp - 0x160]
push ecx
push eax
lea eax, [ebp - 0x1c8]
push eax
call fcn.0049b450
lea eax, [ebp - 0x1c8]
push eax
call fcn.0049b340
lea eax, [ebp - 0x1c8]
push eax
call fcn.0049b340
movups xmm0, xmmword [ebp - 0x170]
push 0x40
lea eax, [ebp - 0x5c]
push 0
push eax
movups xmmword [ebp - 0x1c], xmm0
call fcn.004bcaf0
add esp, 0x20
xor esi, esi
push edi
movzx eax, byte [ebp + esi - 0x1c]
xorps xmm0, xmm0
push eax
push str._02x
lea eax, [ebp - 0xc]
movlpd qword [ebp - 0xc], xmm0
push 8
push eax
call fcn.0049c690
lea eax, [ebp - 0x5c]
add esp, 0x10
lea edx, [eax + 1]
nop word [eax + eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x49b2c0
sub eax, edx
lea ecx, [ebp - 0xc]
mov edx, 0x40
lea edi, [ecx + 1]
sub edx, eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x49b2d6
sub ecx, edi
lea eax, [ebp - 0xc]
cmp ecx, edx
cmovl edx, ecx
push edx
push eax
lea eax, [ebp - 0x5c]
push 0x40
push eax
call fcn.004d34fd
inc esi
add esp, 0x10
cmp esi, 0x10
jl 0x49b293
pop edi
test ebx, ebx
je 0x49b32b
mov esi, dword [ebp + 0x10]
push esi
push 0
push ebx
call fcn.004bcaf0
lea eax, [ebp - 0x5c]
push eax
push 0x51fdb0
lea eax, [esi - 1]
push eax
push ebx
call fcn.0049c690
push esi
push ebx
call fcn.004d3684
add esp, 0x24
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0048e99c
mov esp, ebp
pop ebp
ret
Function at 0x49c3a0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2d10
call fcn.004fa330
mov eax, dword [0x53000c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2d10], eax
test eax, eax
je 0x49c502
cmp dword [ebp + 0xc], 0
je 0x49c502
push ebx
push esi
xor ebx, ebx
xor esi, esi
push edi
nop dword [eax]
push esi
push str..PhysicalDrive_d
lea eax, [ebp - 0x204]
push 0x200
push eax
call fcn.0049c710
add esp, 0x10
lea eax, [ebp - 0x204]
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x49c4e5
push 0x2710
lea eax, [ebp - 0x2cfc]
mov dword [ebp - 0x2d0c], 0
push 0
push eax
mov dword [ebp - 0x2d00], 0
mov dword [ebp - 0x2d08], 0
mov dword [ebp - 0x2d04], 0
call fcn.004bcaf0
add esp, 0xc
lea eax, [ebp - 0x2d0c]
push 0
push eax
push 0x2710
lea eax, [ebp - 0x2cfc]
push eax
push 0xc
lea eax, [ebp - 0x2d08]
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x49c4da
push 0x3e8
lea eax, [ebp - 0x5ec]
push 0
push eax
call fcn.004bcaf0
lea eax, [ebp - 0x5ec]
push eax
push 1
push dword [ebp - 0x2ce4]
lea eax, [ebp - 0x2cfc]
push eax
call fcn.004abb90
add esp, 0x1c
lea eax, [ebp - 0x5ec]
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x2d10]
call fcn.0049c610
test eax, eax
mov eax, 1
cmove ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x49c4ef
inc esi
cmp esi, 0x10
jl 0x49c3e0
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048e99c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0048e99c
mov esp, ebp
pop ebp
ret
Function at 0x4a0b50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x4a0b5e
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
pop ebp
ret

Function at 0x4a0b70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x4a0b7f
mov eax, dword [eax]
push esi
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp + 8], 0
test esi, esi
je 0x4a0bf0
lea ecx, [ebp + 8]
call fcn.004a09c0
cmp esi, 0xffffffff
je 0x4a0bca
mov dword [ebp + 8], esi
call fcn.004b0340
push eax
mov eax, dword [ebp + 4]
push eax
lea eax, [ebp + 8]
push eax
push esi
call fcn.004b08b0
add esp, 0x10
mov eax, dword [ebp + 8]
test eax, eax
je 0x4a0bf0
push 0
lea ecx, [ebp - 4]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4a0bf0
mov esi, dword [ebp - 4]
cmp esi, dword [ebp + 0x10]
je 0x4a0bf3
or esi, 0xffffffff
lea ecx, [ebp + 8]
call fcn.004a09c0
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4a12e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4a1316
push 0x509884
push esi
call fcn.004d23b2
add esp, 8
test eax, eax
je 0x4a1316
mov esi, dword [ebp + 8]
push eax
push esi
call fcn.004b4090
add esp, 8
mov eax, esi
pop esi
pop ebp
ret
mov esi, dword [ebp + 8]
mov ecx, esi
push 0
push 0x51ca34
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
call fcn.00420560
mov eax, esi
pop esi
pop ebp
ret