joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f7c0
Capabilities:
Read file on windows
Read file via mapping

Disassembly:
sub esp, 0x98
mov eax, dword [0x451d80]
xor eax, esp
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x9c]
push ebx
push ebp
push esi
push edi
xor ebp, ebp
push ebp
push 0x80
push 3
push ebp
push ebp
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40f804
push eax
jmp 0x40f9c2
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
lea eax, [esp + 0x1c]
push eax
push 8
lea ecx, [esp + 0x2c]
push ecx
push ebx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
call esi
test eax, eax
je 0x40f9c1
push ebp
lea edx, [esp + 0x1c]
push edx
push 4
lea eax, [esp + 0x20]
push eax
push ebx
call esi
test eax, eax
je 0x40f9c1
mov eax, dword [esp + 0x14]
shl eax, 0xa
cmp dword [esp + 0x18], 4
mov dword [esp + 0x14], eax
jne 0x40f9c1
cmp eax, 0x80000
jne 0x40f9c1
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
add eax, 0x7ffff
adc ecx, ebp
shrd eax, ecx, 0x13
push 2
shl eax, 4
lea edx, [esp + 0x2c]
push edx
shr ecx, 0x13
mov edi, eax
xor ecx, ecx
push ecx
xor eax, eax
push eax
push ebx
lea esi, [edi + 0x1c]
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x40f9c1
cmp esi, dword [esp + 0x28]
jne 0x40f9c1
push ebp
push esi
push ebp
push 4
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
je 0x40f9c1
push esi
push ebp
push ebp
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebp, eax
lea eax, [esp + 0x30]
call fcn.0040f790
lea eax, [esi - 0x10]
push ebp
lea ecx, [esp + 0x34]
call fcn.00414a40
lea ecx, [esp + 0x30]
call fcn.00414ae0
mov eax, 0x10
lea ecx, [esp + 0x88]
lea edx, [edi + ebp + 0xc]
mov edi, edi
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x40f928
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x40f910
test eax, eax
je 0x40f985
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x40f977
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x40f985
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x40f977
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x40f985
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x40f977
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x40f985
movzx esi, byte [edx]
movzx eax, byte [ecx]
sub esi, eax
je 0x40f985
test esi, esi
mov eax, 1
jg 0x40f987
or eax, 0xffffffff
jmp 0x40f987
xor eax, eax
test eax, eax
push ebp
je 0x40f9a4
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
mov ecx, dword [esp + 0x1c]
push ecx
call esi
jmp 0x40f9c8
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
mov edx, dword [esp + 0x1c]
push edx
call esi
mov eax, 1
jmp 0x40f9ca
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0xa4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042655f
add esp, 0x98
ret
Function at 0x40f9f0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x43e8c8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x451d80]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x38]
mov eax, dword [0x45353c]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x30], 0
call fcn.0040f270
lea ecx, [esp + 0x18]
lea edx, [esp + 0x24]
mov byte [esp + 0x30], 1
call fcn.00413e60
mov eax, dword [esp + 0x24]
lea ecx, [eax - 0xc]
cmp ecx, 0x45352c
je 0x40fa6d
lea esi, [eax - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40fa6d
push esi
call fcn.00419273
add esp, 4
push 0x5c
push str.__u_lines._FS_delete_idx_file.
lea edx, [esp + 0x28]
call fcn.0040f330
mov eax, dword [esp + 0x28]
mov esi, dword [eax - 8]
add esp, 8
lea edi, [esp + 0x18]
call fcn.0040b680
mov edx, dword [esp + 0x18]
push edx
mov ebx, 2
call fcn.004156d0
add esp, 4
cmp dword [esp + 0x3c], 0
je 0x40fab0
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, ebp
lea esi, [esp + 0x3c]
call fcn.00406b80
mov byte [esp + 0x30], 2
mov edi, dword [esp + 0x3c]
push 0x5c
push edi
call fcn.00426f79
add esp, 8
test eax, eax
jne 0x40fad8
or esi, 0xffffffff
jmp 0x40fade
sub eax, edi
sar eax, 1
mov esi, eax
mov ecx, dword [edi - 8]
lea eax, [esp + 0x1c]
sub ecx, esi
push eax
lea edx, [esp + 0x40]
sub ecx, 1
push edx
call fcn.0040b5a0
lea eax, [esp + 0x24]
lea ecx, [esi + 1]
push eax
lea ebx, [esp + 0x40]
mov byte [esp + 0x34], 3
call fcn.0040b4f0
mov edi, eax
mov eax, ebx
mov byte [esp + 0x30], 4
call fcn.0040b470
mov byte [esp + 0x30], 3
mov eax, dword [esp + 0x24]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, 0x45352c
je 0x40fb4d
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x40fb4d
mov edx, dword [esp + 0x24]
add edx, 0xfffffff4
push edx
call fcn.00419273
add esp, 4
mov eax, dword [esp + 0x1c]
mov esi, dword [eax - 8]
lea edi, [esp + 0x3c]
call fcn.0040b680
push str..idx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
mov eax, str..idx
call fcn.0040b680
mov esi, dword [esp + 0x3c]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0x1c]
lea ecx, [eax - 0xc]
cmp ecx, 0x45352c
je 0x40fba8
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x40fba8
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff4
push edx
call fcn.00419273
add esp, 4
lea eax, [esi - 0xc]
cmp eax, 0x45352c
je 0x40fbc5
add esi, 0xfffffff4
push esi
call ebx
test eax, eax
jg 0x40fbc5
push esi
call fcn.00419273
add esp, 4
mov esi, dword [esp + 0x18]
lea ecx, [esi - 0xc]
cmp ecx, 0x45352c
je 0x40fbe7
add esi, 0xfffffff4
push esi
call ebx
test eax, eax
jg 0x40fbe7
push esi
call fcn.00419273
add esp, 4
mov esi, dword [esp + 0x20]
lea edx, [esi - 0xc]
cmp edx, 0x45352c
je 0x40fc09
add esi, 0xfffffff4
push esi
call ebx
test eax, eax
jg 0x40fc09
push esi
call fcn.00419273
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x40fd40
Capabilities:
Timestomp file

Disassembly:
push 0xffffffffffffffff
push 0x43e878
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x451d80]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 8]
mov edx, dword [eax]
lea ebp, [esi + 8]
or edi, 0xffffffff
push edi
mov ecx, ebp
mov dword [esp + 0x24], vtable.CScopedLock.0
mov dword [esp + 0x28], ebp
call edx
xor eax, eax
mov dword [esp + 0x30], eax
cmp dword [esi + 0xa4], edi
jne 0x40fdb8
mov dword [esp + 0x30], edi
mov eax, dword [ebp]
mov edx, dword [eax + 8]
mov ecx, ebp
call edx
lea eax, [edi + 0x16]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
cmp dword [esi + 0xf8], eax
jne 0x40fdc8
cmp dword [esi + 0x98], eax
je 0x40fdef
mov dword [esp + 0x30], edi
mov eax, dword [ebp]
mov edx, dword [eax + 8]
mov ecx, ebp
call edx
mov eax, 0x1a
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
lea edi, [esi + 0x28]
push edi
mov dword [esp + 0x1c], eax
call fcn.00412f40
lea ebx, [esp + 0x18]
call fcn.00410320
mov eax, dword [edi + 4]
test eax, eax
je 0x40fe7b
mov ecx, dword [edi]
test ecx, ecx
je 0x40fe7b
mov eax, dword [eax]
xor edx, edx
cmp eax, dword [ecx]
sete dl
mov eax, edx
test eax, eax
je 0x40fe53
cmp word [esi + 0xc4], 0
lea eax, [esi + 0xc4]
je 0x40fe53
lea edx, [esp + 0x18]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov ecx, dword [esi + 0xa0]
lea eax, [esp + 0x18]
push eax
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov dword [esp + 0x30], 0xffffffff
mov edx, dword [ebp]
mov eax, dword [edx + 8]
mov ecx, ebp
call eax
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov ecx, dword [edi]
push ecx
push eax
push str.Bitmap::IsFull_error__m_filledBit__0x_08x__m_totalBit__0x_08x
mov edi, 4
call fcn.00415780
add esp, 0xc
jmp 0x40fe53
Function at 0x4100f0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x43e83b
mov eax, dword fs:[0]
push eax
sub esp, 0x324
mov eax, dword [0x451d80]
xor eax, esp
mov dword [esp + 0x31c], eax
push ebp
push esi
push edi
mov eax, dword [0x451d80]
xor eax, esp
push eax
lea eax, [esp + 0x334]
mov dword fs:[0], eax
cmp dword [ebx + 0xf8], 0
mov dword [esp + 0x10], 0
jne 0x410144
cmp dword [ebx + 0x98], 0
je 0x41014e
mov eax, 0x1a
jmp 0x4102e3
mov eax, dword [ebx + 0xa4]
push 0
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [ebx + 0xa4]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x24]
mov esi, 0x104
push eax
mov dword [esp + 0x20], esi
call fcn.00411940
add esp, 0xc
test eax, eax
jne 0x4102e3
mov edi, dword [ebx + 0xa4]
mov ebp, dword [esp + 0x10]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x12c]
push eax
mov dword [esp + 0x20], esi
call fcn.004119c0
add esp, 0xc
test eax, eax
jne 0x4102e3
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x124]
push ecx
lea esi, [esp + 0x18]
call fcn.0040f2f0
mov edi, eax
lea eax, [ebx + 0xbc]
mov dword [esp + 0x33c], 0
call fcn.0040b470
mov dword [esp + 0x33c], 0xffffffff
mov eax, dword [esp + 0x14]
lea edx, [eax - 0xc]
cmp edx, 0x45352c
je 0x410224
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x410224
mov eax, dword [esp + 0x14]
add eax, 0xfffffff4
push eax
call fcn.00419273
add esp, 4
mov eax, dword [ebx + 0xa4]
add ebp, dword [esp + 0x10]
push 0
lea ecx, [esp + 0x1c]
push ecx
mov esi, 0x10
push esi
lea edx, [ebx + 0xc4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x18], esi
jne 0x41030c
mov edx, dword [ebx + 0xa4]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [ebx + 0xd4]
mov dword [esp + 0x14], esi
add ebp, esi
call fcn.00411a40
add esp, 4
test eax, eax
jne 0x4102e3
add ebp, dword [esp + 0x10]
lea edx, [esp + 0x10]
push edx
mov edx, dword [ebx + 0xa4]
lea ecx, [ebx + 0xe8]
call fcn.00411a70
add esp, 4
test eax, eax
jne 0x4102e3
mov edx, dword [ebx + 0xa4]
add ebp, dword [esp + 0x10]
lea eax, [esp + 0x10]
lea edi, [ebx + 0xf0]
push eax
mov ecx, edi
call fcn.00411a70
add esp, 4
test eax, eax
jne 0x4102e3
cmp dword [esp + 0x344], eax
je 0x4102e1
mov ecx, dword [esp + 0x10]
add ebp, ecx
push ebp
mov esi, ebx
call fcn.00410760
test eax, eax
jne 0x4102e3
mov eax, ebx
call fcn.004113e0
mov dword [edi], eax
mov dword [edi + 4], edx
xor eax, eax
mov ecx, dword [esp + 0x334]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x31c]
xor ecx, esp
call fcn.0042655f
add esp, 0x330
ret 4
mov eax, 0x15
jmp 0x4102e3
Function at 0x410320
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10
cmp dword [esi + 0xf8], 0
push edi
jne 0x410372
cmp dword [esi + 0x98], 0
jne 0x410372
mov eax, dword [esi + 0xa4]
push 0
push 0
push 0
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [esi + 0xa4]
lea ecx, [esp + 4]
push ecx
call fcn.00411aa0
add esp, 4
test eax, eax
je 0x41037c
mov dword [esi + 0xf8], 1
mov eax, 0x1a
pop edi
add esp, 0x10
ret
mov edx, dword [esp + 4]
add dword [ebx], edx
mov eax, dword [esi + 0xbc]
mov ecx, dword [eax - 8]
mov edi, dword [esi + 0xa4]
lea edx, [esp + 4]
push edx
push ecx
push eax
call fcn.00411b10
add esp, 0xc
test eax, eax
jne 0x410368
mov eax, dword [esp + 4]
add dword [ebx], eax
mov eax, dword [esi + 0xa4]
push 0
lea ecx, [esp + 8]
push ecx
mov edi, 0x10
push edi
lea edx, [esi + 0xc4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp + 4], edi
jne 0x410368
add dword [ebx], edi
mov edx, dword [esi + 0xa0]
lea ecx, [esp + 8]
push ecx
push 0
push 0
push edx
mov dword [esp + 0x14], edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x410372
lea edi, [esi + 0xd4]
push edi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
mov edx, dword [esi + 0xa4]
lea ecx, [esp + 4]
push ecx
mov ecx, edi
call fcn.00411b70
add esp, 4
test eax, eax
jne 0x410368
mov edx, dword [esp + 4]
add dword [ebx], edx
mov edx, dword [esi + 0xa4]
lea eax, [esp + 4]
push eax
lea ecx, [esi + 0xe8]
call fcn.00411ba0
add esp, 4
test eax, eax
jne 0x410368
mov ecx, dword [esp + 4]
add dword [ebx], ecx
cmp dword [esi + 0x94], eax
je 0x410468
mov eax, esi
call fcn.004113e0
mov dword [esi + 0xf0], eax
mov dword [esi + 0xf4], edx
lea edx, [esp + 4]
push edx
mov edx, dword [esi + 0xa4]
lea ecx, [esi + 0xf0]
call fcn.00411ba0
add esp, 4
test eax, eax
jne 0x410368
mov eax, dword [esp + 4]
add dword [ebx], eax
xor eax, eax
pop edi
add esp, 0x10
ret
Function at 0x4111d0
Capabilities:
Hash data with md5

Disassembly:
push 0xffffffffffffffff
push 0x43e79b
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x451d80]
xor eax, esp
mov dword [esp + 0x8c], eax
push ebp
push esi
push edi
mov eax, dword [0x451d80]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x10c], 0
je 0x41133e
xor eax, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0xb8]
sub eax, dword [esp + 0xb0]
push ebx
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], 0x67452301
mov dword [esp + 0x34], 0xefcdab89
mov dword [esp + 0x38], 0x98badcfe
mov dword [esp + 0x3c], 0x10325476
call fcn.00414a40
lea ecx, [esp + 0x2c]
call fcn.00414ae0
mov esi, dword [esp + 0xb0]
mov eax, dword [esp + 0xb4]
mov ecx, dword [edi + 0x100]
shrd esi, eax, 0x13
shr eax, 0x13
test ecx, ecx
je 0x411292
mov eax, dword [edi + 0x104]
sub eax, ecx
sar eax, 4
cmp esi, eax
jb 0x411297
call fcn.004269df
shl esi, 4
add esi, dword [edi + 0x100]
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov eax, dword [esi + 8]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
mov eax, 0x10
lea ecx, [esp + 0x84]
lea edx, [esp + 0x1c]
jmp 0x4112d0
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x4112e8
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x4112d0
test eax, eax
je 0x41133e
movzx esi, byte [edx]
movzx ebp, byte [ecx]
sub esi, ebp
jne 0x411337
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x41133e
movzx esi, byte [edx]
movzx ebp, byte [ecx]
sub esi, ebp
jne 0x411337
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x41133e
movzx esi, byte [edx]
movzx ebp, byte [ecx]
sub esi, ebp
jne 0x411337
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x41133e
movzx edx, byte [edx]
movzx eax, byte [ecx]
sub edx, eax
je 0x41133e
mov eax, 5
jmp 0x4113af
mov edx, dword [edi + 8]
mov eax, dword [edx]
lea esi, [edi + 8]
push 0xffffffffffffffff
mov ecx, esi
mov dword [esp + 0x18], vtable.CScopedLock.0
mov dword [esp + 0x1c], esi
call eax
mov dword [esp + 0xa8], 0
mov ecx, dword [esp + 0xb0]
mov edx, dword [esp + 0xb4]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0xc8]
mov dword [eax + 4], edx
mov edx, dword [esp + 0xcc]
push ebx
add edi, 0x28
mov dword [eax + 8], ecx
push edi
mov dword [eax + 0xc], edx
call fcn.00412cd0
mov dword [esp + 0xa8], 0xffffffff
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
xor eax, eax
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x8c]
xor ecx, esp
call fcn.0042655f
add esp, 0x9c
ret 0x10
Function at 0x411940
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
mov ebp, dword [esp + 0x18]
push 0
lea eax, [esp + 0xc]
push eax
push 4
lea ecx, [esp + 0x18]
push ecx
push edi
call ebx
cmp dword [esp + 8], 4
je 0x411972
pop ebp
mov eax, 0x15
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x10]
push 0
lea edx, [esp + 0x10]
push edx
push esi
push eax
push edi
call ebx
cmp dword [esp + 0xc], esi
jne 0x411996
mov eax, dword [esp + 0x10]
cmp eax, dword [ebp]
jbe 0x4119a2
pop esi
pop ebp
mov eax, 0x15
pop ebx
add esp, 8
ret
mov ecx, dword [esp + 0x20]
add esi, 4
mov dword [ebp], eax
mov dword [ecx], esi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret

Function at 0x4119c0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
mov ebp, dword [esp + 0x18]
push 0
lea eax, [esp + 0xc]
push eax
push 4
lea ecx, [esp + 0x18]
push ecx
push edi
call ebx
cmp dword [esp + 8], 4
je 0x4119f2
pop ebp
mov eax, 0x15
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x10]
push 0
lea edx, [esp + 0x10]
push edx
add esi, esi
push esi
push eax
push edi
call ebx
cmp dword [esp + 0xc], esi
jne 0x411a18
mov eax, dword [esp + 0x10]
cmp eax, dword [ebp]
jbe 0x411a24
pop esi
pop ebp
mov eax, 0x15
pop ebx
add esp, 8
ret
mov ecx, dword [esp + 0x20]
add esi, 4
mov dword [ebp], eax
mov dword [ecx], esi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret

Function at 0x411aa0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [esp + 8]
push eax
push 4
lea ecx, [esp + 0x14]
push ecx
push edi
mov dword [esp + 0x1c], 0x1d
call ebx
cmp dword [esp + 4], 4
je 0x411ad4
mov eax, 0x15
pop ebx
add esp, 8
ret
push esi
mov esi, dword [esp + 0xc]
push 0
lea edx, [esp + 0xc]
push edx
push esi
push str.PWRD_copywrite_v1.0_fileidx
push edi
call ebx
cmp dword [esp + 8], esi
je 0x411afa
pop esi
mov eax, 0x15
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x14]
add esi, 4
mov dword [eax], esi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret

Function at 0x411b10
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [esp + 8]
push eax
push 4
lea ecx, [esp + 0x1c]
push ecx
push edi
call ebx
cmp dword [esp + 4], 4
je 0x411b38
mov eax, 0x15
pop ebx
pop ecx
ret
mov eax, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x14]
push 0
lea edx, [esp + 0xc]
push edx
add esi, esi
push esi
push eax
push edi
call ebx
cmp dword [esp + 8], esi
je 0x411b5e
pop esi
mov eax, 0x15
pop ebx
pop ecx
ret
mov ecx, dword [esp + 0x18]
add esi, 4
mov dword [ecx], esi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x415470
Capabilities:
Copy file
Move file

Disassembly:
sub esp, 0x428
mov eax, dword [0x451d80]
xor eax, esp
mov dword [esp + 0x424], eax
cmp dword [0x4561e0], 0
mov eax, dword [esp + 0x42c]
push esi
push edi
jne 0x4155b0
push eax
push 0x104
push 0x4561e8
mov dword [0x4531c0], ecx
call fcn.00427b1f
add esp, 0xc
push 0x206
lea edx, [esp + 0x226]
push 0
push edx
mov word [esp + 0x22c], 0
call fcn.0042a080
add esp, 0xc
push 0x206
lea eax, [esp + 0x1e]
push 0
push eax
mov word [esp + 0x24], 0
call fcn.0042a080
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
add esp, 0xc
mov esi, 5
lea ebx, [ebx]
push esi
push 0x4561e8
push 0x44a124
lea edx, [esp + 0x22c]
call fcn.00415a00
add esp, 0xc
add esi, 0xffffffff
push esi
push 0x4561e8
push 0x44a124
lea edx, [esp + 0x24]
call fcn.00415a00
add esp, 0xc
push 1
lea ecx, [esp + 0x224]
push ecx
lea edx, [esp + 0x20]
push edx
call edi
cmp esi, 1
jg 0x415500
push 0x4561e8
push str._s.bak1
lea edx, [esp + 0x20]
call fcn.00415a00
add esp, 8
push 1
lea eax, [esp + 0x1c]
push eax
push 0x4561e8
call edi
test eax, eax
jne 0x415583
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0x4561e8
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0x456194
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x40
push 0x44a148
push 0x4561e8
call fcn.004269ef
add esp, 0xc
test eax, eax
mov dword [0x4561e0], eax
jne 0x4155ca
call fcn.00415640
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [esp + 0x424]
xor ecx, esp
call fcn.0042655f
add esp, 0x428
ret
xor eax, eax
lea edx, [esp + 8]
push edx
mov word [esp + 0xc], 0
mov dword [esp + 0xe], eax
mov dword [esp + 0x12], eax
mov dword [esp + 0x16], eax
mov word [esp + 0x1a], ax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
movzx ecx, word [esp + 0xa]
movzx edx, word [esp + 8]
push eax
movzx eax, word [esp + 0x12]
push eax
push ecx
push edx
push str._Log_Init___04d__02d__02d__TickCount_lu__
mov edi, 1
call fcn.00415780
mov ecx, dword [esp + 0x440]
add esp, 0x14
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.0042655f
add esp, 0x428
ret
Function at 0x4158c0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x118
mov eax, dword [0x451d80]
xor eax, esp
mov dword [esp + 0x114], eax
cmp dword [0x4561e0], 0
push ebp
mov ebp, dword [esp + 0x120]
push edi
je 0x4159e5
cmp esi, dword [0x4531c0]
jl 0x4159e5
xor eax, eax
mov dword [esp + 0xa], eax
mov dword [esp + 0xe], eax
mov dword [esp + 0x12], eax
mov word [esp + 0x16], ax
lea eax, [esp + 8]
push eax
mov word [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0xff
lea ecx, [esp + 0x1d]
push 0
push ecx
mov byte [esp + 0x24], 0
call fcn.0042a080
lea edx, [esi + esi*4]
add esp, 0xc
lea eax, [edx*2 + 0x4531c4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
movzx ecx, word [esp + 0x1a]
movzx edx, word [esp + 0x18]
push eax
movzx eax, word [esp + 0x1a]
push ecx
movzx ecx, word [esp + 0x1c]
push edx
push eax
push ecx
push str._02d:_02d:_02d._02d___d_:___s_
mov ecx, 0x100
lea edi, [esp + 0x34]
call fcn.00415350
add esp, 0x1c
push 0x456194
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x415984
sub eax, edx
mov edx, dword [0x4561e0]
push edx
push 1
push eax
lea eax, [esp + 0x24]
push eax
call fcn.0042886f
mov eax, ebp
add esp, 0x10
lea edx, [eax + 1]
jmp 0x4159b0
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4159b0
mov ecx, dword [0x4561e0]
push ecx
sub eax, edx
push 1
push eax
push ebp
call fcn.0042886f
mov edx, dword [0x4561e0]
push edx
call fcn.004284fb
add esp, 0x14
push 0x456194
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x11c]
pop edi
pop ebp
xor ecx, esp
call fcn.0042655f
add esp, 0x118
ret

Function at 0x416950
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x43d103
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x451d80]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
xor ebx, ebx
push ebx
call fcn.00416510
lea ecx, [esi + 0x34]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [esp + 0x18], ebx
mov dword [ecx], 0x453640
or eax, 0xffffffff
mov dword [esi + 0x40], eax
mov dword [esi + 0x3c], eax
push ebx
push 0x440650
mov byte [esp + 0x20], 1
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], bl
mov byte [esi + 0x2c], bl
mov dword [esi + 0x30], ebx
call fcn.00415bc0
mov dword [esi + 0x40], ebx
mov dword [esi + 0x3c], ebx
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret