joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100ab540
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100dbf13
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x1010bb90]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov edx, 7
xor ecx, ecx
xor esi, esi
mov dword [eax + 0x18], edx
mov dword [eax + 0x14], ecx
mov word [eax + 4], si
mov dword [eax + 0x34], edx
xor edx, edx
mov dword [eax + 0x30], ecx
mov word [eax + 0x20], dx
mov dword [eax + 0x50], 0xf
mov dword [eax + 0x4c], ecx
mov byte [eax + 0x3c], cl
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x100dc0a0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x1010bb90]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, dword [esp + 0x44]
mov ebx, 8
lea esi, [edi + 4]
cmp dword [edi + 0x18], ebx
jb 0x100ac0ab
mov eax, dword [esi]
jmp 0x100ac0ad
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [esp + 0x44], eax
cmp eax, 0xffffffff
jne 0x100ac0e5
mov eax, dword [esp + 0x48]
mov esi, dword [esp + 0x40]
push eax
push edi
push esi
call fcn.100abf50
add esp, 0xc
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x2c
ret
test eax, 0x400
je 0x100ac1ae
cmp dword [edi + 0x18], ebx
jb 0x100ac0f7
mov esi, dword [esi]
push esi
lea ecx, [esp + 0x18]
call fcn.100083f0
mov eax, dword [esp + 0x18]
mov dword [esp + 0x38], 0
cmp dword [esp + 0x2c], ebx
jae 0x100ac117
lea eax, [esp + 0x18]
push 0
push 0x2000000
push 3
push 0
push 7
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0x10], esi
mov byte [esp + 0x38], 2
cmp dword [esp + 0x2c], ebx
jb 0x100ac14b
mov ecx, dword [esp + 0x18]
push ecx
call fcn.100c14d4
add esp, 4
xor edx, edx
or ebx, 0xffffffff
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], dx
cmp esi, ebx
je 0x100ac0bd
push edi
call fcn.100ab3e0
add esp, 4
mov dword [esp + 0x38], ebx
push esi
test al, al
jne 0x100ac1a4
mov edi, dword [esp + 0x44]
mov dword [edi], 9
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x2c
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x44]
mov esi, dword [esp + 0x48]
test esi, esi
je 0x100ac1c8
mov dword [esi], 0
call fcn.100ae100
mov dword [esi + 4], eax
mov eax, dword [esp + 0x44]
test al, 0x10
lea eax, [esp + 0x44]
mov dword [esp + 0x44], 3
jne 0x100ac1e0
mov dword [esp + 0x44], 2
mov ecx, dword [eax]
mov eax, dword [esp + 0x40]
mov dword [eax], ecx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x2c
ret
Function at 0x100ac200
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x100dc0c8
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
push ebx
push esi
push edi
mov eax, dword [0x1010bb90]
xor eax, esp
push eax
lea eax, [esp + 0x8c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x9c]
cmp dword [esi + 0x18], 8
jb 0x100ac23b
mov eax, dword [esi + 4]
jmp 0x100ac23e
lea eax, [esi + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x100ac26b
mov esi, dword [esp + 0xa0]
test esi, esi
je 0x100ac264
mov dword [esi], 0
call fcn.100ae100
mov dword [esi + 4], eax
mov al, 1
jmp 0x100ac304
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.100ae100
cmp ebx, 0xb7
jne 0x100ac2b3
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push esi
push ecx
call fcn.100ac070
add esp, 0xc
cmp dword [eax], 3
jne 0x100ac2b3
mov esi, dword [esp + 0xa0]
test esi, esi
je 0x100ac302
mov dword [esi], 0
call fcn.100ae100
mov dword [esi + 4], eax
jmp 0x100ac302
mov edi, dword [esp + 0xa0]
test edi, edi
jne 0x100ac2f8
push str.boost::filesystem::create_directory
lea ecx, [esp + 0x20]
call fcn.100079a0
mov dword [esp + 0x94], edi
call fcn.100ae100
push eax
push ebx
push esi
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x48]
call fcn.100abe50
push 0x100fa0a4
lea eax, [esp + 0x3c]
push eax
call fcn.100c3bf4
call fcn.100ae100
mov dword [edi], ebx
mov dword [edi + 4], eax
xor al, al
mov ecx, dword [esp + 0x8c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x88
ret

Function at 0x100acff0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x100dc1a3
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x1010bb90]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.std::locale::_Locimp.0
push esi
mov dword [esp + 0x18], 1
call fcn.100af8e4
add esp, 4
cmp dword [esi + 0x30], 0x10
jb 0x100ad041
mov eax, dword [esi + 0x1c]
push eax
call fcn.100c14d4
add esp, 4
xor eax, eax
mov dword [esi + 0x30], 0xf
mov dword [esi + 0x2c], eax
mov byte [esi + 0x1c], al
mov dword [esi], vtable.std::locale::facet.0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x100af350
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x100dc7a8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x1010bb90]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
lea ecx, [eax + 0x1c]
push ecx
push 4
push eax
push 0x100af2d0
push 0
push 0
call fcn.100c3072
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x100af3bb
lea ecx, [esp + 0x10]
call fcn.100c0337
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], vtable.boost::thread_resource_error.0
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x2c], ebx
call fcn.1000f3b0
mov eax, dword [edi]
add eax, 4
mov ecx, 1
lock xadd dword [eax], ecx
mov esi, dword [edi]
mov eax, dword [esi + 8]
add esi, 8
test eax, eax
je 0x100af3e1
cmp eax, 0xffffffff
je 0x100af3e1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], ebx
mov edx, dword [edi]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret

Function at 0x100bfcbc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1010bb90]
jne 0x100bfcc6
repz ret
jmp fcn.100ca393
Function at 0x100d5fab
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.100cabee
and dword [ebp - 4], 0
cmp dword [0x101142cc], 0
mov ebx, eax
jne 0x100d605c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
adc byte [ebx + 0xfff85f8], cl
test byte [edx], ch
add dword [eax], eax
invalid
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x100d610d
push eax
call fcn.100cab7c
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x101142cc], eax
call esi
push eax
call fcn.100cab7c
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x101142d0], eax
call esi
push eax
call fcn.100cab7c
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x101142d4], eax
call esi
push eax
call fcn.100cab7c
pop ecx
mov dword [0x101142dc], eax
test eax, eax
je 0x100d605c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.100cab7c
pop ecx
mov dword [0x101142d8], eax
mov eax, dword [0x101142d8]
cmp eax, ebx
je 0x100d60b4
cmp dword [0x101142dc], ebx
je 0x100d60b4
push eax
call fcn.100cabf7
push dword [0x101142dc]
mov esi, eax
call fcn.100cabf7
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x100d60b4
test edi, edi
je 0x100d60b4
call esi
test eax, eax
je 0x100d60ab
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x100d60ab
test byte [ebp - 0xc], 1
jne 0x100d60b4
or dword [ebp + 0x10], 0x200000
jmp 0x100d60ed
mov eax, dword [0x101142d0]
cmp eax, ebx
je 0x100d60ed
push eax
call fcn.100cabf7
pop ecx
test eax, eax
je 0x100d60ed
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x100d60ed
mov eax, dword [0x101142d4]
cmp eax, ebx
je 0x100d60ed
push eax
call fcn.100cabf7
pop ecx
test eax, eax
je 0x100d60ed
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x101142cc]
call fcn.100cabf7
pop ecx
test eax, eax
je 0x100d610d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x100d610f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100da940
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x100da9b1
mov ecx, dword [ebp - 4]
cmp dword [ecx + 8], 0
je 0x100da9b1
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
jne 0x100da99a
jmp 0x100da9b1
mov eax, dword [ebp - 4]
add eax, 0xc
push eax
push 0x40
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
Function at 0x101a8c30
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
sub esp, 0x4c
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x101a8d3c
test eax, eax
je 0x101a8d3c
push esi
push edi
mov ecx, 0x10
mov esi, 0x101c3ff0
lea edi, [ebp - 0x4c]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0x14]
mov esi, dword [esi]
add esi, eax
mov dword [ebp - 8], esi
xor esi, esi
mov dword [ebp - 4], 0
mov ecx, eax
test edx, edx
jbe 0x101a8d23
lea edi, [eax + 4]
jmp 0x101a8c87
mov ebx, dword [ebp + 8]
movzx eax, byte [esi + ebx]
inc esi
shl eax, 0x10
cmp esi, edx
jne 0x101a8c9c
mov dword [ebp - 4], 2
jmp 0x101a8cbd
movzx ebx, byte [esi + ebx]
shl ebx, 8
inc esi
or eax, ebx
cmp esi, edx
jne 0x101a8cb3
mov dword [ebp - 4], 1
jmp 0x101a8cbd
mov edx, dword [ebp + 8]
movzx edx, byte [esi + edx]
or eax, edx
inc esi
mov edx, eax
and edx, 0x3f
cmp edi, dword [ebp - 8]
ja 0x101a8d33
mov ebx, eax
shr ebx, 0x12
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x4c]
mov byte [ecx], bl
mov ebx, eax
shr ebx, 0xc
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x4c]
inc ecx
inc edi
mov byte [ecx], bl
mov ebx, dword [ebp - 4]
inc ecx
inc edi
cmp ebx, 1
jbe 0x101a8cf6
mov byte [ecx], 0x3d
jmp 0x101a8d02
shr eax, 6
and eax, 0x3f
mov al, byte [ebp + eax - 0x4c]
mov byte [ecx], al
inc ecx
inc edi
test ebx, ebx
jbe 0x101a8d0d
mov byte [ecx], 0x3d
jmp 0x101a8d13
mov dl, byte [ebp + edx - 0x4c]
mov byte [ecx], dl
mov edx, dword [ebp + 0xc]
inc ecx
inc edi
cmp esi, edx
jb 0x101a8c84
mov eax, dword [ebp + 0x10]
sub ecx, eax
mov eax, dword [ebp + 0x14]
pop edi
pop esi
mov dword [eax], ecx
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x50c86e1
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x50ccda0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.msvcrt.dll__vscprintf]
inc eax
cmp eax, 0x400
pop ecx
pop ecx
jle 0x50c8715
xor eax, eax
jmp 0x50c874c
lea ecx, [ebp + 0x10]
push ecx
push dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x404]
push eax
call sub.msvcrt.dll_vsprintf_s
add esp, 0x10
push 0
lea ecx, [ebp - 0x408]
push ecx
push eax
lea eax, [ebp - 0x404]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x408]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.050cafc7
leave
ret

Function at 0x50c8784
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, esi
and eax, 0xff
push 0
mov dword [ebp + 8], eax
lea eax, [ebp - 4]
push eax
push 1
lea eax, [ebp + 8]
mov ebx, ecx
push eax
push dword [ebx + 4]
call edi
push 0
lea eax, [ebp - 4]
push eax
push 1
lea eax, [ebp + 8]
push eax
push dword [ebx + 4]
sar esi, 8
mov dword [ebp + 8], esi
call edi
push 2
pop eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x50c8d89
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x50ccda0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
lea eax, [ebp - 0x108]
push eax
xor esi, esi
push esi
push 0x50c17c8
push 0x50c17c4
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x50c8dce
mov eax, 0x88760357
jmp 0x50c8ea6
push esi
push 0x8000080
push 2
push esi
push esi
push 0x40000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x10c], eax
cmp eax, 0xffffffff
jne 0x50c8dff
mov eax, 0x88760361
jmp 0x50c8ea6
cmp dword [edi + 0x18], esi
jne 0x50c8e2a
push 0x10
call fcn.050c5c8c
pop ecx
cmp eax, esi
je 0x50c8e21
mov dword [eax], esi
mov dword [eax + 4], esi
mov dword [eax + 8], 0xa
mov dword [eax + 0xc], esi
jmp 0x50c8e23
xor eax, eax
mov dword [edi + 0x18], eax
cmp eax, esi
je 0x50c8e60
lea eax, [ebp - 0x108]
push eax
call fcn.050c7679
pop ecx
mov dword [ebp - 0x110], eax
cmp eax, esi
je 0x50c8e60
mov ecx, dword [edi + 0x18]
lea eax, [ebp - 0x110]
push eax
call fcn.050c9b70
test eax, eax
jge 0x50c8e80
push dword [ebp - 0x110]
call fcn.050c5caa
pop ecx
push dword [ebp - 0x10c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, 0x88760356
jmp 0x50c8ea6
push esi
lea eax, [ebp - 0x114]
push eax
push dword [ebp + 0xc]
push ebx
push dword [ebp - 0x10c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x10c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.050cafc7
leave
ret 8
Function at 0x50c8ebc
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x50ccda0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x18]
push edi
xor edi, edi
cmp eax, edi
je 0x50c905d
cmp dword [eax], edi
je 0x50c905d
mov eax, dword [esi + 0x1c]
cmp eax, edi
je 0x50c905d
cmp dword [eax], edi
je 0x50c905d
mov eax, dword [esi + 8]
sub eax, edi
je 0x50c8f1f
dec eax
jne 0x50c8f26
push dword [esi + 0x20]
call fcn.050c8854
push 0x50c17cc
push esi
call fcn.050c86e1
pop ecx
pop ecx
jmp 0x50c8f26
push 0x37
call fcn.050c8784
push 1
push edi
push edi
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x8c], eax
cmp eax, 0xffffffff
jne 0x50c8f48
mov eax, 0x88760361
jmp 0x50c905f
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x88], edi
cmp dword [eax], edi
jbe 0x50c905d
mov eax, dword [esi + 0x1c]
mov ebx, dword [ebp - 0x88]
mov eax, dword [eax + 0xc]
push edi
shl ebx, 2
push edi
add eax, ebx
push dword [eax]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x50c8f3e
push dword [ebp - 0x8c]
mov ecx, esi
call fcn.050c87d9
push edi
mov ecx, esi
call fcn.050c87d9
push edi
push edi
push dword [ebp - 0x8c]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x50c8f3e
mov eax, dword [esi + 0x18]
mov eax, dword [eax + 0xc]
push edi
push 0x8000080
push 3
push edi
push edi
add eax, ebx
push 0x80000000
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x94], eax
cmp eax, 0xffffffff
je 0x50c8f3e
push edi
lea ecx, [ebp - 0x90]
push ecx
push 0x80
lea ecx, [ebp - 0x84]
push ecx
xor ebx, ebx
push eax
jmp 0x50c902a
cmp dword [ebp - 0x90], edi
je 0x50c9034
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0x90]
mov ecx, esi
call fcn.050c875e
add ebx, dword [ebp - 0x90]
push edi
lea eax, [ebp - 0x90]
push eax
push 0x80
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0x94]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x50c8fee
push dword [ebp - 0x94]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add dword [ebp - 0x8c], ebx
inc dword [ebp - 0x88]
mov eax, dword [esi + 0x18]
mov ecx, dword [ebp - 0x88]
cmp ecx, dword [eax]
jb 0x50c8f59
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.050cafc7
leave
ret
Function at 0x50c92c2
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebx
push esi
push edi
mov ebx, ecx
call fcn.050c8ebc
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebx + 0x10]
xor edi, edi
inc edi
test ecx, ecx
je 0x50c92e7
push edi
call fcn.050c882a
mov ecx, dword [ebx + 0x14]
test ecx, ecx
je 0x50c92f4
push edi
call fcn.050c882a
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x50c9331
xor esi, esi
cmp dword [eax], esi
jbe 0x50c9324
mov eax, dword [eax + 0xc]
push dword [eax + esi*4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + 0xc]
push dword [eax + esi*4]
call fcn.050c5caa
mov eax, dword [ebx + 0x18]
inc esi
pop ecx
cmp esi, dword [eax]
jb 0x50c9301
mov ecx, dword [ebx + 0x18]
test ecx, ecx
je 0x50c9331
push edi
call fcn.050c882a
mov ecx, dword [ebx + 0x1c]
test ecx, ecx
je 0x50c933e
push edi
call fcn.050c882a
cmp dword [ebx + 0xc], edi
jne 0x50c934b
push dword [ebx]
call fcn.050ca751
pop ecx
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x50c9377
push 2
mov edi, 0x50c173c
mov esi, eax
pop ecx
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x50c936d
push eax
push 4
call dword [sym.imp.msvcrt.dll_setlocale]
pop ecx
pop ecx
push dword [ebx + 0x24]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
pop edi
pop esi
mov ecx, ebx
pop ebx
jmp fcn.050c7666

Function at 0x50c9516
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
cmp esi, 3
jbe 0x50c952e
mov eax, 0x88760353
jmp 0x50c95b8
push edi
push 0
push 0x8000080
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x50c95a9
push 0x28
call fcn.050c5c8c
pop ecx
test eax, eax
je 0x50c9578
mov ecx, esi
shr ecx, 1
and ecx, 1
push ecx
and esi, 1
push esi
push edi
push dword [ebp + 8]
mov ecx, eax
call fcn.050c8626
mov esi, eax
jmp 0x50c957a
xor esi, esi
test esi, esi
jne 0x50c958c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x88760356
jmp 0x50c95b7
mov ecx, esi
call fcn.050c8a64
test eax, eax
je 0x50c95b0
push 1
mov ecx, esi
call fcn.050c5522
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, 0x88760361
jmp 0x50c95b7
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x50ca751
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x50ccda0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
lea eax, [ebp - 0x108]
push eax
xor edi, edi
push edi
push 0x50c1850
push 0x50c17c4
mov dword [ebp - 0x110], ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x50ca799
mov eax, 0x88760357
jmp 0x50ca894
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
lea eax, [ebp - 0x108]
push eax
call esi
mov dword [ebp - 0x114], eax
cmp eax, 0xffffffff
jne 0x50ca7cd
mov eax, 0x88760361
jmp 0x50ca893
push edi
push edi
push 3
push edi
push 1
push 0x80000000
push ebx
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
cmp esi, 0xffffffff
jne 0x50ca7f5
mov dword [ebp - 0x10c], 0x88760361
jmp 0x50ca841
lea ecx, [ebp - 0x138]
call fcn.050ca43d
lea ecx, [ebp - 0x138]
call fcn.050ca4f0
test eax, eax
jne 0x50ca81b
mov dword [ebp - 0x10c], 0x88760356
jmp 0x50ca833
push dword [ebp - 0x114]
lea ecx, [ebp - 0x138]
push esi
call fcn.050d8d4d
mov dword [ebp - 0x10c], eax
push esi
call ebx
lea ecx, [ebp - 0x138]
call fcn.050ca461
push dword [ebp - 0x114]
call ebx
cmp dword [ebp - 0x10c], edi
jge 0x50ca860
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x50ca88d
push dword [ebp - 0x110]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0x110]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x50ca88d
mov dword [ebp - 0x10c], 0x88760361
mov eax, dword [ebp - 0x10c]
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.050cafc7
leave
ret

Function at 0x50d3287
Capabilities:
Encode data using xor

Disassembly:
call 0x50d3200
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or eax, dword [ebx - 0x178f73c]
xor esi, 0xde5af04
add eax, esi
lea esp, [esp - 0xe]
mov esi, dword [esp + 0xe]
lea esp, [esp + 0x12]
xor esi, dword [esp]
push eax
sub eax, 0xf24f2b00
mov eax, esp
or dword [eax - 0x22], ebx
pop eax
jmp 0x50d3230
xor dword [esp], esi
xor eax, 0
mov dword [esp], esi
add esp, 4
add esi, dword [ebp + 8]
push ebp
add ebp, 0xc
mov ecx, dword [ebp]
pop ebp
ja 0x50d324c
xor edx, 0
jmp 0x50d3257
xor edx, edx
jmp 0x50d326e
jmp 0x50d327a
xor eax, eax
push 0x8427d7c0
call 0x50d3287
stc
add esp, 8
add esi, 0
cmp ecx, 0
je 0x50d32c3
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
add bl, dl
xor byte [esi], bl
mov dl, byte [esi]
inc esi
add ebx, edi
rol ebx, 8
dec ecx
jne 0x50d329c
lea esp, [esp - 4]
xchg dword [esp], ebx
mov ebx, dword [esp]
or eax, edx
xor eax, eax
add eax, dword [esp]
add esp, 4
pop esi
pop edi
pop ebx
xchg dword [esp], ecx
mov dword [esp], ecx
lea esp, [esp + 4]
pop edx
leave
je 0x50d32da
add eax, 0
jno 0x50d32df
add esi, 0
ret 0x10