joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417ce0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4592a1
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x47c9a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push ecx
lea ecx, [ebp - 0x268]
call fcn.0040dba0
add esp, 4
mov dword [ebp - 4], 0
or esi, 0xffffffff
mov eax, dword [ebp - 0x268]
cmp dword [eax - 0xc], 0
jne 0x417d3c
xor bl, bl
jmp 0x417e06
push str.KbdEdit
mov edx, eax
lea ecx, [ebp - 0x264]
call fcn.0040d6e0
add esp, 4
lea eax, [ebp - 0x260]
mov byte [ebp - 4], 1
push eax
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x417d7d
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [ebp - 0x260], 0x10
jne 0x417d93
push 0
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x417d93
xor bl, bl
jmp 0x417ddd
mov edx, dword [ebp - 0x264]
lea ecx, [ebp - 0x26c]
push str.LayoutidTracking.bin
call fcn.0040d6e0
add esp, 4
push eax
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.0040e0c0
mov byte [ebp - 4], 1
mov ecx, esi
mov edx, dword [ebp - 0x26c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x417ddb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov bl, 1
mov byte [ebp - 4], 0
mov ecx, esi
mov edx, dword [ebp - 0x264]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x417e00
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x268]
lea edi, [eax - 0x10]
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x417e24
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043f01f
mov esp, ebp
pop ebp
ret

Function at 0x41bc90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x459716
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x47c9a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov eax, dword [ebp + 8]
lea ecx, [edi + 8]
mov dword [edi], eax
mov dword [ecx + 4], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 8], 0
mov dword [ecx], vtable.OCArray_class_CVKAndModToChar_.0
mov dword [ebp - 4], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x1c], vtable.OCArray_class_CVKAndModToChar_.0
mov byte [ebp - 4], 1
mov eax, dword [edi]
push ecx
mov dword [edi + 4], 0
push dword [eax + 8]
call fcn.0041e1a0
mov eax, dword [edi]
push ecx
lea ecx, [edi + 0x1c]
push dword [eax + 8]
call fcn.0041e1a0
mov word [edi + 0x30], 0
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 0x41c290
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45978e
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x47c9a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
lea ecx, [esi + 4]
mov dword [esi], vtable.CVKToCharTable.0
call fcn.0042fb6f
mov dword [esi + 0x18], vtable.CMap_unsigned_int__unsigned_int__class_CMappingVKToChars___class_CMappingVKToChars__.0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0x11
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0xa
push 0xffffffffffffffff
push 1
lea ecx, [esi + 4]
mov byte [ebp - 4], 2
call fcn.0042fccb
cmp dword [esi + 0xc], 0
jg 0x41c31b
call fcn.0042c9be
mov eax, dword [esi + 8]
mov byte [eax], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x421740
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x459c3e
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x47c9a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
lea ecx, [esi + 4]
mov dword [esi], vtable.CLigatures.0
call fcn.0042fb6f
mov dword [esi + 0x18], vtable.CMap_struct_SLigatureKey__struct_SLigatureKey_const___class_CLigatureSequence__class_CLigatureSequence_const__.0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0x11
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0xa
push 0xffffffffffffffff
push 1
lea ecx, [esi + 4]
mov byte [ebp - 4], 2
call fcn.0042fccb
cmp dword [esi + 0xc], 0
jg 0x4217cb
call fcn.0042c9be
mov eax, dword [esi + 8]
mov byte [eax], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x423d30
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x459e89
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x47c9a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
lea ecx, [esi + 4]
mov dword [esi], vtable.CStickerMap.0
call fcn.0042fb6f
mov dword [esi + 0x1c], vtable.CMap_struct_SStickerMapModPosKey__struct_SStickerMapModPosKey_const___class_CStickerMapModPosDesc__class_CStickerMapModPosDesc_const__.0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0x11
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0xa
mov dword [esi + 0x40], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x3c], vtable.OCArray_struct_SStickerMapModPosKey_.0
push 0xffffffffffffffff
push 1
lea ecx, [esi + 4]
mov byte [ebp - 4], 3
call fcn.0042fccb
cmp dword [esi + 0xc], 0
jg 0x423de1
call fcn.0042c9be
mov eax, dword [esi + 8]
lea ecx, [esi + 0x1c]
mov word [ebp - 0xe], 0
mov byte [eax], 0
lea eax, [ebp - 0xe]
push eax
mov byte [esi + 0x18], 0
call fcn.00427470
lea ecx, [esi + 0x1c]
mov word [ebp - 0xe], 0x100
mov dword [eax], 0
mov dword [eax + 4], 0xffffff
mov word [eax + 8], 0
lea eax, [ebp - 0xe]
push eax
call fcn.00427470
push ecx
push 0x10
lea ecx, [esi + 0x3c]
mov dword [eax], 0
mov dword [eax + 4], 0xffffff
mov word [eax + 8], 0
mov word [esi + 0x38], 0x101
call fcn.00426c40
xor edx, edx
jmp 0x423e50
mov eax, dword [esi + 0x40]
mov word [eax + edx], 0
mov eax, dword [esi + 0x40]
mov word [eax + edx + 2], 0
mov eax, dword [esi + 0x40]
mov word [eax + edx + 4], 0
mov eax, dword [esi + 0x40]
mov word [eax + edx + 6], 0
add edx, 8
cmp edx, 0x20
jl 0x423e50
movsd xmm0, qword [0x471c48]
mov eax, esi
mov dword [esi + 0x50], 2
mov dword [esi + 0x54], 2
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 1
mov dword [esi + 0x60], 1
mov dword [esi + 0x64], 1
mov dword [esi + 0x68], 0xffffff
mov dword [esi + 0x6c], 0
mov byte [esi + 0x70], 1
mov dword [esi + 0x74], 0xe6e6e6
mov byte [esi + 0x78], 1
mov dword [esi + 0x7c], 0x646464
mov byte [esi + 0x80], 1
mov dword [esi + 0x84], 0xffdcdc
mov byte [esi + 0x88], 0
mov dword [esi + 0x8c], 0xff0000
mov dword [esi + 0x90], 0
movsd qword [esi + 0x98], xmm0
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 0x42b030
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x47c9a0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x114
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.00442490
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x114]
cmp eax, 6
jne 0x42b094
cmp dword [ebp - 0x110], 2
jb 0x42b096
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043f01f
mov esp, ebp
pop ebp
ret
ja 0x42b084
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
call fcn.0043f01f
mov esp, ebp
pop ebp
ret
Function at 0x450852
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x47c9a0]
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.004463d1
mov dword [ebp - 0x14], eax
cmp dword [0x4da43c], esi
jne 0x450945
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4508d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x450a25
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x450a25
push 0x460168
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x450a25
push eax
call ebx
push 0x460174
push edi
mov dword [0x4da43c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x460184
push edi
mov dword [0x4da440], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4da444], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4da44c], eax
test eax, eax
je 0x450942
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4da448], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x45096a
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x45095d
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x45097f
push 4
pop eax
jmp 0x450a27
cmp dword [ebp - 0x14], esi
je 0x45097f
push dword [0x4da43c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x450964
mov eax, dword [0x4da448]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4509dd
cmp dword [0x4da44c], edi
je 0x4509dd
push eax
call ebx
push dword [0x4da44c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4509dd
test eax, eax
je 0x4509dd
call ecx
test eax, eax
je 0x4509d2
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 0x4509d2
test byte [ebp - 8], 1
jne 0x4509dd
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x450a0d
mov eax, dword [0x4da440]
cmp eax, edi
je 0x450a0a
push eax
call ebx
test eax, eax
je 0x450a0a
call eax
mov esi, eax
test esi, esi
je 0x450a0a
mov eax, dword [0x4da444]
cmp eax, edi
je 0x450a0a
push eax
call ebx
test eax, eax
je 0x450a0a
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4da43c]
call ebx
test eax, eax
je 0x450a25
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x450a27
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043f01f
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Get common file path
Get startup folder
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x168
mov eax, dword [0x417004]
xor eax, esp
mov dword [esp + 0x164], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [esp + 0x5c]
push edi
push 0x105
push 0
push eax
mov dword [esp + 0x14], esi
call fcn.004024d0
add esp, 0xc
lea eax, [esp + 0x60]
push eax
push 0
push 0
push 7
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea ecx, [esp + 0x60]
dec ecx
nop
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x401050
mov eax, dword [0x414cf4]
mov dword [ecx], eax
mov eax, dword [0x414cf8]
mov dword [ecx + 4], eax
mov eax, dword [0x414cfc]
mov dword [ecx + 8], eax
mov al, byte [0x414d00]
mov byte [ecx + 0xc], al
lea eax, [esp + 0x60]
push 0x414cf0
push eax
call fcn.004044b7
add esp, 8
test eax, eax
je 0x40109a
push eax
call fcn.00404a23
add esp, 4
jmp 0x4010d7
push 0x414cec
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.004044ce
mov eax, dword [esp + 0x18]
add esp, 0xc
test eax, eax
je 0x4010d7
push eax
push 0x2ce00
push 1
push 0x4178c0
call fcn.004048c4
push dword [esp + 0x1c]
call fcn.00404a23
add esp, 0x14
push 0x7f00
push 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x18], 0x30
mov dword [esp + 0x28], 0
mov dword [esp + 0x38], 5
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x28], esi
mov dword [esp + 0x1c], 0x401240
mov dword [esp + 0x3c], str.Window_Class
mov dword [esp + 0x38], 0
mov dword [esp + 0x18], 3
call dword [sym.imp.USER32.dll_RegisterClassExA]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [sym.imp.USER32.dll_MessageBoxA]
test ax, ax
jne 0x40116a
call esi
push 0x10
push str.Window_Class_Failed
push str.Window_class_creation_failed_r_n
push 0
call edi
push 0
push dword [esp + 0xc]
push 0
push 0
push 0x12c
push 0x384
push 0xc8
push 0xc8
push 0xcf0000
push str._HVNC_configuration
push str.Window_Class
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [esp + 8], eax
test eax, eax
jne 0x4011bd
call esi
push 0x10
push str.Window_Creation_Failed
push str.Window_creation_failed_r_n
push 0
call edi
mov eax, dword [esp + 8]
push dword [ebp + 0x14]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
lea eax, [esp + 0x40]
push 0
push 0
xorps xmm0, xmm0
mov dword [esp + 0x60], 0
push 0
push eax
movaps xmmword [esp + 0x50], xmm0
movq qword [esp + 0x60], xmm0
call esi
test eax, eax
je 0x401223
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
nop word [eax + eax]
lea eax, [esp + 0x40]
push eax
call edi
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0
push 0
push 0
lea eax, [esp + 0x4c]
push eax
call esi
test eax, eax
jne 0x401200
mov ecx, dword [esp + 0x16c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.00401590
mov esp, ebp
pop ebp
ret 0x10
Function at 0x409776
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x409813
push ebx
push esi
call fcn.0040973f
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00409688
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4097c0
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x409812
push edi
push eax
call fcn.0040a194
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4097e0
call fcn.00407ff7
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x409811
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00409688
add esp, 0x20
test eax, eax
jne 0x4097ff
push edi
call fcn.00407ff7
jmp 0x409807
push ebx
call fcn.00407ff7
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x40a8a0
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x411fd8
push 0x411fd0
push 0x410c20
push 0x1e
call fcn.0040a7be
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40a8d4
push dword [ebp + 8]
mov ecx, esi
call dword [0x410168]
call esi
jmp 0x40a8da
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40a91e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x411fe8
push 0x411fe0
push 0x410c44
push 0x20
call fcn.0040a7be
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40a955
push dword [ebp + 8]
mov ecx, esi
call dword [0x410168]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x40c5ae
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x552a20]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x40c5ee
cmp byte [ebx], 0xa
jne 0x40c5ee
or byte [eax + edi + 0x28], 4
jmp 0x40c5f3
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x40c6f1
mov al, byte [edx]
cmp al, 0x1a
je 0x40c6d3
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x40c622
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x40c647
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x40c651
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x40c604
jmp 0x40c6f1
push 0
lea eax, [ebp - 0xc]
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 0x40c6ce
cmp dword [ebp - 0xc], 0
je 0x40c6ce
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x552a20]
test byte [eax + edi + 0x28], 0x48
je 0x40c6a8
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x40c693
mov byte [esi], dl
jmp 0x40c6a4
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x552a20]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x40c6f1
cmp byte [ebp - 1], 0xa
jne 0x40c6b7
cmp esi, ebx
jne 0x40c6b7
mov byte [esi], 0xa
jmp 0x40c6f0
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040c3a7
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x40c6f1
mov byte [esi], 0xd
jmp 0x40c6f0
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x552a20]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x40c6ed
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x40c6f1
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40c6fa
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x552a20]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x40c73d
cmp word [esi], dx
jne 0x40c73d
or byte [edi + eax + 0x28], 4
jmp 0x40c742
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x40c895
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x40c875
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x40c784
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x40c7ba
cmp eax, edx
jae 0x40c7c6
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x40c75c
jmp 0x40c895
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40c871
cmp dword [ebp - 0x14], 0
je 0x40c871
mov eax, dword [ebx*4 + 0x552a20]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x40c849
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x40c812
mov word [esi], cx
jmp 0x40c845
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x552a20]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x552a20]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x552a20]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x40c895
pop ebx
cmp word [ebp - 4], bx
jne 0x40c85a
cmp esi, dword [ebp + 0xc]
jne 0x40c85a
mov word [esi], bx
jmp 0x40c892
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0040c3a7
add esp, 0x10
cmp word [ebp - 4], bx
je 0x40c895
push 0xd
jmp 0x40c88e
mov ecx, dword [ebx*4 + 0x552a20]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x40c88c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x40c895
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40dba5
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]
push dword [ebp + 0xc]
push ebx
call fcn.0040db21
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x40dd1d
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x40dd1d
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x40dccc
jg 0x40dbfe
test eax, eax
je 0x40dcc2
push 1
push 0x1000
call fcn.00408275
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x40dc24
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x40dcb9
push 0x8000
push ebx
call fcn.0040563b
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x40dc50
jg 0x40dc4b
cmp ecx, 0x1000
jb 0x40dc50
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0040719d
add esp, 0x10
cmp eax, 0xffffffff
je 0x40dc95
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 0x40dc4b
jl 0x40dc7c
test ecx, ecx
jne 0x40dc3d
push dword [ebp - 0xc]
push ebx
call fcn.0040563b
push esi
call fcn.00407ff7
add esp, 0xc
xor edi, edi
jmp 0x40dd2e
cmp byte [edi + 0x24], 0
je 0x40dcac
cmp dword [edi + 0x20], 5
jne 0x40dcac
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x40dcb7
mov edi, dword [edi + 0x18]
jmp 0x40dcb9
xor edi, edi
push esi
call fcn.00407ff7
pop ecx
jmp 0x40dd2e
test ecx, ecx
jg 0x40dc8e
jl 0x40dccc
test eax, eax
jae 0x40dc8e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0040c3a7
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x40dcef
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x40dc8e
jmp 0x40dd26
push ebx
call fcn.00409cb1
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x40dc8e
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x40dd2e
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x40dd2b
mov edi, dword [edi + 0x18]
jmp 0x40dd2e
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0040c3a7
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx