joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401150
Capabilities:
Timestomp file

Disassembly:
sub esp, 0x20
push esi
lea eax, [esp + 0x2c]
push edi
push eax
call fcn.00409b22
add esp, 4
test eax, eax
je 0x401254
movzx ecx, word [eax + 0x14]
add cx, 0x76c
mov word [esp + 0x18], cx
movzx edx, word [eax + 0x10]
add dx, 1
mov word [esp + 0x1a], dx
movzx ecx, word [eax + 0x18]
mov word [esp + 0x1c], cx
movzx edx, word [eax + 0xc]
mov word [esp + 0x1e], dx
movzx ecx, word [eax + 8]
mov word [esp + 0x20], cx
movzx edx, word [eax + 4]
mov word [esp + 0x22], dx
mov ax, word [eax]
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x1c]
push edx
mov word [esp + 0x2c], ax
mov word [esp + 0x2e], 0
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
je 0x401254
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
test eax, eax
je 0x401254
mov eax, dword [0x41d178]
test eax, eax
jge 0x401201
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
sbb eax, eax
neg eax
mov dword [0x41d178], eax
mov edx, dword [esp + 0x2c]
push 0
neg eax
sbb eax, eax
and eax, 0x2000000
push eax
push 3
push 0
push 0
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x401254
lea eax, [esp + 0x10]
push eax
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov esi, eax
neg esi
sbb esi, esi
neg esi
push edi
sub esi, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
add esp, 0x20
ret
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x20
ret

Function at 0x401260
Capabilities:
Terminate process

Disassembly:
push esi
push 0x18
call fcn.0040a166
mov esi, eax
add esp, 4
test esi, esi
jne 0x40127b
mov eax, str.Out_of_memory
jmp 0x401c70
mov eax, dword [esp + 8]
push eax
call fcn.004095fb
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 8], ecx
mov ecx, dword [edi]
add esp, 4
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], eax
mov dword [esi], ecx
mov dword [edi], esi
pop esi
ret
Function at 0x401c40
Capabilities:
Terminate process

Disassembly:
call fcn.00401de0
push eax
push str.untgz_version_0.2.1_n__using_zlib_version__s_n_n
call fcn.004092e4
push str.Usage:_untgz_file.tgz____________extract_all_files_n_______untgz_file.tgz_fname_...__extract_selected_files_n_______untgz__l_file.tgz_________list_archive_contents_n_______untgz__h__________________display_this_help_n
call fcn.004092e4
mov eax, dword [esp + 0x10]
add esp, 0xc
push eax
call fcn.00409ec4
int3

Function at 0x401ca0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x41f19c]
push esi
push eax
push str._s:_Couldnt_find
call fcn.0040a229
add eax, 0x40
push eax
call fcn.004094ac
mov eax, dword [0x41d160]
add esp, 0xc
xor esi, esi
test eax, eax
je 0x4010fb
xor ecx, ecx
lea ebx, [ebx]
cmp dword [ecx + 0x41d164], 0
mov ecx, str._s_s_
jne 0x4010d3
mov ecx, str.or__s_s_n
push eax
push edi
push ecx
call fcn.0040a229
add eax, 0x40
push eax
call fcn.004094ac
add esi, 1
lea ecx, [esi*4]
mov eax, dword [ecx + 0x41d160]
add esp, 0x10
test eax, eax
jne 0x4010c0
push 1
call fcn.00409ec4
pop esi
int3
mov ecx, dword [0x41f19c]
push eax
push ecx
push str._s:__s_n
call fcn.0040a229
add eax, 0x40
push eax
call fcn.004094ac
add esp, 0x10
push 1
call fcn.00409ec4
int3
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x14]
mov eax, dword [ebp]
push 0x5c
push eax
mov ebx, 1
call fcn.00409830
add esp, 8
test eax, eax
mov dword [0x41f19c], eax
jne 0x401cf1
mov ecx, dword [ebp]
push 0x2f
push ecx
call fcn.00409830
add esp, 8
test eax, eax
mov dword [0x41f19c], eax
jne 0x401cf1
mov edx, dword [ebp]
push 0x3a
push edx
call fcn.00409830
add esp, 8
test eax, eax
jne 0x401cf1
mov eax, dword [ebp]
jmp 0x401cf3
add eax, ebx
cmp dword [esp + 0x10], ebx
mov dword [0x41f19c], eax
jne 0x401d05
push 0
call fcn.00401c40
mov eax, dword [ebp + 4]
push esi
push edi
mov edi, 0x41b220
mov esi, eax
mov ecx, 3
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x401d2f
mov esi, ebx
mov ebx, 2
cmp dword [esp + 0x18], ebx
jne 0x401d49
push edx
call fcn.00401c40
mov esi, eax
mov edi, 0x41b224
mov ecx, 3
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x401d47
push eax
call fcn.00401c40
mov esi, eax
mov eax, dword [ebp + ebx*4]
call section..text
mov edi, eax
test edi, edi
jne 0x401d61
mov edi, dword [ebp + ebx*4]
jmp 0x401090
add ebx, 1
cmp esi, 1
jne 0x401d75
cmp ebx, dword [esp + 0x18]
je 0x401d7e
push esi
call fcn.00401c40
test esi, esi
jl 0x401dd0
cmp esi, 1
jg 0x401dd0
push 0x41b228
push edi
call fcn.004021f0
add esp, 8
test eax, eax
jne 0x401db9
mov ecx, dword [0x41f19c]
push edi
push ecx
push str._s:_Couldnt_gzopen__s_n
call fcn.0040a229
add eax, 0x40
push eax
call fcn.004094ac
add esp, 0x10
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
mov edx, dword [esp + 0x18]
push ebp
push edx
push ebx
push esi
push eax
call fcn.00401410
add esp, 0x14
push eax
call fcn.00409ec4
mov eax, str.Unknown_option
jmp 0x401c70
Function at 0x402210
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, dword [esp + 8]
mov dword [esi], 0
jmp 0x402220
mov eax, dword [esi]
mov edx, dword [ebx + 4]
mov ecx, edi
sub ecx, eax
push ecx
add eax, ebp
push eax
push edx
call fcn.00414552
add esp, 0xc
test eax, eax
jle 0x402240
add dword [esi], eax
cmp dword [esi], edi
jb 0x402220
test eax, eax
pop ebp
jge 0x402262
call fcn.004090d6
mov eax, dword [eax]
push eax
call fcn.0040a6ad
push eax
push 0xffffffffffffffff
push ebx
call fcn.00401e90
add esp, 0x10
or eax, 0xffffffff
ret
jne 0x40226b
mov dword [ebx + 0x28], 1
xor eax, eax
ret
Function at 0x404dc0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [edi + 0x2c]
push ebp
push esi
mov ebp, dword [edi + 0x3c]
sub ebp, dword [edi + 0x74]
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x2c]
lea edx, [ebx + ecx - 0x106]
sub ebp, eax
cmp eax, edx
jb 0x404e3e
mov eax, dword [edi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.0040a720
mov edx, dword [edi + 0x4c]
mov eax, dword [edi + 0x44]
sub dword [edi + 0x70], ebx
sub dword [edi + 0x6c], ebx
add esp, 0xc
sub dword [edi + 0x5c], ebx
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebx
jb 0x404e11
sub eax, ebx
jmp 0x404e13
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x404e02
mov ecx, dword [edi + 0x40]
mov edx, ebx
lea ecx, [ecx + ebx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebx
jb 0x404e32
sub eax, ebx
jmp 0x404e34
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x404e23
add ebp, ebx
mov esi, dword [edi]
cmp dword [esi + 4], 0
je 0x404f12
mov edx, dword [edi + 0x74]
add edx, dword [edi + 0x6c]
mov ecx, ebp
add edx, dword [edi + 0x38]
push edx
call fcn.00404cc0
add dword [edi + 0x74], eax
mov edx, dword [edi + 0x74]
add esp, 4
cmp edx, 3
jb 0x404e89
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x38]
lea esi, [eax + ecx]
movzx eax, byte [esi]
mov ecx, dword [edi + 0x58]
mov dword [edi + 0x48], eax
shl eax, cl
movzx ecx, byte [esi + 1]
xor eax, ecx
and eax, dword [edi + 0x54]
mov dword [edi + 0x48], eax
cmp edx, 0x106
jae 0x404e9d
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x404dc6
mov eax, dword [edi + 0x16c0]
mov ecx, dword [edi + 0x3c]
cmp eax, ecx
jae 0x404f12
mov esi, dword [edi + 0x6c]
add esi, edx
cmp eax, esi
jae 0x404ee1
sub ecx, esi
mov ebx, ecx
cmp ebx, 0x102
jbe 0x404ec4
mov ebx, 0x102
mov ecx, dword [edi + 0x38]
push ebx
add ecx, esi
push 0
push ecx
call fcn.0040ab40
add esp, 0xc
add ebx, esi
pop esi
pop ebp
mov dword [edi + 0x16c0], ebx
pop ebx
ret
lea edx, [esi + 0x102]
cmp eax, edx
jae 0x404f12
sub esi, eax
add esi, 0x102
sub ecx, eax
cmp esi, ecx
jbe 0x404efb
mov esi, ecx
mov ecx, dword [edi + 0x38]
push esi
add ecx, eax
push 0
push ecx
call fcn.0040ab40
add esp, 0xc
add dword [edi + 0x16c0], esi
pop esi
pop ebp
pop ebx
ret
Function at 0x40911a
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x409147
call fcn.004090e9
mov dword [eax], esi
call fcn.004090d6
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0040b27c
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x409165
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004090fc
pop ecx
jmp 0x409142
test byte [esp + 0xc], 0x80
je 0x409171
and eax, 0xfffffffe
jmp 0x409174
or eax, 1
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x409156
xor eax, eax
pop esi
ret

Function at 0x40a3ca
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x40a3f7
call fcn.004090e9
mov dword [eax], esi
call fcn.004090d6
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0040b27c
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x40a3d3
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40a426
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004090fc
pop ecx
call fcn.004090d6
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x40a44d
test al, 1
je 0x40a44d
test byte [esp + 0xc], 2
je 0x40a44d
call fcn.004090e9
mov dword [eax], 5
call fcn.004090d6
mov dword [eax], 0xd
jmp 0x40a41d
xor eax, eax
pop esi
ret
Function at 0x40dfc7
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x41c540]
je 0x40dfe2
inc edi
cmp edi, 0x17
jb 0x40dfd3
cmp edi, 0x17
jae 0x40e162
push ebp
push 3
call fcn.00412772
cmp eax, 1
pop ecx
je 0x40e12e
push 3
call fcn.00412772
test eax, eax
pop ecx
jne 0x40e016
cmp dword [0x41c438], 1
je 0x40e12e
cmp ebx, 0xfc
je 0x40e161
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x41d2b0
push ebp
call fcn.0040c7a8
add esp, 0xc
test eax, eax
je 0x40e04c
push esi
push esi
push esi
push esi
push esi
call fcn.0040b180
add esp, 0x14
push 0x104
mov esi, 0x41d2c9
push esi
push 0
mov byte [0x41d3cd], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40e090
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0040c7a8
add esp, 0xc
test eax, eax
je 0x40e090
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0040b180
add esp, 0x14
push esi
call fcn.0040c810
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40e0d5
push esi
call fcn.0040c810
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x41d5c4
push 0x41a0f4
sub ecx, eax
push ecx
push eax
call fcn.0040fdbf
add esp, 0x14
test eax, eax
je 0x40e0d5
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0040b180
add esp, 0x14
jmp 0x40e0d7
xor esi, esi
push 0x41a0f0
push ebx
push ebp
call fcn.00412701
add esp, 0xc
test eax, eax
je 0x40e0f7
push esi
push esi
push esi
push esi
push esi
call fcn.0040b180
add esp, 0x14
push dword [edi*8 + 0x41c544]
push ebx
push ebp
call fcn.00412701
add esp, 0xc
test eax, eax
je 0x40e119
push esi
push esi
push esi
push esi
push esi
call fcn.0040b180
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00412544
add esp, 0xc
jmp 0x40e161
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x40e161
cmp ebp, 0xffffffff
je 0x40e161
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x41c544]
push dword [esi]
call fcn.0040c810
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x410b33
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41c450]
jne 0x410b3d
repz ret
jmp fcn.00413a85
Function at 0x412544
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040ac94
xor ebx, ebx
cmp dword [0x41d8a8], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x41261a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4126fa
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4126fa
push eax
call fcn.0040ac26
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x41d8a8], eax
call esi
push eax
call fcn.0040ac26
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x41d8ac], eax
call esi
push eax
call fcn.0040ac26
mov dword [0x41d8b0], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00409cdd
test eax, eax
pop ecx
pop ecx
je 0x4125e8
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040b180
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x41261a
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0040ac26
cmp eax, ebx
pop ecx
mov dword [0x41d8b8], eax
je 0x41261a
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040ac26
pop ecx
mov dword [0x41d8b4], eax
mov eax, dword [0x41d8b4]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x41269f
cmp dword [0x41d8b8], ecx
je 0x41269f
push eax
call fcn.0040ac9d
push dword [0x41d8b8]
mov esi, eax
call fcn.0040ac9d
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x41269f
cmp edi, ebx
je 0x41269f
call esi
cmp eax, ebx
je 0x41266c
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41266c
test byte [ebp - 0x18], 1
jne 0x41269f
lea eax, [ebp - 0x10]
push eax
call fcn.00409d14
test eax, eax
pop ecx
je 0x412687
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040b180
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x412696
or dword [ebp + 0x10], 0x200000
jmp 0x4126da
or dword [ebp + 0x10], 0x40000
jmp 0x4126da
mov eax, dword [0x41d8ac]
cmp eax, dword [ebp - 8]
je 0x4126da
push eax
call fcn.0040ac9d
cmp eax, ebx
pop ecx
je 0x4126da
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4126da
mov eax, dword [0x41d8b0]
cmp eax, dword [ebp - 8]
je 0x4126da
push eax
call fcn.0040ac9d
cmp eax, ebx
pop ecx
je 0x4126da
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x41d8a8]
call fcn.0040ac9d
cmp eax, ebx
pop ecx
je 0x4126fa
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4126fc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x412722
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x4186e0], 0
push ebx
push esi
mov esi, 0x4186e8
jne 0x41274e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x418700], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x4186e0], 1
push dword [0x418700]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x4127eb
push 0x14
push 8
push dword [0x418068]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x412815
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4186e4]
test eax, eax
je 0x412790
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x4186e4], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x41281a
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x418700]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x418068]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x412815
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8

Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43000c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403daa
nop
nop
sub eax, 0x403d50
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp fcn.00401219
Function at 0x401ee0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43bdf0
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x45604c]
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 dword [ebp - 0x140], ecx
mov ebx, dword [ebp + 0xc]
xor esi, esi
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x138], esi
cmp dword [ebx + 4], esi
jbe 0x401f61
nop
mov eax, edi
lea esi, [ebp - 0x138]
and eax, 1
mov ecx, ebx
lea esi, [esi + eax*2]
call fcn.00402400
movzx eax, word [eax + edi*2]
push eax
call fcn.0042ac48
xor word [esi], ax
inc edi
add esp, 4
cmp edi, dword [ebx + 4]
jb 0x401f30
mov esi, dword [ebp - 0x138]
mov eax, 4
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
mov word [ebp - 0x1a], ax
lea ecx, [ebp - 0x12c]
lea eax, [ebp - 0x128]
mov byte [ebp - 0x18], 1
push 1
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x130], 0
call fcn.00406610
cmp byte [ebp - 0x18], 0
lea eax, [ebp - 0x128]
cmove eax, dword [ebp - 0x12c]
xor ecx, ecx
mov word [eax + 4], cx
push str.Local_
lea eax, [ebp - 0x134]
mov dword [ebp - 4], ecx
push 0x44ead8
push eax
call fcn.00406410
push str.mutex_file_
lea eax, [ebp - 0x134]
push 0x44ead8
push eax
call fcn.00406410
push esi
lea eax, [ebp - 0x134]
push str.0x_p
push eax
call fcn.00406410
mov esi, dword [ebp - 0x13c]
lea eax, [ebp - 0x128]
mov ecx, dword [ebp - 0x140]
add esp, 0x24
cmp byte [ebp - 0x18], 0
cmove eax, dword [ebp - 0x12c]
add eax, 4
push eax
push esi
call fcn.00408f10
test al, al
jne 0x402042
push 0x44a728
mov ecx, esi
call fcn.00401e30
xor bl, bl
jmp 0x402044
mov bl, 1
cmp byte [ebp - 0x18], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x40206d
mov eax, dword [ebp - 0x12c]
lea ecx, [ebp - 0x128]
cmp eax, ecx
je 0x40206d
push eax
call fcn.00429f67
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.004224f6
mov esp, ebp
pop ebp
ret 8
Function at 0x4025c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x45604c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, ecx
mov cl, byte [edi + 0x11c]
lea eax, [edi + 0xc]
test cl, cl
jne 0x4025e7
mov eax, dword [edi + 8]
cmp word [eax + 6], 0x3a
jne 0x40267f
lea eax, [edi + 0xc]
test cl, cl
jne 0x4025fc
mov eax, dword [edi + 8]
cmp word [eax + 8], 0
jne 0x40267f
push edi
lea ecx, [ebp - 0x24c]
call fcn.004060b0
push 0x44a758
lea eax, [ebp - 0x24c]
push 0x44ead8
push eax
call fcn.00406410
add esp, 0xc
lea eax, [ebp - 0x240]
cmp byte [ebp - 0x130], 0
cmove eax, dword [ebp - 0x244]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x402651
xor bl, bl
jmp 0x402657
shr ebx, 4
and bl, 1
cmp byte [ebp - 0x130], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x4027a0
mov eax, dword [ebp - 0x244]
lea ecx, [ebp - 0x240]
jmp 0x402793
push edi
lea ecx, [ebp - 0x128]
call fcn.004060b0
mov al, byte [edi + 0x11c]
lea ecx, [edi + 0xc]
test al, al
jne 0x40269b
mov ecx, dword [edi + 8]
cmp word [ecx + 6], 0x3a
jne 0x4026c4
lea ecx, [edi + 0xc]
test al, al
jne 0x4026ac
mov ecx, dword [edi + 8]
cmp word [ecx + 8], 0x5c
jne 0x4026c4
lea ecx, [edi + 0xc]
test al, al
jne 0x4026bd
mov ecx, dword [edi + 8]
cmp word [ecx + 0xa], 0
je 0x40270c
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x40270c
test al, al
lea eax, [edi + 0xc]
jne 0x4026d5
mov eax, dword [edi + 8]
cmp word [eax + ecx*2 + 2], 0x5c
jne 0x40270c
push esi
lea esi, [ecx - 1]
push ecx
lea ecx, [ebp - 0x120]
mov dword [ebp - 0x124], esi
call fcn.00406610
cmp byte [ebp - 0xc], 0
lea eax, [ebp - 0x11c]
cmove eax, dword [ebp - 0x120]
xor ecx, ecx
mov word [eax + esi*2 + 4], cx
pop esi
cmp byte [ebp - 0xc], 0
lea eax, [ebp - 0x11c]
cmove eax, dword [ebp - 0x120]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x402732
xor bl, bl
jmp 0x402777
mov al, byte [edi + 0x11c]
lea ecx, [edi + 0xc]
test al, al
jne 0x402742
mov ecx, dword [edi + 8]
cmp word [ecx + 6], 0x3a
jne 0x402771
lea ecx, [edi + 0xc]
test al, al
jne 0x402753
mov ecx, dword [edi + 8]
cmp word [ecx + 8], 0x5c
jne 0x402771
test al, al
je 0x402763
add edi, 0xc
jmp 0x402766
mov edi, dword [edi + 8]
cmp word [edi + 0xa], 0
jne 0x402771
mov bl, 1
jmp 0x402777
shr ebx, 4
and bl, 1
cmp byte [ebp - 0xc], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x4027a0
mov eax, dword [ebp - 0x120]
lea ecx, [ebp - 0x11c]
cmp eax, ecx
je 0x4027a0
push eax
call fcn.00429f67
add esp, 4
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
xor ecx, ebp
pop ebx
call fcn.004224f6
mov esp, ebp
pop ebp
ret