joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40aeb0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46bb3b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x491d58]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0043c2ac
push 4
mov dword [ebp - 4], 0
call fcn.0044de73
mov edi, eax
add esp, 4
test edi, edi
je 0x40af30
call fcn.0043bc1a
mov dword [edi], eax
call fcn.0043bad4
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0043c26d
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x40af26
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0043c295
jmp 0x40af32
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 [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x415830
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46e6bb
mov eax, dword fs:[0]
push eax
sub esp, 0x1b4
mov eax, dword [0x491d58]
xor eax, esp
mov dword [esp + 0x1ac], eax
push ebx
push edi
mov eax, dword [0x491d58]
xor eax, esp
push eax
lea eax, [esp + 0x1c0]
mov dword fs:[0], eax
mov eax, 7
xor edi, edi
xor ecx, ecx
xor edx, edx
mov ebx, 1
mov dword [esp + 0x10], esi
mov dword [esp + 0x1c], vtable.LogItem.0
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], edi
mov word [esp + 0x20], cx
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], edi
mov word [esp + 0x3c], dx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x1c8], edi
push str._DBG___0x
lea ecx, [esp + 0x20]
mov dword [esp + 0x60], ebx
call fcn.00403090
lea ecx, [esp + 0x10]
push ecx
mov ecx, eax
mov dword [eax + 0x3c], edi
call fcn.00402fa0
push str.AcceptClientSocket_called...
push 0x48176c
mov ecx, eax
mov dword [eax + 0x3c], ebx
call fcn.00403090
mov ecx, eax
call fcn.00403090
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c8], 0xffffffff
call fcn.00402d10
cmp dword [esi + 0x1d4], 0xffffffff
jne 0x415969
lea esp, [esp]
mov eax, dword [esi + 0x1d0]
lea edx, [esp + 0x14]
push edx
push edi
push edi
lea ecx, [esp + 0xb8]
push ecx
push eax
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc0], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], edi
call dword [sym.imp.WS2_32.dll_select]
cmp eax, ebx
jne 0x415960
mov edx, dword [esi + 0x1d0]
push edi
push edi
push edx
call dword [sym.imp.WS2_32.dll_accept]
mov dword [esi + 0x1d4], eax
cmp eax, 0xffffffff
je 0x41598c
cmp dword [esi + 0x1d4], 0xffffffff
je 0x415910
mov ecx, dword [esp + 0x1c0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x1ac]
xor ecx, esp
call fcn.0044ce4c
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
lea ecx, [esp + 0x64]
call fcn.00411a00
push 0x4891e0
lea eax, [esp + 0x68]
push eax
call fcn.00450350
int3
Function at 0x417ad0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46bb3b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x491d58]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0043c2ac
push 4
mov dword [ebp - 4], 0
call fcn.0044de73
mov edi, eax
add esp, 4
test edi, edi
je 0x417b50
call fcn.0043bc1a
mov dword [edi], eax
call fcn.0043bad4
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0043c26d
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x417b46
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0043c295
jmp 0x417b52
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 [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41b380
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46f281
mov eax, dword fs:[0]
push eax
sub esp, 0x338
mov eax, dword [0x491d58]
xor eax, esp
mov dword [esp + 0x330], eax
push ebx
push esi
push edi
mov eax, dword [0x491d58]
xor eax, esp
push eax
lea eax, [esp + 0x348]
mov dword fs:[0], eax
xor ebx, ebx
push 0x24c
lea eax, [esp + 0xf4]
push ebx
push eax
mov esi, ecx
mov dword [esp + 0xf8], ebx
call fcn.00450420
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x41b3eb
mov eax, dword [esi]
jmp 0x41b3ed
mov eax, esi
lea ecx, [esp + 0xec]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x41b505
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
cmp eax, 2
je 0x41b501
cmp eax, 3
je 0x41b501
push 7
push str.getSize
lea ecx, [esp + 0x28]
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
call fcn.00409480
lea edx, [esp + 0x18]
push edx
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push 0xffffffffffffffff
mov dword [esp + 0x374], ebx
push ebx
xor eax, eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], ebx
push esi
mov dword [esp + 0x48], str.__error:
mov word [ecx], ax
call fcn.004097e0
lea ecx, [esp + 0xf0]
push ecx
call fcn.004024b0
add esp, 0x20
mov dword [esp + 0x18], eax
lea ebx, [esp + 0x24]
lea esi, [esp + 0x40]
mov byte [esp + 0x354], 1
call fcn.00407fd0
mov esi, vtable.Exception.0
mov dword [esp + 0x40], esi
mov edi, str.Failed_to_read_size_of_file:
lea ecx, [esp + 0x40]
mov byte [esp + 0x354], 2
call fcn.0041d2b0
mov edi, dword [esp + 0x18]
mov ecx, eax
call fcn.004196b0
mov edi, dword [esp + 0x20]
mov ecx, eax
call fcn.0041d2b0
mov ecx, eax
call fcn.0041d430
push eax
lea ecx, [esp + 0x88]
call fcn.00402180
push 0x488f4c
lea edx, [esp + 0x88]
push edx
mov dword [esp + 0x8c], esi
call fcn.00450350
xor eax, eax
jmp 0x41b513
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x10c]
mov ecx, dword [esp + 0x348]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x330]
xor ecx, esp
call fcn.0044ce4c
mov esp, ebp
pop ebp
ret
Function at 0x41b820
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47049e
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x491d58]
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 esi, ecx
call fcn.0041b710
add esi, 4
cmp dword [esi + 0x14], 8
jb 0x41b862
mov eax, dword [esi]
jmp 0x41b864
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor ebx, ebx
cmp eax, ebx
jne 0x41b941
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0xe0], esp
push 0xffffffffffffffff
push ebx
xor eax, eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], ebx
push esi
mov word [ecx], ax
call fcn.004097e0
lea ecx, [ebp - 0xdc]
push ecx
call fcn.004024b0
add esp, 0x20
mov dword [ebp - 0xe0], eax
mov dword [ebp - 4], ebx
push ebx
mov edi, 0xf
push 0x47f6a9
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.00409480
lea ebx, [ebp - 0x2c]
lea esi, [ebp - 0xc0]
mov byte [ebp - 4], 1
call fcn.00407fd0
cmp dword [ebp - 0x18], 0x10
jb 0x41b8f0
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0044d9f1
add esp, 4
xor eax, eax
mov esi, vtable.Exception.0
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x2c], al
mov dword [ebp - 0xc0], esi
mov edi, str.Error_when_deleting_file
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 2
call fcn.00419b70
mov edi, dword [ebp - 0xe0]
mov ecx, eax
call fcn.004196b0
push eax
lea ecx, [ebp - 0x78]
call fcn.00402180
push 0x488f4c
lea eax, [ebp - 0x78]
push eax
mov dword [ebp - 0x78], esi
call fcn.00450350
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.0044ce4c
mov esp, ebp
pop ebp
ret
Function at 0x41b960
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x470449
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
mov eax, dword [0x491d58]
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
mov esi, edx
call fcn.0041b710
mov eax, 8
cmp dword [esi + 0x14], eax
jb 0x41b9a5
mov ecx, dword [esi]
jmp 0x41b9a7
mov ecx, esi
add edi, 4
cmp dword [edi + 0x14], eax
jb 0x41b9b3
mov eax, dword [edi]
jmp 0x41b9b5
mov eax, edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
xor ebx, ebx
cmp eax, ebx
jne 0x41bae4
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0xfc], esp
push 0xffffffffffffffff
push ebx
xor eax, eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], ebx
push esi
mov word [ecx], ax
call fcn.004097e0
lea ecx, [ebp - 0xdc]
push ecx
call fcn.004024b0
mov dword [ebp - 0xfc], eax
add esp, 4
mov ecx, esp
mov dword [ebp - 0x104], esp
push 0xffffffffffffffff
mov dword [ebp - 4], ebx
push ebx
xor edx, edx
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], ebx
push edi
mov dword [ebp - 0x100], str._to
mov word [ecx], dx
call fcn.004097e0
lea eax, [ebp - 0xf8]
push eax
call fcn.004024b0
add esp, 0x20
mov edi, eax
mov byte [ebp - 4], 1
push ebx
push 0x47f6a9
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.00409480
lea ebx, [ebp - 0x2c]
lea esi, [ebp - 0xc0]
mov byte [ebp - 4], 2
call fcn.00407fd0
cmp dword [ebp - 0x18], 0x10
jb 0x41ba80
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0044d9f1
add esp, 4
xor eax, eax
mov esi, vtable.Exception.0
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x2c], al
mov dword [ebp - 0xc0], esi
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 3
call fcn.0041d6d0
mov ecx, eax
call fcn.004196b0
mov edi, dword [ebp - 0x100]
mov ecx, eax
call fcn.00419b70
mov edi, dword [ebp - 0xfc]
mov ecx, eax
call fcn.004196b0
push eax
lea ecx, [ebp - 0x78]
call fcn.00402180
push 0x488f4c
lea edx, [ebp - 0x78]
push edx
mov dword [ebp - 0x78], esi
call fcn.00450350
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.0044ce4c
mov esp, ebp
pop ebp
ret
Function at 0x41bb80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4703ed
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x491d58]
xor eax, esp
mov dword [esp + 0x100], eax
push ebx
push esi
push edi
mov eax, dword [0x491d58]
xor eax, esp
push eax
lea eax, [esp + 0x118]
mov dword fs:[0], eax
xor ebx, ebx
mov edi, edx
mov esi, ecx
mov dword [esp + 0x10], ebx
cmp edi, ebx
je 0x41bcad
push 2
mov ecx, 0xc0000000
mov edx, esi
mov dword [esp + 0x124], 0xffffffff
call fcn.0041b540
mov ecx, dword [ebp + 8]
mov edx, dword [esi + 0x20]
push ebx
lea eax, [esp + 0x18]
push eax
push ecx
push edi
push edx
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, ebx
jne 0x41bd31
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0xffffffffffffffff
push ebx
xor eax, eax
add esi, 4
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], ebx
push esi
mov word [ecx], ax
call fcn.004097e0
lea ecx, [esp + 0xc4]
push ecx
call fcn.004024b0
add esp, 0x20
mov esi, eax
lea ecx, [esp + 0xc4]
mov dword [esp + 0x120], 4
call fcn.004020c0
lea edx, [ebp + 8]
push edx
push ecx
mov ecx, eax
mov byte [esp + 0x128], 5
call fcn.0041d9b0
add esp, 4
mov ecx, eax
call fcn.0041d430
mov edi, str._bytes_to_file
mov ecx, eax
call fcn.0041d2b0
mov edi, esi
mov ecx, eax
call fcn.004196b0
push eax
lea ecx, [esp + 0x60]
call fcn.00402180
push 0x488f4c
lea eax, [esp + 0x60]
push eax
mov dword [esp + 0x64], vtable.Exception.0
call fcn.00450350
push 0x13
mov edi, 0xf
push str.Invalid_data_passed
lea ecx, [esp + 0x48]
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
call fcn.00409480
mov dword [esp + 0x120], ebx
mov esi, 1
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], esi
call fcn.0044ceae
push 0xffffffffffffffff
mov dword [esp + 0x124], esi
push ebx
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x24], vtable.BaseException.0
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
call fcn.00409390
push 0x488fcc
lea edx, [esp + 0x1c]
mov byte [esp + 0x124], bl
push edx
mov dword [esp + 0x20], vtable.AssertException.0
call fcn.00450350
mov ecx, dword [esp + 0x118]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.0044ce4c
mov esp, ebp
pop ebp
ret 4
Function at 0x41c0b0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46e647
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x491d58]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebx], 0x481f4c
mov dword [ebx + 0x68], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], eax
mov ecx, dword [ebx]
mov edx, dword [ecx + 4]
mov dword [ebx + edx], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov eax, dword [ebx]
mov edi, dword [eax + 4]
add edi, ebx
mov ecx, edi
mov dword [ebp - 0x10], 1
call fcn.00401ea0
lea esi, [ebx + 0x10]
push 0x20
mov ecx, edi
mov dword [edi + 0x38], esi
mov dword [edi + 0x3c], 0
call fcn.0040c610
cmp dword [edi + 0x38], 0
mov byte [edi + 0x40], al
jne 0x41c149
mov eax, dword [edi + 0xc]
or eax, 4
or eax, 4
push 0
push eax
mov ecx, edi
call fcn.00401d60
mov dword [ebp - 4], 2
mov ecx, dword [ebx]
mov edx, dword [ecx + 4]
mov ecx, esi
mov dword [ebx + edx], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
call fcn.0040aeb0
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x50], 0
mov byte [esi + 0x49], 0
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
xor ecx, ecx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ecx
mov eax, dword [esi + 0x24]
mov dword [eax], ecx
mov edx, dword [esi + 0x34]
mov dword [edx], ecx
mov eax, dword [esi + 0x10]
mov dword [eax], ecx
mov edx, dword [esi + 0x20]
mov dword [edx], ecx
mov eax, dword [esi + 0x30]
mov dword [eax], ecx
mov dword [esi + 0x54], ecx
mov edx, dword [0x4986dc]
mov dword [esi + 0x4c], edx
mov dword [esi + 0x44], ecx
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41cf10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46c758
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x491d58]
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
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x41d031
cmp byte [edi + 0x49], bl
je 0x41d031
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x41d025
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x41cf85
lea eax, [ebp - 0x2c]
mov byte [eax + 8], bl
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x41cf9d
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x41cfc6
dec eax
je 0x41cfca
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x41d020
jmp 0x41d02c
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x41cfda
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x41d003
cmp ebx, 0x10
jae 0x41cfe9
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.0044ebd1
add esp, 0x10
cmp esi, eax
jne 0x41d01d
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x41d029
test esi, esi
jne 0x41cf91
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.0040c560
jmp 0x41cf8b
lea ecx, [ebp - 0x2c]
call fcn.00407420
xor al, al
jmp 0x41d033
lea ecx, [ebp - 0x2c]
call fcn.00407420
mov al, 1
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.0044ce4c
mov esp, ebp
pop ebp
ret
Function at 0x41e0b0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46e57e
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x491d58]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0xc8], esi
xor ebx, ebx
push ebx
push ebx
mov dword [ebp - 4], ebx
push ebx
mov dword [esi], vtable.iusl::Mutex.0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 4], eax
cmp eax, ebx
jne 0x41e17c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xe
push str.Mutex::Mutex__
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.00409480
lea ebx, [ebp - 0x2c]
lea esi, [ebp - 0xc0]
mov byte [ebp - 4], 1
call fcn.00407fd0
mov esi, vtable.Exception.0
mov dword [ebp - 0xc0], esi
lea eax, [ebp - 0xc4]
push eax
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 2
call fcn.0041e910
mov ecx, eax
call fcn.0041ea90
push eax
lea ecx, [ebp - 0x78]
call fcn.00402180
push 0x488f4c
lea ecx, [ebp - 0x78]
push ecx
mov dword [ebp - 0x78], esi
call fcn.00450350
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044ce4c
mov esp, ebp
pop ebp
ret
Function at 0x426960
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46dcc0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x491d58]
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, dword [ebp + 8]
mov ebx, 8
cmp dword [edi + 0x14], ebx
jb 0x42699c
mov eax, dword [edi]
jmp 0x42699e
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4269b5
test al, 0x10
je 0x4269b5
mov al, 1
jmp 0x426a86
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0x4c], esp
call fcn.00426930
lea eax, [ebp - 0x2c]
push eax
call fcn.004025e0
add esp, 0x20
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], ebx
jae 0x4269e0
lea eax, [ebp - 0x2c]
mov ebx, dword [ebp - 0x1c]
push eax
call fcn.0041cd60
cmp eax, 0xffffffff
je 0x426a59
push edi
mov ecx, eax
xor edx, edx
lea esi, [ebp - 0x48]
call fcn.0041c080
push eax
mov byte [ebp - 4], 1
call fcn.00426960
mov esi, 8
add esp, 4
mov bl, al
cmp dword [ebp - 0x34], esi
jb 0x426a20
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.0044d9f1
add esp, 4
test bl, bl
je 0x426a44
cmp dword [edi + 0x14], esi
jb 0x426a2b
mov edi, dword [edi]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
cmp dword [ebp - 0x18], esi
jb 0x426a84
mov edx, dword [ebp - 0x2c]
push edx
jmp 0x426a7c
cmp dword [ebp - 0x18], esi
jb 0x426a55
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0044d9f1
add esp, 4
xor al, al
jmp 0x426a86
mov esi, 8
cmp dword [edi + 0x14], esi
jb 0x426a65
mov edi, dword [edi]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
cmp dword [ebp - 0x18], esi
jb 0x426a84
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0044d9f1
add esp, 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.0044ce4c
mov esp, ebp
pop ebp
ret
Function at 0x42d1c0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46da67
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x491d58]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebx], 0x4827dc
mov dword [ebx + 0x60], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebx + ecx], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov edx, dword [ebx]
mov edi, dword [edx + 4]
add edi, ebx
mov ecx, edi
mov dword [ebp - 0x10], 1
call fcn.00401ea0
lea esi, [ebx + 4]
push 0x20
mov ecx, edi
mov dword [edi + 0x38], esi
mov dword [edi + 0x3c], 0
call fcn.0040c610
cmp dword [edi + 0x38], 0
mov byte [edi + 0x40], al
jne 0x42d251
mov eax, dword [edi + 0xc]
or eax, 4
or eax, 4
push 0
push eax
mov ecx, edi
call fcn.00401d60
mov dword [ebp - 4], 2
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebx + ecx], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov ecx, esi
call fcn.0040aeb0
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x50], 0
mov byte [esi + 0x49], 0
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
xor ecx, ecx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ecx
mov eax, dword [esi + 0x24]
mov dword [eax], ecx
mov edx, dword [esi + 0x34]
mov dword [edx], ecx
mov eax, dword [esi + 0x10]
mov dword [eax], ecx
mov edx, dword [esi + 0x20]
mov dword [edx], ecx
mov eax, dword [esi + 0x30]
mov dword [eax], ecx
mov dword [esi + 0x54], ecx
mov edx, dword [0x4986dc]
mov dword [esi + 0x4c], edx
mov dword [esi + 0x44], ecx
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4