joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419e30
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x462ba8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x47f0a8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push 0x202
push dword [0x47f118]
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0
push 0x80000002
call fcn.00419a20
test eax, eax
je 0x419f58
mov esi, dword [ebp - 0x18]
mov edi, dword [0x47f118]
mov dword [ebp - 0x10], 0
test esi, esi
je 0x419f03
cmp dword [esi], 0
je 0x419ef6
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x419ec3
mov eax, 1
jmp 0x419f24
push str.RegCreateKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x419efc
push 0
push dword [esi]
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0x20206
push 0
push 0
push 0
push edi
push 0x80000002
call eax
jmp 0x419f24
cmp dword [esi + 4], 0
jne 0x419f03
mov eax, 1
jmp 0x419f24
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x20206
push 0
push 0
push 0
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x419f4e
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x419f36
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], 0x200
test eax, eax
je 0x419f5b
xor ebx, ebx
jmp 0x419fff
mov esi, dword [ebp - 0x20]
xor ebx, ebx
jmp 0x419fff
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
je 0x419fb8
mov ecx, dword [ebx]
test ecx, ecx
je 0x41a01e
push ecx
push eax
call fcn.00446960
add esp, 8
test eax, eax
je 0x419fb8
mov edx, dword [edi]
test edx, edx
je 0x419fb8
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x419f90
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push str.m2_old
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebx]
test edx, edx
jne 0x419fc3
lea eax, [edx + 0xd]
jmp 0x419ff8
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x419fd0
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push 0x46ac74
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor ebx, ebx
test eax, eax
sete bl
test esi, esi
je 0x41a00a
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402f6b
int3
Function at 0x41b740
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41b7b1
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x41b77f
cmp eax, 2
jne 0x41b79b
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x41b7ab
test ecx, ecx
je 0x41b7a6
test cl, 1
jne 0x41b79b
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x41b7ab
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x41f9f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x463148
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x47f0a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push eax
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x28]
push 0x1a
push eax
call fcn.00420240
cmp dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
je 0x41fa57
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41fad5
push dword [ebp - 0x44]
lea eax, [ebp - 0x40]
mov ecx, esi
push 1
push eax
call fcn.00420240
mov esi, eax
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x41fa9b
mov ecx, eax
call fcn.00402ca1
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x41fad5
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41facb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41fbdd
push edx
push ecx
call fcn.004140f3
add esp, 8
cmp dword [ebp - 0x18], 0
jne 0x41fb00
xor eax, eax
mov dword [edi + 0x10], 0
push eax
mov dword [edi + 0x14], 7
mov ecx, edi
push 0x4665f8
mov word [edi], ax
call fcn.00402d20
jmp 0x41fbb6
call fcn.00402a92
mov ecx, eax
test ecx, ecx
je 0x41fbe2
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00402d97
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.0040323a
mov edx, dword [ebp - 0x48]
add esp, 8
mov byte [ebp - 4], 1
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41fb67
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x44]
xor eax, eax
mov ecx, esi
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41fb82
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, edi
call fcn.00402d20
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41fbb6
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x28]
call fcn.0040ceb4
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.0041439b
mov esp, ebp
pop ebp
ret 8
call fcn.0043576a
push 0x80004005
call fcn.00402f6b
int3
Function at 0x4225c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4636a2
mov eax, dword fs:[0]
push eax
sub esp, 0x818
mov eax, dword [0x47f0a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edx, edx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x824], esi
mov dword [ebp - 0x81c], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov dword [ebp - 0x818], 0
mov word [esi], dx
mov dword [ebp - 4], edx
mov dword [ebp - 0x81c], 1
test ecx, ecx
je 0x4226f0
test eax, eax
je 0x4226f0
test ebx, ebx
je 0x4226f0
lea edx, [ebp - 0x818]
push edx
push 0x20219
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4226df
cmp dword [ebp - 0x818], eax
je 0x4226f0
push 0x802
push eax
lea eax, [ebp - 0x814]
push eax
call fcn.004320f0
add esp, 0xc
mov dword [ebp - 0x820], 0x800
lea eax, [ebp - 0x820]
push eax
lea eax, [ebp - 0x814]
push eax
push 0
push 0xffff
push ebx
push 0
push dword [ebp - 0x818]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x4226df
lea ecx, [ebp - 0x814]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4226c1
sub ecx, edx
lea eax, [ebp - 0x814]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00402d20
mov eax, dword [ebp - 0x818]
test eax, eax
je 0x4226f0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041439b
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4295a0
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4642f0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x47f0a8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
test edi, edi
je 0x4296e9
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4296e9
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4296e9
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x4296e9
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 5
push 0x80000000
push edi
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x18], edi
cmp edi, 0xffffffff
je 0x4296d5
lea eax, [ebp - 0x20]
xorps xmm0, xmm0
push eax
push edi
movq qword [ebp - 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4296ce
cmp dword [ebp - 0x1c], ebx
jne 0x4296ce
mov ecx, dword [esi + 0x10]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 4], ebx
cmp eax, ecx
ja 0x42966d
mov dword [esi + 0x10], eax
mov ecx, esi
cmp dword [esi + 0x14], 0x10
jb 0x429667
mov ecx, dword [esi]
mov byte [ecx + eax], 0
jmp 0x429679
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.0040a203
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push dword [ebp - 0x20]
mov ecx, esi
push 0
call fcn.0040cdee
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp + 8]
jne 0x4296ce
push edi
mov ebx, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x443e5e
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x443e9d
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x443e9d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x443e9d
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x443e9d
cmp dword [ecx + 0x74], 0xe
jbe 0x443e9d
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x44e081
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x46f4f0
push 0x46f4e8
push 0x469288
push 0x1f
call fcn.0044deaa
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44e0b5
push dword [ebp + 8]
mov ecx, esi
call dword [0x4662dc]
call esi
jmp 0x44e0bb
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x44e0ff
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x46f500
push 0x46f4f8
push str.FlsGetValue
push 0x21
call fcn.0044deaa
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44e136
push dword [ebp + 8]
mov ecx, esi
call dword [0x4662dc]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x44e13e
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x46f508
push 0x46f500
push str.FlsSetValue
push 0x22
call fcn.0044deaa
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44e178
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4662dc]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x44ed84
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004144e0
mov eax, dword [0x47f0a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0044d853
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x44edc6
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x44ef22
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00461380
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x485b90]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00441640
mov ecx, dword [esi*4 + 0x485b90]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x44ef1b
cmp eax, dword [ecx + edi + 0x24]
jne 0x44ef1b
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44ef1b
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00441640
add esp, 0x14
test edx, edx
jl 0x44ef1b
jg 0x44ee91
test eax, eax
jb 0x44ef1b
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x44ef1b
jl 0x44eeab
cmp dword [ebp - 0x1008], eax
ja 0x44ef1b
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x44eec9
test ebx, ebx
je 0x44ef02
cmp ecx, edi
jae 0x44ef02
mov al, byte [ecx]
cmp al, 0xd
jne 0x44eee3
lea eax, [edi - 1]
cmp ecx, eax
jae 0x44eeef
cmp byte [ecx + 1], 0xa
jne 0x44eeef
inc ecx
jmp 0x44eeef
movzx eax, al
movsx eax, byte [eax + 0x47f398]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x44eec9
cmp edx, ebx
jne 0x44eec9
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x44ef20
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0041439b
leave
ret
Function at 0x44f219
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x485b90]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x44f259
cmp byte [ebx], 0xa
jne 0x44f259
or byte [edi + eax + 0x28], 4
jmp 0x44f25e
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x44f35d
mov dl, byte [eax]
cmp dl, 0x1a
je 0x44f340
inc eax
cmp dl, 0xd
je 0x44f28a
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x44f2b0
cmp eax, ecx
jae 0x44f2be
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x44f272
jmp 0x44f35d
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44f33b
cmp dword [ebp - 0x10], 0
je 0x44f33b
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x485b90]
test byte [eax + edi + 0x28], 0x48
je 0x44f315
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x44f300
mov byte [esi], dl
jmp 0x44f311
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x485b90]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x44f35d
cmp byte [ebp - 1], 0xa
jne 0x44f324
cmp esi, ebx
jne 0x44f324
mov byte [esi], 0xa
jmp 0x44f35c
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0044165e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x44f35d
mov byte [esi], 0xd
jmp 0x44f35c
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x485b90]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x44f35a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x44f35d
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x44f366
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x485b90]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x44f3ac
cmp word [ebx], dx
jne 0x44f3ac
or byte [eax + edi + 0x28], 4
jmp 0x44f3b1
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x44f514
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x44f4f4
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x44f3f2
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x44f428
cmp eax, edx
jae 0x44f436
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x44f3cd
jmp 0x44f514
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44f4ef
cmp dword [ebp - 0x18], 0
je 0x44f4ef
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x485b90]
test byte [eax + edi + 0x28], 0x48
je 0x44f4c5
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x44f489
mov word [esi], cx
jmp 0x44f4c0
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x485b90]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x485b90]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x485b90]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x44f514
pop eax
cmp word [ebp - 4], ax
jne 0x44f4d5
cmp esi, ebx
jne 0x44f4d5
mov word [esi], ax
jmp 0x44f511
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0044165e
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x44f514
push 0xd
pop eax
jmp 0x44f4d0
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x485b90]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x44f50e
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x44f514
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x45405f
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00453fdb
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4541ce
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4541ce
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x454183
jg 0x4540bb
test eax, eax
je 0x454179
push 1
push 0x1000
call fcn.0044dba8
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4540de
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x454170
push 0x8000
push ebx
call fcn.00444be3
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x454107
jg 0x454102
cmp ecx, 0x1000
jb 0x454107
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00441fa6
add esp, 0x10
cmp eax, 0xffffffff
je 0x45414c
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x454102
jl 0x454133
test ecx, ecx
jne 0x4540f4
push dword [ebp - 0xc]
push ebx
call fcn.00444be3
push esi
call fcn.0044c963
add esp, 0xc
xor ebx, ebx
jmp 0x4541dc
cmp byte [edi + 0x24], 0
je 0x454163
cmp dword [edi + 0x20], 5
jne 0x454163
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x45416e
mov ebx, dword [edi + 0x18]
jmp 0x454170
xor ebx, ebx
push esi
call fcn.0044c963
pop ecx
jmp 0x4541dc
test ecx, ecx
jg 0x454145
jl 0x454183
test eax, eax
jae 0x454145
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0044165e
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4541a3
cmp byte [edi + 0x1c], 0
je 0x454145
jmp 0x4541d4
push ebx
call fcn.00453f71
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x454145
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4541dc
cmp byte [edi + 0x1c], 0
je 0x4541d9
mov ebx, dword [edi + 0x18]
jmp 0x4541dc
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0044165e
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret