joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45e480
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x1004
call fcn.0047a5c0
push ebx
push ebp
mov ebp, dword [esp + 0x1014]
push esi
test ebp, ebp
push edi
je 0x45e4a4
mov ecx, 0x2000
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0x1018]
push 0
push esi
call fcn.0046af10
mov ebx, dword [sym.imp.MSVCRT.dll_fopen]
push 0x4d27d0
push esi
mov dword [esp + 0x20], 0
call ebx
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x45e56c
push 0x4d23cc
push esi
call ebx
mov edi, eax
add esp, 8
test edi, edi
je 0x45e501
push edi
push 1
push 1
push 0x4d453c
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
cmp eax, 1
jne 0x45e54b
jmp 0x45e543
lea eax, [esp + 0x14]
push esi
push eax
call fcn.00463740
lea ecx, [esp + 0x1c]
push ecx
call fcn.00467500
push 0x4d23cc
push esi
call ebx
mov edi, eax
add esp, 0x14
test edi, edi
je 0x45e657
push edi
push 1
push 1
push 0x4d453c
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
cmp eax, 1
jne 0x45e54b
mov dword [esp + 0x10], 3
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
push esi
call fcn.0046b1b0
mov eax, dword [esp + 0x18]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret 8
test ebp, ebp
push edi
je 0x45e64e
push 0x8000
push 1
push ebp
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 0x8000
push edi
jae 0x45e5ac
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x14]
add esp, 4
mov byte [ebp], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret 8
mov ebp, dword [sym.imp.MSVCRT.dll_fclose]
call ebp
push 0x4d144c
push esi
call ebx
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x45e5d7
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1004
ret 8
mov ebx, dword [sym.imp.MSVCRT.dll_fseek]
push 0
push 0
push esi
call ebx
add esp, 0xc
test eax, eax
jne 0x45e62f
mov edi, dword [sym.imp.MSVCRT.dll_fwrite]
push esi
push 1
push 1
push 0x4d453c
call edi
add esp, 0x10
cmp eax, 1
jne 0x45e62f
push 0
push 0
push esi
call ebx
add esp, 0xc
test eax, eax
jne 0x45e62f
push esi
push 1
push 1
push 0x4d4538
call edi
add esp, 0x10
cmp eax, 1
mov dword [esp + 0x10], 3
je 0x45e637
mov dword [esp + 0x10], 1
push esi
call ebp
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret 8
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret 8
Function at 0x45e670
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x404
push ebx
push ebp
mov ebp, dword [esp + 0x410]
push esi
xor bl, bl
push 0
push ebp
mov byte [esp + 0x17], bl
call fcn.0046af10
push 0x4d23cc
push ebp
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 0x10
test esi, esi
je 0x45e79c
mov eax, dword [esp + 0x418]
push esi
push 0x8000
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
cmp eax, 0x8000
jne 0x45e6cd
mov bl, 1
mov byte [esp + 0xf], bl
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
test bl, bl
je 0x45e79c
mov eax, dword [esp + 0x41c]
cmp eax, 1
jne 0x45e700
push 0x3fdb05b5
push ebp
call fcn.0046b460
push 0x3fdb05b5
jmp 0x45e793
cmp eax, 2
jne 0x45e77e
lea ecx, [esp + 0x10]
push edi
push ecx
call fcn.004688d0
mov edx, eax
mov edi, str.DllAboutBox.dll
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push edx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0046b300
add esp, 8
mov esi, eax
cmp esi, 0x7fffffff
pop edi
jg 0x45e758
cmp esi, 0x989680
jge 0x45e75d
mov esi, 0x41bb8a00
push esi
push ebp
call fcn.0046b460
push esi
push ebp
call fcn.0046b370
mov al, byte [esp + 0x1f]
add esp, 0x10
pop esi
pop ebp
pop ebx
add esp, 0x404
ret 0xc
cmp eax, 3
jne 0x45e79c
push 0x3fd95fd5
push ebp
call fcn.0046b460
push 0x3fd95fd5
push ebp
call fcn.0046b370
add esp, 0x10
pop esi
mov al, bl
pop ebp
pop ebx
add esp, 0x404
ret 0xc
Function at 0x45f160
Capabilities:
Check mutex on windows

Disassembly:
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp dword [esi + 0x358], ebx
jne 0x45f1e2
push 0x14
push 0x40
call edi
cmp eax, ebx
mov dword [esi + 0x358], eax
je 0x45f1c6
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
jne 0x45f1a2
mov eax, dword [esi + 0x358]
push eax
jmp 0x45f1be
mov ecx, dword [esi + 0x358]
push ebx
push ebx
push 1
push ecx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
jne 0x45f1c6
mov edx, dword [esi + 0x358]
push edx
call ebp
mov dword [esi + 0x358], ebx
mov eax, dword [esi + 0x358]
mov dword [esi + 0x35c], 0xc
mov dword [esi + 0x360], eax
mov dword [esi + 0x364], ebx
push str.GlobalCIMCOBROADCASTMAP
call fcn.0046c2b0
add esp, 4
lea ecx, [esi + 0x35c]
push eax
push 0x4f04
push ebx
push 4
push ecx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, ebx
mov dword [esi + 0x354], eax
je 0x45f226
push ebx
push ebx
push ebx
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x3a8], eax
cmp dword [esi + 0x3a8], ebx
je 0x45f32e
cmp dword [esi + 0x36c], ebx
jne 0x45f2a0
push 0x14
push 0x40
call edi
cmp eax, ebx
mov dword [esi + 0x36c], eax
je 0x45f284
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
jne 0x45f260
mov edx, dword [esi + 0x36c]
push edx
jmp 0x45f27c
mov eax, dword [esi + 0x36c]
push ebx
push ebx
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
jne 0x45f284
mov ecx, dword [esi + 0x36c]
push ecx
call ebp
mov dword [esi + 0x36c], ebx
mov edx, dword [esi + 0x36c]
mov dword [esi + 0x370], 0xc
mov dword [esi + 0x374], edx
mov dword [esi + 0x378], ebx
push str.GlobalCIMCOBROADCASTMTX
call fcn.0046c2b0
add esp, 4
push eax
lea eax, [esi + 0x370]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ecx, dword [esi + 0x3a8]
mov dword [esi + 0x368], eax
cmp ecx, ebx
je 0x45f32e
cmp eax, ebx
je 0x45f32e
cmp dword [esi + 0x37c], ebx
je 0x45f32e
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x45f2f2
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret
mov edi, dword [esi + 0x3a8]
mov eax, dword [edi]
cmp eax, ebx
jl 0x45f303
cmp eax, 0x40
jl 0x45f30c
mov ecx, 0x13c1
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0x3a8]
mov eax, dword [esi + 0x368]
push eax
mov edx, dword [ecx]
mov dword [esi + 0x3ac], edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
Function at 0x460130
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 8
push ebx
push ebp
push esi
push edi
push 0x4d27d0
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
je 0x4601ef
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push edi
push 1
lea ecx, [esp + 0x24]
push 4
push ecx
call ebx
push edi
push 1
lea edx, [esp + 0x28]
push 4
push edx
call ebx
mov eax, dword [esp + 0x3c]
lea ecx, [eax*4]
push ecx
call sub.MFC42.DLL_operatornew
mov edx, dword [esp + 0x40]
mov esi, eax
mov dword [esp + 0x38], esi
lea eax, [edx*4]
push eax
call sub.MFC42.DLL_operatornew
add esp, 0x28
mov ebp, eax
test ebp, ebp
push edi
jne 0x4601b7
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov ecx, dword [esp + 0x20]
push ecx
push 4
push esi
call ebx
mov ecx, dword [esp + 0x2c]
add esp, 0x10
cmp eax, ecx
jne 0x4601df
mov edx, dword [esp + 0x10]
push edx
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
test esi, esi
jne 0x4601f9
push ebp
call sub.MFC42.DLL_operatordelete
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x10]
push edi
push eax
push 1
push esi
call ebx
mov ecx, dword [esp + 0x20]
add esp, 0x10
cmp eax, ecx
jae 0x46022f
push ebp
call sub.MFC42.DLL_operatordelete
push esi
call sub.MFC42.DLL_operatordelete
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
xor eax, eax
test ecx, ecx
jbe 0x460247
mov bl, byte [eax + esi]
xor bl, 0x75
mov byte [eax + esi], bl
mov ecx, dword [esp + 0x10]
inc eax
cmp eax, ecx
jb 0x460235
mov eax, dword [esp + 0x1c]
xor ecx, ecx
test eax, eax
jbe 0x46026d
mov edx, dword [esp + 0x14]
mov eax, ebp
sub edx, ebp
mov ebx, dword [edx + eax]
add eax, 4
add ebx, esi
inc ecx
mov dword [eax - 4], ebx
mov ebx, dword [esp + 0x1c]
cmp ecx, ebx
jb 0x460259
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
mov ecx, dword [esp + 0x18]
push ecx
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x28]
add esp, 8
test eax, eax
je 0x46028d
mov dword [eax], ebp
jmp 0x460293
mov dword [0x4fa100], ebp
mov eax, dword [ebp + 0xa94]
mov esi, 0x4d2d3c
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x4602d8
test cl, cl
je 0x4602c2
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x4602d8
add eax, 2
add esi, 2
test cl, cl
jne 0x46029e
mov ecx, dword [esp + 0x1c]
xor eax, eax
neg eax
sbb eax, eax
pop edi
not eax
pop esi
pop ebp
and eax, ecx
pop ebx
add esp, 8
ret
sbb eax, eax
mov ecx, dword [esp + 0x1c]
sbb eax, 0xffffffff
pop edi
neg eax
sbb eax, eax
pop esi
not eax
pop ebp
and eax, ecx
pop ebx
add esp, 8
ret
Function at 0x460380
Capabilities:
Write file on windows

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebx, ebx
lea ebp, [esi + 0x408]
mov ecx, 0x20
xor eax, eax
mov edi, ebp
mov byte [esi + 0x50c], bl
mov dword [esi + 0x508], ebx
mov dword [esi + 0x510], ebx
push 0x4d23cc
rep stosd dword es:[edi], eax
mov ecx, 0x20
lea edi, [esi + 0x488]
rep stosd dword es:[edi], eax
lea eax, [esi + 4]
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 8
cmp edi, ebx
je 0x460426
mov ebx, dword [sym.imp.MSVCRT.dll_fwrite]
push edi
push 1
push 0x80
push ebp
call ebx
add esp, 0x10
cmp eax, 1
push edi
je 0x4603fa
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor al, al
pop edi
pop esi
pop ebp
pop ebx
ret
push 1
push 0x80
push ebp
call ebx
add esp, 0x10
cmp eax, 1
push edi
je 0x46041d
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor al, al
pop edi
pop esi
pop ebp
pop ebx
ret
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov byte [esi + 0x50c], 1
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret
Function at 0x460440
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x584
push ebx
push ebp
mov ebx, ecx
push esi
push edi
push 0x401
lea ebp, [ebx + 4]
push eax
push ebp
call dword [sym.imp.MSVCRT.dll_strncpy]
mov ecx, 0x20
xor eax, eax
lea edi, [esp + 0x1c]
push 0x4d27d0
rep stosd dword es:[edi], eax
push ebp
mov byte [ebx + 0x404], 0
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x4604a9
lea ecx, [esp + 0x190]
push ebp
push ecx
call fcn.00463740
lea edx, [esp + 0x198]
push edx
call fcn.00467500
add esp, 0xc
jmp 0x460501
mov edi, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea eax, [ebx + 0x408]
push 0x80
push eax
call edi
mov ebp, dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x10
cmp eax, 1
push esi
je 0x4604d6
call ebp
add esp, 4
jmp 0x4604fb
push 1
lea ecx, [esp + 0x18]
push 0x80
push ecx
call edi
add esp, 0x10
cmp eax, 1
je 0x4604f4
push esi
call ebp
add esp, 4
jmp 0x4604fb
mov byte [ebx + 0x50c], 1
push esi
call ebp
add esp, 4
mov al, byte [ebx + 0x50c]
test al, al
jne 0x460523
mov ecx, ebx
call fcn.00460380
test al, al
jne 0x460523
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x584
ret 8
mov byte [ebx + 0x50c], 1
xor eax, eax
lea ecx, [esp + 0x94]
lea edx, [esp + 0x10]
mov esi, dword [edx]
inc eax
mov dword [ecx - 4], esi
mov dword [ecx], eax
add edx, 4
add ecx, 8
cmp eax, 0x20
jl 0x460537
push 0x460300
push 8
lea edx, [esp + 0x98]
push 0x20
push edx
call dword [sym.imp.MSVCRT.dll_qsort]
add esp, 0x10
xor eax, eax
lea ecx, [esp + 0x90]
cmp dword [ecx], 0
jne 0x46057b
inc eax
add ecx, 8
cmp eax, 0x20
jl 0x46056d
cmp eax, 0x20
jge 0x4605ac
mov esi, 0x20
lea edx, [esp + eax*8 + 0x94]
lea ecx, [ebx + 0x488]
sub esi, eax
mov eax, dword [edx - 4]
test eax, eax
je 0x46059f
mov eax, dword [edx]
jmp 0x4605a1
xor eax, eax
mov dword [ecx], eax
add ecx, 4
add edx, 8
dec esi
jne 0x460594
mov eax, dword [ebx + 0x488]
test eax, eax
je 0x4605bc
mov eax, dword [esp + eax*4 + 0xc]
jmp 0x4605be
xor eax, eax
mov dword [ebx + 0x510], eax
mov eax, dword [esp + 0x59c]
pop edi
mov dword [ebx + 0x508], eax
mov al, byte [ebx + 0x50c]
pop esi
pop ebp
pop ebx
add esp, 0x584
ret 8
Function at 0x460940
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x404
push ebx
push ebp
mov ebp, dword [esp + 0x410]
push esi
test ebp, ebp
push edi
mov esi, ecx
jl 0x460a4b
cmp ebp, 0x20
jge 0x460a4b
mov eax, dword [esi + ebp*4 + 0x488]
test eax, eax
je 0x460a4b
mov eax, dword [esp + 0x41c]
test eax, eax
je 0x460a4b
lea eax, [esi + 4]
push 0x4d27d0
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
je 0x460a44
mov ebx, dword [esp + 0x424]
test ebx, ebx
je 0x4609ad
xor eax, eax
jmp 0x4609b3
mov eax, dword [esi + 0x508]
mov ecx, dword [esi + 0x508]
mov edx, dword [esi + ebp*4 + 0x488]
add ecx, 0x400
dec edx
imul ecx, edx
push 0
lea eax, [ecx + eax + 0x100]
push eax
push edi
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
test eax, eax
je 0x4609e5
push edi
jmp 0x460a3b
mov ebp, dword [sym.imp.MSVCRT.dll_fread]
test ebx, ebx
je 0x460a07
mov ecx, dword [esi + 0x508]
push edi
push 1
push ecx
push ebx
call ebp
add esp, 0x10
cmp eax, 1
je 0x460a07
push edi
jmp 0x460a3b
mov al, byte [esp + 0x420]
test al, al
je 0x460a1f
mov ebx, dword [esp + 0x41c]
lea eax, [esp + 0x10]
jmp 0x460a28
mov ebx, dword [esp + 0x41c]
mov eax, ebx
push edi
push 1
push 0x400
push eax
call ebp
add esp, 0x10
test eax, eax
push edi
jne 0x460a5a
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov ecx, esi
call fcn.00460380
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x404
ret 0x10
call dword [sym.imp.MSVCRT.dll_fclose]
mov al, byte [esp + 0x424]
add esp, 4
test al, al
je 0x460ab8
lea edx, [esp + 0x10]
mov byte [esp + 0x410], 0
push edx
push ebx
call fcn.00463780
add esp, 8
test al, al
jne 0x460abf
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x404
ret 0x10
mov byte [ebx + 0x400], 0
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x404
ret 0x10

Function at 0x4627d0
Capabilities:
Hash data with crc32

Disassembly:
mov edx, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
xor esi, esi
test ebp, ebp
jl 0x4627ea
mov ecx, ebp
jmp 0x4627f6
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp esi, ecx
jge 0x46281e
xor eax, eax
mov ecx, edx
mov al, byte [esi + ebx]
and ecx, 0xff
xor eax, ecx
sar edx, 8
mov eax, dword [eax*4 + 0x4d559c]
and edx, 0xffffff
xor edx, eax
inc esi
jmp 0x4627e2
pop edi
pop esi
pop ebp
mov eax, edx
pop ebx
ret
Function at 0x466d20
Capabilities:
Get common file path

Disassembly:
sub esp, 0x804
lea eax, [esp + 4]
push ebx
push ebp
push esi
push edi
push eax
push 0x800
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov esi, dword [esp + 0x818]
test eax, eax
jle 0x466d7e
cmp eax, 0x7ee
jge 0x466d7e
mov edi, dword [esp + 0x81c]
test edi, edi
mov eax, edi
jne 0x466d5e
mov eax, 0x4d5cec
push esi
push 0
lea ecx, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x466d85
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x804
ret
mov edi, dword [esp + 0x81c]
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
mov ebx, 0x43
mov dword [esp + 0x10], 0
jmp 0x466db2
mov edi, dword [esp + 0x81c]
mov dword [esp + 0x10], 0
jmp 0x466db2
mov edi, dword [esp + 0x81c]
test edi, edi
jne 0x466dbb
mov edi, 0x4d5cec
call dword [sym.imp.MSVCRT.dll_rand]
and eax, 0x800fffff
jns 0x466dcf
dec eax
or eax, 0xfff00000
inc eax
push eax
push ebx
push edi
push str._c:_s_05X.TMP
push esi
call ebp
push esi
call fcn.004674e0
add esp, 0x18
test al, al
jne 0x466dfa
push 0x4d27e8
push esi
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
test eax, eax
jne 0x466e1b
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 5
mov dword [esp + 0x10], eax
jl 0x466dab
inc ebx
cmp ebx, 0x5a
jle 0x466d9a
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x804
ret
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x804
ret
Function at 0x4674c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4674d3
xor al, al
ret
shr eax, 4
and eax, 1
ret

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

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4674f3
xor al, al
ret
not eax
shr eax, 4
and eax, 1
ret

Function at 0x467500
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
push ebx
call fcn.00462d20
add esp, 4
test al, al
je 0x46753b
mov al, byte [ebx + 2]
lea edi, [ebx + 2]
test al, al
je 0x467529
cmp al, 0x5c
jne 0x467594
mov al, byte [ebx + 3]
test al, al
jne 0x467594
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x467586
pop edi
pop esi
xor eax, eax
pop ebx
ret
push ebx
call fcn.00462d00
add esp, 4
test al, al
je 0x467658
mov esi, dword [sym.imp.MSVCRT.dll_strchr]
lea eax, [ebx + 2]
push 0x5c
push eax
call esi
add esp, 8
test eax, eax
je 0x467658
inc eax
push 0x5c
push eax
call esi
mov edi, eax
add esp, 8
test edi, edi
jne 0x467594
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x467586
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0xffffffffffffffff
call fcn.00465ff0
add esp, 4
pop edi
pop esi
pop ebx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x467649
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x514
jb 0x4675c5
cmp eax, 0x578
ja 0x4675c5
push eax
call fcn.00465ff0
add esp, 4
pop edi
pop esi
pop ebx
ret
push 0x5c
push ebx
xor esi, esi
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
test eax, eax
jne 0x4675e0
pop edi
pop esi
mov eax, 0x35
pop ebx
ret
cmp eax, edi
je 0x46762a
sub eax, ebx
push ebp
mov ebp, eax
mov esi, ebx
lea ecx, [ebp + 1]
push ecx
call dword [sym.imp.MSVCRT.dll_malloc]
mov ecx, ebp
mov edi, eax
mov edx, ecx
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [esp + 0x1c], eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [eax + ebp], 0
call fcn.00467500
mov esi, eax
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 0xc
test esi, esi
pop ebp
jne 0x467643
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x467643
push 0xffffffffffffffff
call fcn.00465ff0
add esp, 4
mov esi, eax
mov eax, esi
pop edi
pop esi
pop ebx
ret
and al, 0x10
pop edi
neg al
sbb eax, eax
pop esi
and al, 0xd2
pop ebx
add eax, 0x2e
ret
pop edi
pop esi
mov eax, 0x2e
pop ebx
ret
Function at 0x468840
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x468876
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4688b0
mov dword [eax], 0
pop edi
xor eax, eax
pop esi
ret
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4688b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4688b5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4688b0
mov dword [eax], 0
pop edi
xor eax, eax
pop esi
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4688ca
mov edx, dword [esp + 0xc]
mov dword [eax], edx
mov eax, edi
pop edi
pop esi
ret
Function at 0x46af10
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x46af3f
mov cl, byte [esp + 0xc]
test cl, cl
je 0x46af2d
or al, 1
jmp 0x46af2f
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x46af3f
xor eax, eax
pop esi
ret
push 0xffffffffffffffff
call fcn.00465ff0
add esp, 4
pop esi
ret

Function at 0x46af50
Capabilities:
Copy file

Disassembly:
sub esp, 0x404
push ebx
push esi
mov esi, dword [esp + 0x414]
push edi
push 0
push esi
call fcn.0046af10
mov edi, dword [esp + 0x41c]
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileA]
add esp, 8
push 0
push esi
push edi
call ebx
test eax, eax
jne 0x46afc7
lea eax, [esp + 0xc]
push esi
push eax
call fcn.00463740
lea ecx, [esp + 0x14]
push ecx
call fcn.00467500
add esp, 0xc
push 0
push esi
push edi
call ebx
test eax, eax
jne 0x46afc7
push esi
push edi
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
je 0x46afc7
push 0xffffffffffffffff
call fcn.00465ff0
add esp, 4
pop edi
pop esi
pop ebx
add esp, 0x404
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x404
ret