joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48e550
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
cmp dword [edi + 0x14], 8
mov eax, dword [edi + 0x10]
jb 0x48e569
mov esi, dword [edi]
jmp 0x48e56b
mov esi, edi
xor ecx, ecx
mov edx, 0x811c9dc5
add eax, eax
je 0x48e58c
mov edi, eax
movzx eax, byte [esi + ecx]
xor edx, eax
inc ecx
imul edx, edx, 0x1000193
cmp ecx, edi
jb 0x48e578
mov edi, dword [ebp + 0xc]
mov esi, dword [ebx + 0x14]
mov ecx, esi
and ecx, edx
cmp dword [ebx + 0x18], ecx
ja 0x48e5a1
shr esi, 1
or eax, 0xffffffff
sub eax, esi
add ecx, eax
mov esi, dword [ebx + 8]
shl ecx, 3
mov dword [ebp + 0xc], ecx
mov esi, dword [ecx + esi]
lea ecx, [ecx]
add ecx, dword [ebx + 8]
mov eax, dword [ebx]
cmp dword [ecx], eax
je 0x48e5be
mov eax, dword [ecx + 4]
mov eax, dword [eax]
cmp esi, eax
je 0x48e635
cmp dword [edi + 0x14], 8
lea ecx, [esi + 8]
jb 0x48e5cf
mov eax, dword [edi]
jmp 0x48e5d1
mov eax, edi
push dword [edi + 0x10]
push eax
push dword [ecx + 0x10]
push 0
call fcn.004158e0
test eax, eax
je 0x48e5ea
mov esi, dword [esi]
mov ecx, dword [ebp + 0xc]
jmp 0x48e5b0
cmp dword [esi + 0x1c], 8
mov ecx, dword [esi + 0x18]
lea eax, [esi + 8]
jb 0x48e5f8
mov eax, dword [eax]
push ecx
push eax
push dword [edi + 0x10]
mov ecx, edi
push 0
call fcn.004158e0
lea ecx, [ebp + 0xc]
test eax, eax
je 0x48e622
mov eax, dword [ebx]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ecx]
pop edi
pop esi
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
pop edi
mov dword [ebp + 0xc], esi
mov ecx, dword [ecx]
pop esi
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebx]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x490c50
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5184d8
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x56a8e0]
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, ecx
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [edi + 4], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x3c], 0
and dword [edi + 0x44], 0xfffffff8
mov dword [edi + 0x40], 0
mov dword [ebp - 0x70], edi
mov dword [edi + 0x2c], 0xffffffff
mov dword [edi + 0x30], 0xffffffff
mov dword [edi + 0x34], 0xffffffff
mov dword [edi + 0x38], 0xffffffff
lea ecx, [edi + 0x48]
mov dword [ebp - 4], 0
call fcn.00490720
mov dword [edi], vtable.general::ui::check_box.0
mov dword [edi + 0x48], vtable.general::ui::check_box.1.0
push 0x12
mov dword [edi + 0x50], 0
call dword [sym.imp.USER32.dll_GetSysColor]
mov dword [edi + 0x54], eax
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0x8024
xor eax, eax
mov dword [edi + 0x74], 7
mov dword [edi + 0x70], 0
mov word [edi + 0x60], ax
lea eax, [ebp - 0x6c]
push eax
push 0x5c
push 0x11
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov dword [edi + 0x58], eax
mov eax, edi
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.00493d56
mov esp, ebp
pop ebp
ret
Function at 0x492810
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, ecx
test ebx, ebx
js 0x49290d
cmp ebx, dword [edi + 0x28]
jge 0x49290d
mov eax, dword [edi + 0x24]
lea ecx, [ebx + ebx*2]
shl ecx, 4
mov dword [ebp + 8], ecx
movzx ecx, byte [eax + ecx + 9]
xor eax, eax
cmp dword [ebp + 0xc], 1
sete al
cmp ecx, eax
je 0x4928f1
push esi
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
push dword [edi + 4]
mov esi, eax
call dword [sym.imp.USER32.dll_GetParent]
push dword [edi + 4]
movzx ecx, si
or ecx, 0x10000
push ecx
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp ebx, dword [edi + 0x28]
jge 0x4928fc
mov esi, dword [edi + 0x24]
add esi, dword [ebp + 8]
cmp dword [ebp + 0xc], 1
sete al
mov byte [esi + 9], al
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x4928a9
test byte [edi + 0x38], 1
jne 0x4928a9
add eax, dword [edi + 0x98]
push 4
push dword [esi]
mov dword [esi + 0x28], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0x1e
push 0x16
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetTimer]
push 0
push 0x16
push 0x113
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
pop esi
test ebx, ebx
jne 0x4928f1
mov ecx, edi
call fcn.00492c00
mov ecx, edi
call fcn.00492b60
mov ecx, edi
call fcn.00492d70
pop edi
mov eax, 1
pop ebx
pop ebp
ret 0xc
push 0
push 0
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
pop edi
xor eax, eax
pop ebx
pop ebp
ret 0xc
Function at 0x4a339f
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x56a8e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0049c2b9
mov dword [ebp - 0x14], eax
cmp dword [0x572e1c], edi
jne 0x4a3490
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x4a341d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4a3570
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4a3570
push 0x531298
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4a3570
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x572e1c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x572e20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x572e24], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x572e2c], eax
test eax, eax
je 0x4a348d
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x572e28], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4a34b5
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4a34a8
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x4a34ca
push 4
pop eax
jmp 0x4a3572
cmp dword [ebp - 0x14], edi
je 0x4a34ca
push dword [0x572e1c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4a34af
mov eax, dword [0x572e28]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x4a3528
cmp dword [0x572e2c], esi
je 0x4a3528
push eax
call ebx
push dword [0x572e2c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4a3528
test eax, eax
je 0x4a3528
call ecx
test eax, eax
je 0x4a351d
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4a351d
test byte [ebp - 8], 1
jne 0x4a3528
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x4a3558
mov eax, dword [0x572e20]
cmp eax, esi
je 0x4a3555
push eax
call ebx
test eax, eax
je 0x4a3555
call eax
mov edi, eax
test edi, edi
je 0x4a3555
mov eax, dword [0x572e24]
cmp eax, esi
je 0x4a3555
push eax
call ebx
test eax, eax
je 0x4a3555
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x572e1c]
call ebx
test eax, eax
je 0x4a3570
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x4a3572
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00493d56
leave
ret
Function at 0x4aec57
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0049a441
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x4aec8f
xor eax, eax
jmp 0x4aecbb
cmp esi, dword [ebp - 4]
je 0x4aecb8
cmp dword [ebp + 0xc], 0
je 0x4aecb8
push dword [edi + 0x9c]
call fcn.004ae865
push dword [edi + 0x9c]
mov esi, eax
call fcn.0049d81a
pop ecx
pop ecx
cmp esi, eax
je 0x4aec8b
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x4c6ca0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x519610
mov eax, dword fs:[0]
push eax
push ebx
push ebp
mov eax, dword [0x56a8e0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov dword [esp + 0x14], 3
lea ebx, [ebx]
mov ebp, dword [esp + 0x34]
mov edx, dword [esp + 0x98]
mov ebx, dword [esp + 0x74]
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x38]
cmp ebp, dword [esp + 0x54]
jne 0x4c6cf1
cmp ecx, eax
je 0x4c6d6c
cmp ebx, dword [esp + 0x94]
jne 0x4c6d00
cmp dword [esp + 0x78], edx
je 0x4c6d6c
cmp dword [esp + 0x70], 8
push dword [esp + 0x6c]
lea eax, [esp + 0x60]
cmovae eax, dword [esp + 0x60]
push eax
push dword [esp + 0x34]
lea ecx, [esp + 0x28]
push 0
call fcn.004158e0
test eax, eax
js 0x4c6dbb
cmp dword [esp + 0x30], 8
push dword [esp + 0x2c]
lea eax, [esp + 0x20]
cmovae eax, dword [esp + 0x20]
push eax
push dword [esp + 0x74]
lea ecx, [esp + 0x68]
push 0
call fcn.004158e0
test eax, eax
js 0x4c6db4
lea eax, [esp + 0x1c]
push eax
call fcn.004c6fb0
lea eax, [esp + 0x60]
push eax
call fcn.004c6fb0
add esp, 8
jmp 0x4c6cd0
cmp ebp, dword [esp + 0x54]
jne 0x4c6da2
cmp ecx, eax
jne 0x4c6da2
cmp ebx, dword [esp + 0x94]
jne 0x4c6d89
cmp dword [esp + 0x78], edx
jne 0x4c6d89
xor ebx, ebx
jmp 0x4c6dbe
cmp ecx, eax
jne 0x4c6da2
xor ebx, ebx
mov eax, 1
test al, al
sete bl
lea ebx, [ebx*2 - 1]
jmp 0x4c6dbe
xor ebx, ebx
xor eax, eax
test al, al
sete bl
lea ebx, [ebx*2 - 1]
jmp 0x4c6dbe
mov ebx, 1
jmp 0x4c6dbe
or ebx, 0xffffffff
cmp dword [esp + 0x30], 8
jb 0x4c6dd1
push dword [esp + 0x1c]
call fcn.00493278
add esp, 4
xor eax, eax
cmp dword [esp + 0x50], 8
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], ax
jb 0x4c6dfb
push dword [esp + 0x3c]
call fcn.00493278
add esp, 4
xor eax, eax
cmp dword [esp + 0x70], 8
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], 0
mov word [esp + 0x3c], ax
jb 0x4c6e25
push dword [esp + 0x5c]
call fcn.00493278
add esp, 4
xor eax, eax
cmp dword [esp + 0x90], 8
mov dword [esp + 0x70], 7
mov dword [esp + 0x6c], 0
mov word [esp + 0x5c], ax
jb 0x4c6e52
push dword [esp + 0x7c]
call fcn.00493278
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x4c7f10
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x519858
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x56a8e0]
xor eax, esp
mov dword [esp + 0x5c], eax
push ebx
push esi
push edi
mov eax, dword [0x56a8e0]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov edi, dword [esp + 0x80]
mov esi, dword [esp + 0x84]
cmp dword [edi + 0x14], 8
jb 0x4c7f59
mov eax, dword [edi]
jmp 0x4c7f5b
mov eax, edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4c7f81
test esi, esi
je 0x4c7f7a
mov dword [esi], 0
call fcn.004ca800
mov dword [esi + 4], eax
mov al, 1
jmp 0x4c801b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [esp + 0x10], 0
call fcn.004ca800
mov dword [esp + 0x14], eax
cmp ebx, 0xb7
jne 0x4c7fd4
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x1c]
push edi
push eax
call fcn.004c8dc0
mov ecx, dword [eax]
mov eax, dword [eax + 4]
add esp, 0xc
mov dword [esp + 0x1c], eax
cmp ecx, 3
jne 0x4c7fd4
test esi, esi
je 0x4c8019
mov dword [esi], 0
call fcn.004ca800
jmp 0x4c8016
test esi, esi
jne 0x4c800f
push str.boost::filesystem::create_directory
lea ecx, [esp + 0x24]
call fcn.00406260
mov dword [esp + 0x78], esi
call fcn.004ca800
push eax
push ebx
push edi
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x48]
call fcn.004c7a50
push 0x553684
lea eax, [esp + 0x3c]
push eax
call fcn.00493d65
call fcn.004ca800
mov dword [esi], ebx
mov dword [esi + 4], eax
xor al, al
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.00493d56
add esp, 0x6c
ret

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

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp dword [esi + 0x14], 8
jb 0x4c8983
mov eax, dword [esi]
jmp 0x4c8985
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4c89ad
push dword [esp + 0x18]
lea eax, [esp + 0xc]
push esi
push eax
call fcn.004c8860
mov eax, dword [eax]
add esp, 0xc
pop esi
pop ebx
add esp, 8
ret
push edi
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x4c89c4
mov dword [edi], 0
call fcn.004ca800
mov dword [edi + 4], eax
pop edi
test ebx, 0x400
je 0x4c89fb
push esi
call fcn.004c83d0
add esp, 4
test al, al
je 0x4c89f0
test bl, 0x10
mov eax, 4
mov ecx, 0xb
pop esi
cmovne eax, ecx
pop ebx
add esp, 8
ret
pop esi
mov eax, 9
pop ebx
add esp, 8
ret
and ebx, 0x10
or ebx, 0x20
shr ebx, 4
pop esi
mov eax, ebx
pop ebx
add esp, 8
ret
Function at 0x4c8b20
Capabilities:
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x519aa0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x56a8e0]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
push edi
mov eax, dword [0x56a8e0]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov eax, dword [esp + 0x58]
mov esi, dword [esp + 0x54]
mov edi, dword [esp + 0x5c]
cmp eax, 1
jne 0x4c8b7b
test edi, edi
je 0x4c8b74
mov dword [edi], 0
call fcn.004ca800
mov dword [edi + 4], eax
xor al, al
jmp 0x4c8c64
cmp eax, 3
je 0x4c8be8
cmp eax, 0xb
je 0x4c8be8
push str.boost::filesystem::remove
lea ecx, [esp + 0x2c]
call fcn.00406260
cmp dword [esi + 0x14], 8
mov dword [esp + 0x4c], 1
jb 0x4c8ba5
mov eax, dword [esi]
jmp 0x4c8ba7
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
test al, al
lea ecx, [esp + 0x28]
push ecx
sete al
push edi
movzx eax, al
push esi
push eax
call fcn.004c81b0
add esp, 0x10
cmp dword [esp + 0x3c], 0x10
mov bl, al
jb 0x4c8be0
push dword [esp + 0x28]
call fcn.00493278
add esp, 4
test bl, bl
je 0x4c8c62
xor al, al
jmp 0x4c8c64
push 0x19
push str.boost::filesystem::remove
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
call fcn.0040c820
cmp dword [esi + 0x14], 8
mov dword [esp + 0x4c], 0
jb 0x4c8c1f
mov eax, dword [esi]
jmp 0x4c8c21
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
test al, al
lea ecx, [esp + 0x10]
push ecx
sete al
push edi
movzx eax, al
push esi
push eax
call fcn.004c81b0
add esp, 0x10
cmp dword [esp + 0x24], 0x10
mov bl, al
jb 0x4c8c5a
push dword [esp + 0x10]
call fcn.00493278
add esp, 4
test bl, bl
jne 0x4c8b74
mov al, 1
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.00493d56
add esp, 0x40
ret

Function at 0x4c8c90
Capabilities:
Move file

Disassembly:
push 0xffffffffffffffff
push 0x51a408
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x56a8e0]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
push edi
mov eax, dword [0x56a8e0]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x3c]
mov esi, dword [esp + 0x40]
mov ebx, dword [esp + 0x44]
push 0x19
push str.boost::filesystem::rename
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
call fcn.0040c820
cmp dword [esi + 0x14], 8
mov dword [esp + 0x34], 0
jb 0x4c8d04
mov eax, dword [esi]
jmp 0x4c8d06
mov eax, esi
cmp dword [edi + 0x14], 8
jb 0x4c8d10
mov ecx, dword [edi]
jmp 0x4c8d12
mov ecx, edi
lea edx, [esp + 0x10]
push edx
push ebx
push esi
push edi
push 3
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
sete al
movzx eax, al
push eax
call fcn.004c8100
add esp, 0x14
cmp dword [esp + 0x24], 0x10
jb 0x4c8d48
push dword [esp + 0x10]
call fcn.00493278
add esp, 4
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00493d56
add esp, 0x28
ret
Function at 0x4c8dc0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x519ae0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x56a8e0]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x56a8e0]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x50]
mov ebx, dword [esp + 0x4c]
cmp dword [edi + 0x14], 8
mov ebp, dword [esp + 0x54]
jb 0x4c8e08
mov eax, dword [edi]
jmp 0x4c8e0a
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
jne 0x4c8e2a
push ebp
push edi
push ebx
call fcn.004c8860
add esp, 0xc
jmp 0x4c8f40
test eax, 0x400
je 0x4c8ef9
cmp dword [edi + 0x14], 8
jb 0x4c8e3f
mov eax, dword [edi]
jmp 0x4c8e41
mov eax, edi
push eax
lea ecx, [esp + 0x24]
call fcn.00406360
cmp dword [esp + 0x34], 8
push 0
push 0x2000000
push 3
push 0
push 7
lea eax, [esp + 0x34]
cmovae eax, dword [esp + 0x34]
push 0
push eax
mov dword [esp + 0x60], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0x14], esi
cmp dword [esp + 0x34], 8
mov byte [esp + 0x44], 2
jb 0x4c8e95
push dword [esp + 0x20]
call fcn.00493278
add esp, 4
xor eax, eax
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
mov word [esp + 0x20], ax
cmp esi, 0xffffffff
je 0x4c8e1a
push edi
call fcn.004c83d0
add esp, 4
test al, al
jne 0x4c8eea
mov eax, dword [esp + 0x1c]
push eax
push edi
call fcn.004c84b0
add esp, 8
mov dword [ebx], 9
push esi
mov dword [ebx + 4], eax
mov dword [esp + 0x48], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4c8f40
push esi
mov dword [esp + 0x48], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
je 0x4c8f0c
mov dword [ebp], 0
call fcn.004ca800
mov dword [ebp + 4], eax
mov eax, dword [esp + 0x1c]
push eax
push edi
mov dword [esp + 0x1c], 3
test al, 0x10
jne 0x4c8f26
mov dword [esp + 0x1c], 2
call fcn.004c84b0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], eax
mov eax, dword [ecx]
mov dword [ebx], eax
mov eax, dword [ecx + 4]
add esp, 8
mov dword [ebx + 4], eax
mov eax, ebx
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00493d56
add esp, 0x34
ret
Function at 0x4cb4c0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x56c81c]
cmp eax, 0xffffffff
je 0x4cb4fc
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4cb4fc
mov eax, dword [0x56c81c]
cmp eax, 0xffffffff
jne 0x4cb4e3
xor eax, eax
jmp 0x4cb4ea
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 0
push dword [eax + 0x34]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4cb4fc
mov al, 1
ret
xor al, al
ret
Function at 0x4cbb60
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x519f68
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x56a8e0]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov eax, dword [0x56c81c]
cmp eax, 0xffffffff
jne 0x4cbb99
xor ebp, ebp
mov dword [esp + 0x14], ebp
jmp 0x4cbba6
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ebp
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [esp + 0x2c], 0
test ebp, ebp
je 0x4cbc0d
jmp 0x4cbbdc
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp + 0x14], 0
mov edi, dword [ebp + 0xc]
jne 0x4cbc4a
test edi, edi
jne 0x4cbc50
push 0x4cadc0
push 0x573234
call fcn.004cab50
mov eax, dword [0x56c81c]
add esp, 8
cmp eax, 0xffffffff
je 0x4cbc0d
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esp + 0x2c], 0xffffffff
test ebp, ebp
je 0x4cbc36
lea eax, [ebp + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4cbc36
mov eax, dword [ebp]
push 0
mov ecx, ebp
call dword [eax]
push ebp
push 0
call esi
push eax
call ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
test edi, edi
je 0x4cbc88
mov edi, edi
mov eax, dword [edi + 4]
mov dword [ebp + 0xc], eax
mov ecx, dword [edi]
test ecx, ecx
je 0x4cbc79
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [edi]
push 0
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0
call esi
push eax
call ebx
push edi
push 0
call esi
push eax
call ebx
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x4cbc50
mov ebx, dword [ebp + 0x10]
lea eax, [ebp + 0x10]
mov esi, dword [ebx]
mov dword [esp + 0x18], eax
cmp esi, ebx
je 0x4cbbd0
mov ebp, eax
mov edi, edi
cmp byte [esi + 0xd], 0
mov edi, esi
jne 0x4cbce7
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x4cbccc
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x4cbce7
jmp 0x4cbcc0
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x4cbcc0
jmp 0x4cbce7
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x4cbce5
cmp esi, dword [eax + 8]
jne 0x4cbce5
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x4cbcd5
mov esi, eax
mov ecx, dword [edi + 0x14]
test ecx, ecx
je 0x4cbcfb
mov edx, dword [edi + 0x1c]
test edx, edx
je 0x4cbcfb
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push edi
lea eax, [esp + 0x24]
push eax
mov ecx, ebp
call fcn.0047da30
cmp esi, ebx
jne 0x4cbca0
mov ebp, dword [esp + 0x14]
jmp 0x4cbbd0