joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47aa60
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1258
call fcn.004d9760
mov eax, dword [0x55b2f8]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 0x1258], ecx
mov ecx, ebx
push edi
call fcn.00478e40
test eax, eax
je 0x47ab70
lea eax, [ebp - 0xc3c]
push esi
push eax
call fcn.004ac350
lea eax, [ebp - 0xc3c]
push eax
push ebx
lea eax, [ebp - 0x624]
push 0x53fcc8
push eax
call fcn.00451240
add esp, 0x18
lea eax, [ebp - 0x624]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
xor edi, edi
shr esi, 4
not esi
and esi, 1
cmp dword [0x55c00c], edi
cmovne edi, dword [0x574198]
test edi, edi
je 0x47ab3d
test esi, esi
jne 0x47ab41
push dword [edi]
mov edx, ebx
lea ecx, [ebp - 0x1254]
call fcn.004ace60
add esp, 4
lea eax, [ebp - 0xc3c]
push eax
lea eax, [ebp - 0x1254]
push eax
lea eax, [ebp - 0x624]
push str._s_s
push eax
call fcn.00451240
add esp, 0x10
lea eax, [ebp - 0x624]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, dword [edi + 4]
mov esi, eax
shr esi, 4
not esi
and esi, 1
test edi, edi
jne 0x47aae7
test esi, esi
je 0x47ab5d
mov eax, dword [ebp - 0x1258]
test eax, eax
je 0x47ab5d
push 1
lea ecx, [ebp - 0x624]
push ecx
push eax
call fcn.004ac3d0
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004d8af7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d8af7
mov esp, ebp
pop ebp
ret

Function at 0x47ad00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x55b2f8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, edx
mov esi, ecx
push edi
mov edx, 0x574518
lea ecx, [ebp - 0x61c]
call fcn.004ace60
add esp, 4
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x47ad66
push 1
lea eax, [ebp - 0x61c]
push eax
push esi
call fcn.004ac3d0
add esp, 0xc
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d8af7
mov esp, ebp
pop ebp
ret
mov ecx, 0x573870
call fcn.00478e40
test eax, eax
je 0x47ad9a
push edi
mov edx, 0x573870
lea ecx, [ebp - 0x61c]
call fcn.004ace60
add esp, 4
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x47ad3f
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.004d8af7
mov esp, ebp
pop ebp
ret
Function at 0x47adb0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, dword [0x55b2f8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
mov dword [ebp - 0x620], ecx
xor esi, esi
test esi, esi
jne 0x47ae61
mov ecx, 0x574518
call fcn.00478e40
test eax, eax
je 0x47ae20
push dword [ebp - 0x620]
mov edx, 0x574518
lea ecx, [ebp - 0x61c]
call fcn.004ace60
add esp, 4
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x47ae20
mov esi, eax
shr esi, 4
not esi
and esi, 1
jne 0x47add3
mov ecx, dword [0x575080]
mov edx, ebx
push 0x41
push edi
call fcn.0046bba0
add esp, 8
cmp eax, 2
jne 0x47add3
mov ecx, str.AREYOUSUREYOUWANTTOQUIT
call fcn.004b0e70
mov ecx, dword [0x575080]
mov edx, eax
push 0x124
push edi
call fcn.0046bba0
add esp, 8
cmp eax, 6
jne 0x47add3
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d8af7
mov esp, ebp
pop ebp
ret
Function at 0x47af20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x474
mov eax, dword [0x55b2f8]
xor eax, esp
mov dword [esp + 0x470], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
push edi
mov edi, edx
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
cmp edi, 1
jb 0x47b0f5
mov ecx, 1
call fcn.004738b0
mov ecx, 1
call fcn.004b2090
push 0x30c
push 0
push ebx
call fcn.004e4e70
add esp, 0xc
mov byte [esp + 0x78], 0
lea ebx, [esp + 0x78]
test edi, edi
je 0x47affe
mov edi, dword [esp + 0xc]
sub edi, esi
mov dword [esp + 0xc], edi
push dword [edi + esi]
push dword [esi]
push str._s__s
push ebx
call fcn.00402150
mov ecx, dword [esi]
add esp, 0x10
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47afc0
sub ecx, edx
mov byte [ecx + ebx], al
mov edx, dword [esi]
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x47afd1
mov eax, dword [edi + esi]
sub edx, ecx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x47afe0
sub eax, edi
add ebx, 2
mov edi, dword [esp + 0xc]
add eax, edx
add ebx, eax
add esi, 4
sub dword [esp + 0x10], 1
jne 0x47afa5
push 0x58
lea eax, [esp + 0x24]
mov byte [ebx], 0
push 0
push eax
call fcn.004e4e70
mov eax, dword [0x575080]
xor ecx, ecx
mov edx, dword [ebp + 0x18]
add esp, 0xc
mov dword [esp + 0x24], eax
cmp edx, 1
lea eax, [esp + 0x78]
mov dword [esp + 0x20], 0x58
mov dword [esp + 0x2c], eax
sete cl
mov eax, dword [esp + 0x14]
mov esi, 0x1000
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x4c], eax
lea ecx, [ecx*2 + 0x804]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x50], eax
xor eax, eax
test edx, edx
mov dword [esp + 0x38], 1
mov dword [esp + 0x40], 0x30c
cmove eax, esi
mov dword [esp + 0x5c], 0x53d7d0
or ecx, eax
mov dword [esp + 0x54], ecx
sub edx, 0
je 0x47b0be
sub edx, 1
je 0x47b0b1
mov esi, 4
call fcn.004b20e0
xor ecx, ecx
call fcn.004738b0
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x470]
xor ecx, esp
call fcn.004d8af7
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameA]
jmp 0x47b0c9
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameA]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
call fcn.004b20e0
xor ecx, ecx
call fcn.004738b0
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x470]
xor ecx, esp
call fcn.004d8af7
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x47c]
mov eax, 7
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004d8af7
mov esp, ebp
pop ebp
ret
Function at 0x47b500
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb94
mov eax, dword [0x55b2f8]
xor eax, esp
mov dword [esp + 0xb90], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push eax
lea eax, [esp + 0x584]
mov dword [esp + 0x14], edx
mov ebx, ecx
mov dword [esp + 0x1c], 0
xor esi, esi
mov dword [esp + 0x20], ebx
push eax
xor edi, edi
mov dword [esp + 0x1c], esi
call fcn.004ac350
add esp, 8
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x584]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
je 0x47b6a4
mov esi, dword [ebp + 0xc]
nop
test byte [esp + 0x20], 0x10
je 0x47b64a
mov ecx, 0x53fe2c
lea eax, [esp + 0x4c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x47b5aa
test dx, dx
je 0x47b5a6
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x47b5aa
add eax, 4
add ecx, 4
test dx, dx
jne 0x47b584
xor eax, eax
jmp 0x47b5af
sbb eax, eax
or eax, 1
test eax, eax
je 0x47b646
mov eax, 0x53fe24
lea ecx, [esp + 0x4c]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x47b5e6
test dx, dx
je 0x47b5e2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x47b5e6
add ecx, 4
add eax, 4
test dx, dx
jne 0x47b5c0
xor eax, eax
jmp 0x47b5eb
sbb eax, eax
or eax, 1
test eax, eax
je 0x47b646
push 1
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x278]
push eax
call fcn.004ac3d0
lea ecx, [esp + 0x27c]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47b610
sub ecx, edx
lea esi, [ecx + 1]
test ebx, ebx
je 0x47b63e
cmp esi, dword [esp + 0x10]
ja 0x47b66b
push esi
lea eax, [esp + 0x274]
push eax
push ebx
call fcn.004e4fd0
add esp, 0xc
add ebx, esi
sub dword [esp + 0x10], esi
inc edi
add dword [esp + 0x14], esi
mov esi, dword [ebp + 0xc]
mov eax, dword [esp + 0xc]
test esi, esi
je 0x47b652
cmp edi, esi
jae 0x47b673
lea ecx, [esp + 0x20]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x47b673
mov eax, dword [esp + 0xc]
jmp 0x47b570
mov dword [esp + 0x18], 1
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x18], 0
je 0x47b69c
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb90]
xor ecx, esp
call fcn.004d8af7
mov esp, ebp
pop ebp
ret
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0xb9c]
test ebx, ebx
cmovne esi, edi
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.004d8af7
mov esp, ebp
pop ebp
ret
Function at 0x47b6c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x628
mov eax, dword [0x55b2f8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x620]
xor esi, esi
push eax
push 0x20119
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push 0x80000002
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x47b75b
lea eax, [ebp - 0x624]
mov dword [ebp - 0x624], 0x618
push eax
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x628]
push eax
push esi
push str.ProgramFilesDir
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x47b74f
cmp dword [ebp - 0x628], 1
jne 0x47b74f
push 1
lea eax, [ebp - 0x61c]
push eax
push edi
call fcn.004ac3d0
add esp, 0xc
mov esi, 1
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004d8af7
mov esp, ebp
pop ebp
ret
Function at 0x47ba80
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x518f9b
mov eax, dword fs:[0]
push eax
sub esp, 0xc44
mov eax, dword [0x55b2f8]
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 dword [ebp - 0xc44], ecx
xor esi, esi
xor edi, edi
call fcn.004a9230
test eax, eax
je 0x47bac8
call fcn.004a9310
mov edi, eax
push 0xc
call fcn.004d8b0d
mov edx, dword [ebp - 0xc44]
mov ebx, eax
add esp, 4
xorps xmm0, xmm0
mov ecx, ebx
movq qword [ebx], xmm0
mov dword [ebx + 8], esi
call fcn.00485ef0
test eax, eax
je 0x47bba1
push dword [ebp - 0xc44]
lea eax, [ebp - 0xc40]
push eax
call fcn.004ac350
add esp, 8
lea eax, [ebp - 0x628]
push eax
push 0
push 0x53fe34
lea eax, [ebp - 0xc40]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x47bba1
lea ecx, [ebp - 0xc50]
call fcn.00432ad0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x628]
push 0
push eax
lea ecx, [ebp - 0xc50]
call fcn.00432dc0
test eax, eax
je 0x47bb82
lea ecx, [ebp - 0xc50]
call fcn.00432e10
lea eax, [ebp - 0x628]
push eax
lea ecx, [ebp - 0xc50]
call fcn.00432d10
test eax, eax
je 0x47bb82
lea ecx, [ebp - 0xc50]
call fcn.00432e10
mov esi, 1
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc50]
call fcn.00432b20
mov ecx, ebx
call fcn.004860e0
mov ecx, ebx
call fcn.004861a0
test edi, edi
je 0x47bbc0
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
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.004d8af7
mov esp, ebp
pop ebp
ret
Function at 0x47c3e0
Capabilities:
Get disk size
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x948
mov eax, dword [0x55b2f8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x310]
push esi
push eax
mov dword [ebp - 0x938], edx
mov dword [ebp - 0x93c], ecx
call fcn.004acca0
lea eax, [ebp - 0x310]
push eax
call fcn.004acdc0
mov cl, byte [ebp - 0x310]
add esp, 0xc
lea eax, [ecx - 0x61]
cmp al, 0x19
ja 0x47c5df
cmp byte [ebp - 0x30f], 0x3a
jne 0x47c5df
movsx eax, cl
push eax
lea eax, [ebp - 0x310]
push str._c:_
push eax
call fcn.00402150
add esp, 0xc
lea eax, [ebp - 0x940]
push eax
lea eax, [ebp - 0x944]
push eax
lea eax, [ebp - 0x930]
push eax
lea eax, [ebp - 0x948]
push eax
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x47c5cd
lea eax, [ebp - 0x928]
push esi
push eax
call fcn.004ac350
add esp, 8
lea eax, [ebp - 0x928]
push 0
push 0x28000020
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x92c], eax
cmp eax, 0xffffffff
je 0x47c5b9
push ebx
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x47c4d7
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov esi, dword [ebp - 0x930]
cmp esi, edi
jae 0x47c4e7
add esi, esi
cmp esi, edi
jb 0x47c4e1
push 4
push 0x3000
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
test ebx, ebx
je 0x47c596
push 0
lea eax, [ebp - 0x934]
push eax
push esi
mov esi, dword [ebp - 0x92c]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x47c56b
cmp dword [ebp - 0x934], edi
mov eax, dword [ebp - 0x938]
cmovb edi, dword [ebp - 0x934]
push edi
push ebx
push dword [ebp - 0x93c]
mov dword [eax], edi
call fcn.004e4fd0
add esp, 0xc
xor edi, edi
push 0x8000
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d8af7
mov esp, ebp
pop ebp
ret
push 0x8000
push 0
push ebx
or edi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d8af7
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x92c]
or edi, 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d8af7
mov esp, ebp
pop ebp
ret
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d8af7
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d8af7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 8
xor ecx, ebp
pop esi
call fcn.004d8af7
mov esp, ebp
pop ebp
ret
Function at 0x47ca40
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
movsx eax, byte [edx]
push esi
push edi
push eax
lea eax, [ebp - 4]
mov esi, ecx
push str._c:_
push eax
call fcn.00402150
add esp, 0xc
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0
push 0
push 0
push 0
push 0
push 0x30c
mov edi, eax
lea eax, [ebp - 4]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x47caa0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x624
mov eax, dword [0x55b2f8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edx
lea eax, [ebp - 0x61c]
mov esi, ecx
push eax
call fcn.004ac350
lea eax, [ebp - 0x61c]
add esp, 8
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x47cad0
sub eax, edx
sar eax, 1
cmp eax, 1
jb 0x47cafa
cmp word [ebp + eax*2 - 0x61e], 0x5c
je 0x47cafa
mov dword [ebp + eax*2 - 0x61c], 0x5c
lea ecx, [ebp - 0x61c]
call fcn.00478e40
test eax, eax
je 0x47cb4b
push 0
push 0
lea eax, [ebp - 0x624]
push eax
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x47cb4b
mov ecx, dword [ebp - 0x624]
mov eax, dword [ebp - 0x620]
shrd ecx, eax, 0x14
mov eax, 1
mov dword [esi], ecx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d8af7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.004d8af7
mov esp, ebp
pop ebp
ret
Function at 0x47f4d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor bl, bl
push edi
mov dword [ebp - 0xc], ecx
mov edi, edx
xor cl, cl
mov dword [ebp - 0x10], edi
xor eax, eax
mov dword [ebp - 8], ecx
test esi, esi
je 0x47f5ab
cmp esi, 0x20
jb 0x47f5ab
mov edx, dword [ebp + 8]
mov ecx, esi
and ecx, 0xffffffe0
xorps xmm2, xmm2
xorps xmm4, xmm4
xorps xmm3, xmm3
xorps xmm5, xmm5
movups xmm1, xmmword [edx + eax]
movaps xmm0, xmm1
pxor xmm5, xmm1
movups xmm1, xmmword [edx + eax + 0x10]
add eax, 0x20
paddb xmm2, xmm0
movaps xmm0, xmm1
pxor xmm3, xmm1
paddb xmm4, xmm0
cmp eax, ecx
jb 0x47f512
pxor xmm3, xmm5
paddb xmm4, xmm2
movaps xmm0, xmm3
psrldq xmm0, 8
pxor xmm3, xmm0
movups xmm0, xmm3
psrldq xmm0, 4
pxor xmm3, xmm0
movups xmm0, xmm3
psrldq xmm0, 2
pxor xmm3, xmm0
movups xmm0, xmm3
psrldq xmm0, 1
pxor xmm3, xmm0
movaps xmm0, xmm4
psrldq xmm0, 8
paddb xmm4, xmm0
movd ebx, xmm3
movups xmm0, xmm4
psrldq xmm0, 4
paddb xmm4, xmm0
movups xmm0, xmm4
psrldq xmm0, 2
paddb xmm4, xmm0
movups xmm0, xmm4
psrldq xmm0, 1
paddb xmm4, xmm0
movd ecx, xmm4
mov dword [ebp - 8], ecx
xor dh, dh
mov byte [ebp - 1], 0
cmp eax, esi
jae 0x47f607
mov ecx, esi
sub ecx, eax
cmp ecx, 2
mov ch, byte [ebp - 1]
jb 0x47f5e3
lea edi, [esi - 1]
mov esi, dword [ebp + 8]
mov dl, byte [esi + eax]
mov cl, byte [esi + eax + 1]
add ch, dl
xor dl, cl
add eax, 2
add dh, cl
xor bl, dl
cmp eax, edi
jb 0x47f5c7
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp - 0x10]
cmp eax, esi
jae 0x47f5f2
mov esi, dword [ebp + 8]
mov al, byte [eax + esi]
add byte [ebp - 8], al
xor bl, al
mov eax, dword [ebp - 8]
add dh, ch
add al, dh
mov edx, dword [ebp - 0xc]
mov byte [edx], al
mov byte [edi], bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0xc]
mov byte [edx], cl
mov byte [edi], bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47f620
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov esi, edx
mov edi, ecx
xor cl, cl
mov dword [ebp - 0x10], esi
xor bl, bl
mov dword [ebp - 0xc], edi
xor eax, eax
mov dword [ebp - 8], ecx
test esi, esi
je 0x47f6f9
cmp esi, 0x20
jb 0x47f6f9
mov ecx, esi
xorps xmm2, xmm2
and ecx, 0xffffffe0
xorps xmm4, xmm4
xorps xmm3, xmm3
xorps xmm5, xmm5
nop
movups xmm1, xmmword [edi + eax]
movaps xmm0, xmm1
pxor xmm5, xmm1
movups xmm1, xmmword [edi + eax + 0x10]
add eax, 0x20
paddb xmm2, xmm0
movaps xmm0, xmm1
pxor xmm3, xmm1
paddb xmm4, xmm0
cmp eax, ecx
jb 0x47f660
pxor xmm3, xmm5
paddb xmm4, xmm2
movaps xmm0, xmm3
psrldq xmm0, 8
pxor xmm3, xmm0
movups xmm0, xmm3
psrldq xmm0, 4
pxor xmm3, xmm0
movups xmm0, xmm3
psrldq xmm0, 2
pxor xmm3, xmm0
movups xmm0, xmm3
psrldq xmm0, 1
pxor xmm3, xmm0
movaps xmm0, xmm4
psrldq xmm0, 8
paddb xmm4, xmm0
movd ebx, xmm3
movups xmm0, xmm4
psrldq xmm0, 4
paddb xmm4, xmm0
movups xmm0, xmm4
psrldq xmm0, 2
paddb xmm4, xmm0
movups xmm0, xmm4
psrldq xmm0, 1
paddb xmm4, xmm0
movd ecx, xmm4
mov dword [ebp - 8], ecx
xor dh, dh
mov byte [ebp - 1], 0
cmp eax, esi
jae 0x47f744
mov ecx, esi
sub ecx, eax
cmp ecx, 2
mov ch, byte [ebp - 1]
jb 0x47f731
lea edi, [esi - 1]
mov esi, dword [ebp - 0xc]
mov dl, byte [esi + eax]
mov cl, byte [esi + eax + 1]
add ch, dl
xor dl, cl
add eax, 2
add dh, cl
xor bl, dl
cmp eax, edi
jb 0x47f715
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
cmp eax, esi
jae 0x47f73d
mov al, byte [eax + edi]
add byte [ebp - 8], al
xor bl, al
add dh, ch
mov ecx, dword [ebp - 8]
add cl, dh
cmp byte [ebp + 8], cl
jne 0x47f75a
cmp byte [ebp + 0xc], bl
jne 0x47f75a
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47ffd0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x519476
mov eax, dword fs:[0]
push eax
sub esp, 0x658
mov eax, dword [0x55b2f8]
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 dword [ebp - 0x63c], ecx
push edx
lea eax, [ebp - 0x628]
or ebx, 0xffffffff
push eax
call fcn.004ac350
add esp, 8
push 0x10
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov esi, eax
mov dword [ebp - 0x634], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x480072
mov dword [esi], vtable.Gdiplus::Image.0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x628]
mov dword [esi], vtable.Gdiplus::Bitmap.0
push eax
mov dword [ebp - 0x62c], 0
call dword [sym.imp.gdiplus.dll_GdipCreateBitmapFromFile]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x62c]
mov dword [esi + 4], eax
mov byte [ebp - 4], 0
jmp 0x480074
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov edx, esi
push dword [ebp + 8]
lea ecx, [ebp - 0x630]
call fcn.0047ff30
mov edi, eax
add esp, 4
cmp edi, 0xffffffff
je 0x4801b1
mov dword [ebp - 0x634], edi
cmp edi, 1
jne 0x4800ba
mov dword [ebp - 0x630], 0x26200a
mov dword [ebp - 0x634], 2
jmp 0x4800c6
mov eax, dword [ebp - 0x630]
mov dword [ebp - 0x630], eax
lea eax, [ebp - 0x638]
mov dword [ebp - 0x638], 0
push eax
push dword [esi + 4]
call dword [sym.imp.gdiplus.dll_GdipGetImageHeight]
test eax, eax
je 0x4800e7
mov dword [esi + 8], eax
lea eax, [ebp - 0x62c]
mov dword [ebp - 0x62c], 0
push eax
push dword [esi + 4]
call dword [sym.imp.gdiplus.dll_GdipGetImageWidth]
test eax, eax
je 0x480108
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x62c]
mov dword [ebp - 0x644], eax
mov eax, dword [ebp - 0x638]
mov dword [ebp - 0x640], eax
lea eax, [ebp - 0x664]
push eax
push dword [ebp - 0x630]
lea eax, [ebp - 0x64c]
mov dword [ebp - 0x64c], 0
push 1
push eax
push dword [esi + 4]
mov dword [ebp - 0x648], 0
call dword [sym.imp.gdiplus.dll_GdipBitmapLockBits]
test eax, eax
je 0x48015c
mov dword [esi + 8], eax
jmp 0x4801cc
mov ebx, dword [ebp - 0x63c]
mov ecx, ebx
mov edx, dword [ebp - 0x664]
push 1
push 0
push dword [ebp - 0x654]
push dword [ebp - 0x634]
push dword [ebp - 0x660]
call fcn.00402b10
add esp, 0x14
cmp edi, 1
jne 0x480196
mov edx, edi
mov ecx, ebx
call fcn.00402d70
lea eax, [ebp - 0x664]
push eax
push dword [esi + 4]
call dword [sym.imp.gdiplus.dll_GdipBitmapUnlockBits]
test eax, eax
je 0x4801ad
mov dword [esi + 8], eax
xor ebx, ebx
jmp 0x4801cc
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
add ebx, 0x80000001
test esi, esi
je 0x4801d8
mov edx, dword [esi]
mov ecx, esi
push 1
call dword [edx]
mov eax, ebx
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.004d8af7
mov esp, ebp
pop ebp
ret