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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [edx]
xor esi, esi
mov dword [ebp - 8], edi
mov dword [ebp - 4], esi
lea esp, [esp]
test edi, edi
je 0x487c28
cmp byte [edi], 0
mov eax, edi
je 0x487ba6
nop
inc eax
cmp byte [eax], 0
jne 0x487ba0
sub eax, edi
and eax, 0x3fffffff
cmp dword [ebx + 0x194], 0
lea ecx, [ebx + 0x188]
mov esi, eax
je 0x487c01
xor eax, eax
mov edx, esi
mov ecx, edi
test esi, esi
jle 0x487bf1
jmp 0x487bd0
movzx edi, byte [ecx]
movzx edi, byte [edi + 0x526638]
lea ebx, [eax*8]
xor edi, ebx
dec edx
xor eax, edi
inc ecx
test edx, edx
jg 0x487bd0
mov ebx, dword [ebp + 8]
mov edi, dword [ebp - 8]
xor edx, edx
div dword [ebx + 0x188]
lea ecx, [ebx + 0x188]
jmp 0x487c03
xor edx, edx
push esi
push edi
mov eax, ecx
call fcn.0045a470
add esp, 8
test eax, eax
je 0x487c1e
mov eax, dword [eax + 8]
mov esi, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
jmp 0x487c2b
mov esi, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
xor eax, eax
jmp 0x487c2b
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x487c3d
movzx ecx, byte [esi + 0x526d68]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4 - 0x14]
cmp dword [eax + 0xc], 0
jne 0x487c5c
inc esi
mov dword [ebp - 4], esi
cmp esi, 3
jl 0x487b90
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [eax]
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov ecx, dword [eax + 0xc]
pop edi
pop esi
mov dword [edx + 0xc], ecx
mov dword [edx + 0x10], 0
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48d910
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push ebx
xor eax, eax
test dword [edx + 0xc], 0x4000000
push esi
push edi
mov dword [ebp - 4], eax
je 0x48da56
mov ecx, dword [ebp + 0xc]
mov edi, dword [ecx + 0x24]
test edi, edi
je 0x48d976
lea ebx, [ebx]
mov eax, dword [edi + 0x14]
test eax, eax
jle 0x48d96c
lea edx, [edi + 0x24]
mov esi, eax
lea esp, [esp]
mov ecx, dword [edx]
cmp ecx, 0x1f
jle 0x48d95c
or eax, 0xffffffff
jmp 0x48d963
mov eax, 1
shl eax, cl
or dword [ebp - 4], eax
add edx, 8
dec esi
jne 0x48d950
mov edi, dword [edi + 4]
test edi, edi
jne 0x48d940
mov ecx, dword [ebp + 0xc]
mov esi, dword [ecx + 4]
mov eax, esi
test esi, esi
jne 0x48d986
xor edi, edi
mov dword [ebp - 8], edi
jmp 0x48d9a2
cmp byte [esi], 0
je 0x48d996
jmp 0x48d990
inc eax
cmp byte [eax], 0
jne 0x48d990
sub eax, esi
and eax, 0x3fffffff
mov edi, eax
mov dword [ebp - 8], eax
mov ebx, dword [ecx + 0x44]
add ebx, 0x34
cmp dword [ebx + 0xc], 0
mov dword [ebp - 0xc], ebx
je 0x48d9e7
xor eax, eax
mov edx, edi
mov ecx, esi
test edi, edi
jle 0x48d9e1
jmp 0x48d9c0
movzx edi, byte [ecx]
movzx edi, byte [edi + 0x526638]
lea ebx, [eax*8]
xor edi, ebx
dec edx
xor eax, edi
inc ecx
test edx, edx
jg 0x48d9c0
mov edi, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
xor edx, edx
div dword [ebx]
jmp 0x48d9e9
xor edx, edx
push edi
push esi
mov eax, ebx
call fcn.0045a470
xor ebx, ebx
add esp, 8
cmp eax, ebx
je 0x48da53
mov edi, dword [eax + 8]
cmp edi, ebx
je 0x48da53
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push edi
push ecx
push edx
xor eax, eax
mov dword [ebp - 8], ebx
call fcn.0048bea0
mov eax, dword [ebp - 8]
add esp, 0x10
cmp eax, ebx
je 0x48da4c
mov ecx, dword [eax + 4]
cmp ecx, ebx
jle 0x48da4c
mov edx, dword [eax + 8]
mov esi, ecx
nop
mov ecx, dword [edx]
cmp ecx, 0x1f
jle 0x48da3c
or eax, 0xffffffff
jmp 0x48da43
mov eax, 1
shl eax, cl
or dword [ebp - 4], eax
add edx, 4
dec esi
jne 0x48da30
mov edi, dword [edi + 0xc]
cmp edi, ebx
jne 0x48da02
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b1160
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push ebx
push esi
cmp ecx, dword [ebp + 0xc]
je 0x4b1206
mov dl, byte [ecx]
mov esi, dword [ebp + 0x10]
movzx ecx, dl
shr ecx, 2
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], cl
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
and dl, 3
inc ecx
inc esi
shl dl, 4
mov dword [ebp + 0x10], esi
mov dword [ebp + 8], ecx
movzx edx, dl
cmp ecx, dword [ebp + 0xc]
je 0x4b120f
mov cl, byte [ecx]
movzx ebx, cl
shr ebx, 4
or edx, ebx
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], dl
mov edx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
and cl, 0xf
inc edx
inc esi
add cl, cl
mov dword [ebp + 0x10], esi
mov dword [ebp + 8], edx
cmp edx, dword [ebp + 0xc]
je 0x4b1230
movzx edx, byte [edx]
add cl, cl
movzx ecx, cl
mov ebx, edx
shr ebx, 6
or ecx, ebx
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], cl
mov ecx, dword [ebp + 0x10]
inc ecx
and edx, 0x3f
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov dword [ebp + 0x10], ecx
mov byte [ecx], dl
mov ecx, dword [ebp + 8]
inc dword [ebp + 0x10]
inc ecx
mov dword [ebp + 8], ecx
cmp ecx, dword [ebp + 0xc]
jne 0x4b1171
mov edx, dword [ebp + 0x10]
pop esi
mov dword [eax], edx
pop ebx
pop ebp
ret
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov ecx, esi
inc esi
mov dword [ebp + 0x10], esi
mov byte [ecx], dl
mov ecx, dword [ebp + 0x10]
mov byte [ecx], 0x3d
mov byte [ecx + 1], 0x3d
add ecx, 2
pop esi
mov dword [eax], ecx
pop ebx
pop ebp
ret
mov edx, esi
inc esi
add cl, cl
movzx ecx, cl
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov dword [ebp + 0x10], esi
mov byte [edx], cl
mov ecx, dword [ebp + 0x10]
lea edx, [ecx + 1]
pop esi
mov byte [ecx], 0x3d
mov dword [eax], edx
pop ebx
pop ebp
ret

Function at 0x4b1780
Capabilities:
Create process on windows

Disassembly:
push 3
push 0
push eax
push 0x532e68
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ecx, ecx
cmp eax, 0x20
setg al
ret
Function at 0x4b1cb0
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x519b78
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x54d028]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0
push 0
push 0
push 0
push eax
mov esi, ecx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edi, eax
mov eax, dword [esi]
cmp edi, eax
je 0x4b1d02
test eax, eax
je 0x4b1d00
push eax
mov eax, dword [esi + 4]
call eax
mov dword [esi], edi
cmp dword [esi], 0
jne 0x4b1d4f
push 0x20
push str.InternetOpenW___win_inet.cpp53_
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x30], 0
call fcn.00407ad0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea ecx, [ebp - 0x30]
lea esi, [ebp - 0x40]
call fcn.004b32d0
push 0x53f1f4
mov ecx, esi
push ecx
call fcn.004da48a
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004d62e5
mov esp, ebp
pop ebp
ret 4

Function at 0x4b1da0
Capabilities:
Connect to http server

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x519b08
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x54d028]
xor eax, esp
mov dword [esp + 0x2c], eax
push esi
push edi
mov eax, dword [0x54d028]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
movzx eax, word [ebp + 0xc]
mov esi, dword [ebp + 8]
push 0
push 0
push 3
push 0
push 0
push eax
mov word [esi + 8], ax
mov ecx, dword [ecx]
push edx
push ecx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov edi, eax
mov eax, dword [esi]
cmp edi, eax
je 0x4b1e0a
test eax, eax
je 0x4b1e08
push eax
mov eax, dword [esi + 4]
call eax
mov dword [esi], edi
cmp dword [esi], 0
jne 0x4b1e5e
push 0x23
push str.InternetConnectW___win_inet.cpp82_
lea ecx, [esp + 0x24]
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], 0
mov byte [esp + 0x24], 0
call fcn.00407ad0
mov dword [esp + 0x48], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea ecx, [esp + 0x1c]
lea esi, [esp + 0xc]
call fcn.004b32d0
push 0x53f1f4
mov ecx, esi
push ecx
call fcn.004da48a
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.004d62e5
mov esp, ebp
pop ebp
ret 8
Function at 0x4b2c90
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5162c8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x54d028]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [esi], ebx
mov dword [ebp - 0x40], esi
mov dword [esi + 4], ebx
push eax
push ebx
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, esi
call fcn.004b3010
cmp dword [esi], ebx
jne 0x4b2d3a
push 0x1d
push str.CreateMutexW___mutex.cpp105_
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.00407ad0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], 0x10
jb 0x4b2d13
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
jmp 0x4b2d19
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x30], ecx
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp - 0x3c]
call fcn.004d696a
push 0x53f230
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], vtable.pix::ipc_error.0
call fcn.004da48a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4b2d9c
push 0x1d
push str.CreateMutexW___mutex.cpp109_
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.00407ad0
mov byte [ebp - 4], 2
cmp dword [ebp - 0x18], 0x10
jb 0x4b2d75
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x30], ecx
jmp 0x4b2d7b
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x30], edx
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x3c]
call fcn.004d696a
push 0x53f230
lea ecx, [ebp - 0x3c]
push ecx
mov dword [ebp - 0x3c], vtable.pix::ipc_error.0
call fcn.004da48a
mov ecx, dword [esi]
push 0x1f0001
call fcn.004b7960
mov edi, dword [esi]
add esp, 4
call fcn.004b7d10
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d62e5
mov esp, ebp
pop ebp
ret 4
Function at 0x4b35d0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x24]
push esi
push edi
mov dword [ebx], 1
cmp edx, 0x100
je 0x4b363c
cmp edx, 0x101
je 0x4b363c
cmp edx, 0x104
je 0x4b3606
cmp edx, 0x105
jne 0x4b374f
mov eax, dword [ebp + 0x14]
cmp eax, 0x12
je 0x4b374f
cmp eax, 0x24
je 0x4b3749
cmp eax, 0x25
je 0x4b3749
cmp eax, 0x27
jne 0x4b374f
pop edi
pop esi
mov dword [ebx], 0
xor eax, eax
pop ebx
pop ebp
ret 0x20
mov ecx, dword [ebp + 0x14]
lea eax, [ecx - 0x70]
cmp eax, 0x17
jbe 0x4b3749
cmp ecx, 0xbb
je 0x4b3737
cmp ecx, 0xbd
je 0x4b3737
cmp ecx, 0x6b
je 0x4b3737
cmp ecx, 0x6d
je 0x4b3737
cmp ecx, 0x30
je 0x4b3737
mov esi, dword [ebp + 8]
mov eax, dword [esi + 4]
test eax, eax
je 0x4b374f
cmp edx, 0x100
jne 0x4b374f
cmp ecx, 9
je 0x4b36f3
cmp ecx, 0xd
je 0x4b36d1
cmp ecx, 0x1b
jne 0x4b374f
mov esi, dword [esi + 0x10]
test esi, esi
je 0x4b3749
push 0
push 0
push esi
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
pop esi
mov dword [ebx], 0
xor eax, eax
pop ebx
pop ebp
ret 0x20
mov esi, dword [esi + 0xc]
test esi, esi
je 0x4b3749
push 0
push 0
push esi
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
pop esi
mov dword [ebx], 0
xor eax, eax
pop ebx
pop ebp
ret 0x20
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call edi
mov ecx, 0x8000
test cx, ax
je 0x4b374f
cmp dword [esi + 8], 0
je 0x4b3749
push 0
push 0x10
call edi
mov edx, dword [esi + 8]
shr eax, 0xf
and eax, 1
push eax
mov eax, dword [esi + 4]
push edx
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
pop esi
mov dword [ebx], 0
xor eax, eax
pop ebx
pop ebp
ret 0x20
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x4b374f
mov dword [ebx], 0
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0x20
Function at 0x4b8160
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x518878
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x54d028]
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 eax, dword [ebp + 8]
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x240], ebx
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov dword [ebp - 0x244], esi
mov dword [ebp - 0x21c], eax
mov word [esi], cx
mov dword [ebp - 4], ebx
mov eax, dword [0x5556b0]
mov dword [ebp - 0x240], 1
cmp eax, 6
ja 0x4b81d3
jne 0x4b8350
push str.Shell32.dll
call fcn.004b8790
mov edx, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edi, eax
push edx
push edi
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x234], edi
call fcn.004b8610
push edi
lea eax, [ebp - 0x234]
push edi
push eax
call fcn.004bfe50
add esp, 0xc
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x234]
cmp eax, ebx
jne 0x4b8251
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x22c]
mov dword [ebp - 0x21c], str.Shell32.dll_utility.cpp343_
call fcn.004d696a
push 0x53eadc
lea edx, [ebp - 0x22c]
push edx
mov dword [ebp - method.std::logic_error.virtual_0], vtable.std::runtime_error.0
call fcn.004da48a
push str.SHGetKnownFolderPath
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
jne 0x4b8298
mov dword [ebp - 0x21c], str.Internal_error_KFP1_utility.cpp349_
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x22c]
call fcn.004d696a
push 0x53eadc
lea ecx, [ebp - 0x22c]
push ecx
mov dword [ebp - method.std::logic_error.virtual_0], vtable.std::runtime_error.0
call fcn.004da48a
mov ecx, dword [ebp - 0x21c]
lea edx, [ebp - 0x220]
push edx
push ebx
push ebx
push ecx
mov dword [ebp - 0x220], ebx
call eax
test eax, eax
js 0x4b8319
mov eax, dword [ebp - 0x220]
cmp eax, ebx
je 0x4b8319
mov edx, dword [sym.imp.ole32.dll_CoTaskMemFree]
push edx
push eax
lea ecx, [ebp - 0x238]
mov edi, eax
mov dword [ebp - 0x23c], eax
call fcn.004b86a0
push edi
lea eax, [ebp - 0x23c]
push edi
push eax
call fcn.004bfe50
add esp, 0xc
lea ecx, [ebp - 0x220]
push ecx
mov byte [ebp - 4], 2
call fcn.004b83e0
lea eax, [ebp - 0x23c]
mov byte [ebp - 4], 1
call fcn.004b83a0
lea eax, [ebp - 0x234]
mov byte [ebp - 4], bl
call fcn.004b83a0
jmp 0x4b8382
lea edx, [ebp - 0x21c]
push edx
lea ecx, [ebp - 0x22c]
mov dword [ebp - 0x21c], str.Internal_error_KFP2_utility.cpp354_
call fcn.004d696a
push 0x53eadc
lea eax, [ebp - 0x22c]
push eax
mov dword [ebp - method.std::logic_error.virtual_0], vtable.std::runtime_error.0
call fcn.004da48a
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x218]
push ecx
push ebx
push ebx
push edx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x4b8377
mov dword [ebp - 0x21c], str.Internal_error_GFP1_utility.cpp365_
jmp 0x4b826b
lea edx, [ebp - 0x218]
call fcn.004b8430
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.004d62e5
mov esp, ebp
pop ebp
ret
Function at 0x4ba124
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x553d24], 0
push esi
push edi
jne 0x4ba09a
call fcn.004ba006
test eax, eax
je 0x4ba0df
mov eax, dword [0x553d24]
cmp eax, 1
jne 0x4ba0bb
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4ba0df
jmp 0x4ba121
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x4ba121
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x4ba0e3
xor eax, eax
jmp 0x4ba121
mov eax, dword [esi]
push dword [0x553d24]
call edi
mov edi, eax
test edi, edi
je 0x4ba105
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x4ba121
lea edi, [esi + 0xff0]
push esi
push dword [0x553d24]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x4ba10b
mov eax, esi
pop edi
pop esi
ret
jmp 0x4ba086
Function at 0x4bbcb0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x5107bb
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x54d028]
xor eax, esp
mov dword [esp + 0x274], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x54d028]
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 + 0x3c], 7
mov dword [esp + 0x38], edi
mov word [esp + 0x28], dx
call fcn.00404840
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x294], edi
cmp eax, edi
je 0x4bbd94
mov edi, dword [esp + 0x30]
mov ecx, dword [esp + 0x1c]
mov edx, ecx
cmp edi, 8
jae 0x4bbd61
lea edx, [esp + 0x1c]
cmp word [edx + eax*2 - 2], 0x5c
je 0x4bbd8d
mov edx, ecx
cmp edi, 8
jae 0x4bbd74
lea edx, [esp + 0x1c]
cmp word [edx + eax*2 - 2], 0x2f
je 0x4bbd8d
cmp edi, 8
jae 0x4bbd85
lea ecx, [esp + 0x1c]
cmp word [ecx + eax*2 - 2], 0x3a
jne 0x4bbd94
mov edx, 0x52db24
jmp 0x4bbd99
mov edx, 0x51dcdc
mov eax, edx
lea edi, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4bbda0
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x24]
call fcn.00404480
mov eax, dword [esp + 0x1c]
mov edi, 8
cmp dword [esp + 0x30], edi
jae 0x4bbdcd
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x38]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebx], eax
cmp eax, 0xffffffff
jne 0x4bbe2b
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], 0
call edi
cmp eax, 2
je 0x4bbe00
call edi
cmp eax, 0x12
je 0x4bbe00
call edi
mov esi, eax
jmp 0x4bbe02
xor esi, esi
call fcn.004befe0
cmp dword [esp + 0x30], 8
mov edi, dword [esp + 0x14]
mov dword [edi], esi
mov dword [edi + 4], eax
jb 0x4bbe24
mov edx, dword [esp + 0x1c]
push edx
call fcn.004d62da
add esp, 4
mov eax, edi
jmp 0x4bbeb1
lea eax, [esp + 0x64]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4bbe32
mov ecx, dword [esp + 0x18]
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x68]
push eax
call fcn.00404cb0
mov eax, dword [esp + 0x38]
test eax, 0x400
je 0x4bbe6a
mov dword [esi], 0
mov dword [ebp], 0
jmp 0x4bbe8a
test al, 0x10
je 0x4bbe7d
mov dword [esi], 3
mov dword [ebp], 3
jmp 0x4bbe8a
mov dword [esi], 2
mov dword [ebp], 2
mov esi, dword [esp + 0x14]
mov dword [esi], 0
call fcn.004befe0
mov dword [esi + 4], eax
cmp dword [esp + 0x30], edi
jb 0x4bbeaf
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004d62da
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.004d62e5
add esp, 0x284
ret
Function at 0x4bc7d0
Capabilities:
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x5108e0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x54d028]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov eax, dword [0x54d028]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x60]
mov esi, dword [esp + 0x5c]
mov edi, dword [esp + 0x64]
cmp eax, 1
jne 0x4bc82b
test edi, edi
je 0x4bc824
mov dword [edi], 0
call fcn.004befe0
mov dword [edi + 4], eax
xor al, al
jmp 0x4bc92a
cmp eax, 3
je 0x4bc8b4
cmp eax, 0xb
je 0x4bc8b4
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.00407ad0
cmp dword [esi + 0x14], 8
mov dword [esp + 0x54], 1
jb 0x4bc870
mov eax, dword [esi]
jmp 0x4bc872
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
test al, al
lea ecx, [esp + 0x10]
push ecx
sete dl
push edi
movzx eax, dl
push esi
push eax
call fcn.004bc690
add esp, 0x10
cmp dword [esp + 0x24], 0x10
mov bl, al
jb 0x4bc8ac
mov ecx, dword [esp + 0x10]
push ecx
call fcn.004d62da
add esp, 4
test bl, bl
je 0x4bc928
xor al, al
jmp 0x4bc92a
push 0x19
xor ebx, ebx
push str.boost::filesystem::remove
lea ecx, [esp + 0x34]
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
call fcn.00407ad0
cmp dword [esi + 0x14], 8
mov dword [esp + 0x54], ebx
jb 0x4bc8e4
mov eax, dword [esi]
jmp 0x4bc8e6
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
lea edx, [esp + 0x2c]
push edx
test al, al
sete al
push edi
movzx ecx, al
push esi
push ecx
call fcn.004bc690
add esp, 0x10
cmp dword [esp + 0x40], 0x10
mov bl, al
jb 0x4bc920
mov edx, dword [esp + 0x2c]
push edx
call fcn.004d62da
add esp, 4
test bl, bl
jne 0x4bc824
mov al, 1
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.004d62e5
add esp, 0x48
ret

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

Disassembly:
push ebx
mov ebx, dword [esp + 8]
cmp dword [ebx + 0x14], 8
push edi
jb 0x4bca80
mov eax, dword [ebx]
jmp 0x4bca82
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4bcaa8
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ebx
push ecx
call fcn.004bc950
mov eax, dword [eax]
add esp, 0xc
pop edi
pop ebx
ret
push esi
mov esi, dword [esp + 0x14]
test esi, esi
je 0x4bcabf
mov dword [esi], 0
call fcn.004befe0
mov dword [esi + 4], eax
pop esi
test edi, 0x400
je 0x4bcaf2
push ebx
call fcn.004bb740
add esp, 4
test al, al
je 0x4bcaea
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 0x4bcc00
Capabilities:
Move file

Disassembly:
push 0xffffffffffffffff
push 0x510918
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x54d028]
xor eax, esp
mov dword [esp + 0x54], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x54d028]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x7c]
mov esi, dword [esp + 0x80]
mov ebp, dword [esp + 0x84]
push 0x19
xor ebx, ebx
push str.boost::filesystem::rename
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
call fcn.00407ad0
mov eax, 8
mov dword [esp + 0x74], ebx
cmp dword [esi + 0x14], eax
jb 0x4bcc78
mov ecx, dword [esi]
jmp 0x4bcc7a
mov ecx, esi
cmp dword [edi + 0x14], eax
jb 0x4bcc83
mov eax, dword [edi]
jmp 0x4bcc85
mov eax, edi
push 1
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x4bcca4
cmp ebp, ebx
je 0x4bcce4
mov dword [ebp], ebx
call fcn.004befe0
mov dword [ebp + 4], eax
jmp 0x4bcce4
call fcn.004befe0
cmp ebp, ebx
jne 0x4bccd6
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push eax
push esi
push edi
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x44]
call fcn.004bc2c0
push 0x53b418
lea ecx, [esp + 0x34]
push ecx
call fcn.004da48a
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp], eax
mov dword [ebp + 4], esi
cmp dword [esp + 0x28], 0x10
jb 0x4bccf8
mov edx, dword [esp + 0x14]
push edx
call fcn.004d62da
add esp, 4
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.004d62e5
add esp, 0x64
ret