joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c91f0
Capabilities:
Get thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x5358c8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x581094]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [0x586c68]
test eax, eax
jne 0x4c9222
xor esi, esi
jmp 0x4c922b
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov dword [esp + 0x14], esi
mov ebp, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esp + 0x20], 0
test esi, esi
je 0x4c9257
cmp dword [esi + 0x14], 0
jne 0x4c9299
cmp dword [esi + 0x10], 0
jne 0x4c92a0
push 0
call fcn.004c9160
add esp, 4
mov dword [esp + 0x20], 0xffffffff
test esi, esi
je 0x4c9285
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4c9285
mov edx, dword [esi]
mov eax, dword [edx]
push 0
mov ecx, esi
call eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
cmp dword [esi + 0x10], 0
je 0x4c92e0
nop
mov ebx, dword [esi + 0x10]
mov eax, dword [ebx + 4]
mov dword [esi + 0x10], eax
mov ecx, dword [ebx]
test ecx, ecx
je 0x4c92ce
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebx]
mov edx, dword [edi]
mov eax, dword [edx]
push 0
mov ecx, edi
call eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0x10], 0
jne 0x4c92a0
cmp dword [esi + 0x14], 0
je 0x4c9247
mov edi, dword [esi + 0x14]
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x14], ecx
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x4c9305
mov edx, dword [ecx]
mov eax, dword [edi + 0xc]
mov edx, dword [edx + 4]
push eax
call edx
mov ebx, dword [edi + 8]
test ebx, ebx
je 0x4c9336
lea eax, [ebx + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4c9336
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov ecx, ebx
call eax
lea ecx, [ebx + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4c9336
mov eax, dword [ebx]
mov edx, dword [eax + 8]
mov ecx, ebx
call edx
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0x14], 0
jne 0x4c92ea
jmp 0x4c9241
Function at 0x4c93d0
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x535918
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x581094]
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 0x4c9350
push 0
push 0
call fcn.00507a62
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x4c943b
lea ecx, [esp + 0x10]
call fcn.00500a9b
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.00464a20
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 0x4c9461
cmp eax, 0xffffffff
je 0x4c9461
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 0x4cb15f
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x44]
mov ecx, dword [esi]
xor ebx, ebx
cmp ecx, ebx
je 0x4cb1cc
call fcn.004c8e90
push dword [edi + 0x5c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [edi + 4]
call fcn.004cac5d
push ebx
push ebx
push 3
push ebx
push ebx
call fcn.0042028e
mov ecx, dword [esi]
mov dword [ebp - 8], eax
add esp, 0x14
lea eax, [ebp - 8]
push eax
mov dword [ebp - 4], edx
call fcn.004cb12a
test al, al
jne 0x4cb1bc
mov ecx, dword [esi]
push ebx
call fcn.004c8f20
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, esi
call fcn.004cb2b0
push dword [edi + 0x5c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [esi], ebx
pop edi
pop esi
sete al
pop ebx
leave
ret

Function at 0x4cc10b
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x24]
mov ecx, dword [ebx]
push edi
xor edi, edi
cmp ecx, edi
jne 0x4cc128
mov al, 1
jmp 0x4cc1dd
call fcn.004c8e90
push dword [esi + 0x64]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push edi
push edi
push 3
push edi
push edi
call fcn.0042028e
mov ecx, dword [ebx]
mov dword [ebp - 0x10], eax
add esp, 0x14
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0xc], edx
call fcn.004cb12a
test al, al
jne 0x4cc168
mov ecx, dword [ebx]
push edi
call fcn.004c8f20
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, ebx
call fcn.004cb2b0
push dword [esi + 0x64]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x64], edi
lea edi, [esi + 4]
mov eax, dword [edi + 0x18]
push edi
push dword [eax]
lea ecx, [ebp - 8]
call fcn.0042fdb6
push edi
push dword [edi + 0x18]
jmp 0x4cc1af
lea ecx, [ebp - 8]
call fcn.004454fa
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 8]
call fcn.0044b352
push edi
push dword [edi + 0x18]
lea ecx, [ebp - 0x10]
call fcn.0042fdb6
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
call fcn.00449c18
test al, al
je 0x4cc192
mov ecx, edi
call fcn.0044eb48
lea ecx, [esi + 0x74]
call fcn.004cb2b0
xor eax, eax
cmp dword [ebx], eax
sete al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4cceac
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 1
push dword [ebp + 8]
call fcn.004cce70
pop ecx
pop ecx
test al, al
je 0x4ccf1f
push 1
push dword [ebp + 0xc]
call fcn.004cce70
pop ecx
pop ecx
test al, al
je 0x4ccf1f
mov esi, dword [ebp + 0x10]
push 1
push esi
call fcn.004cce70
pop ecx
pop ecx
test al, al
je 0x4ccf1f
mov edi, dword [ebp + 0x14]
push ebx
shr edi, 2
xor ebx, ebx
test edi, edi
jbe 0x4ccf0b
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
sub ecx, esi
mov eax, esi
sub edx, esi
mov ebx, edi
mov esi, dword [ecx + eax]
xor esi, dword [eax]
mov dword [edx + eax], esi
add eax, 4
dec edi
jne 0x4ccefd
mov eax, ebx
shl eax, 2
sub dword [ebp + 0x14], eax
pop ebx
je 0x4ccf41
add dword [ebp + 8], eax
add dword [ebp + 0xc], eax
add dword [ebp + 0x10], eax
cmp dword [ebp + 0x14], 0
jbe 0x4ccf41
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x14]
sub ecx, eax
sub esi, eax
mov dl, byte [eax + ecx]
xor dl, byte [eax]
mov byte [eax + esi], dl
inc eax
dec edi
jne 0x4ccf35
pop edi
pop esi
pop ebp
ret

Function at 0x4ccf45
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push ebx
push esi
mov esi, dword [ecx + 0x64]
mov dword [ebp + 8], eax
mov eax, dword [ecx + 0x1074]
mov ecx, dword [esi]
xor ecx, dword [edx]
push edi
lea edi, [esi + 8]
mov dword [ebp - 4], 8
mov edx, ecx
shr edx, 0x10
movzx edx, dl
mov edx, dword [eax + edx*4 + 0x400]
mov ebx, ecx
shr ebx, 0x18
add edx, dword [eax + ebx*4]
mov ebx, ecx
shr ebx, 8
movzx ebx, bl
xor edx, dword [eax + ebx*4 + 0x800]
movzx ebx, cl
add edx, dword [eax + ebx*4 + 0xc00]
xor edx, dword [edi - 4]
xor dword [ebp + 8], edx
mov edx, dword [ebp + 8]
mov ebx, dword [ebp + 8]
shr edx, 0x10
movzx edx, dl
mov edx, dword [eax + edx*4 + 0x400]
shr ebx, 0x18
add edx, dword [eax + ebx*4]
mov ebx, dword [ebp + 8]
shr ebx, 8
movzx ebx, bl
xor edx, dword [eax + ebx*4 + 0x800]
movzx ebx, byte [ebp + 8]
add edx, dword [eax + ebx*4 + 0xc00]
xor edx, dword [edi]
add edi, 8
xor ecx, edx
dec dword [ebp - 4]
jne 0x4ccf6c
mov edx, dword [esi + 0x44]
xor edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
mov dword [eax], edx
mov dword [eax + 4], ecx
pop ebx
leave
ret 8
Function at 0x4ccff7
Capabilities:
Encrypt data using blowfish

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0x48
mov esi, ecx
xor edi, edi
push 0x550d18
push dword [esi + 0x64]
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call fcn.00503f50
push 0x1000
push 0x550d60
push dword [esi + 0x1074]
call fcn.00503f50
add esp, 0x18
push 4
xor ecx, ecx
pop ebx
mov eax, dword [ebp - 4]
xor edx, edx
div dword [ebp + 0xc]
mov eax, dword [ebp + 8]
shl ecx, 8
movzx eax, byte [edx + eax]
or ecx, eax
inc dword [ebp - 4]
dec ebx
jne 0x4cd039
mov eax, dword [esi + 0x64]
add eax, edi
xor dword [eax], ecx
add edi, 4
cmp edi, 0x48
jb 0x4cd034
push dword [esi + 0x64]
lea eax, [ebp - 0xc]
push eax
mov ecx, esi
call fcn.004ccf45
xor ecx, ecx
mov eax, dword [esi + 0x64]
lea edi, [ecx + 8]
lea edx, [edi + eax]
add ecx, eax
push edx
push ecx
mov ecx, esi
call fcn.004ccf45
mov ecx, edi
cmp ecx, 0x40
jb 0x4cd072
mov eax, dword [esi + 0x64]
push dword [esi + 0x1074]
add eax, 0x40
push eax
mov ecx, esi
call fcn.004ccf45
xor ecx, ecx
mov eax, dword [esi + 0x1074]
lea edi, [ecx + 8]
lea edx, [edi + eax]
add ecx, eax
push edx
push ecx
mov ecx, esi
call fcn.004ccf45
mov ecx, edi
cmp ecx, 0xff8
jb 0x4cd0a3
lea ecx, [esi + 4]
mov eax, dword [ecx]
call dword [eax + 0x1c]
test al, al
jne 0x4cd0f1
push 0x44
xor edi, edi
pop ebx
mov eax, dword [esi + 0x64]
lea ecx, [ebx + eax]
push ecx
add eax, edi
push eax
call fcn.0046b440
add edi, 4
pop ecx
sub ebx, 4
pop ecx
cmp edi, 0x24
jb 0x4cd0d5
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4cd141
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
push edi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 8]
mov esi, ecx
push eax
lea ecx, [ebp - 4]
call fcn.004cd0f8
mov ecx, eax
call fcn.004cd0f8
mov eax, dword [esi + 0x1070]
mov esi, dword [esi + 0x60]
mov ecx, dword [ebp - 8]
xor ecx, dword [esi]
lea edi, [esi + 8]
mov dword [ebp - 4], 8
mov edx, ecx
shr edx, 0x10
movzx edx, dl
mov edx, dword [eax + edx*4 + 0x400]
mov ebx, ecx
shr ebx, 0x18
add edx, dword [eax + ebx*4]
mov ebx, ecx
shr ebx, 8
movzx ebx, bl
xor edx, dword [eax + ebx*4 + 0x800]
movzx ebx, cl
add edx, dword [eax + ebx*4 + 0xc00]
xor edx, dword [edi - 4]
xor dword [ebp + 8], edx
mov edx, dword [ebp + 8]
mov ebx, dword [ebp + 8]
shr edx, 0x10
movzx edx, dl
mov edx, dword [eax + edx*4 + 0x400]
shr ebx, 0x18
add edx, dword [eax + ebx*4]
mov ebx, dword [ebp + 8]
shr ebx, 8
movzx ebx, bl
xor edx, dword [eax + ebx*4 + 0x800]
movzx ebx, byte [ebp + 8]
add edx, dword [eax + ebx*4 + 0xc00]
xor edx, dword [edi]
add edi, 8
xor ecx, edx
dec dword [ebp - 4]
jne 0x4cd181
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
xor eax, dword [esi + 0x44]
push ecx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0xc]
mov dword [ebp - 8], edx
call fcn.004cd114
mov ecx, eax
call fcn.004cd114
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4cef62
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x4cf07a
cmp dword [ebp + 0x10], 0
je 0x4cf07a
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x4cf07a
mov esi, dword [ebp + 0xc]
push 3
xor edx, edx
lea eax, [esi + 2]
pop ebx
div ebx
lea eax, [eax*4 + 1]
cmp dword [ecx], eax
jae 0x4cefa8
push 2
pop eax
jmp 0x4cf07d
mov eax, esi
xor edx, edx
push 3
pop esi
div esi
mov ecx, dword [ebp + 0x10]
mov esi, dword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
xor edx, edx
imul eax, eax, 3
test eax, eax
jbe 0x4cf021
dec eax
push 3
pop ebx
div ebx
inc eax
mov edx, eax
mov dword [ebp + 8], eax
imul edx, edx, 3
movzx eax, byte [edi]
shr eax, 2
mov al, byte [eax + esi]
mov byte [ecx], al
movzx eax, byte [edi]
movzx ebx, byte [edi + 1]
and eax, 3
shl eax, 4
add eax, esi
shr ebx, 4
mov al, byte [ebx + eax]
inc ecx
mov byte [ecx], al
movzx ebx, byte [edi + 2]
movzx eax, byte [edi + 1]
and eax, 0xf
shr ebx, 6
add ebx, esi
mov al, byte [ebx + eax*4]
inc ecx
mov byte [ecx], al
movzx eax, byte [edi + 2]
and eax, 0x3f
mov al, byte [eax + esi]
inc ecx
mov byte [ecx], al
inc ecx
add edi, 3
dec dword [ebp + 8]
jne 0x4cefd2
cmp edx, dword [ebp + 0xc]
jae 0x4cf06b
movzx eax, byte [edi]
inc edx
cmp edx, dword [ebp + 0xc]
jae 0x4cf035
movzx edi, byte [edi + 1]
jmp 0x4cf037
xor edi, edi
mov ebx, eax
shr ebx, 2
mov bl, byte [ebx + esi]
mov byte [ecx], bl
and eax, 3
shl eax, 4
mov ebx, edi
shr ebx, 4
add eax, esi
mov al, byte [ebx + eax]
inc ecx
mov byte [ecx], al
inc ecx
cmp edx, dword [ebp + 0xc]
jae 0x4cf062
and edi, 0xf
mov al, byte [esi + edi*4]
jmp 0x4cf064
mov al, 0x3d
mov byte [ecx], al
inc ecx
mov byte [ecx], 0x3d
inc ecx
mov eax, dword [ebp + 0x14]
mov byte [ecx], 0
sub ecx, dword [ebp + 0x10]
mov dword [eax], ecx
xor eax, eax
jmp 0x4cf07d
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4d34c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x536523
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x581094]
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.004f031b
add esp, 4
cmp dword [esi + 0x30], 0x10
jb 0x4d3511
mov eax, dword [esi + 0x1c]
push eax
call fcn.00500d36
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 0x4d47b0
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x18], 8
jb 0x4d47cb
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
neg eax
ret
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
neg eax
ret

Function at 0x4d4ac0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x536a03
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x581094]
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 0x4d4d70
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x536abb
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x581094]
xor eax, esp
mov dword [esp + 0x274], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x581094]
xor eax, esp
push eax
lea eax, [esp + 0x28c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x29c]
mov ecx, dword [esp + 0x2a8]
mov ebx, dword [esp + 0x2a0]
mov esi, dword [esp + 0x2ac]
mov ebp, dword [esp + 0x2b0]
push 0xffffffffffffffff
xor edi, edi
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x2a8]
push edi
mov dword [esp + 0x20], ecx
xor edx, edx
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], edi
mov word [esp + 0x2c], dx
call fcn.0040d165
mov eax, dword [esp + 0x30]
mov dword [esp + 0x294], edi
cmp eax, edi
je 0x4d4e83
lea edi, [eax - 1]
cmp edi, eax
jbe 0x4d4e1e
call fcn.00502761
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x34], 8
mov ecx, dword [esp + 0x20]
jae 0x4d4e2d
lea ecx, [esp + 0x20]
cmp word [ecx + edi*2], 0x5c
je 0x4d4e7c
lea edi, [eax - 1]
cmp edi, eax
jbe 0x4d4e44
call fcn.00502761
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x34], 8
mov ecx, dword [esp + 0x20]
jae 0x4d4e53
lea ecx, [esp + 0x20]
cmp word [ecx + edi*2], 0x2f
je 0x4d4e7c
lea edi, [eax - 1]
cmp edi, eax
jbe 0x4d4e66
call fcn.00502761
cmp dword [esp + 0x34], 8
mov eax, dword [esp + 0x20]
jae 0x4d4e75
lea eax, [esp + 0x20]
cmp word [eax + edi*2], 0x3a
jne 0x4d4e83
mov edx, 0x5520a8
jmp 0x4d4e88
mov edx, 0x5520a0
mov eax, edx
lea edi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4d4e90
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x24]
call fcn.004d2f40
mov eax, dword [esp + 0x20]
mov edi, 8
cmp dword [esp + 0x34], edi
jae 0x4d4ebd
lea eax, [esp + 0x20]
lea ecx, [esp + 0x38]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebx], eax
cmp eax, 0xffffffff
jne 0x4d4f1b
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], 0
call edi
cmp eax, 2
je 0x4d4ef0
call edi
cmp eax, 0x12
je 0x4d4ef0
call edi
mov esi, eax
jmp 0x4d4ef2
xor esi, esi
call fcn.004ef450
cmp dword [esp + 0x34], 8
mov edi, dword [esp + 0x14]
mov dword [edi], esi
mov dword [edi + 4], eax
jb 0x4d4f14
mov edx, dword [esp + 0x20]
push edx
call fcn.00500d36
add esp, 4
mov eax, edi
jmp 0x4d4fa1
lea eax, [esp + 0x64]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4d4f22
mov ecx, dword [esp + 0x18]
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x68]
push eax
call fcn.0044f6e5
mov eax, dword [esp + 0x38]
test eax, 0x400
je 0x4d4f5a
mov dword [esi], 0
mov dword [ebp], 0
jmp 0x4d4f7a
test al, 0x10
je 0x4d4f6d
mov dword [esi], 3
mov dword [ebp], 3
jmp 0x4d4f7a
mov dword [esi], 2
mov dword [ebp], 2
mov esi, dword [esp + 0x14]
mov dword [esi], 0
call fcn.004ef450
mov dword [esi + 4], eax
cmp dword [esp + 0x34], edi
jb 0x4d4f9f
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00500d36
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x274]
xor ecx, esp
call fcn.00502c08
add esp, 0x284
ret
Function at 0x4d58e0
Capabilities:
Delete directory

Disassembly:
push 0xffffffffffffffff
push 0x536c00
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
mov eax, dword [0x581094]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov eax, dword [esp + 0x58]
cmp eax, 1
jne 0x4d5938
mov esi, dword [esp + 0x5c]
test esi, esi
je 0x4d5924
mov dword [esi], 0
call fcn.004ef450
mov dword [esi + 4], eax
xor al, al
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x44
ret
cmp eax, 3
je 0x4d59b3
cmp eax, 0xb
je 0x4d59b3
push str.boost::filesystem::remove
lea ecx, [esp + 0x2c]
call fcn.004020cc
mov ecx, dword [esp + 0x5c]
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x58]
push ecx
push eax
push eax
mov dword [esp + 0x5c], 1
call fcn.004d47b0
add esp, 4
test al, al
sete dl
movzx eax, dl
push eax
call fcn.004d5750
add esp, 0x10
cmp dword [esp + 0x40], 0x10
mov bl, al
jb 0x4d5997
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.00500d36
add esp, 4
test bl, bl
je 0x4d5a32
xor al, al
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x44
ret
push 0x19
xor esi, esi
push str.boost::filesystem::remove
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], esi
mov byte [esp + 0x18], 0
call fcn.004029d3
mov dword [esp + 0x4c], esi
mov esi, dword [esp + 0x54]
cmp dword [esi + 0x18], 8
jb 0x4d59e9
mov eax, dword [esi + 4]
jmp 0x4d59ec
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [esp + 0x5c]
test eax, eax
setne al
lea edx, [esp + 0xc]
push edx
test al, al
sete dl
push ecx
movzx eax, dl
push esi
push eax
call fcn.004d5750
add esp, 0x10
cmp dword [esp + 0x24], 0x10
mov bl, al
jb 0x4d5a2a
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00500d36
add esp, 4
test bl, bl
jne 0x4d5924
mov al, 1
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x44
ret

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

Disassembly:
push ebx
mov ebx, dword [esp + 8]
cmp dword [ebx + 0x18], 8
push edi
jb 0x4d5b81
mov eax, dword [ebx + 4]
jmp 0x4d5b84
lea eax, [ebx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4d5baa
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ebx
push ecx
call fcn.004d5a50
mov eax, dword [eax]
add esp, 0xc
pop edi
pop ebx
ret
push esi
mov esi, dword [esp + 0x14]
test esi, esi
je 0x4d5bc1
mov dword [esi], 0
call fcn.004ef450
mov dword [esi + 4], eax
pop esi
test edi, 0x400
je 0x4d5bf4
push ebx
call fcn.004d47e0
add esp, 4
test al, al
je 0x4d5bec
mov edx, edi
and dl, 0x10
movzx eax, dl
neg eax
sbb eax, eax
and eax, 7
pop edi
add eax, 4
pop ebx
ret
pop edi
mov eax, 9
pop ebx
ret
mov eax, edi
and eax, 0x10
or eax, 0x20
pop edi
shr eax, 4
pop ebx
ret
Function at 0x4d5c10
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x535428
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x581094]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
push 0x1c
push str.boost::filesystem::copy_file
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
call fcn.004029d3
mov edx, dword [esp + 0x3c]
mov ecx, 8
mov dword [esp + 0x30], 0
cmp dword [edx + 0x18], ecx
jb 0x4d5c75
mov esi, dword [edx + 4]
jmp 0x4d5c78
lea esi, [edx + 4]
mov eax, dword [esp + 0x38]
cmp dword [eax + 0x18], ecx
jb 0x4d5c86
mov ecx, dword [eax + 4]
jmp 0x4d5c89
lea ecx, [eax + 4]
lea edi, [esp + 0xc]
push edi
mov edi, dword [esp + 0x48]
push edi
push edx
push eax
xor eax, eax
cmp dword [esp + 0x50], eax
sete al
push eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
sete cl
movzx edx, cl
push edx
call fcn.004d57d0
add esp, 0x14
cmp dword [esp + 0x24], 0x10
jb 0x4d5ccc
mov eax, dword [esp + 0x10]
push eax
call fcn.00500d36
add esp, 4
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x28
ret
Function at 0x4d5f60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x536cc0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x581094]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x40]
cmp dword [edi + 0x18], 8
lea esi, [edi + 4]
jb 0x4d5f97
mov eax, dword [esi]
jmp 0x4d5f99
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4d5fcf
mov eax, dword [esp + 0x44]
mov esi, dword [esp + 0x3c]
push eax
push edi
push esi
call fcn.004d5a50
add esp, 0xc
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x28
ret
test ebx, 0x400
je 0x4d60ce
cmp dword [edi + 0x18], 8
jb 0x4d5fe9
mov ecx, dword [esi]
mov dword [esp + 0x40], ecx
jmp 0x4d5fed
mov dword [esp + 0x40], esi
push 0
lea edx, [esp + 0x44]
push edx
lea ecx, [esp + 0x18]
call fcn.004d3fc0
cmp dword [esp + 0x28], 8
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 0
jae 0x4d6014
lea eax, [esp + 0x14]
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 + 0x40], esi
cmp dword [esp + 0x28], 8
mov byte [esp + 0x34], 2
jb 0x4d6049
mov eax, dword [esp + 0x14]
push eax
call fcn.00500d36
add esp, 4
xor ecx, ecx
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], cx
cmp esi, 0xffffffff
jne 0x4d608d
mov edx, dword [esp + 0x44]
mov esi, dword [esp + 0x3c]
push edx
push edi
push esi
call fcn.004d5a50
add esp, 0xc
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x28
ret
push edi
call fcn.004d47e0
add esp, 4
mov dword [esp + 0x34], 0xffffffff
push esi
test al, al
jne 0x4d60c8
mov edi, dword [esp + 0x40]
mov dword [edi], 9
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x28
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x44]
test esi, esi
je 0x4d60e4
mov dword [esi], 0
call fcn.004ef450
mov dword [esi + 4], eax
lea eax, [esp + 0x40]
mov dword [esp + 0x40], 3
test bl, 0x10
jne 0x4d60fd
mov dword [esp + 0x40], 2
mov ecx, dword [eax]
mov eax, dword [esp + 0x3c]
mov dword [eax], ecx
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x28
ret