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

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
xor edi, edi
mov ebp, edi
mov ebx, edi
mov dword [esi + 0x6af80], 2
jmp 0x6104cf
cmp dword [esi + 0x6af90], 3
jb 0x610358
mov edx, dword [esi + 0x6af84]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
movzx ecx, byte [edx + esi + 0x1af72]
xor ecx, eax
mov eax, 0x7fff
and ecx, eax
and edx, eax
mov dword [esi + 0x6af7c], ecx
mov ebp, dword [esi + ecx*4 + 0x4af70]
mov dword [esi + edx*4 + 0x2af70], ebp
mov ecx, dword [esi + 0x6af7c]
mov eax, dword [esi + 0x6af84]
mov dword [esi + ecx*4 + 0x4af70], eax
test ebp, ebp
je 0x610394
mov eax, dword [esi + 0x6af84]
sub eax, ebp
cmp eax, 0x7efa
ja 0x610394
mov eax, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], eax
jbe 0x61037f
mov dword [esi + 0x6afa0], eax
push ebp
push esi
call fcn.00610e47
mov ebx, eax
mov eax, dword [esi + 0x6af90]
cmp ebx, eax
jbe 0x610394
mov ebx, eax
cmp ebx, 3
jb 0x610464
lea eax, [ebx - 3]
push eax
mov eax, dword [esi + 0x6af84]
sub eax, dword [esi + 0x6af88]
push eax
push esi
call fcn.0060fe67
sub dword [esi + 0x6af90], ebx
mov dword [esp + 0x14], eax
cmp ebx, dword [esi + 0x6af98]
ja 0x61042a
cmp dword [esi + 0x6af90], 3
jb 0x61042a
dec ebx
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
movzx ecx, byte [esi + edx + 0x1af72]
xor ecx, eax
mov eax, 0x7fff
and ecx, eax
and edx, eax
mov dword [esi + 0x6af7c], ecx
mov ebp, dword [esi + ecx*4 + 0x4af70]
mov dword [esi + edx*4 + 0x2af70], ebp
mov ecx, dword [esi + 0x6af7c]
mov eax, dword [esi + 0x6af84]
mov dword [esi + ecx*4 + 0x4af70], eax
sub ebx, 1
jne 0x6103d0
mov eax, dword [esp + 0x14]
jmp 0x610480
add dword [esi + 0x6af84], ebx
mov ebx, edi
mov eax, dword [esi + 0x6af84]
movzx ecx, byte [eax + esi + 0x1af70]
mov dword [esi + 0x6af7c], ecx
movzx eax, byte [eax + esi + 0x1af71]
shl ecx, 5
xor eax, ecx
and eax, 0x7fff
mov dword [esi + 0x6af7c], eax
mov eax, dword [esp + 0x14]
jmp 0x610486
mov eax, dword [esi + 0x6af84]
movzx eax, byte [eax + esi + 0x1af70]
push eax
push edi
push esi
call fcn.0060fe67
dec dword [esi + 0x6af90]
inc dword [esi + 0x6af84]
test eax, eax
je 0x6104bd
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x61049e
lea edx, [esi + 0x1af70]
add edx, ecx
jmp 0x6104a0
mov edx, edi
mov eax, dword [esi + 0x6af84]
push edi
sub eax, ecx
push eax
push edx
push esi
call fcn.006106b3
mov eax, dword [esi + 0x6af84]
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x6104cf
push esi
call fcn.00610587
cmp dword [esi + 0x6af90], edi
jne 0x610306
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x6104ed
lea edi, [esi + 0x1af70]
add edi, ecx
mov eax, dword [esi + 0x6af84]
push 1
sub eax, ecx
push eax
push edi
push esi
call fcn.006106b3
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x610d1a
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
push 7
pop ecx
lea eax, [ebx - 1]
cmp ecx, eax
push 0x6fed88
sbb al, al
inc al
push eax
push esi
call fcn.0060efd9
xor ebp, ebp
xor edi, edi
inc ebp
mov dword [esi + 0x6af78], edi
cmp dword [esi + 0x6af70], edi
jne 0x610d61
mov dword [esi + 0x6af78], ebp
mov dword [esi + 0x6af70], 0x10000
push 0x1fffc
lea eax, [esi + 0x4af70]
mov dword [esi + 0x6af6c], edi
push edi
push eax
call fcn.0062e000
movzx eax, word [ebx*8 + 0x6fe81a]
add esp, 0xc
mov dword [esi + 0x6af98], eax
movzx eax, word [ebx*8 + 0x6fe818]
mov dword [esi + 0x6af9c], eax
movzx eax, word [ebx*8 + 0x6fe81c]
push 2
mov dword [esi + 0x6afa0], eax
movzx eax, word [ebx*8 + 0x6fe81e]
pop ecx
mov dword [esi + 0x6af94], eax
cmp ebx, ecx
jg 0x610dc5
mov eax, dword [esp + 0x1c]
or word [eax], 4
jmp 0x610dd1
cmp ebx, 8
jl 0x610dd1
mov eax, dword [esp + 0x1c]
or word [eax], cx
push 0x10000
lea ebx, [esi + 0x1af70]
mov dword [esi + 0x6af84], edi
push ebx
push esi
mov dword [esi + 0x6af74], edi
call dword [esi + 0xc]
mov dword [esi + 0x6af90], eax
test eax, eax
je 0x610e34
cmp eax, 0xffffffff
je 0x610e34
mov dword [esi + 0x6af8c], edi
cmp eax, 0x106
jae 0x610e0f
push esi
call fcn.00610587
mov dword [esi + 0x6af7c], edi
mov ecx, edi
movzx eax, byte [ebx + edi]
shl ecx, 5
xor ecx, eax
and ecx, 0x7fff
inc edi
mov dword [esi + 0x6af7c], ecx
cmp edi, 2
jb 0x610e17
jmp 0x610e40
mov dword [esi + 0x6af8c], ebp
mov dword [esi + 0x6af90], edi
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x61214b
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov edx, dword [esp + 4]
movsx eax, byte [esp + 8]
mov ecx, dword [edx]
xor eax, ecx
movzx eax, al
shr ecx, 8
mov eax, dword [eax*4 + 0x6fe880]
xor eax, ecx
mov ecx, dword [edx + 8]
mov dword [edx], eax
movzx eax, al
add eax, dword [edx + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6fe880]
mov dword [edx + 8], ecx
ret 8

Function at 0x64cea5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0064cb68

Function at 0x64ceb0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0064cce9
Function at 0x661fd2
Capabilities:
Encode data using base64

Disassembly:
mov eax, 0x6737ed
call fcn.00629210
sub esp, 0x20
push esi
mov esi, dword [ebp + 0x10]
xor ecx, ecx
mov dword [ebp - 0x14], ecx
test esi, esi
jne 0x662002
call fcn.00661f83
mov ecx, dword [ebp + 8]
push eax
call fcn.0040ab3b
mov eax, dword [ebp + 8]
jmp 0x6621b8
push ebx
push edi
push 3
mov eax, esi
mov dword [ebp - 0x18], 0xf
xor edx, edx
mov dword [ebp - 0x1c], ecx
pop edi
div edi
mov byte [ebp - 0x2c], cl
mov ebx, edx
mov dword [ebp - 0x10], ebx
xor edx, edx
mov dword [ebp - 4], ecx
lea eax, [esi + 2]
div edi
mov eax, esi
lea ecx, [ebp - 0x2c]
sub eax, edx
xor edx, edx
add eax, 2
div edi
shl eax, 2
push eax
call fcn.0040a3a5
sub esi, ebx
xor edx, edx
mov eax, esi
mov esi, dword [ebp + 0xc]
div edi
mov edi, eax
test edi, edi
je 0x6620dd
movzx eax, byte [esi]
lea ecx, [ebp - 0x2c]
shr eax, 2
movzx eax, byte [eax + 0x70d710]
push eax
push 1
call fcn.00409c63
mov cl, byte [esi]
mov al, byte [esi + 1]
and cl, 3
shr al, 4
shl cl, 4
add cl, al
movzx eax, cl
lea ecx, [ebp - 0x2c]
movzx eax, byte [eax + 0x70d710]
push eax
push 1
call fcn.00409c63
mov cl, byte [esi + 1]
mov al, byte [esi + 2]
and cl, 0xf
shr al, 6
shl cl, 2
add cl, al
movzx eax, cl
lea ecx, [ebp - 0x2c]
movzx eax, byte [eax + 0x70d710]
push eax
push 1
call fcn.00409c63
movzx eax, byte [esi + 2]
lea ecx, [ebp - 0x2c]
and eax, 0x3f
movzx eax, byte [eax + 0x70d710]
push eax
push 1
call fcn.00409c63
add esi, 3
sub edi, 1
jne 0x662055
test ebx, ebx
je 0x66218d
xor al, al
mov word [ebp + 0x10], 0
mov byte [ebp + 0xf], al
xor bh, bh
mov byte [ebp + 0x12], al
xor bl, bl
mov eax, dword [ebp - 0x10]
test al, al
je 0x66211b
movzx eax, al
push eax
lea eax, [ebp + 0x10]
push esi
push eax
call fcn.0062bfb0
mov al, byte [ebp + 0x12]
add esp, 0xc
mov bl, byte [ebp + 0x11]
mov bh, byte [ebp + 0x10]
mov byte [ebp + 0xf], al
movzx eax, bh
lea ecx, [ebp - 0x2c]
shr eax, 2
xor esi, esi
inc esi
movzx eax, byte [eax + 0x70d710]
push eax
push esi
call fcn.00409c63
and bh, 3
lea ecx, [ebp - 0x2c]
mov al, bl
shl bh, 4
shr al, 4
add bh, al
movzx eax, bh
movzx eax, byte [eax + 0x70d710]
push eax
push esi
call fcn.00409c63
cmp dword [ebp - 0x10], 2
lea ecx, [ebp - 0x2c]
jne 0x66217a
mov al, byte [ebp + 0xf]
and bl, 0xf
shr al, 6
shl bl, 2
add bl, al
movzx eax, bl
movzx eax, byte [eax + 0x70d710]
push eax
jmp 0x66217c
push 0x3d
push esi
call fcn.00409c63
push 0x3d
push esi
lea ecx, [ebp - 0x2c]
call fcn.00409c63
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x2c]
xor ebx, ebx
mov ecx, esi
push eax
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
call fcn.0040a5bc
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040abbf
pop edi
mov eax, esi
pop ebx
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1001a27
Capabilities:
Encode data using xor

Disassembly:
movzx ecx, byte [ecx]
or eax, ecx
jmp 0x1001a7e
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov eax, esi
shr eax, 2
push edi
mov edi, dword [ebp + 0x10]
test eax, eax
jle 0x1001a68
push ebx
movzx edx, byte [ecx]
dec eax
inc ecx
movzx ebx, byte [ecx]
shl ebx, 8
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or edx, ebx
inc ecx
xor edi, edx
test eax, eax
jg 0x1001a41
pop ebx
and esi, 3
xor eax, eax
dec esi
je 0x1001a1b
dec esi
je 0x10028ae
dec esi
je 0x10028a7
xor eax, edi
pop edi
pop esi
pop ebp
ret 0xc
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
movzx edx, byte [ecx]
shl edx, 8
or eax, edx
inc ecx
jmp 0x1001a1b
Function at 0x1001cc1
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov dword [ebp - 0x220], eax
call fcn.01006b8f
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov esi, dword [sym.imp.msvcrt.dll_setvbuf]
xor ebx, ebx
push ebx
push 4
add eax, 0x20
push ebx
push eax
call esi
mov eax, dword [sym.imp.msvcrt.dll__iob]
push ebx
push 4
add eax, 0x40
push ebx
push eax
call esi
add esp, 0x20
lea eax, [ebp - 0x21c]
push eax
call fcn.0100683b
push 0xc10
mov dword [ebp - 0x18], ebx
call dword [sym.imp.msvcrt.dll_malloc]
mov esi, eax
pop ecx
cmp esi, ebx
je 0x1008bee
xor eax, eax
push 0x4f
mov word [esi + 0x80], ax
lea eax, [esi + 0x9b4]
push 0x20
push eax
mov dword [esi + 0xa0], ebx
mov dword [esi + 0xa4], ebx
mov dword [esi + 0xa8], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x84], ebx
mov byte [esi + 0xb04], bl
mov dword [esi + 0xac], ebx
mov dword [esi + 0xc0c], ebx
call sub.msvcrt.dll_memset
add esp, 0xc
push esi
mov byte [esi + 0xa03], bl
call fcn.01003b85
push 0x1003934
mov edi, 0x1004fb0
push edi
push 0x1001eb4
lea eax, [esi + 0x1b4]
push 0x800
push eax
call fcn.01001711
lea eax, [esi + 0x1b4]
push eax
push edi
mov edi, dword [sym.imp.msvcrt.dll_printf]
call edi
add esp, 0x1c
lea eax, [ebp - 0x21c]
push eax
push esi
call fcn.010054fd
cmp eax, ebx
je 0x1008c16
mov dword [esi + 8], eax
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0x220]
push dword [ebp + 8]
push esi
call fcn.01005382
test eax, eax
je 0x1008c16
cmp dword [esi], 1
je 0x1008c28
call dword [sym.imp.msvcrt.dll_clock]
mov dword [esi + 0x74], eax
mov eax, dword [esi]
dec eax
dec eax
jne 0x1008c36
lea eax, [ebp - 0x21c]
push eax
push esi
call fcn.01006ccd
test eax, eax
je 0x1001ead
lea eax, [ebp - 0x21c]
push eax
push esi
call fcn.01001eea
test eax, eax
je 0x1008c16
xor eax, eax
cmp dword [esi + 0x38], ebx
setg al
mov edi, eax
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x1001e72
lea ecx, [ebp - 0x21c]
push ecx
push eax
call fcn.01003271
mov eax, dword [esi + 0x84]
cmp eax, ebx
jne 0x1008c4f
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x1001e94
lea ecx, [ebp - 0x21c]
push ecx
push eax
call fcn.01002938
push esi
call dword [sym.imp.msvcrt.dll_free]
mov eax, edi
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010026ce
leave
ret
xor eax, eax
inc eax
jmp 0x1001e9e
lea eax, [ebp - 0x21c]
push 0x1008f18
push eax
call fcn.01006f95
pop ecx
pop ecx
lea eax, [ebp - 0x21c]
push eax
push ebx
call fcn.0100c27e
push 1
call dword [sym.imp.msvcrt.dll_exit]
lea eax, [ebp - 0x21c]
push eax
push esi
call fcn.0100c27e
jmp 0x1001ead
push 0x1008c60
call edi
xor eax, eax
jmp 0x1001e9d
dec eax
jne 0x1001e54
lea eax, [ebp - 0x21c]
push eax
push esi
call fcn.0100de0a
jmp 0x1001e4c
push eax
call fcn.0100f701
jmp 0x1001e80
Function at 0x10057ef
Capabilities:
Encode data using xor

Disassembly:
push esi
push eax
add eax, esi
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
jmp 0x1005832
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
and dword [ebx + 0x28], 0
mov dword [ebx + 0x18], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebx + 4], eax
xor eax, eax
cmp byte [ebp + 0x24], 0
mov word [ebx + 0xc], ax
mov eax, dword [ebp + 0x18]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x24], ecx
mov esi, 0x8000
je 0x10057db
xor eax, eax
and dword [ebx + 0x30], eax
mov word [ebx + 0x2c], ax
call fcn.010058e2
and dword [ebx + 0x20], 0
mov eax, esi
push 2
mov word [ebx + 0x3c], ax
mov eax, dword [ebx + 0x14]
pop ecx
mov dword [ebx + 0x34], esi
add eax, esi
push edi
movzx edi, byte [eax]
mov edx, dword [ebx + 0x20]
shl edx, 5
xor edx, edi
and edx, 0x7fff
inc eax
dec ecx
mov dword [ebx + 0x20], edx
jne 0x1005856
cmp byte [ebp + 0x24], cl
je 0x10058c9
mov edi, ebx
call fcn.01007ddf
push 8
pop edi
push 0x43
pop edx
mov eax, ebx
call fcn.01004256
push 0x4b
pop edx
call fcn.01004256
call fcn.010042e9
mov ecx, dword [ebp + 0x28]
inc eax
inc eax
cmp byte [ebp + 0x24], 0
movzx eax, ax
mov dword [ecx], eax
pop edi
je 0x10058b9
mov eax, dword [ebx + 0x14]
push esi
lea ecx, [eax + 0x8000]
push ecx
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [ebx + 0x28]
neg eax
sbb eax, eax
pop esi
and eax, 3
pop ebx
pop ebp
ret 0x24
xor eax, eax
mov ecx, esi
mov edx, dword [ebx + 0x18]
xor edi, edi
mov word [eax + edx], di
inc eax
inc eax
dec ecx
jne 0x10058cd
jmp 0x100587a
Function at 0x1007655
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x1001ca0
call fcn.010077c4
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x101702c
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
jne 0x100951e
xor esi, esi
inc esi
mov eax, dword [0x1017020]
cmp eax, esi
je 0x100953d
mov eax, dword [0x1017020]
test eax, eax
jne 0x1001c77
mov dword [0x1017020], esi
push 0x1001c9c
push 0x1001c8c
call fcn.010054d4
pop ecx
pop ecx
test eax, eax
jne 0x100954a
mov eax, dword [0x1017020]
cmp eax, esi
jne 0x1001c2c
push 0x1001c88
push 0x1001c80
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1017020], 2
cmp dword [ebp - 0x1c], ebx
jne 0x1001c39
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x10177cc], ebx
jne 0x1009558
push dword [0x1017034]
push dword [0x1017038]
push dword [0x1017030]
call fcn.01001cc1
add esp, 0xc
mov dword [0x1017014], eax
cmp dword [0x1017008], ebx
jne 0x10095aa
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov dword [0x1018218], esi
jmp 0x1001c08
call fcn.01007664
jmp 0x1001b99
cmp eax, esi
jne 0x100952d
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x1001bcf
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1001bbb
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1001c08
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x10095c4
push 0x10177cc
call fcn.01012549
pop ecx
test eax, eax
je 0x1001c45
push ebx
push 2
push ebx
call dword [0x10177cc]
jmp 0x1001c45
cmp dword [0x1018218], ebx
jne 0x10095b8
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1017014]
call fcn.0100763c
ret

Function at 0x100aa83
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
or ecx, 0xffffffff
sub ecx, dword [ebp + 0x10]
cmp dword [ebp + 0xc], 0
je 0x100aab5
mov eax, dword [ebp + 8]
push esi
movzx edx, byte [eax]
dec dword [ebp + 0xc]
movzx esi, cl
xor edx, esi
shr ecx, 8
xor ecx, dword [edx*4 + 0x10177d0]
inc eax
cmp dword [ebp + 0xc], 0
jne 0x100aa98
pop esi
or eax, 0xffffffff
sub eax, ecx
pop ebp
ret 0xc
Function at 0x100cbb2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov esi, 0x1000
push esi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [edi], ebx
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
mov dword [ebp + 0xc], eax
cmp eax, ebx
jne 0x100cbfd
push dword [ebp + 8]
push 0x1004fb0
push 0x100cccc
push dword [ebp + 0x10]
call fcn.01006f95
add esp, 0x10
xor eax, eax
jmp 0x100cc86
lea eax, [ebp - 0xc]
push eax
push 0x8000
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll__open]
mov ebx, eax
add esp, 0xc
cmp ebx, 0xffffffff
jne 0x100cc59
push dword [ebp + 8]
push 0x1004fb0
push 0x100a720
push dword [ebp + 0x10]
call fcn.01006f95
add esp, 0x10
jmp 0x100cc79
push esi
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.msvcrt.dll__read]
add esp, 0xc
cmp eax, 0xffffffff
je 0x100cc8d
test eax, eax
je 0x100cc59
push dword [ebp - 4]
push eax
push dword [ebp + 0xc]
call fcn.0100aa83
mov dword [ebp - 4], eax
push ebx
call dword [sym.imp.msvcrt.dll__eof]
pop ecx
test eax, eax
je 0x100cc33
mov eax, dword [ebp - 4]
mov dword [ebp - 8], 1
mov dword [edi], eax
push ebx
call dword [sym.imp.msvcrt.dll__close]
pop ecx
push dword [ebp + 0xc]
call dword [sym.imp.msvcrt.dll_free]
mov eax, dword [ebp - 8]
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0xc
push dword [ebp + 8]
push 0x1004fb0
push 0x100cca8
push dword [ebp + 0x10]
call fcn.01006f95
add esp, 0x10
jmp 0x100cc71

Function at 0x100e30c
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
push edi
test eax, eax
je 0x100e324
push eax
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
push dword [esi + 4]
call dword [sym.imp.msvcrt.dll_remove]
pop ecx
test eax, eax
je 0x100e34d
push dword [esi + 4]
push dword [esi + 8]
push 0x100a5f8
push 0x100e378
push dword [ebp + 0xc]
call fcn.01006f95
add esp, 0x14
mov eax, dword [esi + 8]
mov edi, dword [sym.imp.msvcrt.dll_free]
test eax, eax
je 0x100e35e
push eax
call edi
pop ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x100e369
push eax
call edi
pop ecx
push esi
call edi
pop ecx
xor eax, eax
pop edi
inc eax
pop esi
pop ebp
ret 8
Function at 0x100e91f
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
xor esi, esi
push esi
push esi
push 3
push esi
push esi
mov ebx, 0x40000000
push ebx
push dword [ebp + 8]
call edi
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x100e967
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push esi
push 3
push esi
push esi
push ebx
push dword [ebp + 8]
call edi
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x100e9dd
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0xc]
push eax
movzx eax, word [edi + 2]
push eax
movzx eax, word [edi]
push eax
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
or ebx, eax
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push dword [ebp - 4]
or ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, word [edi + 4]
push eax
call fcn.0100e3c7
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
or eax, ebx
jne 0x100e9dd
push dword [ebp + 8]
push 0x1004fb0
push 0x100e9e8
push dword [ebp + 0x10]
call fcn.01006f95
add esp, 0x10
xor eax, eax
jmp 0x100e9e0
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x100ea1a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 0xc], 0
and dword [ebp - 4], 0
push esi
mov esi, dword [sym.imp.msvcrt.dll__open]
push edi
mov edi, dword [ebp + 0xc]
push 0x8000
push edi
call esi
pop ecx
pop ecx
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x100ea62
push edi
push 0x1004fb0
push 0x100ec3c
push dword [ebp + 0x20]
call fcn.01006f95
add esp, 0x10
jmp 0x100ebb2
push ebx
mov ebx, dword [ebp + 0x20]
push ebx
push edi
lea eax, [ebp - 0x14]
push eax
call fcn.01006df0
test eax, eax
je 0x100eb97
cmp dword [ebp + 0x18], 0
je 0x100ea92
push ebx
push dword [ebp + 0x1c]
lea eax, [ebp - 0x14]
push eax
call dword [ebp + 0x18]
test eax, eax
je 0x100eb97
cmp dword [ebp + 0x10], 0
jne 0x100eaa4
mov dword [ebp - 0xc], 1
jmp 0x100eb97
mov ecx, dword [ebp + 0x14]
xor edx, edx
inc edx
cmp ecx, edx
ja 0x100eab0
mov ecx, edx
mov eax, 0x100000
cmp ecx, eax
jae 0x100eac3
cmp dword [ebp + 0x14], edx
ja 0x100eac6
mov dword [ebp + 0x14], edx
jmp 0x100eac6
mov dword [ebp + 0x14], eax
push dword [ebp + 0x14]
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
mov dword [ebp - 4], eax
test eax, eax
jne 0x100eaf3
push dword [ebp + 8]
push edi
push 0x100a5f8
push 0x100ec10
push ebx
call fcn.01006f95
add esp, 0x14
jmp 0x100eb97
push 0x180
push 0x8301
push dword [ebp + 8]
call esi
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
jne 0x100eb24
push dword [ebp + 8]
push 0x1004fb0
push 0x100ec3c
push ebx
call fcn.01006f95
add esp, 0x10
jmp 0x100eb8a
mov ebx, dword [sym.imp.msvcrt.dll__eof]
jmp 0x100eb5b
push dword [ebp + 0x14]
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.msvcrt.dll__read]
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x100ebbb
test esi, esi
je 0x100eb5b
push esi
push dword [ebp - 4]
push edi
call dword [sym.imp.msvcrt.dll__write]
add esp, 0xc
cmp eax, esi
jne 0x100ebd0
push dword [ebp - 8]
call ebx
pop ecx
test eax, eax
je 0x100eb2c
push edi
call dword [sym.imp.msvcrt.dll__close]
pop ecx
push dword [ebp + 0x20]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
or edi, 0xffffffff
call fcn.0100e91f
test eax, eax
je 0x100eb97
mov dword [ebp - 0xc], 1
cmp edi, 0xffffffff
je 0x100eb97
push edi
call dword [sym.imp.msvcrt.dll__close]
pop ecx
push dword [ebp - 8]
call dword [sym.imp.msvcrt.dll__close]
cmp dword [ebp - 4], 0
pop ecx
pop ebx
je 0x100ebb2
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov eax, dword [ebp - 0xc]
pop edi
pop esi
leave
ret 0x1c
push dword [ebp + 0xc]
push 0x1004fb0
push 0x100ebf8
push dword [ebp + 0x20]
jmp 0x100eb1a
push dword [ebp + 0xc]
push 0x1004fb0
push 0x100ebe0
jmp 0x100ebc8