joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bd32a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x559540]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
lea edi, [esi + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 4], 0xffffffff
je 0x4bd3c6
xor eax, eax
push eax
push eax
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 0xc]
push ebx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4bd3bd
cmp dword [ebp - 8], 0
jbe 0x4bd3bd
push dword [ebp - 8]
and dword [ebp - 0x10], 0
lea ecx, [ebp - 0x20]
push ebx
mov dword [ebp - 0xc], 0xf
mov byte [ebp - 0x20], 0
call fcn.004be2ee
lea eax, [ebp - 0x20]
push eax
lea ecx, [esi + 0x24]
call fcn.004b94df
push 0
push 1
lea ecx, [ebp - 0x20]
call fcn.004bdd48
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ebd2c
mov esp, ebp
pop ebp
ret 8

Function at 0x4bdef8
Capabilities:
Get common file path

Disassembly:
push 0x268
mov eax, 0x50bd4e
call fcn.004ebe03
mov edi, dword [ebp + 8]
call fcn.004e8d90
mov dword [ebp - fcn.004bdbc0], 0x510cb0
xor eax, eax
xor esi, esi
push 0x208
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push esi
push eax
mov dword [ebp - 4], esi
call fcn.004edc70
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.004c56c0
pop ecx
pop ecx
test eax, eax
je 0x4bdfe5
mov ecx, edi
call fcn.004babf2
call fcn.004c56b0
push eax
push str.cherimoya
call fcn.004e9490
pop ecx
pop ecx
test eax, eax
jne 0x4bdfe5
push 0x53
lea eax, [ebp - 0x274]
push esi
push eax
call fcn.004edc70
lea eax, [ebp - 0x274]
mov byte [ebp - 0x26c], 3
push 1
push eax
mov dword [ebp - 0x274], 6
mov dword [ebp - 0x225], 2
call fcn.004e8cf0
add esp, 0x14
push 0xffffffffffffffff
push dword [edi + 0x170]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call fcn.004e9070
call fcn.004c5670
push dword [edi + 0x174]
call dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
jmp 0x4bdfe8
or esi, 0xffffffff
mov eax, esi
call fcn.004ebdb2
ret 8
Function at 0x4c5900
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50c6db
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x559540]
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 edi, ecx
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x4c5940
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [edi + 4], 0
mov ebx, dword [ebp + 0xc]
mov eax, 0x6400000
cmp ebx, eax
push 0x28
cmova ebx, eax
call fcn.004edd71
add esp, 4
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x4c5970
mov ecx, eax
call fcn.004cfbe0
mov esi, eax
jmp 0x4c5972
xor esi, esi
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x4c5990
mov ecx, esi
call fcn.004cfd30
test al, al
jne 0x4c5997
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
xor al, al
jmp 0x4c5a3f
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [edi + 4], esi
lea esi, [edi + 0xe]
mov dword [edi + 8], ebx
mov word [esi], ax
test ecx, ecx
je 0x4c59e3
mov edx, ecx
lea edi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4c59b1
sub edx, edi
sar edx, 1
cmp edx, 0x104
jbe 0x4c59cf
xor eax, eax
mov word [esi], ax
jmp 0x4c59e3
mov edx, esi
sub edx, ecx
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x4c59d3
cmp word [esi], 0
jne 0x4c5a3d
lea eax, [ebp - 0x28]
push eax
call fcn.004ce100
mov ecx, eax
call fcn.004ce170
cmp dword [ebp - 0x18], 0
je 0x4c5a20
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0x511644
push 0x104
push esi
call fcn.004c5ca0
add esp, 0x10
jmp 0x4c5a2c
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp dword [ebp - 0x14], 8
jb 0x4c5a3d
push dword [ebp - 0x28]
call fcn.004eb50e
add esp, 4
mov al, 1
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.004ebd2c
mov esp, ebp
pop ebp
ret 8
Function at 0x4c5b00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50c70e
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x559540]
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 esi, ecx
mov dword [ebp - 0x220], esi
mov ecx, dword [esi + 4]
mov edx, dword [ebp + 8]
test ecx, ecx
jne 0x4c5b47
xor eax, eax
jmp 0x4c5bed
push dword [ebp + 0xc]
mov eax, dword [ecx]
push edx
call dword [eax + 0x10]
mov edi, eax
mov dword [ebp - 0x21c], edi
test edi, edi
je 0x4c5b40
cmp byte [esi + 0xc], 0
jne 0x4c5beb
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
call eax
test edx, edx
jb 0x4c5beb
ja 0x4c5b7b
cmp eax, dword [esi + 8]
jbe 0x4c5beb
lea eax, [ebp - 0x218]
push eax
push 0
push 0x51164c
lea eax, [esi + 0xe]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4c5beb
push 8
call fcn.004edd71
add esp, 4
mov dword [ebp - 0x224], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x4c5bbd
mov ecx, eax
call fcn.004cfee0
mov ebx, eax
jmp 0x4c5bbf
xor ebx, ebx
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x4c5beb
push 0x4000100
push 2
lea eax, [ebp - 0x218]
mov ecx, ebx
push eax
call fcn.004d00a0
push 1
test al, al
jne 0x4c5c0b
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
mov eax, edi
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.004ebd2c
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esi + 4]
push 0
push 0
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
mov ecx, dword [esi + 4]
push ebx
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x22c], edx
mov esi, dword [ecx]
mov esi, dword [esi + 0x18]
call esi
mov ecx, dword [ebp - 0x220]
mov edi, eax
mov dword [ebp - 0x228], edx
mov ecx, dword [ecx + 4]
mov esi, dword [ecx]
mov esi, dword [esi + 0x14]
call esi
cmp edi, eax
jne 0x4c5c89
cmp dword [ebp - 0x228], edx
jne 0x4c5c89
mov esi, dword [ebp - 0x220]
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push dword [ebp - 0x22c]
mov dword [esi + 4], ebx
mov ecx, ebx
mov eax, dword [ebx]
push dword [ebp - 0x224]
call dword [eax + 8]
mov edi, dword [ebp - 0x21c]
mov byte [esi + 0xc], 1
jmp 0x4c5beb
mov eax, dword [ebx]
mov ecx, ebx
push 1
call dword [eax]
mov eax, dword [ebp - 0x21c]
jmp 0x4c5bed
Function at 0x4c9760
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50cc30
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x559540]
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 ebx, ecx
mov esi, dword [ebp + 8]
lea eax, [ebx + 0x20]
push eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x44], vtable.ProtocolFilters::AutoLock.0
mov dword [ebp - 0x40], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
mov ecx, ebx
call fcn.004cd3a0
cmp dword [esi + 0x10], 0
mov byte [ebp - 4], 1
jne 0x4c97cb
xor bl, bl
jmp 0x4c98ed
mov edi, dword [ebx]
lea eax, [ebp - 0x28]
push eax
mov ecx, ebx
mov dword [ebp - 0x2c], edi
call fcn.004c8960
mov esi, eax
mov eax, dword [ebx]
cmp esi, eax
je 0x4c9835
cmp dword [esi + 0x24], 0x10
lea edx, [esi + 0x10]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x30], eax
jb 0x4c97f4
mov edx, dword [edx]
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
mov edi, dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
cmp edi, eax
cmovb eax, edi
push eax
push edx
push ecx
call fcn.004be5db
mov edi, dword [ebp - 0x2c]
add esp, 0xc
test eax, eax
jne 0x4c982c
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x18]
cmp edx, ecx
jb 0x4c9833
xor eax, eax
cmp edx, ecx
setne al
test eax, eax
js 0x4c9833
mov dword [ebp - 0x2c], esi
jmp 0x4c9838
mov eax, dword [ebx]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
cmp dword [eax], edi
jne 0x4c98eb
cmp dword [ebx + 0x1c], 8
lea esi, [ebx + 8]
jb 0x4c9850
mov eax, dword [esi]
jmp 0x4c9852
mov eax, esi
push 0x5116a0
push eax
call fcn.004f1027
mov edi, eax
add esp, 8
test edi, edi
jne 0x4c9886
cmp dword [esi + 0x14], 8
jb 0x4c986e
mov esi, dword [esi]
push 0x5116a8
push esi
call fcn.004f1027
mov edi, eax
add esp, 8
test edi, edi
jne 0x4c9886
xor bl, bl
jmp 0x4c98ed
push 2
push 0
push edi
call fcn.004f0921
mov eax, dword [ebp - 0x38]
push edi
push 4
push 1
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push eax
call fcn.004f0ef9
add esp, 0x1c
cmp eax, 4
jne 0x4c98c9
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push edi
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push 1
push eax
call fcn.004f0ef9
add esp, 0x10
push edi
call fcn.004f03ba
movzx eax, byte [0x5641b2]
add esp, 4
mov ecx, ebx
push eax
lea eax, [ebp - 0x28]
push eax
push 0
lea eax, [ebp - 0x3c]
push eax
call fcn.004c7450
mov bl, 1
cmp dword [ebp - 0x14], 0x10
jb 0x4c98fe
push dword [ebp - 0x28]
call fcn.004eb50e
add esp, 4
push dword [ebp - 0x40]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bl
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.004ebd2c
mov esp, ebp
pop ebp
ret 4
Function at 0x4ca430
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50ccf8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x559540]
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 ebx, ecx
mov esi, dword [ebp + 8]
lea eax, [ebx + 0x14]
push eax
mov dword [ebp - 0x44], vtable.ProtocolFilters::AutoLock.0
mov dword [ebp - 0x40], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
mov ecx, ebx
call fcn.004cd3a0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
mov ecx, ebx
call fcn.004c8960
mov edi, dword [ebx]
mov esi, eax
cmp esi, edi
je 0x4ca4f4
cmp dword [esi + 0x24], 0x10
lea edx, [esi + 0x10]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x3c], eax
jb 0x4ca4af
mov edx, dword [edx]
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
mov edi, dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
cmp edi, eax
cmovb eax, edi
push eax
push edx
push ecx
call fcn.004be5db
add esp, 0xc
test eax, eax
jne 0x4ca4e8
mov ecx, dword [ebp - 0x3c]
mov edx, edi
cmp edx, ecx
jae 0x4ca4df
or eax, 0xffffffff
jmp 0x4ca4e6
xor eax, eax
cmp edx, ecx
setne al
test eax, eax
mov edi, dword [ebx]
sets al
mov dword [ebp - 0x3c], esi
test al, al
je 0x4ca4f7
mov dword [ebp - 0x3c], edi
lea esi, [ebp - 0x3c]
mov esi, dword [esi]
cmp esi, edi
je 0x4ca599
push 0
push dword [esi + 0x28]
push dword [ebx + 0x10]
call fcn.004f0921
push dword [ebx + 0x10]
lea eax, [ebp - 0x38]
push 0x10
push 1
push eax
call fcn.004f07e6
add esp, 0x1c
cmp eax, 0x10
jne 0x4ca599
push 0
push dword [esi + 0x28]
push dword [ebx + 0x10]
call fcn.004f0921
push dword [ebx + 0x10]
xor eax, eax
push 0x10
mov word [ebp - 0x36], ax
lea eax, [ebp - 0x38]
push 1
push eax
call fcn.004f0ef9
add esp, 0x1c
cmp eax, 0x10
jne 0x4ca599
mov edi, dword [esi + 0x40]
test edi, edi
je 0x4ca57e
mov dword [ebp - 0x3c], edi
lea ecx, [edi + 0x18]
mov byte [ebp - 4], 2
call fcn.004c5cf0
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.004c5cf0
push edi
call fcn.004eb50e
add esp, 4
push esi
lea eax, [ebp - 0x3c]
mov ecx, ebx
push eax
call fcn.004ca7e0
push dword [ebx + 0x10]
call fcn.004f04e4
add esp, 4
mov bl, 1
jmp 0x4ca59b
xor bl, bl
cmp dword [ebp - 0x14], 0x10
jb 0x4ca5ac
push dword [ebp - 0x28]
call fcn.004eb50e
add esp, 4
push dword [ebp - 0x40]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bl
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.004ebd2c
mov esp, ebp
pop ebp
ret 4
Function at 0x4cc610
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50d1e8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x559540]
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 edi, ecx
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
cmp dword [edi + 0x1c], 8
lea eax, [edi + 8]
mov dword [ebp - 4], 0
mov bl, 1
jb 0x4cc663
mov eax, dword [eax]
push 0x5116a0
push eax
call fcn.004f1027
mov esi, eax
add esp, 8
test esi, esi
jne 0x4cc67e
xor bl, bl
jmp 0x4cc732
push esi
push 4
lea eax, [ebp - 0x2c]
push 1
push eax
call fcn.004f07e6
add esp, 0x10
cmp eax, 4
jne 0x4cc729
jmp 0x4cc6a0
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0x7d0
ja 0x4cc727
mov eax, dword [ebp - 0x18]
cmp ecx, eax
ja 0x4cc6c6
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], ecx
cmovae eax, dword [ebp - 0x28]
mov byte [eax + ecx], 0
jmp 0x4cc6d3
sub ecx, eax
push 0
push ecx
lea ecx, [ebp - 0x28]
call fcn.004be157
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push esi
push dword [ebp - 0x2c]
cmovae eax, dword [ebp - 0x28]
push 1
push eax
call fcn.004f07e6
add esp, 0x10
cmp eax, dword [ebp - 0x2c]
jne 0x4cc727
movzx eax, byte [0x5641b2]
mov ecx, edi
push eax
lea eax, [ebp - 0x28]
push eax
push 0
lea eax, [ebp - 0x34]
push eax
call fcn.004c7450
push esi
push 4
lea eax, [ebp - 0x2c]
push 1
push eax
call fcn.004f07e6
add esp, 0x10
cmp eax, 4
je 0x4cc6a0
jmp 0x4cc729
xor bl, bl
push esi
call fcn.004f03ba
add esp, 4
cmp dword [ebp - 0x14], 0x10
jb 0x4cc743
push dword [ebp - 0x28]
call fcn.004eb50e
add esp, 4
mov al, bl
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.004ebd2c
mov esp, ebp
pop ebp
ret
Function at 0x4cc830
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50d218
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x559540]
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 ebx, ecx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
xor edi, edi
mov dword [ebp - 4], 0
push edi
push edi
push dword [ebx + 0x10]
call fcn.004f0921
add esp, 0xc
lea eax, [ebp - 0x38]
push dword [ebx + 0x10]
push 0x10
push 1
push eax
call fcn.004f07e6
add esp, 0x10
cmp eax, 0x10
sete al
test al, al
je 0x4cc9d9
mov ax, word [ebp - 0x36]
test ax, ax
jne 0x4cc8bd
movzx eax, word [ebp - 0x38]
add edi, eax
push 0
push edi
jmp 0x4cc87d
movzx ecx, ax
mov eax, dword [ebp - 0x18]
cmp ecx, eax
ja 0x4cc8db
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], ecx
cmovae eax, dword [ebp - 0x28]
mov byte [eax + ecx], 0
jmp 0x4cc8e8
sub ecx, eax
push 0
push ecx
lea ecx, [ebp - 0x28]
call fcn.004be157
push dword [ebx + 0x10]
movzx esi, word [ebp - 0x36]
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
push esi
cmovae eax, dword [ebp - 0x28]
push 1
push eax
call fcn.004f07e6
add esp, 0x10
cmp eax, esi
jne 0x4cc9d9
mov eax, dword [ebp - 0x30]
xorps xmm0, xmm0
mov dword [ebp - 0x58], eax
mov ecx, ebx
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x68], edi
movlpd qword [ebp - 0x60], xmm0
mov dword [ebp - 0x50], 0
call fcn.004c8960
mov esi, eax
cmp esi, dword [ebx]
je 0x4cc989
cmp dword [esi + 0x24], 0x10
lea edx, [esi + 0x10]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x3c], eax
jb 0x4cc94e
mov edx, dword [edx]
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
mov ebx, dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
cmp ebx, dword [ebp - 0x3c]
cmovb eax, ebx
push eax
push edx
push ecx
call fcn.004be5db
mov ebx, dword [ebp - 0x48]
add esp, 0xc
test eax, eax
jne 0x4cc987
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x18]
cmp edx, ecx
jb 0x4cc989
xor eax, eax
cmp edx, ecx
setne al
test eax, eax
jns 0x4cc9b7
lea eax, [ebp - 0x28]
mov ecx, ebx
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3d]
push eax
lea eax, [ebp - 0x3c]
push eax
push 0x5641b1
call fcn.004c6300
push eax
add eax, 0x10
mov ecx, ebx
push eax
push esi
lea eax, [ebp - 0x44]
push eax
call fcn.004c6d40
mov esi, dword [ebp - 0x44]
movdqu xmm0, xmmword [ebp - 0x68]
push 0
movdqu xmmword [esi + 0x28], xmm0
movdqu xmm0, xmmword [ebp - 0x58]
movdqu xmmword [esi + 0x38], xmm0
movzx eax, word [ebp - 0x38]
add edi, eax
push edi
jmp 0x4cc87d
cmp dword [ebp - 0x14], 0x10
jb 0x4cc9ea
push dword [ebp - 0x28]
call fcn.004eb50e
add esp, 4
mov al, 1
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.004ebd2c
mov esp, ebp
pop ebp
ret
Function at 0x4ccc00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x559540]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
cmp dword [eax + 0x14], 8
jb 0x4ccc23
mov eax, dword [eax]
push 0x5116b0
push eax
call fcn.004f1027
mov esi, eax
add esp, 8
test esi, esi
jne 0x4ccc4b
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ebd2c
mov esp, ebp
pop ebp
ret 8
push 0
mov ecx, edi
call fcn.004c5ed0
push esi
push 0x200
lea eax, [ebp - 0x204]
push 1
push eax
call fcn.004f07e6
add esp, 0x10
test eax, eax
je 0x4ccc9c
nop
push 1
push eax
lea eax, [ebp - 0x204]
mov ecx, edi
push eax
call fcn.004c5dc0
push esi
push 0x200
lea eax, [ebp - 0x204]
push 1
push eax
call fcn.004f07e6
add esp, 0x10
test eax, eax
jne 0x4ccc70
push esi
call fcn.004f03ba
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
mov al, 1
pop edi
pop esi
call fcn.004ebd2c
mov esp, ebp
pop ebp
ret 8
Function at 0x4cce90
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50d258
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x559540]
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 edi, ecx
mov esi, dword [ebp + 8]
lea eax, [edi + 0x14]
push eax
mov dword [ebp - 0x44], vtable.ProtocolFilters::AutoLock.0
mov dword [ebp - 0x40], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [ebp - 0x5c]
mov dword [ebp - 4], 0
call fcn.004c5cc0
push esi
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 1
push eax
mov ecx, edi
call fcn.004cd3a0
mov ebx, eax
push ebx
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.004c8960
mov esi, eax
cmp esi, dword [edi]
je 0x4ccf2c
cmp dword [esi + 0x24], 0x10
lea eax, [esi + 0x10]
mov ecx, dword [eax + 0x10]
jb 0x4ccf15
mov eax, dword [eax]
push ecx
push eax
push dword [ebx + 0x10]
mov ecx, ebx
push 0
call fcn.004be573
test eax, eax
js 0x4ccf2c
mov dword [ebp - 0x3c], esi
jmp 0x4ccf31
mov eax, dword [edi]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x24], 0x10
lea esi, [ebp - 0x3c]
mov esi, dword [esi]
jb 0x4ccf47
push dword [ebp - 0x38]
call fcn.004eb50e
add esp, 4
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], 0
mov byte [ebp - 0x38], 0
cmp esi, dword [edi]
je 0x4ccfcb
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
push 0
push dword [esi + 0x28]
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], eax
push dword [edi + 0x10]
call fcn.004f0921
push dword [edi + 0x10]
lea eax, [ebp - 0x20]
push 0x10
push 1
push eax
call fcn.004f07e6
add esp, 0x1c
cmp eax, 0x10
jne 0x4ccfcb
mov eax, dword [ebp + 0x10]
push 0
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], eax
push dword [esi + 0x28]
push dword [edi + 0x10]
call fcn.004f0921
push dword [edi + 0x10]
lea eax, [ebp - 0x20]
push 0x10
push 1
push eax
call fcn.004f0ef9
add esp, 0x1c
cmp eax, 0x10
jne 0x4ccfcb
push dword [edi + 0x10]
call fcn.004f04e4
add esp, 4
mov bl, 1
jmp 0x4ccfcd
xor bl, bl
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0
call fcn.004c5cf0
lea eax, [edi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bl
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.004ebd2c
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4cd210
Capabilities:
Create thread

Disassembly:
push esi
push edi
mov esi, ecx
call fcn.004cd260
push dword [esi + 0x58]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0
push 0
push esi
push 0x4ce080
push 0
push 0
call fcn.004eefa8
mov edi, eax
add esp, 0x18
test edi, edi
je 0x4cd257
mov ecx, dword [esi + 0x5c]
cmp ecx, 0xffffffff
je 0x4cd254
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x5c], 0xffffffff
mov dword [esi + 0x5c], edi
pop edi
pop esi
ret

Function at 0x4ce0d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ecx + 0x10]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.004f0ef9
add esp, 0x10
cmp eax, dword [ebp + 0xc]
sete al
pop ebp
ret 8
Function at 0x4ce1f0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x559540]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov eax, ecx
push edi
mov edi, eax
mov dword [ebp - 0x210], eax
mov edx, esi
sub edi, esi
jmp 0x4ce220
movzx eax, word [edx]
lea edx, [edx + 2]
mov word [edi + edx - 2], ax
test ax, ax
jne 0x4ce220
push 0
push 0x10
push 3
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, 0xffffffff
je 0x4ce25a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4ce25f
push 0
push esi
call edi
lea ecx, [ebp - 0x20c]
sub ecx, esi
jmp 0x4ce270
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x4ce270
lea ecx, [ebp - 0x20c]
add ecx, 0xfffffffe
lea esp, [esp]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x4ce290
mov eax, dword [str.SSL]
push 0
push 0x10
mov dword [ecx], eax
mov eax, dword [0x511808]
push 3
mov dword [ecx + 4], eax
mov ax, word [0x51180c]
push 0
push 0
mov word [ecx + 8], ax
lea eax, [ebp - 0x20c]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x4ce2df
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4ce2ea
push 0
lea eax, [ebp - 0x20c]
push eax
call edi
mov ecx, dword [ebp - 0x210]
lea eax, [ebp - 0x20c]
push eax
add ecx, 0x208
call fcn.004cc0c0
mov ecx, dword [ebp - 4]
test al, al
pop edi
setne al
xor ecx, ebp
pop esi
call fcn.004ebd2c
mov esp, ebp
pop ebp
ret 4

Function at 0x4d01f0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 4]
sub esp, 8
cmp eax, 0xffffffff
jne 0x4d0206
xor eax, eax
xor edx, edx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [ebp - 4]
mov esp, ebp
pop ebp
ret