joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a1e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov esi, dword [edi + 0xc]
test esi, esi
je 0x40a272
mov eax, dword [0x416130]
test eax, eax
je 0x40a266
mov ebx, dword [eax + 0x30]
test ebx, ebx
js 0x40a2e1
mov ecx, dword [eax + 0x30]
test ecx, ecx
jne 0x40a287
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov eax, edi
call fcn.00409e30
cmp eax, 7
jne 0x40a2ff
mov eax, dword [0x416130]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40a2d2
mov edx, dword [eax + 0x30]
test edx, edx
js 0x40a2f0
mov edi, dword [eax + 0x30]
test edi, edi
jne 0x40a2b3
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
call fcn.0040a4f0
mov eax, dword [0x416130]
jmp 0x40a202
mov dword [esp], edi
call fcn.00409ca0
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov ebx, dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
sub esp, 4
jmp 0x40a217
mov eax, dword [eax + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x40a255
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40a255
call fcn.0040a4f0
mov eax, dword [0x416130]
jmp 0x40a240
call fcn.00409910
mov eax, dword [0x416130]
jmp 0x40a20d
call fcn.00409910
mov eax, dword [0x416130]
jmp 0x40a24b
call sub.msvcrt.dll_abort
lea esi, [esi]
lea edi, [edi]
Function at 0x40a7d0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov edx, eax
je 0x40a800
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov eax, dword [ebp + 0xc]
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.0040abd0
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
leave
ret
Function at 0x6da1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.006da140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.006da140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.006da140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.006da140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x6dabfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x6dac50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x6ec87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x6dac43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x6dac52
xor eax, eax
pop esi
leave
ret 4

Function at 0x401390
Capabilities:
Terminate process

Disassembly:
push esi
push 0x424460
push 1
push 0
mov esi, eax
call dword [0x421228]
call dword [0x421230]
cmp eax, 0xb7
push 0
jne 0x4013b6
call fcn.0040d29c
push esi
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push 0x42dd78
push 0x42dcb0
push 0
mov dword [0x42de40], esi
call dword [0x4213c0]
test eax, eax
mov dword [0x42de44], eax
jne 0x4013f1
pop esi
ret
push 0x424470
call dword [0x421234]
mov esi, eax
test esi, esi
je 0x40146f
push edi
mov edi, dword [0x421238]
push 0x424484
push esi
call edi
push 0x424490
push esi
mov dword [0x42de74], eax
call edi
push 0x42449c
push esi
mov dword [0x42de78], eax
call edi
cmp dword [0x42de74], 0
mov dword [0x42de7c], eax
pop edi
je 0x40146f
mov eax, dword [0x42de44]
push 0
push 1
push 2
push eax
call dword [0x4213c4]
mov ecx, dword [0x42de44]
push 0
push ecx
call dword [0x42de74]
mov edx, dword [0x42de44]
push 2
push edx
mov dword [0x42af84], eax
call dword [0x4213c8]
mov eax, dword [0x42de44]
push eax
call dword [0x4213cc]
mov eax, 1
pop esi
ret
Function at 0x10002000
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28c
mov eax, dword [0x1001f008]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push edi
push 0x58
lea eax, [ebp - 0x28c]
mov edi, edx
push 0
push eax
mov esi, ecx
call fcn.100063d0
mov eax, dword [esi]
add esp, 0xc
mov dword [ebp - 0x288], eax
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x28c], 0x58
push 0x100
push 0
push eax
call fcn.100063d0
xor eax, eax
mov byte [ebp - 0x1c], 0
add esp, 0xc
mov word [ebp - 0x22c], ax
mov dword [ebp - 0x222], eax
xorps xmm0, xmm0
mov word [ebp - 0x21e], ax
lea eax, [ebp - 0x22c]
movups xmmword [ebp - 0x1b], xmm0
push eax
mov word [ebp - 0xb], 0
mov byte [ebp - 9], 0
movq qword [ebp - 0x22a], xmm0
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x220]
push eax
movzx eax, word [ebp - 0x222]
push eax
movzx eax, word [ebp - 0x224]
push eax
movzx eax, word [ebp - 0x226]
push eax
movzx eax, word [ebp - 0x22a]
push eax
movzx eax, word [ebp - 0x22c]
push eax
lea eax, [ebp - 0x1c]
push str._04d_02d_02d__02d_02d_02d
push eax
call fcn.100022f0
lea eax, [esi + 0x218]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [esi + 8]
push eax
lea eax, [ebp - 0x11c]
push str.CG70__s__s._s.bin
push eax
call fcn.10002330
add esp, 0x34
lea eax, [ebp - 0x21c]
push 0x100
push 0
push eax
call fcn.100063d0
add esp, 0xc
lea eax, [ebp - 0x11c]
push eax
lea eax, [esi + 0x118]
push eax
lea eax, [ebp - 0x21c]
push str._s_s
push eax
call fcn.10002330
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x26c], 0x100
mov dword [ebp - 0x270], eax
add esp, 0x10
lea eax, [esi + 0x318]
mov dword [ebp - 0x280], eax
lea eax, [ebp - 0x28c]
push eax
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameA]
test eax, eax
je 0x100021b4
lea eax, [ebp - 0x11c]
add esi, 0x418
push eax
push 0x100
push esi
call fcn.10009488
add esp, 0xc
mov dword [ebp - 0x230], 0
lea eax, [ebp - 0x230]
push 0x1001d63c
push esi
push eax
call fcn.100084b9
mov eax, dword [ebp - 0x230]
add esp, 0xc
test eax, eax
jne 0x100021e3
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10005402
mov esp, ebp
pop ebp
ret
push 0x1001d63c
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x230], 0
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.100084b9
mov eax, dword [ebp - 0x230]
add esp, 0xc
test eax, eax
je 0x100021fd
push eax
push dword [ebp + 8]
push 1
push edi
call fcn.10009430
push dword [ebp - 0x230]
call fcn.10009178
add esp, 0x14
mov ecx, dword [ebp - 8]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.10005402
mov esp, ebp
pop ebp
ret
Function at 0x10002220
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1001f008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x100
lea eax, [ebp - 0x104]
mov esi, ecx
push 0
push eax
call fcn.100063d0
lea eax, [esi + 0x18]
push eax
lea eax, [ebp - 0x104]
push str._s_btn.ini
push eax
call fcn.10002330
push 0x1001d64c
lea eax, [ebp - 0x104]
mov dword [ebp - 0x108], 0
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.100084b9
add esp, 0x24
cmp dword [ebp - 0x108], 0
pop esi
je 0x100022df
lea eax, [ebp - 0x104]
push eax
push 0xffffffffffffffff
push str.func
push str.Button
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [0x1002031c], eax
cmp eax, 0x64
je 0x100022be
or ecx, 0xffffffff
cmp eax, 0x6f
cmovne eax, ecx
mov dword [0x1002031c], eax
push dword [ebp - 0x108]
call fcn.10009178
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10005402
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.10005402
mov esp, ebp
pop ebp
ret
Function at 0x10003c30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x1001f008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x14], 0
mov ebx, edx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], 0x1e
call fcn.10001f30
test eax, eax
je 0x10003de9
push 0x1001d5a8
lea eax, [edi + 0x418]
mov dword [ebp - 8], 0
push eax
lea eax, [ebp - 8]
push eax
call fcn.100084b9
mov eax, dword [ebp - 8]
add esp, 0xc
test eax, eax
je 0x10003daf
push 2
push 0
push eax
call fcn.100087ba
add esp, 0xc
push dword [ebp - 8]
call fcn.10008d2c
add esp, 4
mov esi, eax
push dword [ebp - 8]
call fcn.10008d37
add esp, 4
push esi
call fcn.10005413
add esp, 4
mov dword [ebp - 0xc], eax
push dword [ebp - 8]
push esi
push 1
push eax
call fcn.10008fd1
push dword [ebp - 8]
call fcn.10009178
add esp, 0x14
mov dword [ebp - 8], 0
cmp dword [edi + 0x6ce], esi
je 0x10003d12
mov esi, 0x102
mov edi, dword [ebp - 0xc]
test edi, edi
je 0x10003dee
push edi
call fcn.1000541c
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10005402
mov esp, ebp
pop ebp
ret
sub esp, 0xd0
lea esi, [ebp + 8]
mov ecx, 0x34
lea edx, [ebp - 0x14]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
call fcn.100037b0
mov esi, eax
add esp, 0xd0
test esi, esi
jne 0x10003ceb
push eax
push 0x1001d660
push dword [ebp - 0x14]
mov dword [ebp - 0x10], 0x3c
call ebx
add esp, 0xc
push 0x3f5
push 0x1001d660
push 0xc8
call ebx
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edi, dword [ebp - 0xc]
add esp, 0xc
mov edx, dword [ecx + 0x6ce]
mov ecx, dword [ecx + 0x6ae]
push eax
push ebx
push edi
call fcn.100038f0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x10003df0
push eax
push 0x1001d660
push 0x64
call ebx
add esp, 0xc
push 0x3f5
push 0x1001d66c
push 0x190
call ebx
add esp, 0xc
jmp 0x10003cee
push 0
push 0x1001d660
push 0
call ebx
add esp, 0xc
push 0x403
push str._failed.
push 0x190
call ebx
mov esi, 0x100
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10005402
mov esp, ebp
pop ebp
ret
mov esi, 0x101
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10005402
mov esp, ebp
pop ebp
ret

Function at 0x1000dc58
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1000dad7
Function at 0x403100
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47f868
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.00403770
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
push eax
push 0x402fe0
call dword [sym.imp.USER32.dll_EnumWindows]
lea eax, [ebp - 0x30]
push eax
call fcn.00408780
add esp, 4
cmp dword [eax + 0x10], 0
mov eax, dword [ebp - 0x1c]
setne bl
cmp eax, 0x10
jb 0x403173
inc eax
lea ecx, [ebp - 0x30]
push eax
push dword [ebp - 0x30]
call fcn.00404120
test bl, bl
je 0x403183
lea eax, [ebp - 0x18]
push eax
call fcn.00405ed0
add esp, 4
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x10]
cmp dword [ebp - 0x14], 0
push ecx
seta bl
push dword [ecx]
lea ecx, [ebp - 0x18]
push eax
call fcn.004717a0
push dword [ebp - 0x18]
call fcn.004314a6
mov ecx, dword [ebp - 0xc]
add esp, 4
mov al, bl
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40aa00
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47ff87
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
cmp dword [ebp + 8], 0
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0
je 0x40aa4a
mov dword [edi], 0x4869f8
mov dword [edi + 0x68], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
mov eax, dword [edi]
lea esi, [edi + 4]
push 0
push esi
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
mov ecx, dword [eax + 4]
add ecx, edi
call fcn.0040df70
mov eax, dword [edi]
mov dword [ebp - 4], 2
mov dword [ebp + 8], esi
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ecx + edi - 4], eax
mov ecx, esi
call fcn.0040abd0
lea eax, [esi + 4]
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov dword [esi + 0xc], eax
lea ecx, [esi + 8]
lea eax, [esi + 0x14]
mov dword [esi + 0x10], ecx
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x28]
mov dword [esi + 0x30], eax
mov byte [esi + 0x48], 0
mov byte [esi + 0x3d], 0
mov dword [ecx], 0
mov eax, dword [esi + 0x20]
mov ecx, dword [ebp - 0xc]
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov eax, dword [esi + 0xc]
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov dword [esi + 0x4c], 0
mov eax, dword [0x4aa218]
mov dword [esi + 0x40], eax
mov eax, dword [0x4aa21c]
mov dword [esi + 0x44], eax
mov eax, edi
mov dword [esi + 0x38], 0
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x40abd0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x484136
push eax
mov dword fs:[0], esp
push esi
mov esi, ecx
push edi
push 8
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00431473
mov edi, eax
add esp, 4
test edi, edi
je 0x40ac18
push 1
mov dword [ebp - 4], 0
call fcn.00430912
add esp, 4
mov dword [edi + 4], eax
jmp 0x40ac1a
xor edi, edi
lea eax, [esi + 4]
mov dword [esi + 0x34], edi
mov dword [esi + 0xc], eax
lea ecx, [esi + 8]
lea eax, [esi + 0x14]
mov dword [esi + 0x10], ecx
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x28]
mov dword [esi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [esi + 0x20]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov eax, dword [esi + 0xc]
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40b130
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4800fa
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
mov esi, ecx
push 0
mov dword [ebp - 0x10], esi
call fcn.00430469
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 6
test eax, eax
jne 0x40b1df
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], vtable.std::exception.0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], str.bad_locale_name
xorps xmm0, xmm0
mov byte [ebp - 0x14], 1
push eax
movq qword [ebp - 0x20], xmm0
call fcn.00434a77
add esp, 8
mov dword [ebp - 0x24], vtable.std::runtime_error.0
lea eax, [ebp - 0x24]
push 0x49df8c
push eax
call fcn.00433e64
push eax
push esi
call fcn.00430a15
mov ecx, dword [ebp - 0xc]
add esp, 8
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40c6c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x47fd88
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x40c80c
cmp byte [ebx + 0x3d], 0
je 0x40c80c
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x40c714
xor al, al
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov ecx, 0xf
mov byte [ebp - 0x28], 0
xorps xmm0, xmm0
mov dword [ebp - 0x14], ecx
cmp ecx, 0x10
movq qword [ebp - 0x28], xmm0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 8
cmovae eax, dword [ebp - 0x28]
mov byte [eax + 8], 0
push esi
mov dword [ebp - 4], 0
push edi
mov ecx, dword [ebp - 0x14]
nop dword [eax]
cmp ecx, 0x10
lea eax, [ebp - 0x10]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x28]
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x40c78e
sub eax, 1
je 0x40c792
mov ecx, dword [ebp - 0x14]
sub eax, 2
je 0x40c7e5
xor bl, bl
jmp 0x40c7e7
mov byte [ebx + 0x3d], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x10]
cmovae eax, edx
sub esi, eax
je 0x40c7c7
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.004415e3
mov ecx, dword [ebp - 0x14]
add esp, 0x10
cmp esi, eax
jne 0x40c78a
cmp byte [ebx + 0x3d], 0
je 0x40c7e5
test esi, esi
jne 0x40c750
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.0040ce60
jmp 0x40c746
mov bl, 1
pop edi
pop esi
cmp ecx, 0x10
jb 0x40c7fb
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00404120
mov al, bl
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
mov al, 1
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x40f400
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4803b7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
cmp dword [ebp + 8], 0
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0
je 0x40f44a
mov dword [edi], 0x486c24
mov dword [edi + 0x70], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
mov eax, dword [edi]
lea esi, [edi + 0x10]
push 0
push esi
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov ecx, dword [eax + 4]
add ecx, edi
call fcn.0040df70
mov eax, dword [edi]
mov dword [ebp - 4], 2
mov dword [ebp + 8], esi
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ecx + edi - 4], eax
mov ecx, esi
call fcn.0040abd0
lea eax, [esi + 4]
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov dword [esi + 0xc], eax
lea ecx, [esi + 8]
lea eax, [esi + 0x14]
mov dword [esi + 0x10], ecx
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x28]
mov dword [esi + 0x30], eax
mov byte [esi + 0x48], 0
mov byte [esi + 0x3d], 0
mov dword [ecx], 0
mov eax, dword [esi + 0x20]
mov ecx, dword [ebp - 0xc]
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov eax, dword [esi + 0xc]
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov dword [esi + 0x4c], 0
mov eax, dword [0x4aa218]
mov dword [esi + 0x40], eax
mov eax, dword [0x4aa21c]
mov dword [esi + 0x44], eax
mov eax, edi
mov dword [esi + 0x38], 0
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x40fc80
Capabilities:
Create directory

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x14], 0x10
jb 0x40fc8c
mov eax, dword [eax]
mov dword [esp + 4], eax
jmp fcn.0040fca0
Function at 0x411540
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47fd88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push 0xb
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
cmp eax, 1
sete bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
test bl, bl
jne 0x411633
lea eax, [ebp - 0x28]
mov ecx, 0x4a9a88
push eax
call fcn.004046a0
mov dword [0x4a9f24], 2
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 4], 0
jb 0x4115a8
mov eax, dword [eax]
push eax
push 0x48649c
push 0x4a9a88
call fcn.0040e7e0
push str.DEBUG:_Cant_rename__
push 0x48649c
push eax
call fcn.0040e7e0
push dword [ebp + 8]
push 0x48649c
push eax
call fcn.0040e7e0
push str.__to__
push 0x48649c
push eax
call fcn.0040e7e0
push dword [ebp + 0xc]
push 0x48649c
push eax
call fcn.0040e7e0
push str.____Error_code:
push 0x48649c
push eax
call fcn.0040e7e0
add esp, 0x48
push dword [ebp - 0x10]
push 0x4867d8
push eax
call fcn.0040e7e0
push eax
call fcn.0040d5b0
mov ecx, dword [ebp - 0x14]
add esp, 0x10
cmp ecx, 0x10
jb 0x411633
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00404120
mov ecx, dword [ebp - 0xc]
mov al, bl
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret