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

Disassembly:
push 0xffffffffffffffff
push 0x5db98b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push ebx
push ebp
push esi
push edi
mov ebp, ecx
lea ecx, [esp + 0x18]
push 0x758f44
call fcn.0058bfd0
mov esi, dword [esp + 0x130]
mov dword [esp + 0x128], 0
cmp byte [esi], 0
je 0x59ae63
cmp byte [esi + 0x104], 0
je 0x59ae63
cmp byte [esi + 0x105], 0xff
je 0x59ae63
cmp dword [esi + 0x10a], 0xffffffff
je 0x59ae63
cmp dword [esi + 0x106], 0xffffffff
je 0x59ae63
cmp dword [esi + 0x112], 0xffffffff
jne 0x59ae7c
push 0
push 0x1b8
push str.SourceFileSystem_r3dFileSystem.cpp
push str.fe.IsValid__
call fcn.00589fd0
add esp, 0x10
mov ebx, dword [esp + 0x138]
cmp dword [esi + 0x112], ebx
je 0x59aea4
push 0
push 0x1b9
push str.SourceFileSystem_r3dFileSystem.cpp
push str.fe.csize__csize
call fcn.00589fd0
add esp, 0x10
movzx eax, byte [esi + 0x105]
mov edi, dword [ebp + eax*4 + 0x338]
cmp edi, 0xffffffff
jne 0x59af17
inc eax
mov ecx, ebp
push eax
lea eax, [esp + 0x20]
push eax
call fcn.005998f0
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x59af09
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x20]
push eax
push str.cant_open__s_for_writing___d_n
call fcn.00589720
add esp, 0xc
xor bl, bl
jmp 0x59afaf
movzx eax, byte [esi + 0x105]
mov dword [ebp + eax*4 + 0x338], edi
push 0
push 0
push dword [esi + 0x10a]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, dword [esi + 0x10a]
je 0x59af46
call ebp
push eax
push str.SetFilePointer_failed__d
call fcn.00589720
add esp, 8
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
push 4
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0x69737573
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x59af7f
call ebp
push eax
push str.WriteFile_failed__d
call fcn.00589720
add esp, 8
push 0
lea eax, [esp + 0x14]
push eax
push ebx
push dword [esp + 0x140]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x59afad
push ebx
push eax
push esi
push str.failed_to_write__s__d_vs__d_n
call fcn.00589720
add esp, 0x10
mov bl, 1
lea ecx, [esp + 0x18]
mov dword [esp + 0x128], 0xffffffff
call fcn.0057e940
mov ecx, dword [esp + 0x120]
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x11c
ret 0xc
Function at 0x59afe0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5db9a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov ebx, ecx
lea ecx, [esp + 0x24]
push 0x758f44
call fcn.0058bfd0
mov eax, dword [ebx + 8]
sub eax, dword [ebx + 4]
sar eax, 2
mov dword [esp + 0x4c], 0
test eax, eax
jne 0x59b039
push eax
push 0xf8
push str.SourceFileSystem_r3dFileSystem.cpp
push str.IsValid__
call fcn.00589fd0
add esp, 0x10
mov ebp, dword [esp + 0x54]
test ebp, ebp
jne 0x59b059
push ebp
push 0xf9
push str.SourceFileSystem_r3dFileSystem.cpp
push 0x65f24c
call fcn.00589fd0
add esp, 0x10
mov eax, dword [ebx + 8]
sub eax, dword [ebx + 4]
sar eax, 2
imul edi, eax, 0x128
push 1
mov dword [esp + 0x2c], 0x31737573
mov dword [esp + 0x30], 1
mov dword [esp + 0x24], edi
lea eax, [edi + 1]
push eax
call fcn.0058bdf0
mov ecx, dword [ebx + 8]
add esp, 8
sub ecx, dword [ebx + 4]
mov esi, eax
sar ecx, 2
xor edx, edx
mov dword [esp + 0x1c], esi
test ecx, ecx
je 0x59b0d0
mov ebp, esi
mov esi, dword [ebx + 4]
mov edi, ebp
mov ecx, 0x4a
add ebp, 0x128
mov esi, dword [esi + edx*4]
inc edx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 8]
sub eax, dword [ebx + 4]
sar eax, 2
cmp edx, eax
jb 0x59b0a1
mov ebp, dword [esp + 0x54]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
lea ecx, [esp + 0x13]
call fcn.0058a970
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
push edi
push esi
lea ecx, [esp + 0x23]
call fcn.0058a980
test eax, eax
jne 0x59b0ff
push str.failed_to_compres_file_list_n
call fcn.00589720
add esp, 4
mov eax, dword [ebx + 8]
sub eax, dword [ebx + 4]
sar eax, 2
mov dword [esp + 0x34], eax
mov eax, dword [ebx]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x14]
push edi
push esi
mov dword [esp + 0x48], eax
call fcn.0058ac80
push ebp
push 8
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x38]
push 1
push eax
call fcn.005b0d13
push ebp
push 0x14
lea eax, [esp + 0x50]
push 1
push eax
call fcn.005b0d13
push ebp
push 1
push dword [esp + 0x44]
push dword [esp + 0x4c]
call fcn.005b0d13
push esi
call fcn.0058be30
push dword [esp + 0x54]
call fcn.0058be30
add esp, 0x40
mov dword [esp + 0x4c], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.0057e940
mov ecx, dword [esp + 0x44]
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x40
ret 4
Function at 0x5a4090
Capabilities:
Enumerate process modules

Disassembly:
sub esp, 0x224
push esi
push 0
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x5a40b1
xor eax, eax
pop esi
add esp, 0x224
ret
push edi
lea eax, [esp + 8]
mov dword [esp + 8], 0x224
push eax
push esi
xor edi, edi
call sub.KERNEL32.dll_Module32First
test eax, eax
je 0x5a410b
jmp 0x5a40d0
lea eax, [esp + 0x28]
push 0x663ed4
push eax
call fcn.005a2300
add esp, 8
test eax, eax
jne 0x5a4107
lea eax, [esp + 8]
push eax
push esi
call sub.KERNEL32.dll_Module32Next
test eax, eax
jne 0x5a40d0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
add esp, 0x224
ret
mov edi, dword [esp + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
add esp, 0x224
ret

Function at 0x5a69e0
Capabilities:
Compress data via zlib inflate or deflate

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x34
push edi
test ecx, ecx
je 0x5a8007
mov edi, dword [ecx + 0x1c]
mov dword [esp + 0x14], edi
test edi, edi
je 0x5a8007
cmp dword [ecx + 0xc], 0
je 0x5a8007
cmp dword [ecx], 0
jne 0x5a6a18
cmp dword [ecx + 4], 0
jne 0x5a8007
cmp dword [edi], 0xb
jne 0x5a6a23
mov dword [edi], 0xc
mov eax, dword [ecx + 0xc]
mov edx, dword [edi + 0x38]
mov dword [esp + 0x18], eax
mov eax, dword [ecx + 0x10]
push ebx
mov ebx, dword [ecx]
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], eax
xor eax, eax
push ebp
mov ebp, dword [ecx + 4]
mov dword [esp + 0x28], eax
mov eax, dword [edi]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], edx
mov dword [esp + 0x38], ebp
push esi
mov esi, dword [edi + 0x3c]
cmp eax, 0x1e
ja 0x5a7388
lea ebx, [edi + 0x54]
mov dword [esp + 0x40], ebx
mov ebx, dword [esp + 0x14]
jmp 0x5a6a70
jmp dword [eax*4 + 0x5a8014]
pop esi
pop ebp
pop ebx
mov eax, 0xfffffffe
pop edi
add esp, 0x34
ret
mov eax, 0xfffffffe
pop edi
add esp, 0x34
ret

Function at 0x5a8b60
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x5a8b94
mov al, byte [ecx]
test al, al
je 0x5a8b94
mov edx, 0x811c9dc5
movsx eax, al
lea ecx, [ecx + 1]
or eax, 0x20
xor eax, edx
imul edx, eax, 0x1000193
mov al, byte [ecx]
test al, al
jne 0x5a8b73
xor edx, 0x2a
imul eax, edx, 0x1000193
ret
xor eax, eax
ret
Function at 0x5c3131
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x6c9db0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.005bbe82
mov dword [ebp - 0x14], eax
cmp dword [0x774ec4], esi
jne 0x5c3224
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x5c31b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x5c3304
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x5c3304
push 0x66e300
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x5c3304
push eax
call ebx
push 0x66e30c
push edi
mov dword [0x774ec4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x774ec8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationA
push edi
mov dword [0x774ecc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x774ed4], eax
test eax, eax
je 0x5c3221
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x774ed0], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x5c3249
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x5c323c
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [ebp - 0x14], esi
je 0x5c325e
push 4
pop eax
jmp 0x5c3306
cmp dword [ebp - 0x14], esi
je 0x5c325e
push dword [0x774ec4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x5c3243
mov eax, dword [0x774ed0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x5c32bc
cmp dword [0x774ed4], edi
je 0x5c32bc
push eax
call ebx
push dword [0x774ed4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x5c32bc
test eax, eax
je 0x5c32bc
call ecx
test eax, eax
je 0x5c32b1
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x5c32b1
test byte [ebp - 8], 1
jne 0x5c32bc
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x5c32ec
mov eax, dword [0x774ec8]
cmp eax, edi
je 0x5c32e9
push eax
call ebx
test eax, eax
je 0x5c32e9
call eax
mov esi, eax
test esi, esi
je 0x5c32e9
mov eax, dword [0x774ecc]
cmp eax, edi
je 0x5c32e9
push eax
call ebx
test eax, eax
je 0x5c32e9
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x774ec4]
call ebx
test eax, eax
je 0x5c3304
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x5c3306
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005aede3
mov esp, ebp
pop ebp
ret
Function at 0x5c7886
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x6c9db0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.005bbe82
mov dword [ebp - 0x14], eax
cmp dword [0x774f2c], esi
jne 0x5c7979
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x5c7906
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x5c7a59
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x5c7a59
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x5c7a59
push eax
call ebx
push 0x66e30c
push edi
mov dword [0x774f2c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x774f30], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x774f34], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x774f3c], eax
test eax, eax
je 0x5c7976
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x774f38], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x5c799e
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x5c7991
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x5c79b3
push 4
pop eax
jmp 0x5c7a5b
cmp dword [ebp - 0x14], esi
je 0x5c79b3
push dword [0x774f2c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x5c7998
mov eax, dword [0x774f38]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x5c7a11
cmp dword [0x774f3c], edi
je 0x5c7a11
push eax
call ebx
push dword [0x774f3c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x5c7a11
test eax, eax
je 0x5c7a11
call ecx
test eax, eax
je 0x5c7a06
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x5c7a06
test byte [ebp - 8], 1
jne 0x5c7a11
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x5c7a41
mov eax, dword [0x774f30]
cmp eax, edi
je 0x5c7a3e
push eax
call ebx
test eax, eax
je 0x5c7a3e
call eax
mov esi, eax
test esi, esi
je 0x5c7a3e
mov eax, dword [0x774f34]
cmp eax, edi
je 0x5c7a3e
push eax
call ebx
test eax, eax
je 0x5c7a3e
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x774f2c]
call ebx
test eax, eax
je 0x5c7a59
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x5c7a5b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005aede3
mov esp, ebp
pop ebp
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x40343b
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
lea eax, [ebp - 8]
xor ebx, ebx
and dword [ebp - 8], ebx
push eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], ebx
push dword [eax]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x4035bd
push edi
push esi
call fcn.0041bca9
mov edi, eax
pop ecx
test edi, edi
je 0x4035bc
mov eax, dword [ebp + 8]
push edi
push esi
push dword [ebp - 8]
push dword [eax]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4035b5
call fcn.00403dfa
test eax, eax
je 0x403527
call fcn.00403d80
test eax, eax
jne 0x403527
and dword [ebp + 8], ebx
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x18]
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x403527
test dword [ebp + 8], 0xfffffffc
jbe 0x403527
call fcn.004038e4
push eax
lea ecx, [ebp - 0xc]
call fcn.004027fd
mov ecx, dword [ebp - 0x18]
movzx eax, word [ecx + ebx*4 + 2]
push eax
movzx eax, word [ecx + ebx*4]
push eax
lea eax, [ebp - 0xc]
push str.StringFileInfo_04x_04xFileVersion
push eax
call fcn.00403302
mov esi, dword [ebp - 0xc]
lea eax, [ebp - 0x10]
and dword [ebp - 0x14], 0
add esp, 0x10
and dword [ebp - 0x10], 0
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x403573
lea ecx, [esi - 0x10]
call fcn.004041cf
mov eax, dword [ebp + 8]
inc ebx
shr eax, 2
cmp ebx, eax
jb 0x4034c9
mov ebx, dword [ebp + 0xc]
and dword [ebp + 8], 0
lea eax, [ebp - 0x18]
and dword [ebp - 0x18], 0
push eax
lea eax, [ebp + 8]
push eax
push 0x46261c
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4035b2
mov ecx, dword [ebp + 8]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push str._d._d._d._d
push ebx
call fcn.00403302
xor ebx, ebx
add esp, 0x18
inc ebx
jmp 0x4035b5
push dword [ebp - 0x10]
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
push dword [ebp - 0x14]
call fcn.0040465f
push 0x2e
push 0x2c
mov ecx, ebx
call fcn.004043d4
push 0x20
mov ecx, ebx
call fcn.004041e7
lea ecx, [esi - 0x10]
mov dword [ebp - 4], 1
call fcn.004041cf
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x40352a
mov ebx, dword [ebp - 4]
push edi
call fcn.0041bcb2
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x4046d3
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x4046e5
push 0xd
pop eax
jmp 0x404717
mov ecx, edx
push ebx
push edi
xor ebx, ebx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4046ee
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop ebx
pop esi
pop ebp
ret 0xc
Function at 0x40781f
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x116c
call fcn.0041c080
mov eax, dword [0x47b0e4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x40798e
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push edi
call ebx
test eax, eax
je 0x40798d
test esi, esi
je 0x40798d
push esi
call ebx
test eax, eax
je 0x40786e
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x1000
xor ebx, ebx
lea eax, [ebp - 0x1004]
push ebx
push eax
call fcn.00431220
add esp, 0xc
lea ecx, [ebp - 0x10bc]
push 1
push 0x40
push 1
push edi
call fcn.004072f1
push 1
push 0x40
push 2
push esi
lea ecx, [ebp - 0x116c]
call fcn.004073cb
jmp 0x407948
mov eax, dword [ebp - 0x116c]
mov eax, dword [eax + 4]
cmp dword [ebp + eax - 0x1160], ebx
jne 0x407961
test byte [ecx], 1
jne 0x407961
push ebx
push 0x1000
lea eax, [ebp - 0x1004]
push eax
lea ecx, [ebp - 0x10bc]
call fcn.00407fbe
lea eax, [ebp - 0x1004]
push str.check
push eax
call fcn.004323e0
pop ecx
pop ecx
test eax, eax
je 0x40790f
lea eax, [ebp - 0x1004]
push str._trate_
push eax
call fcn.004323e0
pop ecx
pop ecx
lea ecx, [ebp - 0x1004]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x407918
sub ecx, edx
lea eax, [ebp - 0x1004]
push ebx
push ecx
push eax
lea ecx, [ebp - 0x116c]
call fcn.0040882d
push ebx
push 2
push 0x462f3c
lea ecx, [ebp - 0x116c]
call fcn.0040882d
mov eax, dword [ebp - 0x10bc]
lea ecx, [ebp - 0x10b0]
mov eax, dword [eax + 4]
add ecx, eax
cmp dword [ecx], ebx
je 0x4078ae
lea ecx, [ebp - 0x10bc]
call fcn.00407dbf
lea ecx, [ebp - 0x116c]
call fcn.00407df1
lea ecx, [ebp - 0x116c]
call fcn.0040768a
lea ecx, [ebp - 0x10bc]
call fcn.00407644
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041bf51
leave
ret

Function at 0x40799c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x47b0e4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x407a1e
cmp byte [esi + 0x3d], 0
je 0x407a1e
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x4079f0
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x4079f4
sub eax, 1
je 0x4079f8
dec eax
sub eax, 1
je 0x407a1e
xor al, al
jmp 0x407a20
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x407a15
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0043fa9c
add esp, 0x10
cmp edi, eax
jne 0x4079f0
cmp byte [esi + 0x3d], 0
sete al
jmp 0x407a20
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041bf51
leave
ret
Function at 0x408218
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x47b0e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
or edi, 0xffffffff
mov esi, ecx
cmp ebx, edi
jne 0x40823e
xor eax, eax
jmp 0x408300
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x408267
mov edx, dword [esi + 0x30]
mov eax, dword [edx]
add eax, ecx
cmp ecx, eax
jae 0x408267
dec dword [edx]
mov eax, ebx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
jmp 0x408300
cmp dword [esi + 0x4c], 0
je 0x4082fe
mov ecx, esi
call fcn.00407cd3
mov ecx, dword [esi + 0x38]
mov al, bl
test ecx, ecx
jne 0x408293
push dword [esi + 0x4c]
push eax
call fcn.004070fe
test al, al
pop ecx
pop ecx
cmovne edi, ebx
jmp 0x4082fe
mov byte [ebp - 0x28], al
lea eax, [ebp - 0x2c]
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x4082fe
cmp eax, 1
jle 0x4082cd
cmp eax, 3
jne 0x4082fe
push dword [esi + 0x4c]
push dword [ebp - 0x28]
jmp 0x408285
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
sub eax, ecx
mov dword [ebp - 0x30], eax
je 0x4082f0
push dword [esi + 0x4c]
push eax
mov eax, ecx
push 1
push eax
call fcn.0043fa9c
add esp, 0x10
cmp dword [ebp - 0x30], eax
jne 0x4082fe
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x34], eax
mov eax, ebx
jne 0x408300
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041bf51
leave
ret 4