joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002f30
Capabilities:
Check for time delay via gettickcount
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000a56f
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
push edi
mov eax, dword [0x1000f014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [edi + 0x2c]
mov dword [ebp - 0x18], esi
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov cx, word [edi + 4]
xorps xmm0, xmm0
mov dword [ebp - 0x14], eax
add cx, 7
movzx eax, cx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x34]
push eax
push 0
push 8
lea eax, [ebp - 0x20]
mov dword [ebp - 0x34], 0
push eax
push dword [edi + 0x50]
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], 1
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [ebp - 0x20], 0
jge 0x10003018
nop word [eax + eax]
cmp dword [edi + 0x60], 0
je 0x10002fd0
cmp dword [edi + 0x5c], 0
jne 0x10003087
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x14]
cmp eax, dword [edi + 0xc]
ja 0x1000308e
mov eax, dword [ebp - 0x10]
xorps xmm0, xmm0
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x34]
push eax
push 0
push 8
lea eax, [ebp - 0x20]
mov dword [ebp - 0x34], 0
push eax
push dword [edi + 0x50]
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], 1
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [ebp - 0x20], 0
jl 0x10002fc0
mov eax, dword [ebp - 0x10]
xorps xmm0, xmm0
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x34]
push eax
push 0
push 8
lea eax, [ebp - 0x20]
mov dword [ebp - 0x14], 0
push eax
push dword [edi + 0x50]
mov dword [ebp - 0x34], 0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], 1
call dword [sym.imp.KERNEL32.dll_ReadFile]
test byte [ebp - 0x20], 8
je 0x10003063
mov eax, dword [edi]
mov ecx, edi
push 1
mov eax, dword [eax + 0x50]
call eax
mov dword [ebp - 0x14], eax
mov edi, dword [ebp - 0x14]
mov dword [ebp - 4], 3
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0x1c]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edi, 1
jmp 0x10003066
mov edi, 2
jmp 0x10003066
Function at 0x100030a0
Capabilities:
Check for time delay via gettickcount
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000a597
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x1000f014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [edi + 0x2c]
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dx, word [edi + 4]
add dx, 7
mov dword [ebp - 0x14], eax
movzx eax, dx
mov dword [ebp - 0x10], eax
nop dword [eax]
mov dword [ebp - 0x18], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push eax
push 0
push 8
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 1
push eax
push dword [edi + 0x50]
movups xmmword [ebp - 0x2c], xmm0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x1c]
mov al, cl
and al, 0x81
cmp al, 1
je 0x1000315f
and cl, 0x88
cmp cl, 8
je 0x1000315b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x14]
cmp eax, dword [edi + 0x14]
ja 0x10003154
cmp dword [edi + 0x60], 0
mov eax, dword [ebp - 0x10]
je 0x100030f0
cmp dword [edi + 0x5c], 0
je 0x100030f0
mov edi, 1
jmp 0x10003164
mov edi, 3
jmp 0x10003164
xor edi, edi
jmp 0x10003164
mov edi, 4
mov dword [ebp - 4], 3
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0x1c]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10003190
Capabilities:
Check for time delay via gettickcount
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000a597
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x1000f014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [edi + 0x2c]
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dx, word [edi + 4]
add dx, 7
mov dword [ebp - 0x14], eax
movzx eax, dx
mov dword [ebp - 0x10], eax
nop dword [eax]
mov dword [ebp - 0x18], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push eax
push 0
push 8
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 1
push eax
push dword [edi + 0x50]
movups xmmword [ebp - 0x2c], xmm0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x1c]
mov al, cl
and al, 0x88
cmp al, 8
je 0x10003252
and cl, 0x81
cmp cl, 1
je 0x1000324b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x14]
cmp eax, dword [edi + 0x14]
ja 0x10003244
cmp dword [edi + 0x60], 0
mov eax, dword [ebp - 0x10]
je 0x100031e0
cmp dword [edi + 0x5c], 0
je 0x100031e0
mov edi, 1
jmp 0x10003254
mov edi, 3
jmp 0x10003254
mov edi, 4
jmp 0x10003254
xor edi, edi
mov dword [ebp - 4], 3
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0x1c]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10003280
Capabilities:
Check for time delay via gettickcount
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000a597
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x1000f014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [edi + 0x2c]
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dx, word [edi + 4]
xorps xmm0, xmm0
mov dword [ebp - 0x14], eax
add dx, 7
movzx eax, dx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x30]
push eax
push 0
push 8
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x30], 0
push eax
push dword [edi + 0x50]
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 1
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [ebp - 0x1c], 0
jge 0x10003356
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 8]
ja 0x1000339a
cmp dword [edi + 0x5c], 0
jne 0x10003393
mov eax, dword [ebp - 0x10]
xorps xmm0, xmm0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x30]
push eax
push 0
push 8
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x30], 0
push eax
push dword [edi + 0x50]
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 1
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [ebp - 0x1c], 0
jl 0x10003300
mov eax, dword [ebp - 0x10]
xorps xmm0, xmm0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x30]
push eax
push 0
push 8
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x30], 0
push eax
push dword [edi + 0x50]
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 1
call dword [sym.imp.KERNEL32.dll_ReadFile]
test byte [ebp - 0x1c], 1
je 0x100033a1
mov edi, 4
jmp 0x100033a3
mov edi, 1
jmp 0x100033a3
mov edi, 3
jmp 0x100033a3
xor edi, edi
mov dword [ebp - 4], 3
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0x1c]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x100033d0
Capabilities:
Check for time delay via gettickcount
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000a597
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x1000f014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [edi + 0x2c]
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dx, word [edi + 4]
xorps xmm0, xmm0
mov dword [ebp - 0x14], eax
add dx, 7
movzx eax, dx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x30]
push eax
push 0
push 8
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x30], 0
push eax
push dword [edi + 0x50]
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 1
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [ebp - 0x1c], 0
jge 0x100034a4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 8]
ja 0x100034e8
cmp dword [edi + 0x60], 0
je 0x1000346e
cmp dword [edi + 0x5c], 0
jne 0x100034e1
mov eax, dword [ebp - 0x10]
xorps xmm0, xmm0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x30]
push eax
push 0
push 8
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x30], 0
push eax
push dword [edi + 0x50]
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 1
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [ebp - 0x1c], 0
jl 0x10003450
mov eax, dword [ebp - 0x10]
xorps xmm0, xmm0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x30]
push eax
push 0
push 8
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x30], 0
push eax
push dword [edi + 0x50]
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 1
call dword [sym.imp.KERNEL32.dll_ReadFile]
test byte [ebp - 0x1c], 1
je 0x100034ef
mov edi, 4
jmp 0x100034f1
mov edi, 1
jmp 0x100034f1
mov edi, 3
jmp 0x100034f1
xor edi, edi
mov dword [ebp - 4], 3
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0x1c]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x100038b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000a63f
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x1000f014]
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 esi, dword [edi + 0x2c]
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], esi
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov eax, dword [edi + 0x38]
mov edx, dword [edi + 0x68]
mov ecx, dword [edi + 0x6c]
shl eax, 5
add edx, eax
mov dword [edi + 0x64], 1
add ecx, eax
mov eax, dword [ebp + 0x28]
cmp eax, 0x10000
jbe 0x10003931
xor eax, eax
mov dword [ecx + 4], eax
mov eax, dword [ebp + 0x28]
mov word [ecx + 0xc], ax
mov eax, 0x8000
mov word [ecx + 0xe], ax
jmp 0x1000393e
mov word [ecx + 4], ax
mov eax, 0x8000
mov word [ecx + 6], ax
push 1
push edx
mov ecx, edi
call fcn.100056b0
test eax, eax
jne 0x10003958
mov dword [ebp - 0x20], 2
jmp 0x10003a13
push dword [ebp + 0x20]
mov eax, dword [edi]
mov ecx, edi
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
mov eax, dword [eax + 0x10]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x10003a13
push dword [edi + 0x14]
mov ecx, edi
push 1
call fcn.10005920
movzx ecx, word [edi + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x38]
push eax
push 0
push 0xc
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x38], 0
push eax
push dword [edi + 0x50]
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [edi + 0x60], 0
je 0x100039dd
cmp dword [edi + 0x5c], 0
je 0x100039dd
mov dword [ebp - 0x20], 1
jmp 0x10003a13
mov eax, dword [ebp - 0x20]
cmp eax, 2
jne 0x100039ee
mov dword [ebp - 0x20], 4
jmp 0x10003a13
test eax, eax
jne 0x10003a0c
push dword [ebp + 0x28]
push dword [edi + 0x3c]
push dword [ebp - 0x24]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [ebp - 0x20], 0
jmp 0x10003a13
mov dword [ebp - 0x20], 3
mov dword [edi + 0x64], 0
mov dword [ebp - 4], 1
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x1c]
mov eax, dword [ebp - 0x20]
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.100091f8
mov esp, ebp
pop ebp
ret 0x24
Function at 0x10003b50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000a67f
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x1000f014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x20], eax
mov esi, dword [eax + 0x2c]
mov edi, dword [ebp + 0x24]
mov dword [ebp - 0x28], esi
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp + 0x28]
mov eax, dword [ebp - 0x20]
push edi
mov edi, eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 0
mov dword [eax + 0x64], 1
push dword [edi + 0x3c]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [edi + 0x38]
add esp, 0xc
mov edx, dword [edi + 0x68]
mov ecx, dword [edi + 0x6c]
shl eax, 5
add edx, eax
add ecx, eax
mov eax, dword [ebp + 0x28]
cmp eax, 0x10000
jbe 0x10003bec
xor edi, edi
mov word [ecx + 0xc], ax
mov eax, 0x8000
mov dword [ecx + 4], edi
mov edi, dword [ebp - 0x20]
mov word [ecx + 0xe], ax
jmp 0x10003bf9
mov word [ecx + 4], ax
mov eax, 0x8000
mov word [ecx + 6], ax
push 0
push edx
mov ecx, edi
call fcn.100056b0
test eax, eax
jne 0x10003c10
mov dword [ebp - 0x24], 2
jmp 0x10003c75
push dword [ebp + 0x20]
mov eax, dword [edi]
mov ecx, edi
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
mov eax, dword [eax + 0x10]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
test eax, eax
jne 0x10003c75
push dword [edi + 0x14]
mov ecx, edi
push eax
call fcn.10005920
movzx eax, word [edi + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x3c]
push eax
push 0
push 0xc
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x3c], 0
push eax
push dword [edi + 0x50]
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [edi + 0x64], 0
mov dword [ebp - 4], 1
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0x1c]
mov eax, dword [ebp - 0x24]
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.100091f8
mov esp, ebp
pop ebp
ret 0x24
Function at 0x10004190
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000a6bf
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x1000f014]
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 esi, dword [edi + 0x2c]
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], esi
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov eax, dword [edi + 0x38]
mov edx, dword [edi + 0x68]
mov ecx, dword [edi + 0x6c]
shl eax, 5
add edx, eax
mov dword [edi + 0x64], 1
add ecx, eax
mov dword [ebp - 0x20], 0
mov eax, dword [ebp + 0x28]
cmp eax, 0x10000
jbe 0x10004218
xor eax, eax
mov dword [ecx + 4], eax
mov eax, dword [ebp + 0x28]
mov word [ecx + 0xc], ax
mov eax, 0x8000
mov word [ecx + 0xe], ax
jmp 0x10004225
mov word [ecx + 4], ax
mov eax, 0x8000
mov word [ecx + 6], ax
push 1
push edx
mov ecx, edi
call fcn.100056b0
test eax, eax
jne 0x1000423f
mov dword [ebp - 0x20], 2
jmp 0x100042d1
push dword [ebp + 0x20]
mov eax, dword [edi]
mov ecx, edi
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
mov eax, dword [eax + 0x28]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
test eax, eax
jne 0x100042d1
push dword [edi + 0x14]
mov ecx, edi
push 1
call fcn.10005920
movzx ecx, word [edi + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x3c]
push eax
push 0
push 0xc
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x3c], 0
push eax
push dword [edi + 0x50]
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [edi + 0x60], 0
je 0x100042b4
cmp dword [edi + 0x5c], 0
jne 0x100042d1
mov eax, dword [ebp - 0x24]
cmp eax, 2
je 0x100042d1
test eax, eax
jne 0x100042d1
push dword [ebp + 0x28]
push dword [edi + 0x3c]
push dword [ebp - 0x28]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [edi + 0x64], 0
mov dword [ebp - 4], 1
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0x1c]
mov eax, dword [ebp - 0x20]
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.100091f8
mov esp, ebp
pop ebp
ret 0x24
Function at 0x10004480
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000a6ff
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x1000f014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x20], eax
mov esi, dword [eax + 0x2c]
mov edi, dword [ebp + 0x24]
mov dword [ebp - 0x24], esi
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp + 0x28]
mov ecx, dword [ebp - 0x20]
push edi
mov edi, ecx
mov dword [ebp - 4], 0
mov dword [ecx + 0x64], 1
push dword [edi + 0x3c]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [edi + 0x38]
add esp, 0xc
mov edx, dword [edi + 0x68]
mov ecx, dword [edi + 0x6c]
shl eax, 5
add edx, eax
add ecx, eax
mov eax, dword [ebp + 0x28]
cmp eax, 0x10000
jbe 0x10004515
xor edi, edi
mov word [ecx + 0xc], ax
mov eax, 0x8000
mov dword [ecx + 4], edi
mov edi, dword [ebp - 0x20]
mov word [ecx + 0xe], ax
jmp 0x10004522
mov word [ecx + 4], ax
mov eax, 0x8000
mov word [ecx + 6], ax
push 0
push edx
mov ecx, edi
call fcn.100056b0
test eax, eax
jne 0x10004538
lea edi, [eax + 2]
jmp 0x100045d7
push dword [ebp + 0x20]
mov eax, dword [edi]
mov ecx, edi
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
mov eax, dword [eax + 0x28]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
mov edi, eax
test edi, edi
jne 0x100045d7
mov eax, dword [ebp - 0x20]
mov ecx, eax
push dword [eax + 0x14]
push edi
call fcn.10005920
mov ecx, dword [ebp - 0x20]
mov edi, eax
xorps xmm0, xmm0
mov dword [ebp - 0x38], 0
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x1c], 1
movzx eax, word [ecx + 8]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x38]
push eax
push 0
push 0xc
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x14], 0
push eax
push dword [ecx + 0x50]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x60], 0
mov dword [eax + 0x64], 0
je 0x100045c4
cmp dword [eax + 0x5c], 0
je 0x100045c4
mov edi, 1
jmp 0x100045d7
cmp edi, 2
jne 0x100045d0
mov edi, 4
jmp 0x100045d7
neg edi
sbb edi, edi
and edi, 3
mov dword [ebp - 4], 1
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x1c]
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.100091f8
mov esp, ebp
pop ebp
ret 0x24
Function at 0x100046c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000a737
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x1000f014]
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 esi, dword [edi + 0x2c]
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ax, word [edi + 6]
xorps xmm0, xmm0
mov cl, byte [ebp + 8]
add ax, 2
movzx eax, ax
mov byte [edi + 0x34], cl
add cl, cl
mov dword [ebp - 0x18], eax
movzx eax, cl
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x30]
push eax
push 0
push 0xc
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x30], 0
push eax
push dword [edi + 0x50]
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 1
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 4], 0
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x1c]
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.100091f8
mov esp, ebp
pop ebp
ret 4
Function at 0x10004770
Capabilities:
Check for time delay via gettickcount
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x1000f014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x64], 0
je 0x1000479c
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100091f8
mov esp, ebp
pop ebp
ret 4
mov ax, word [esi + 6]
xorps xmm0, xmm0
add ax, 2
mov dword [ebp - 0x38], 0
movzx eax, ax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0xc], eax
mov al, byte [esi + 0x34]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
add al, al
push edi
movzx eax, al
mov edi, eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x10], 1
push eax
push 0
push 0xc
lea eax, [ebp - 0x10]
or edi, 4
push eax
push dword [esi + 0x50]
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 8], edi
call ebx
mov eax, dword [ebp - 0x1c]
xorps xmm0, xmm0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x38]
push eax
push 0
push 0xc
lea eax, [ebp - 0x10]
mov dword [ebp - 0x38], 0
push eax
push dword [esi + 0x50]
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x10], 1
mov dword [ebp - 8], edi
call ebx
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x1c]
xorps xmm0, xmm0
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x38]
push eax
push 0
push 0xc
lea eax, [ebp - 0x10]
mov dword [ebp - 0x38], 0
push eax
push dword [esi + 0x50]
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x10], 1
call ebx
cmp dword [ebp + 8], 0
je 0x10004903
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov cx, word [esi + 4]
add cx, 7
mov dword [ebp - 0x24], eax
push 0x14
movzx edi, cx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0
push 8
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 1
push eax
push dword [esi + 0x50]
xorps xmm0, xmm0
mov dword [ebp - 0x1c], edi
movups xmmword [ebp - 0x14], xmm0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test byte [ebp - 0x20], 0x88
je 0x10004903
cmp dword [esi + 0x60], 0
je 0x100048be
cmp dword [esi + 0x5c], 0
jne 0x10004918
call ebx
sub eax, dword [ebp - 0x24]
cmp eax, dword [esi + 0x18]
ja 0x10004930
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0
push 8
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 1
push eax
push dword [esi + 0x50]
xorps xmm0, xmm0
mov dword [ebp - 0x1c], edi
movups xmmword [ebp - 0x14], xmm0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test byte [ebp - 0x20], 0x88
jne 0x100048b2
pop edi
pop ebx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100091f8
mov esp, ebp
pop ebp
ret 4
pop edi
pop ebx
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100091f8
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
mov eax, 2
pop edi
pop ebx
xor ecx, ebp
pop esi
call fcn.100091f8
mov esp, ebp
pop ebp
ret 4