joyce8/EMBER2024-capa huggingface dataset:
Function at 0x472050
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5cb464]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
test ebx, ebx
je 0x472138
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004cc090
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
test edx, edx
je 0x472138
mov ecx, ebx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4720a7
sub ecx, esi
mov eax, 0x103
sar ecx, 1
sub eax, ecx
cmp edx, eax
jae 0x472138
push edi
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x4720d0
mov eax, dword [0x58e258]
mov esi, ebx
mov dword [edi], eax
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x4720e5
lea edi, [ebp - 0x20c]
sub ebx, esi
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x472100
mov ecx, ebx
lea eax, [ebp - 0x20c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046997a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.0046997a
mov esp, ebp
pop ebp
ret
Function at 0x472150
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x290
mov eax, dword [0x5cb464]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x84]
push edi
push 0x80
push 0
push eax
call fcn.004cc090
push 0x80
lea eax, [ebp - 0x84]
push eax
push esi
call fcn.00471160
lea ecx, [ebp - 0x188]
mov edi, esi
mov eax, ecx
add esp, 0x18
mov edx, 0x104
sub edi, eax
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x4721ba
mov al, byte [edi + ecx]
test al, al
je 0x4721ba
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x4721a1
lea eax, [ecx - 1]
test edx, edx
cmovne eax, ecx
mov ecx, 0x104
mov byte [eax], 0
lea eax, [ebp - 0x188]
cmp byte [eax], 0
je 0x4721db
inc eax
sub ecx, 1
jne 0x4721d0
mov edx, 0x104
mov edi, ecx
mov eax, edx
sub eax, ecx
neg edi
sbb edi, edi
and edi, eax
test ecx, ecx
je 0x472230
lea ecx, [ebp - 0x188]
lea ecx, [ecx + edi]
sub edx, edi
je 0x472225
lea edi, [ebp - 0x84]
mov eax, SysReAllocString
sub edi, ecx
push ebx
nop dword [eax + eax]
test eax, eax
je 0x472224
mov bl, byte [edi + ecx]
test bl, bl
je 0x472224
mov byte [ecx], bl
dec eax
inc ecx
sub edx, 1
jne 0x472210
pop ebx
test edx, edx
lea eax, [ecx - 1]
cmovne eax, ecx
mov byte [eax], 0
push 0x100
lea eax, [ebp - 0x288]
mov dword [ebp - 0x290], 1
push 0
push eax
call fcn.004cc090
add esp, 0xc
mov dword [ebp - 0x28c], 0x100
lea eax, [ebp - 0x28c]
push eax
lea eax, [ebp - 0x288]
push eax
lea eax, [ebp - 0x290]
push eax
push 0x58e414
push str.SoftwareMaster2Liveup
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov edi, dword [sym.imp.SHLWAPI.dll_SHSetValueA]
test eax, eax
jne 0x4722ea
lea eax, [ebp - 0x288]
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x4722b4
test cl, cl
je 0x4722b0
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x4722b4
add eax, 2
add esi, 2
test cl, cl
jne 0x472294
xor eax, eax
jmp 0x4722b9
sbb eax, eax
or eax, 1
test eax, eax
je 0x4722ea
lea ecx, [ebp - 0x288]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4722c6
sub ecx, edx
lea eax, [ebp - 0x288]
push ecx
push eax
push 1
push str.mid_old
push str.SoftwareMaster2Liveup
push reloc.OLEAUT32.dll_SysReAllocString
call edi
lea ecx, [ebp - 0x188]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4722f3
sub ecx, edx
lea eax, [ebp - 0x188]
push ecx
push eax
push 1
push 0x58e414
push str.SoftwareMaster2Liveup
push reloc.OLEAUT32.dll_SysReAllocString
call edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0046997a
mov esp, ebp
pop ebp
ret
Function at 0x477870
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebx + 0x2c]
mov esi, dword [ebx + 0x28]
cmp esi, edi
je 0x4778dc
cmp dword [esi + 0x2c], 8
lea eax, [esi + 0x18]
jb 0x47788e
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x47789f
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, dword [esi + 0x34]
cmp eax, 0xffffffff
je 0x4778bc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x34], 0xffffffff
mov eax, dword [esi + 0x30]
cmp eax, 0xffffffff
je 0x4778d2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x30], 0xffffffff
add esi, 0x38
cmp esi, edi
jne 0x477883
mov edi, dword [ebx + 0x2c]
mov esi, dword [ebx + 0x28]
cmp esi, edi
je 0x4778fe
mov ecx, esi
call fcn.004840a0
add esi, 0x38
cmp esi, edi
jne 0x4778e3
mov eax, dword [ebx + 0x28]
pop edi
pop esi
mov dword [ebx + 0x2c], eax
pop ebx
pop ebp
ret 4
pop edi
mov dword [ebx + 0x2c], esi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x4791c0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56de87
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x5cb464]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ecx + 0x3c]
lea edi, [ecx + 0x3c]
mov dword [ebp - 0x14], edi
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
cmp eax, esi
je 0x47925a
nop dword [eax]
cmp dword [eax + 0x24], 8
lea edi, [eax + 0x10]
mov eax, edi
jb 0x47920d
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push dword [edi + 0x18]
movups xmm0, xmmword [edi]
sub esp, 0x18
mov eax, esp
push 0x58fe08
movups xmmword [eax], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [eax + 0x10], xmm0
call fcn.00435810
mov eax, dword [edi + 0x18]
add esp, 0x20
cmp eax, 0xffffffff
je 0x479248
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x10]
call fcn.004849b0
mov eax, dword [ebp - 0x10]
cmp eax, esi
jne 0x479200
mov edi, dword [ebp - 0x14]
mov esi, dword [edi]
mov ecx, edi
mov dword [ebp - 4], 0
push dword [esi + 4]
call fcn.00489810
mov eax, dword [edi]
mov dword [eax + 4], esi
mov eax, dword [edi]
mov dword [eax], esi
mov eax, dword [edi]
mov dword [eax + 8], esi
mov dword [edi + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4820e0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x5cb464]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x88], eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
cmp esi, ebx
je 0x482259
push 0x80
lea eax, [ebp - 0x84]
push 0
push eax
call fcn.004cc090
add esp, 0xc
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x482133
mov eax, dword [esi]
push 0x40
lea ecx, [ebp - 0x84]
push ecx
push 0
push 0
push 0
push 0
push 0
push eax
call edi
push str.NTFS
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x482166
add esi, 0x28
cmp esi, ebx
jne 0x482113
cmp esi, ebx
je 0x482259
lea edi, [esi + 0x28]
cmp edi, ebx
je 0x482259
nop dword [eax]
push 0x80
lea eax, [ebp - 0x84]
push 0
push eax
call fcn.004cc090
add esp, 0xc
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x4821a0
mov eax, dword [edi]
push 0x40
lea ecx, [ebp - 0x84]
push ecx
push 0
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
push str.NTFS
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x48224e
cmp esi, edi
je 0x482239
mov ecx, dword [esi + 0x14]
cmp ecx, 8
jb 0x482209
mov eax, dword [esi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x4821ff
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x482272
mov eax, edx
push ecx
push eax
call fcn.0046956a
add esp, 8
mov dword [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 7
mov word [esi], ax
movups xmm0, xmmword [edi]
movups xmmword [esi], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 7
mov word [edi], ax
mov eax, dword [edi + 0x18]
mov dword [esi + 0x18], eax
mov eax, dword [edi + 0x1c]
mov dword [esi + 0x1c], eax
mov eax, dword [edi + 0x20]
mov dword [esi + 0x20], eax
add esi, 0x28
add edi, 0x28
cmp edi, ebx
jne 0x482180
mov eax, dword [ebp - 0x88]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov dword [eax], esi
pop esi
pop ebx
call fcn.0046997a
mov esp, ebp
pop ebp
ret
call fcn.004d5908
int3
Function at 0x482280
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov eax, dword [0x5cb464]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x438], eax
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
cmp esi, ebx
je 0x482428
cmp dword [esi + 0x14], 8
xorps xmm0, xmm0
movups xmmword [ebp - 0x24], xmm0
mov eax, esi
movups xmmword [ebp - 0x14], xmm0
jb 0x4822c8
mov eax, dword [esi]
push eax
push 3
lea eax, [ebp - 0x24]
push eax
call fcn.0043dd00
push 0x410
lea eax, [ebp - 0x434]
push 0
push eax
call fcn.004cc090
add esp, 0xc
lea eax, [ebp - 0x434]
push 0x208
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x482318
push 4
lea eax, [ebp - 0x434]
push eax
push 0x58fb5c
call edi
test eax, eax
je 0x48231f
add esi, 0x28
cmp esi, ebx
jne 0x4822b3
cmp esi, ebx
je 0x482428
lea edi, [esi + 0x28]
cmp edi, ebx
je 0x482428
cmp dword [edi + 0x14], 8
xorps xmm0, xmm0
movups xmmword [ebp - 0x24], xmm0
mov eax, edi
movups xmmword [ebp - 0x14], xmm0
jb 0x482347
mov eax, dword [edi]
push eax
push 3
lea eax, [ebp - 0x24]
push eax
call fcn.0043dd00
push 0x410
lea eax, [ebp - 0x434]
push 0
push eax
call fcn.004cc090
add esp, 0xc
lea eax, [ebp - 0x434]
push 0x208
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x48239f
push 4
lea eax, [ebp - 0x434]
push eax
push 0x58fb5c
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
je 0x48241d
cmp esi, edi
je 0x482408
mov ecx, dword [esi + 0x14]
cmp ecx, 8
jb 0x4823d8
mov eax, dword [esi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x4823ce
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x482441
mov eax, edx
push ecx
push eax
call fcn.0046956a
add esp, 8
mov dword [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 7
mov word [esi], ax
movups xmm0, xmmword [edi]
movups xmmword [esi], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 7
mov word [edi], ax
mov eax, dword [edi + 0x18]
mov dword [esi + 0x18], eax
mov eax, dword [edi + 0x1c]
mov dword [esi + 0x1c], eax
mov eax, dword [edi + 0x20]
mov dword [esi + 0x20], eax
add esi, 0x28
add edi, 0x28
cmp edi, ebx
jne 0x482332
mov eax, dword [ebp - 0x438]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov dword [eax], esi
pop esi
pop ebx
call fcn.0046997a
mov esp, ebp
pop ebp
ret
call fcn.004d5908
int3
Function at 0x484d10
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56ebd6
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x5cb464]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [ebp + 0x10], 0
je 0x484d4d
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
jmp 0x484d51
xor edx, edx
xor eax, eax
xor edi, edi
mov dword [ebp - 0x22c], 0
mov word [ebp - 0x23c], di
mov ecx, 7
mov dword [ebp - 0x228], ecx
cmp edx, eax
je 0x484d8a
sub eax, edx
lea ecx, [ebp - 0x23c]
sar eax, 1
push eax
push edx
call fcn.0048c6c0
mov ecx, dword [ebp - 0x228]
cmp ecx, 8
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x244]
xorps xmm0, xmm0
push ecx
push 0
lea eax, [ebp - 0x23c]
movlpd qword [ebp - 0x244], xmm0
cmovae eax, dword [ebp - 0x23c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x484e8b
push 0x210
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.004cc090
mov ecx, dword [esi]
lea eax, [ebp - 0x25c]
add esp, 0xc
push eax
call fcn.00473600
mov ecx, eax
cmp dword [ecx + 0x14], 8
mov byte [ebp - 4], 1
jb 0x484df8
mov ecx, dword [ecx]
cmp dword [ebp - 0x228], 8
lea eax, [ebp - 0x23c]
push ecx
cmovae eax, dword [ebp - 0x23c]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.0048ea90
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x25c]
call fcn.0041a710
lea eax, [ebp - 0x220]
push str.3FE042F1_E916_4E1B_87D4_42E2371AEAC9
push eax
push eax
call fcn.0048ea90
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
mov esi, dword [esi + 4]
lea ecx, [ebp - 0x224]
push ecx
lea ecx, [ebp - 0x244]
mov dword [ebp - 0x224], eax
push ecx
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x23c]
push ecx
push eax
cmp dword [esi + 8], eax
je 0x484e84
push esi
call fcn.00481130
add esp, 0x14
add dword [esi + 4], 0x28
jmp 0x484e8b
mov ecx, esi
call fcn.0047cfc0
mov edx, dword [ebp - 0x228]
cmp edx, 8
jb 0x484ec7
mov ecx, dword [ebp - 0x23c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x484ebd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x484ee4
push edx
push ecx
call fcn.0046956a
add esp, 8
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.0046997a
mov esp, ebp
pop ebp
ret 0xc
call fcn.004d5908
int3
Function at 0x48c9c0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, 0
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x811c9dc5
sub edx, edi
sar edx, 1
add edx, edx
je 0x48c9f1
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edx
jb 0x48c9e0
pop edi
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x48f1d0
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56f278
mov eax, dword fs:[0]
push eax
sub esp, 0x2e4
mov eax, dword [0x5cb464]
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, dword [ebp + 8]
lea ecx, [ebp - 0x2f0]
push 0x590524
xorps xmm0, xmm0
xor esi, esi
push str.Shell32.dll
mov dword [ebp - 0x2e8], esi
movlpd qword [ebp - 0x2f0], xmm0
call fcn.00490a40
lea eax, [ebp - 0x2f0]
mov dword [ebp - 4], esi
push eax
call fcn.0048e830
test al, al
je 0x48f29b
mov dword [ebp - 0x14], esi
movups xmm0, xmmword [0x590514]
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
sub esp, 0x10
mov eax, esp
push esi
movups xmmword [eax], xmm0
push edi
lea eax, [ebp - 0x2f0]
push eax
call fcn.004908b0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x48f281
push 1
push 0x40
push 0x40
push eax
call fcn.00490590
mov esi, eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x2e8], esi
mov byte [ebp - 4], 2
test eax, eax
je 0x48f28f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0
test esi, esi
jne 0x48f32f
push 0x2b4
lea eax, [ebp - 0x2e4]
push 0
push eax
call fcn.004cc090
add esp, 0xc
lea eax, [ebp - 0x2e4]
push 0x4000
push 0x2b4
push eax
push 0
push edi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov edi, dword [sym.imp.SHELL32.dll_SHGetImageList]
lea eax, [ebp - 0x18]
push eax
push 0x590504
push 4
mov dword [ebp - 0x18], 0
call edi
test eax, eax
js 0x48f2f0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x48f300
lea eax, [ebp - 0x18]
push eax
push 0x590504
push 0
call edi
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 3
test eax, eax
je 0x48f321
push 0x20
push dword [ebp - 0x2e0]
push eax
call fcn.00490610
mov esi, eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x2e8], esi
mov byte [ebp - 4], 4
test eax, eax
je 0x48f32f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x30]
xorps xmm0, xmm0
push eax
push 0x18
push esi
movups xmmword [ebp - 0x30], xmm0
movq qword [ebp - 0x20], xmm0
call dword [sym.imp.GDI32.dll_GetObjectW]
cmp eax, 0x18
jne 0x48f3bf
mov eax, 0x20
cmp ax, word [ebp - 0x1e]
jne 0x48f3bf
mov edi, dword [ebp - 0x1c]
test edi, edi
je 0x48f3bf
mov eax, dword [ebp - 0x2c]
imul eax, dword [ebp - 0x28]
mov dword [ebp - 0x14], eax
test eax, eax
jle 0x48f3bf
inc edi
nop
movzx esi, byte [edi + 2]
lea edi, [edi + 4]
movzx ecx, byte [edi - 5]
mov eax, 0x80808081
imul ecx, esi
mul ecx
movzx ecx, byte [edi - 4]
mov eax, 0x80808081
imul ecx, esi
shr edx, 7
mov byte [edi - 5], dl
mul ecx
movzx ecx, byte [edi - 3]
mov eax, 0x80808081
imul ecx, esi
shr edx, 7
mov byte [edi - 4], dl
mul ecx
shr edx, 7
sub dword [ebp - 0x14], 1
mov byte [edi - 3], dl
jne 0x48f370
mov esi, dword [ebp - 0x2e8]
lea ecx, [ebp - 0x2f0]
call fcn.00490bc0
mov eax, esi
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.0046997a
mov esp, ebp
pop ebp
ret 4
Function at 0x48f7d0
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56f2cc
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x5cb464]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
mov dword [ebp - 0x220], esi
call fcn.004cc090
add esp, 0xc
lea eax, [ebp - 0x218]
push 0
push 0x1c
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
call fcn.0041c100
mov ecx, eax
test ecx, ecx
je 0x48f96c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x21c]
call fcn.0040e980
test al, al
jne 0x48f894
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48f872
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x21c]
call fcn.0040fb90
push 0x5809d0
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x220]
mov dword [esi], 0
push eax
call fcn.00484b90
push str.PCjiami
push eax
lea eax, [ebp - 0x224]
mov byte [ebp - 4], 2
push eax
call fcn.00484b90
push 0x5809d0
push eax
push esi
mov byte [ebp - 4], 3
call fcn.00484b90
mov edx, dword [ebp - 0x224]
or edi, 0xffffffff
add esp, 0x24
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48f902
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x220]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48f91f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x48f934
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x48f94f
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
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.0046997a
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00408fa0
int3
Function at 0x48fdd0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56f3cc
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5cb464]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor bl, bl
xor ecx, ecx
mov dword [ebp - 4], 0
mov edx, eax
mov esi, dword [eax - 0xc]
test esi, esi
jle 0x48fe80
nop dword [eax]
lea edi, [ecx + ecx]
cmp word [edi + edx], 0x2f
jne 0x48fe53
test bl, bl
jne 0x48fe47
mov bl, 1
test esi, esi
js 0x48ff7c
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or edx, ecx
jge 0x48fe45
push esi
lea ecx, [ebp + 8]
call fcn.0040d440
mov eax, dword [ebp + 8]
mov edx, eax
mov eax, 0x5c
mov word [edi + edx], ax
mov eax, dword [ebp + 8]
lea ecx, [edi + 2]
sar ecx, 1
cmp ecx, esi
jl 0x48fe10
test bl, bl
je 0x48fe80
test esi, esi
js 0x48ff7c
cmp esi, dword [eax - 8]
jg 0x48ff7c
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [ebp + 8]
mov word [eax + esi*2], cx
mov eax, dword [ebp + 8]
or ebx, 0xffffffff
cmp dword [eax - 0xc], 0
jle 0x48ff55
push 0x5c
push eax
call fcn.004cc8ba
mov edi, eax
add esp, 8
test edi, edi
je 0x48ff52
mov eax, dword [ebp + 8]
sub edi, eax
sar edi, 1
cmp edi, ebx
je 0x48ff55
xor esi, esi
test edi, edi
cmovns esi, edi
cmp esi, dword [eax - 0xc]
jl 0x48fed1
add eax, 0xfffffff0
push eax
call fcn.0040c430
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
jmp 0x48fefd
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x48fee1
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x48feed
call fcn.0041c100
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
push eax
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.0040ba70
mov esi, dword [ebp - 0x10]
mov eax, esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x48ff1f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 1
js 0x48ff52
mov eax, dword [ebp + 8]
cmp edi, dword [eax - 0xc]
jge 0x48ff55
lea eax, [eax + edi*2]
push 0x5c
push eax
call fcn.004cc8ba
mov edi, eax
add esp, 8
test edi, edi
je 0x48ff52
mov eax, dword [ebp + 8]
sub edi, eax
sar edi, 1
cmp edi, 0xffffffff
jne 0x48feb1
jmp 0x48ff55
mov eax, dword [ebp + 8]
lea edx, [eax - 0x10]
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x48ff6a
mov ecx, dword [edx]
push edx
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 esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00408fa0
int3
Function at 0x48ff90
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x664
mov eax, dword [0x5cb464]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x414]
push esi
push 0x104
push eax
call fcn.004f9ad2
push 0x59056c
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.004f9e2d
add esp, 0x18
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x490102
push edi
mov edi, dword [ebp + 0xc]
nop word [eax + eax]
test byte [ebp - 0x664], 0x10
je 0x4900b0
mov ecx, 0x590460
lea eax, [ebp - 0x638]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x49003e
test dx, dx
je 0x49003a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x49003e
add eax, 4
add ecx, 4
test dx, dx
jne 0x490018
xor eax, eax
jmp 0x490043
sbb eax, eax
or eax, 1
test eax, eax
je 0x4900dd
mov eax, 0x586f0c
lea ecx, [ebp - 0x638]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x49007c
test dx, dx
je 0x490078
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x49007c
add ecx, 4
add eax, 4
test dx, dx
jne 0x490056
xor eax, eax
jmp 0x490081
sbb eax, eax
or eax, 1
test eax, eax
je 0x4900dd
lea eax, [ebp - 0x638]
push eax
push esi
lea eax, [ebp - 0x20c]
push str._s_s
push eax
call fcn.00490a00
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0048ff90
add esp, 0x18
jmp 0x4900dd
test edi, edi
je 0x4900dd
lea eax, [ebp - 0x638]
push eax
push esi
lea eax, [ebp - 0x20c]
push str._s_s
push eax
call fcn.00490a00
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x664]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x490000
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0046997a
mov esp, ebp
pop ebp
ret