joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40888a
Capabilities:
Set file attributes

Disassembly:
mov edx, dword [ebp - 0x2270]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2268], 0
je 0x4088b4
mov eax, dword [ebp - 0x227c]
push eax
mov ecx, dword [ebp - 0x2278]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
ret

Function at 0x408de2
Capabilities:
Set file attributes

Disassembly:
mov ecx, dword [ebp - 0x2270]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2268], 0
je 0x408e0c
mov edx, dword [ebp - 0x227c]
push edx
mov eax, dword [ebp - 0x2280]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
ret

Function at 0x4095ff
Capabilities:
Set file attributes

Disassembly:
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2268], 0
je 0x409623
mov edx, dword [ebp - 0x2280]
push edx
mov eax, dword [ebp - 0x2270]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
ret
Function at 0x40a6c0
Capabilities:
Check if file exists
Get file attributes
Read file on windows
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x201c
call fcn.004d7c90
mov eax, dword [0x56c3c0]
xor eax, esp
mov dword [esp + 0x2018], eax
push ebx
push esi
push edi
mov esi, ecx
push esi
mov dword [esp + 0x14], esi
mov edi, edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ebx, ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ebx
cmp eax, 0xffffffff
jne 0x40a719
mov eax, 0xc0000302
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2018]
xor ecx, esp
call fcn.004d6555
mov esp, ebp
pop ebp
ret
test al, 1
je 0x40a731
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [esp + 0x18], 1
mov dword [esp + 0xc], ebx
mov eax, SysReAllocStringLen
cmp dword [ebp + 8], ebx
jne 0x40a744
mov eax, 0xc0000000
push ebx
push 0x20000000
push 3
push ebx
push 3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40a768
mov edi, 0xc0000302
jmp 0x40a866
push 0
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40a787
mov dword [esp + 0xc], 0xc0000305
jmp 0x40a85b
push 0
lea eax, [esp + 0x18]
push eax
push 0x2000
lea ecx, [esp + 0x2c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40a890
cmp dword [esp + 0x14], 0x2000
jne 0x40a890
lea eax, [esp + 0x20]
call fcn.00415320
test eax, eax
jne 0x40a7cf
mov dword [esp + 0xc], 0xc0000102
jmp 0x40a85b
cmp dword [ebp + 8], 0
mov ecx, 0x80
je 0x40a7fa
lea esi, [esp + 0x315]
rep movsd dword es:[edi], dword [esi]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2018]
xor ecx, esp
call fcn.004d6555
mov esp, ebp
pop ebp
ret
mov esi, edi
lea edi, [esp + 0x315]
lea eax, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
call fcn.004152a0
mov esi, 0xc0000304
test eax, eax
jne 0x40a81b
mov dword [esp + 0xc], esi
push 0
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x40a853
push 0
lea edx, [esp + 0x18]
push edx
push 0x2000
lea eax, [esp + 0x2c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40a853
cmp dword [esp + 0x14], 0x2000
je 0x40a857
mov dword [esp + 0xc], esi
mov esi, dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0xc]
cmp dword [esp + 0x18], 0
je 0x40a879
mov ecx, dword [esp + 0x1c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [esp + 0x2024]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004d6555
mov esp, ebp
pop ebp
ret
mov dword [esp + 0xc], 0xc0000303
jmp 0x40a85b
Function at 0x40aff0
Capabilities:
Set registry value

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0x20006
push 0
push str.SoftwareLenovo_
push SysReAllocStringLen
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40b01c
xor eax, eax
pop ecx
ret
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push esi
push ecx
mov ecx, dword [esp + 8]
push edx
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [esp + 4]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
pop ecx
ret

Function at 0x40b160
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
mov eax, dword [0x56c3c0]
xor eax, esp
mov dword [esp + 0x228], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x32]
push edx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], eax
mov word [esp + 0x34], cx
call fcn.004d5720
add esp, 0xc
lea esi, [esp + 0x28]
mov eax, esi
push eax
push 0x104
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x40b256
cmp word [esp + 0x28], bx
je 0x40b2dc
add edi, 8
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x40b221
push 0
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x40b221
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ax, word [esi]
shrd ecx, edx, 0x14
mov dword [edi - 4], ecx
mov ecx, dword [esp + 0x1c]
mov word [edi - 8], ax
mov eax, dword [esp + 0x18]
shrd eax, ecx, 0x14
shr edx, 0x14
shr ecx, 0x14
mov dword [edi], eax
inc ebx
add edi, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
cmp ebx, 0x1a
jae 0x40b23c
cmp word [esi], 0
jne 0x40b1d0
jmp 0x40b2dc
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.004d6555
mov esp, ebp
pop ebp
ret
push 0x53f45c
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [esp + 0x20]
xor edi, edi
add esi, 8
nop
add word [esp + 0x28], di
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x40b2d6
push 0
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x40b2d6
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov cx, word [esp + 0x28]
shrd edx, eax, 0xa
shl edx, 0xa
mov word [esi - 8], cx
mov ecx, dword [esp + 0x18]
mov dword [esi - 4], edx
mov edx, dword [esp + 0x1c]
shrd ecx, edx, 0xa
shl ecx, 0xa
shr eax, 0xa
shr edx, 0xa
mov dword [esi], ecx
inc ebx
add esi, 0xc
inc edi
cmp edi, 0x1a
jb 0x40b270
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x234]
mov dword [eax], ebx
pop edi
xor eax, eax
test ebx, ebx
pop esi
setne al
pop ebx
xor ecx, esp
call fcn.004d6555
mov esp, ebp
pop ebp
ret
Function at 0x40b300
Capabilities:
Get file version info

Disassembly:
sub esp, 0x220
mov eax, dword [0x56c3c0]
xor eax, esp
mov dword [esp + 0x21c], eax
mov eax, dword [esp + 0x224]
push esi
push edi
mov edi, ecx
push 0
push edi
mov dword [esp + 0x18], eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
jne 0x40b348
pop edi
pop esi
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.004d6555
add esp, 0x220
ret
xor ecx, ecx
mov edx, 2
mul edx
seto cl
push ebp
neg ecx
or ecx, eax
push ecx
call fcn.004910ff
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x40b39a
push ebp
push esi
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40b391
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x1c]
push ecx
push str.VarFileInfoTranslation
push ebp
call sub.VERSION.dll_VerQueryValueW
mov edi, eax
test edi, edi
jne 0x40b3b4
push ebp
call fcn.004910f4
add esp, 4
pop ebp
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.004d6555
add esp, 0x220
ret
xor esi, esi
test dword [esp + 0xc], 0xfffffffc
jbe 0x40b450
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatW]
jmp 0x40b3d0
mov eax, dword [esp + 0x1c]
movzx edx, word [eax + esi*4 + 2]
movzx eax, word [eax + esi*4]
push edx
push eax
lea ecx, [esp + 0x2c]
push str.StringFileInfo_04x_04x_
push ecx
call fcn.004d984c
add esp, 0x10
push 0x53ef10
lea edx, [esp + 0x28]
push edx
call ebx
push 0x53f0ac
lea eax, [esp + 0x28]
push eax
call ebx
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x2c]
push eax
push ebp
call sub.VERSION.dll_VerQueryValueW
mov edi, eax
test edi, edi
jne 0x40b432
mov ecx, dword [esp + 0x10]
inc esi
shr ecx, 2
cmp esi, ecx
jb 0x40b3d0
jmp 0x40b44f
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
sub edx, eax
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40b440
pop ebx
push ebp
call fcn.004910f4
mov ecx, dword [esp + 0x22c]
add esp, 4
pop ebp
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.004d6555
add esp, 0x220
ret

Function at 0x40c820
Capabilities:
Access the windows event log

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.estdisk
push 0
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
jne 0x40c854
push str.Cannot_register_the_event_source.
call fcn.004d9b8d
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
ret
push 0
lea eax, [esp + 0x10]
push eax
push 0
push 1
push 0
push 0xc0020001
push 0
push 4
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
test eax, eax
jne 0x40c882
push str.Cannot_report_the_event.
call fcn.004d9b8d
add esp, 4
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
ret
Function at 0x40cde0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov esi, eax
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
push str.SoftwareLenovo_
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x2c], 0x208
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40ce4f
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push esi
push 0
push 0
push str.SDiskPath
push edx
call ebx
mov edi, eax
mov eax, dword [esp + 0x14]
push eax
call ebp
xor eax, eax
test edi, edi
sete al
test eax, eax
jne 0x40ceb2
lea ecx, [esp + 0x14]
push ecx
push 0x20019
xor edi, edi
push edi
push str.SoftwareLenovo_
push SysReAllocStringLen
mov dword [esp + 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x40ce9e
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
push esi
push edi
push edi
push str.SDiskPath
push eax
call ebx
mov ecx, dword [esp + 0x14]
push ecx
mov edi, eax
call ebp
xor edx, edx
test edi, edi
sete dl
mov edi, edx
test edi, edi
jne 0x40ceb0
push esi
call fcn.0040cb60
add esp, 4
test eax, eax
je 0x40ceb0
call fcn.0040c8a0
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x40cec0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push eax
push 0x20019
push 0
push str.SoftwareLenovo_
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], 0x208
mov dword [esp + 0x20], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40cf2c
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
push edi
push 0
push 0
push str.SDiskPathPreCommit
push edx
call ebx
mov esi, eax
mov eax, dword [esp + 0xc]
push eax
call ebp
xor eax, eax
test esi, esi
sete al
test eax, eax
jne 0x40cf83
lea ecx, [esp + 0xc]
push ecx
push 0x20019
push 0
push str.SoftwareLenovo_
push SysReAllocStringLen
mov dword [esp + 0x20], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40cf5d
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
push edi
push 0
push 0
push str.SDiskPathPreCommit
push eax
call ebx
mov ecx, dword [esp + 0xc]
push ecx
mov esi, eax
call ebp
xor eax, eax
test esi, esi
sete al
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x40d120
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
push ebp
push edi
lea eax, [esp + 0xc]
push eax
push 0x20019
push 0
push str.SoftwareLenovo_
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], 0x208
mov dword [esp + 0x20], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40d1b6
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
push esi
push 0
push 0
push str.LogicLetter
push edx
call ebx
mov edi, eax
mov eax, dword [esp + 0xc]
push eax
call ebp
xor ecx, ecx
test edi, edi
sete cl
mov edi, ecx
test edi, edi
je 0x40d1b6
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x40d220
xor eax, eax
mov word [esi + 4], ax
mov eax, edi
pop edi
mov edx, 0x3a
pop ebp
mov word [esi + 2], dx
pop ebx
add esp, 8
ret
lea ecx, [esp + 0xc]
push ecx
push 0x20019
xor edi, edi
push edi
push str.SoftwareLenovo_
push SysReAllocStringLen
mov dword [esp + 0x20], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x40d220
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
push esi
push edi
push edi
push str.LogicLetter
push eax
call ebx
mov ecx, dword [esp + 0xc]
push ecx
mov edi, eax
call ebp
xor edx, edx
test edi, edi
sete dl
mov edi, edx
test edi, edi
je 0x40d220
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x40d220
mov eax, 0x3a
xor ecx, ecx
mov word [esi + 2], ax
mov word [esi + 4], cx
mov eax, edi
pop edi
pop ebp
pop ebx
add esp, 8
ret

Function at 0x40d230
Capabilities:
Delete registry value

Disassembly:
push ecx
push ebx
push esi
lea eax, [esp + 8]
push eax
push 0x20007
push 0
push str.SoftwareLenovo_
push SysReAllocStringLen
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40d26d
mov ebx, str.LogicLetter
xor esi, esi
call fcn.00404d40
mov eax, esi
pop esi
pop ebx
pop ecx
ret
mov ecx, dword [esp + 8]
push str.LogicLetter
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edx, dword [esp + 8]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
mov ebx, str.LogicLetter
mov esi, eax
call fcn.00404d40
mov eax, esi
pop esi
pop ebx
pop ecx
ret

Function at 0x40e27a
Capabilities:
Set file attributes

Disassembly:
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2c], 0
je 0x40e298
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
ret
Function at 0x40ec34
Capabilities:
Set file attributes

Disassembly:
cmp ebx, 0xffffffff
je 0x40ec40
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x24], 0
je 0x40ec57
mov eax, dword [ebp - 0x28]
push eax
lea ecx, [ebp + 0x2200]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
ret
Function at 0x410ced
Capabilities:
Delete file

Disassembly:
mov eax, dword [ebp + 4]
push eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov eax, dword [ebp + 8]
cmp eax, 0xffffffff
je 0x410d14
push eax
call esi
cmp dword [ebp + 0x1c], 0
je 0x410d14
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp], 0
jne 0x410d24
push 0
call fcn.0049110a
add esp, 4
ret

Function at 0x4119c0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
lea eax, [esp]
push eax
push 0x20019
push 0
push str.SoftwareLenovo_
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], 4
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4119f8
xor eax, eax
add esp, 8
ret
mov edx, dword [esp + 0xc]
mov eax, dword [esp]
push esi
lea ecx, [esp + 8]
push ecx
push edx
push 0
push 0
push str.ImportStatus
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 4]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
add esp, 8
ret

Function at 0x4120d0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x51f3d2
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x56c3c0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov edi, dword [esp + 0x24]
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov dword [edi], 0x53fc18
mov dword [edi + 0x54], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
lea esi, [edi + 4]
push esi
mov dword [esp + 0x20], ebx
push edi
mov dword [esp + 0x18], 1
call fcn.00413490
mov dword [esp + 0x1c], 1
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push esi
mov dword [edi + ecx], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
call fcn.004144d0
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x48], bl
mov byte [esi + 0x41], bl
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ebx
mov eax, dword [esi + 0x24]
mov dword [eax], ebx
mov ecx, dword [esi + 0x34]
mov dword [ecx], ebx
mov edx, dword [esi + 0x10]
mov dword [edx], ebx
mov eax, dword [esi + 0x20]
mov edx, dword [0x5784ec]
mov dword [eax], ebx
mov ecx, dword [esi + 0x30]
mov dword [ecx], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x44], edx
mov dword [esi + 0x3c], ebx
mov ecx, dword [esp + 0x28]
push 0x22
mov byte [esp + 0x20], 2
call fcn.00413970
test eax, eax
jne 0x4121d0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + edi + 8]
add ecx, edi
or eax, 2
cmp dword [ecx + 0x28], ebx
jne 0x4121bf
or eax, 4
and eax, 0x17
mov dword [ecx + 8], eax
test dword [ecx + 0xc], eax
je 0x4121d0
push ebx
call fcn.0040c4b0
mov eax, edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 8
Function at 0x4144d0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x51edeb
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x56c3c0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0051515b
push 4
mov dword [esp + 0x20], 0
call fcn.004910c5
mov edi, eax
add esp, 4
test edi, edi
je 0x41454e
call fcn.00514e49
mov dword [edi], eax
call fcn.00514c42
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.0051509c
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x414543
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.005150c4
jmp 0x414550
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4

Function at 0x415690
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x14]
push edi
push ebp
call fcn.004910c5
mov edi, eax
add esp, 4
test edi, edi
jne 0x4156aa
pop edi
pop ebp
pop ecx
ret
mov eax, dword [esp + 0x10]
push ebx
push 0
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [esp + 0x10]
push ecx
push ebp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
test ebx, ebx
je 0x4156f3
mov edx, dword [esp + 0x18]
push 0
push 0
push edx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x10]
push eax
push ebp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
push edi
call fcn.004910f4
add esp, 4
mov eax, ebx
pop ebx
pop edi
pop ebp
pop ecx
ret
Function at 0x416490
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x21c
mov eax, dword [0x56c3c0]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
mov ebx, dword [esp + 0x228]
push ebp
push esi
mov esi, dword [esp + 0x22c]
push edi
lea edi, [esp + 0x34]
call fcn.004182a0
mov ecx, dword [esp + 0x220]
mov edi, dword [esp + 0x214]
mov ebp, dword [esp + 0x21c]
shr ebx, 4
mov eax, ebx
mov ebx, dword [esp + 0x218]
mov dword [esp + 0x30], ecx
test eax, eax
jbe 0x416550
mov dword [esp + 0x10], eax
lea esp, [esp]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x38]
push eax
mov ecx, esi
call fcn.00418950
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
xor dword [esp + 0x24], ebp
mov ebp, dword [esi + 8]
xor dword [esp + 0x28], edx
mov edx, dword [esi + 0xc]
xor eax, edi
mov edi, dword [esi]
xor ecx, ebx
mov ebx, dword [esi + 4]
mov dword [esi], eax
mov dword [esi + 4], ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x28]
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
add esp, 8
add esi, 0x40
sub dword [esp + 0x10], 1
mov dword [esp + 0x30], edx
jne 0x4164f0
mov ecx, dword [esp + 0x228]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004d6555
add esp, 0x21c
ret

Function at 0x416570
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x208
mov eax, dword [0x56c3c0]
xor eax, esp
mov dword [esp + 0x204], eax
push ebx
push ebp
mov ebp, dword [esp + 0x214]
push esi
mov esi, dword [esp + 0x21c]
push edi
lea edi, [esp + 0x20]
call fcn.004182a0
mov eax, dword [esp + 0x200]
mov ecx, dword [esp + 0x204]
mov edx, dword [esp + 0x208]
mov edi, dword [esp + 0x20c]
shr esi, 4
mov ebx, esi
test ebx, ebx
jbe 0x416617
lea esi, [ebp + 8]
xor eax, dword [esi - 8]
xor ecx, dword [esi - 4]
xor edx, dword [esi]
xor edi, dword [esi + 4]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x14], ecx
push eax
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], edi
call fcn.00418370
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
mov dword [esi - 8], eax
mov dword [esi - 4], ecx
mov dword [esi], edx
mov dword [esi + 4], edi
add esp, 8
add esi, 0x10
sub ebx, 1
jne 0x4165c7
mov ecx, dword [esp + 0x214]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004d6555
add esp, 0x208
ret