joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a920
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov eax, ecx
test esi, esi
je 0x40a9d6
push ebx
push edi
mov edi, dword [ebp + 8]
mov ecx, 0x1234
mov ebx, 1
add word [eax + 0xc04], cx
lea edi, [edi + 1]
movzx edx, word [eax + 0xc04]
mov ecx, edx
shr ecx, 1
and ecx, 0xff
movzx ecx, word [eax + ecx*4 + 0x6f0]
xor word [eax + 0xc06], cx
mov ecx, edx
shr ecx, 1
and ecx, 0xff
movzx ecx, word [eax + ecx*4 + 0x6f2]
sub word [eax + 0xc08], cx
movzx ecx, word [eax + 0xc08]
xor ecx, edx
movzx edx, word [eax + 0xc0a]
mov word [eax + 0xc04], cx
mov cx, bx
ror dx, cl
xor dx, word [eax + 0xc06]
ror dx, cl
movzx ecx, dx
xor word [eax + 0xc04], cx
mov word [eax + 0xc0a], cx
movzx ecx, word [eax + 0xc04]
shr ecx, 8
xor byte [edi - 1], cl
mov ecx, 0x1234
dec esi
jne 0x40a940
pop edi
pop ebx
pop esi
pop ebp
ret 8

Function at 0x40abc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
xor eax, dword [ecx + 0xbf0]
mov edx, dword [edi + 0xc]
xor edx, dword [ecx + 0xbfc]
mov dword [ebp - 8], eax
mov eax, dword [edi + 4]
xor eax, dword [ecx + 0xbf4]
mov dword [ebp - 0xc], eax
mov eax, dword [ecx + 0xbf8]
xor eax, dword [edi + 8]
mov dword [ebp - 0x14], eax
xor eax, eax
mov edi, dword [ebp - 0x14]
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], eax
and eax, 3
rol edx, 0xb
add edx, edi
mov esi, dword [ecx + eax*4 + 0xbf0]
xor edx, esi
mov eax, edx
shr eax, 0x10
and eax, 0xff
movzx ebx, byte [eax + ecx + 0xaf0]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + ecx + 0xaf0]
shl eax, 8
or ebx, eax
mov eax, edx
shr eax, 8
and eax, 0xff
shl ebx, 8
movzx eax, byte [eax + ecx + 0xaf0]
or ebx, eax
movzx eax, dl
mov edx, edi
shl ebx, 8
ror edx, 0xf
xor edx, dword [ebp - 4]
movzx eax, byte [eax + ecx + 0xaf0]
add edx, esi
or ebx, eax
mov eax, edx
shr eax, 0x10
and eax, 0xff
xor ebx, dword [ebp - 8]
mov dword [ebp - 8], edi
mov edi, ebx
movzx esi, byte [eax + ecx + 0xaf0]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + ecx + 0xaf0]
shl eax, 8
or esi, eax
mov eax, edx
shr eax, 8
and eax, 0xff
shl esi, 8
movzx eax, byte [eax + ecx + 0xaf0]
or esi, eax
movzx eax, dl
shl esi, 8
movzx eax, byte [eax + ecx + 0xaf0]
or esi, eax
mov eax, dword [ebp - 4]
xor esi, dword [ebp - 0xc]
mov dword [ebp - 0xc], eax
mov edx, esi
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], eax
cmp eax, 0x20
jl 0x40ac03
mov eax, dword [ecx + 0xbf0]
mov edi, dword [ebp + 8]
xor eax, ebx
push edi
mov dword [edi], eax
mov eax, dword [ecx + 0xbf4]
xor eax, esi
mov dword [edi + 4], eax
mov eax, dword [ecx + 0xbf8]
xor eax, dword [ebp - 8]
mov dword [edi + 8], eax
mov eax, dword [ecx + 0xbfc]
xor eax, dword [ebp - 0xc]
mov dword [edi + 0xc], eax
call fcn.0040aea0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40ad20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x4d77ac]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov dword [ebp - 0x28], ebx
push edi
mov eax, dword [ebx]
xor eax, dword [ecx + 0xbf0]
mov edx, dword [ebx + 0xc]
movdqu xmm0, xmmword [ebx]
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 4]
xor eax, dword [ecx + 0xbf4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx + 0xbf8]
xor eax, dword [ebx + 8]
xor edx, dword [ecx + 0xbfc]
mov dword [ebp - 0x30], eax
mov eax, 0x1f
mov ebx, dword [ebp - 0x30]
mov dword [ebp - 0x20], edx
movdqu xmmword [ebp - 0x14], xmm0
mov dword [ebp - 0x24], eax
lea esp, [esp]
and eax, 3
rol edx, 0xb
add edx, ebx
mov esi, dword [ecx + eax*4 + 0xbf0]
xor edx, esi
mov eax, edx
shr eax, 0x10
and eax, 0xff
movzx edi, byte [eax + ecx + 0xaf0]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + ecx + 0xaf0]
shl eax, 8
or edi, eax
mov eax, edx
shr eax, 8
and eax, 0xff
shl edi, 8
movzx eax, byte [eax + ecx + 0xaf0]
or edi, eax
movzx eax, dl
mov edx, ebx
shl edi, 8
ror edx, 0xf
xor edx, dword [ebp - 0x20]
movzx eax, byte [eax + ecx + 0xaf0]
add edx, esi
or edi, eax
mov eax, edx
shr eax, 0x10
and eax, 0xff
xor edi, dword [ebp - 0x18]
mov dword [ebp - 0x18], ebx
mov ebx, edi
movzx esi, byte [eax + ecx + 0xaf0]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + ecx + 0xaf0]
shl eax, 8
or esi, eax
mov eax, edx
shr eax, 8
and eax, 0xff
shl esi, 8
movzx eax, byte [eax + ecx + 0xaf0]
or esi, eax
movzx eax, dl
shl esi, 8
movzx eax, byte [eax + ecx + 0xaf0]
or esi, eax
mov eax, dword [ebp - 0x20]
xor esi, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
mov edx, esi
mov eax, dword [ebp - 0x24]
dec eax
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], eax
jns 0x40ad80
mov eax, dword [ecx + 0xbf0]
mov ebx, dword [ebp - 0x28]
xor eax, edi
mov dword [ebx], eax
mov eax, dword [ecx + 0xbf4]
xor eax, esi
mov dword [ebx + 4], eax
mov eax, dword [ecx + 0xbf8]
xor eax, dword [ebp - 0x18]
mov dword [ebx + 8], eax
mov eax, dword [ecx + 0xbfc]
xor eax, dword [ebp - 0x1c]
mov dword [ebx + 0xc], eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040aea0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00493864
mov esp, ebp
pop ebp
ret 4
Function at 0x40aea0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0xbfc]
mov dword [ebp + 8], eax
mov eax, edx
push ebx
mov ebx, dword [ecx + 0xbf4]
push esi
lea esi, [edx + 1]
mov dword [ebp - 4], 4
sub eax, esi
mov dword [ebp - 0xc], eax
mov eax, edx
sub eax, esi
add eax, 2
sub edx, esi
mov dword [ebp - 0x10], eax
push edi
mov edi, dword [ecx + 0xbf0]
lea eax, [edx + 3]
mov edx, dword [ecx + 0xbf8]
mov dword [ebp - 0x14], eax
lea ebx, [ebx]
mov eax, dword [ebp - 0xc]
lea esi, [esi + 4]
movzx eax, byte [eax + esi - 4]
xor edi, dword [ecx + eax*4 + 0x6f0]
mov dword [ecx + 0xbf0], edi
movzx eax, byte [esi - 4]
mov dword [ebp - 8], edi
mov edi, dword [ebp + 8]
xor ebx, dword [ecx + eax*4 + 0x6f0]
mov eax, dword [ebp - 0x10]
mov dword [ecx + 0xbf4], ebx
movzx eax, byte [eax + esi - 4]
xor edx, dword [ecx + eax*4 + 0x6f0]
mov eax, dword [ebp - 0x14]
mov dword [ecx + 0xbf8], edx
movzx eax, byte [eax + esi - 4]
xor edi, dword [ecx + eax*4 + 0x6f0]
dec dword [ebp - 4]
mov eax, edi
mov dword [ebp + 8], edi
mov edi, dword [ebp - 8]
mov dword [ecx + 0xbfc], eax
jne 0x40aef0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40b6e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfc
mov eax, dword [0x4d77ac]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
movdqu xmm0, xmmword [eax]
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0x24]
push edi
mov edi, dword [ebp + 0x14]
push eax
lea eax, [ebp - 0xb0]
mov dword [ebp - 0xd4], edx
push 0x14
push eax
mov dword [ebp - 0xd0], ecx
movdqu xmmword [ebp - 0xb0], xmm0
mov dword [ebp - 0xa0], 0x1000000
call fcn.0040b340
movdqu xmm2, xmmword [ebp - 0x24]
mov eax, dword [ebp + 0x1c]
add esp, 0xc
movdqu xmm0, xmmword [ebp - 0x14]
dec eax
mov dword [ebp - 0xb8], edi
xor edi, edi
mov dword [ebp - 0xb4], ebx
mov ebx, dword [ebp - 0xd4]
movdqu xmmword [ebp - 0xe8], xmm2
mov dword [ebp - 0xc8], eax
movdqu xmmword [ebp - 0x44], xmm2
mov dword [ebp - 0xc4], 0x10
movdqu xmmword [ebp - 0xf8], xmm0
mov dword [ebp - 0xc0], 0x10
movdqu xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0xbc], esi
mov dword [ebp - 0xcc], edi
jmp 0x40b7a0
mov esi, dword [ebp + edi - 0xc8]
test esi, esi
je 0x40b816
mov edi, dword [ebp - 0xd0]
lea eax, [ebp - 0x64]
mov edx, ebx
push eax
lea eax, [ebp - 0x24]
mov ecx, edi
push 0x20
push eax
call fcn.0040b340
movdqu xmm0, xmmword [ebp - 0x64]
add esp, 0xc
movdqu xmm2, xmmword [ebp - 0xe8]
movdqu xmm1, xmmword [ebp - 0x54]
pxor xmm2, xmm0
movdqu xmmword [ebp - 0x24], xmm0
movdqu xmm0, xmmword [ebp - 0xf8]
movdqu xmmword [ebp - 0x14], xmm1
pxor xmm0, xmm1
movdqu xmmword [ebp - 0xe8], xmm2
movdqu xmmword [ebp - 0x44], xmm2
movdqu xmmword [ebp - 0xf8], xmm0
movdqu xmmword [ebp - 0x34], xmm0
dec esi
jne 0x40b7b1
mov edi, dword [ebp - 0xcc]
mov eax, dword [ebp + edi - 0xbc]
add edi, 4
mov dword [ebp - 0xcc], edi
movdqu xmmword [eax], xmm2
movdqu xmmword [eax + 0x10], xmm0
cmp edi, 0xc
jb 0x40b7a0
mov ecx, 0x44
lea eax, [ebp - 0xb0]
mov byte [eax], 0
lea eax, [eax + 1]
dec ecx
jne 0x40b843
mov ecx, 0x20
lea eax, [ebp - 0x44]
mov byte [eax], 0
lea eax, [eax + 1]
dec ecx
jne 0x40b854
mov ecx, 0x20
lea eax, [ebp - 0x24]
mov byte [eax], 0
lea eax, [eax + 1]
dec ecx
jne 0x40b865
mov ecx, 0x20
lea eax, [ebp - 0x64]
mov byte [eax], 0
lea eax, [eax + 1]
dec ecx
jne 0x40b876
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00493864
mov esp, ebp
pop ebp
ret
Function at 0x40d370
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.004ae060
mov eax, dword [0x4d77ac]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, edx
mov edi, ecx
push ecx
mov ecx, esi
call fcn.00412c20
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40d3dd
push ecx
lea edx, [ebp - 0x1004]
mov ecx, esi
call fcn.00412c60
add esp, 4
test al, al
je 0x40d3cb
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40d3dd
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493864
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.004110f0
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
test eax, eax
setne al
test al, al
jne 0x40d407
inc dword [0x4d8a1c]
mov dword [0x4d8a18], 9
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00493864
mov esp, ebp
pop ebp
ret
Function at 0x40e730
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b1ea8
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4d77ac]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov eax, dword [0x4d77ac]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov dword [esp + 0x14], ecx
mov ebx, dword [ebp + 8]
mov ecx, ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], ebx
mov eax, dword [ebx]
mov eax, dword [eax + 0x10]
call eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], edx
push 2
mov dword [esp + 0x5c], 0
mov ecx, ebx
mov esi, dword [ebx]
push 0
push 0
call dword [esi + 0xc]
mov eax, dword [ebx]
mov ecx, ebx
mov eax, dword [eax + 0x10]
call eax
mov ecx, dword [esp + 0x18]
mov edi, eax
mov dword [esp + 0x58], 0xffffffff
mov ebx, edx
push 0
push dword [esp + 0x34]
mov esi, dword [ecx]
push dword [esp + 0x34]
call dword [esi + 0xc]
mov edx, dword [esp + 0x14]
mov esi, dword [edx + 8]
mov dword [edx + 0x1878], edi
mov dword [edx + 0x187c], ebx
mov dword [edx + 0x3ae8], 0
mov dword [edx + 0x3aec], 0
mov byte [edx + 0x3af0], 1
mov al, byte [esi + 0x5124]
mov byte [edx + 0x4bf6], al
test al, al
je 0x40e817
add esi, 0x5024
lea edi, [edx + 0x4af4]
mov ecx, 0x40
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea eax, [esp + 0x38]
mov byte [edx + 0x186f], 0
push eax
mov byte [edx + 0x4bf7], 0
mov word [edx + 0x3af1], 1
mov byte [edx + 0x3af3], 0
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [edx], eax
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.00493864
mov esp, ebp
pop ebp
ret 4
Function at 0x40fe70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.004ae060
mov eax, dword [0x4d77ac]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov ecx, dword [esi + 8]
cmp byte [ecx + 0x62c1], 0
je 0x40feae
push eax
push 0x4c02b8
call fcn.00403830
jmp 0x410055
cmp byte [ecx + 0x629c], 0
lea edi, [esi + 0x4bf8]
push dword [ebx + 0x645c]
sete dl
mov ecx, edi
call fcn.00411000
add esp, 4
mov dword [ebp - 0x1014], eax
test eax, eax
je 0x40ffca
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x1010], eax
cmp eax, 0xffffffff
jne 0x40ff1b
push ecx
lea edx, [ebp - 0x1008]
mov ecx, edi
call fcn.00412c60
add esp, 4
test al, al
je 0x40ff12
lea eax, [ebp - 0x1008]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x40ff18
mov eax, dword [ebp - 0x1010]
cmp eax, 0xffffffff
setne al
mov byte [ebp - 0x1009], al
test al, al
je 0x40ff5a
mov ecx, edi
call fcn.00411470
cmp eax, 0xffffffff
je 0x40ff38
test al, 0x10
jne 0x40ff80
push 0
sub esp, 0xc
lea eax, [ebp - 0x1009]
xor edx, edx
push eax
push ecx
mov ecx, dword [esi + 8]
push edi
call fcn.00410240
add esp, 0x1c
mov byte [ebp - 0x1009], 0
mov ecx, edi
call fcn.004110f0
mov eax, dword [esi + 8]
mov ecx, edi
push dword [ebx + 0x645c]
cmp byte [eax + 0x629c], 0
sete dl
call fcn.00411000
add esp, 4
jmp 0x40ff86
mov eax, dword [ebp - 0x1014]
test eax, eax
je 0x40ffca
cmp byte [ebp - 0x1009], 0
mov eax, dword [esi + 8]
je 0x40ffae
cmp byte [eax + 0x629c], 0
jne 0x40ffd8
mov edx, dword [ebx + 0x645c]
mov ecx, edi
call fcn.004114e0
jmp 0x40ffd8
mov dword [eax + 0x93a0], 0x10
inc dword [0x4d8a1c]
mov dword [0x4d8a18], 9
jmp 0x40ffdf
push edi
push 0x4c02b8
call fcn.00403830
add esp, 8
mov byte [esi + 0x4bf7], 1
cmp byte [esi + 0x4bf7], 0
je 0x410058
mov eax, dword [esi + 8]
cmp byte [eax + 0x629b], 0
je 0x410010
test dword [ebx + 0x645c], 0x800
je 0x410010
call fcn.00412030
test eax, eax
je 0x410010
mov ecx, edi
call fcn.004115e0
mov eax, dword [esi + 8]
cmp dword [eax + 0x7394], 0
jne 0x410020
xor ecx, ecx
jmp 0x410026
lea ecx, [ebx + 0x7480]
cmp dword [eax + 0x7390], 0
jne 0x410033
xor esi, esi
jmp 0x410039
lea esi, [ebx + 0x7478]
cmp dword [eax + 0x738c], 0
jne 0x410046
xor edx, edx
jmp 0x41004c
lea edx, [ebx + 0x7470]
push ecx
push esi
mov ecx, edi
call fcn.004111e0
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00493864
mov esp, ebp
pop ebp
ret 8
Function at 0x410240
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2018
call fcn.004ae060
mov eax, dword [0x4d77ac]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2010], edx
mov dword [ebp - 0x2018], ecx
mov dword [ebp - 0x2014], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test eax, eax
je 0x410279
mov byte [eax], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor bl, bl
push esi
call edi
cmp eax, 0xffffffff
jne 0x4102ac
push ecx
lea edx, [ebp - 0x100c]
mov ecx, esi
call fcn.00412c60
add esp, 4
test al, al
je 0x4102f5
lea eax, [ebp - 0x100c]
push eax
call edi
cmp eax, 0xffffffff
je 0x4102f5
test bl, bl
jne 0x4102bd
mov ecx, esi
mov bl, 1
call fcn.004103c0
test al, al
jne 0x410281
mov ecx, dword [ebp - 0x2018]
mov eax, dword [ecx + 0x6130]
cmp eax, 2
je 0x41039c
cmp byte [ecx + 0x617c], 0
jne 0x4102f5
cmp eax, 1
je 0x4102f5
push 0x7ff
lea eax, [ebp - 0x200c]
push esi
push eax
call fcn.00493f28
add esp, 0xc
mov eax, dword [ebp - 0x2010]
xor ebx, ebx
cmp byte [ebp + 0x20], bl
setne bl
add ebx, 9
test eax, eax
je 0x41032a
push ebx
push esi
mov ecx, eax
call fcn.00410850
test al, al
je 0x41032a
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00493864
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push esi
call edi
test eax, eax
jne 0x410359
push ecx
lea edx, [ebp - 0x100c]
mov ecx, esi
call fcn.00412c60
add esp, 4
test al, al
je 0x410359
push 0
lea eax, [ebp - 0x100c]
push eax
call edi
mov ecx, esi
call fcn.004110f0
mov eax, dword [ebp - 0x2010]
test eax, eax
je 0x410384
push ebx
push esi
mov ecx, eax
call fcn.00410850
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00493864
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.00411560
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00493864
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x2014]
test eax, eax
je 0x4103a9
mov byte [eax], 1
mov ecx, dword [ebp - 8]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00493864
mov esp, ebp
pop ebp
ret

Function at 0x410690
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 4], 0xffffffff
mov dword [esi], vtable.File.0
je 0x4106cb
cmp byte [esi + 0x10], 0
jne 0x4106cb
cmp byte [esi + 0x12], 0
je 0x4106c5
cmp dword [esi + 0xc], 0
jne 0x4106cb
call fcn.00410970
cmp byte [esi + 0x13], 0
je 0x4106cb
lea ecx, [esi + 0x1e]
pop esi
jmp fcn.00411560
pop esi
jmp fcn.00410970
pop esi
ret

Function at 0x4109e0
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0xc], 0
je 0x4109ed
xor al, al
pop esi
ret
cmp dword [esi + 4], 0xffffffff
je 0x4109f8
call fcn.00410970
cmp byte [esi + 0x13], 0
je 0x4109e9
lea ecx, [esi + 0x1e]
pop esi
jmp fcn.00411560
Function at 0x410a10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
test ebx, ebx
je 0x410aba
cmp dword [edi + 0xc], 1
jne 0x410a40
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [edi + 4], eax
jmp 0x410a40
cmp dword [edi + 0xc], 0
mov dword [ebp + 0xc], 0
je 0x410a8d
xor esi, esi
test ebx, ebx
je 0x410aaa
mov eax, ebx
mov ecx, 0x4000
sub eax, esi
cmp eax, ecx
push 0
cmovb ecx, eax
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push ecx
add eax, esi
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sete al
test al, al
je 0x410aaa
add esi, 0x4000
cmp esi, ebx
jb 0x410a53
jmp 0x410aa6
push 0
lea eax, [ebp + 0xc]
push eax
push ebx
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sete al
test al, al
jne 0x410ab6
cmp byte [edi + 0x14], 0
je 0x410ab6
cmp dword [edi + 0xc], 0
je 0x410ac1
mov byte [edi + 8], 1
pop edi
pop esi
pop ebx
pop ebp
ret 8
sub esp, 8
call fcn.0040d160
int3

Function at 0x410bc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 0xc]
cmp dword [esi + 0xc], 1
jne 0x410be6
mov eax, 0x4e20
cmp edi, eax
push 0xfffffffffffffff6
cmova edi, eax
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi + 4], eax
mov ebx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push 0
push eax
push edi
push ebx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x410c88
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x410c37
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 2
je 0x410c1b
cmp eax, 3
jne 0x410c37
cmp edi, 0x4e20
jbe 0x410c37
push 0x4e20
push ebx
mov ecx, esi
call fcn.00410bc0
pop edi
pop esi
pop ebx
pop ebp
ret 8
cmp dword [esi + 0xc], 1
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x410c53
call ebx
cmp eax, 0x6d
jne 0x410c53
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 8
cmp dword [esi + 0xc], 0
jne 0x410c7e
cmp edi, 0x8000
jbe 0x410c7e
call ebx
cmp eax, 0x21
jne 0x410c7e
push 0x8000
push dword [ebp + 8]
mov ecx, esi
call fcn.00410bc0
pop edi
pop esi
pop ebx
pop ebp
ret 8
pop edi
pop esi
or eax, 0xffffffff
pop ebx
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x411000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.004ae060
mov eax, dword [0x4d77ac]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov byte [ebp - 0x1005], dl
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4110c4
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41108c
push ecx
lea edx, [ebp - 0x1004]
mov ecx, esi
call fcn.00412c60
add esp, 4
test al, al
je 0x411064
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41108c
push ecx
lea edx, [ebp - 0x1004]
mov ecx, esi
call fcn.00412c60
add esp, 4
test al, al
je 0x41108c
push 0
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4110c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4110b0
cmp eax, 3
je 0x4110b0
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493864
mov esp, ebp
pop ebp
ret
mov eax, 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493864
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 0x1005], 0
je 0x4110d7
mov edx, dword [ebp + 8]
mov ecx, esi
call fcn.004114e0
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00493864
mov esp, ebp
pop ebp
ret
Function at 0x4111e0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x102c
call fcn.004ae060
mov eax, dword [0x4d77ac]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
push edi
mov edi, ecx
test esi, esi
je 0x411210
mov eax, dword [esi]
or eax, dword [esi + 4]
mov byte [ebp - 0x100a], 1
jne 0x411217
mov byte [ebp - 0x100a], 0
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x41122c
mov eax, dword [ebx]
or eax, dword [ebx + 4]
mov byte [ebp - 0x1009], 1
jne 0x411233
mov byte [ebp - 0x1009], 0
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x411248
mov eax, dword [ecx]
or eax, dword [ecx + 4]
mov byte [ebp - 0x100b], 1
jne 0x41124f
mov byte [ebp - 0x100b], 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x1014], eax
cmp eax, 0xffffffff
jne 0x41128e
push ecx
lea edx, [ebp - 0x1008]
mov ecx, edi
call fcn.00412c60
add esp, 4
test al, al
je 0x4112cc
lea eax, [ebp - 0x1008]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x1014], eax
cmp eax, 0xffffffff
je 0x4112cc
test al, 1
je 0x4112cc
push 0
push edi
mov byte [ebp - 0x100c], 1
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x4112d3
push ecx
lea edx, [ebp - 0x1008]
mov ecx, edi
call fcn.00412c60
add esp, 4
test al, al
je 0x4112d3
push 0
lea eax, [ebp - 0x1008]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x4112d3
mov byte [ebp - 0x100c], 0
push 0
push 0x2000000
push 3
push 0
push 3
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edx, eax
mov dword [ebp - 0x1010], edx
cmp edx, 0xffffffff
jne 0x411342
push ecx
lea edx, [ebp - 0x1008]
mov ecx, edi
call fcn.00412c60
add esp, 4
test al, al
je 0x4113eb
push 0
push 0x2000000
push 3
push 0
push 3
push 0x40000000
lea eax, [ebp - 0x1008]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edx, eax
mov dword [ebp - 0x1010], eax
cmp edx, 0xffffffff
je 0x4113eb
cmp byte [ebp - 0x100a], 0
je 0x41135c
mov ecx, dword [esi]
mov eax, dword [esi + 4]
mov dword [ebp - 0x102c], ecx
mov dword [ebp - 0x1028], eax
cmp byte [ebp - 0x1009], 0
je 0x411376
mov ecx, dword [ebx]
mov eax, dword [ebx + 4]
mov dword [ebp - 0x1024], ecx
mov dword [ebp - 0x1020], eax
mov bl, byte [ebp - 0x100b]
test bl, bl
je 0x411394
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x101c], ecx
mov dword [ebp - 0x1018], eax
xor ecx, ecx
lea eax, [ebp - 0x102c]
cmp byte [ebp - 0x100a], cl
cmove eax, ecx
test bl, bl
push eax
lea eax, [ebp - 0x101c]
cmove eax, ecx
cmp byte [ebp - 0x1009], cl
push eax
lea eax, [ebp - 0x1024]
cmove eax, ecx
push eax
push edx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push dword [ebp - 0x1010]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x100c], 0
je 0x4113eb
mov edx, dword [ebp - 0x1014]
mov ecx, edi
call fcn.004114e0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00493864
mov esp, ebp
pop ebp
ret