joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4167ab
Capabilities:
Get common file path
Set current directory

Disassembly:
jmp 0x4167ab
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x6294a0]
xor eax, ebp
mov dword [ebp + 0x88], eax
push ebx
push esi
push edi
push 0x103
lea eax, [ebp - 0x7b]
push 0
push eax
mov byte [ebp - 0x7c], 0
call fcn.00508d00
add esp, 0xc
call fcn.00403080
mov dword [ebp - 0x80], 1
call fcn.004029a0
call dword [sym.imp.KERNEL32.dll_AllocConsole]
test eax, eax
mov esi, str._GetLastError_
jne 0x416810
and dword [ebp - 0x80], eax
push esi
push str.:7:InitConsole___FAILED:_AllocConsole___FAILED:__s
call fcn.004020c2
pop ecx
pop ecx
mov edi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 7
push 0xfffffffffffffff6
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_SetConsoleMode]
push eax
call ebx
test eax, eax
jne 0x416839
and dword [ebp - 0x80], eax
push esi
push str.:7:InitConsole___FAILED:_SetConsoleMode_STD_INPUT_HANDLE__FAILED:__s
call fcn.004020c2
pop ecx
pop ecx
push 3
push 0xfffffffffffffff5
call edi
push eax
call ebx
xor ebx, ebx
test eax, eax
jne 0x416858
push esi
push str.:7:InitConsole___FAILED:_SetConsoleMode_STD_OUTPUT_HANDLE__FAILED:__s
mov dword [ebp - 0x80], ebx
call fcn.004020c2
pop ecx
pop ecx
push 1
push 0x412ec9
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
jne 0x416879
push esi
push str.:7:InitConsole___FAILED:_SetConsoleCtrlHandler___FAILED:__s
mov dword [ebp - 0x80], ebx
call fcn.004020c2
pop ecx
pop ecx
mov edi, 0x35c
push edi
call dword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
test eax, eax
jne 0x416899
push edi
push str.:9:InitConsole___FAILED:_SetConsoleOutputCP___FAILED:_could_not_set_code_page__d___
mov dword [ebp - 0x80], ebx
call fcn.004020c2
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
cmp eax, ebx
mov dword [0x62f264], eax
jne 0x4168b8
push esi
push str.:7:InitConsole___FAILED:_GetConsoleWindow___FAILED:__s
mov dword [ebp - 0x80], ebx
call fcn.004020c2
pop ecx
pop ecx
lea eax, [ebp - 0x7c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jbe 0x4168fa
lea eax, [ebp - 0x7c]
push eax
call fcn.00401de3
lea eax, [ebp - 0x7c]
mov dword [esp], 0x582f94
push eax
call fcn.004016c2
test eax, eax
pop ecx
pop ecx
jne 0x4168fa
push ebx
push ebx
call fcn.004031fc
pop ecx
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push str.Sounds_
push ebx
call fcn.004031fc
push eax
call fcn.00402f13
mov eax, dword [ebp + 0x94]
add esp, 0xc
pop edi
pop esi
cmp eax, ebx
pop ebx
je 0x416920
mov dword [0x62f260], eax
call fcn.00401e97
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.0050ea80
pop ecx
call fcn.0050ea90
call fcn.0050ea90
call fcn.0050ea90
mov ecx, dword [ebp + 0x88]
mov eax, dword [ebp - 0x80]
xor ecx, ebp
call fcn.00508cf0
add ebp, 0x8c
leave
ret
Function at 0x419020
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x6294a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.004010dc
test eax, eax
pop ecx
je 0x41904a
or eax, 0xffffffff
jmp 0x4190dd
cmp dword [0x62f28c], 0
jne 0x4190c9
push 0x7f
lea eax, [ebp - 0x83]
push 0
push eax
mov byte [ebp - 0x84], 0
call fcn.00508d00
push 0x80
lea eax, [ebp - 0x84]
push esi
push eax
call fcn.00402abd
lea eax, [ebp - 0x84]
push 0x22
push eax
call fcn.0040224d
lea eax, [ebp - 0x84]
push eax
call fcn.00401de3
lea eax, [ebp - 0x84]
push str.CLS
push eax
call fcn.00402f86
add esp, 0x2c
test eax, eax
je 0x419042
lea eax, [ebp - 0x84]
push str.COLOR
push eax
call fcn.00402f86
test eax, eax
pop ecx
pop ecx
je 0x419042
cmp dword [0x62f26c], 0
jne 0x419042
push esi
call fcn.00510790
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00508cf0
leave
ret
Function at 0x429f77
Capabilities:
Enumerate files on windows

Disassembly:
jmp 0x429f77
push ebp
lea ebp, [esp - 0x2d0]
sub esp, 0x350
mov eax, dword [0x6294a0]
xor eax, ebp
mov dword [ebp + 0x2cc], eax
push ebx
push esi
mov esi, dword [ebp + 0x2d8]
push edi
mov ebx, 0x103
push ebx
xor edi, edi
lea eax, [ebp + 0x1c9]
push edi
push eax
mov byte [ebp + 0x1c8], 0
call fcn.00508d00
push 0x13c
lea eax, [ebp - 0x78]
push edi
push eax
mov dword [ebp - 0x7c], edi
call fcn.00508d00
push esi
mov dword [ebp - 0x80], edi
call fcn.004010dc
add esp, 0x1c
test eax, eax
je 0x429fe1
or eax, 0xffffffff
jmp 0x42a139
mov edi, 0x104
push edi
lea eax, [ebp + 0x1c8]
push esi
push eax
call fcn.00402abd
lea eax, [ebp + 0x1c8]
push eax
call fcn.00401de3
lea eax, [ebp + 0x1c8]
push eax
call fcn.00401d0c
lea eax, [ebp + 0x1c8]
push 0x22
push eax
call fcn.0040224d
lea eax, [ebp + 0x1c8]
lea esi, [ebp + 0x1c8]
push eax
dec esi
call fcn.00508320
add esp, 0x20
cmp byte [eax + esi], 0x2a
je 0x42a073
lea eax, [ebp + 0x1c8]
push eax
call fcn.00508320
cmp byte [eax + esi], 0x5c
pop ecx
je 0x42a05e
push edi
lea eax, [ebp + 0x1c8]
push 0x593bd0
push eax
call fcn.00402365
add esp, 0xc
push edi
lea eax, [ebp + 0x1c8]
push 0x583e6c
push eax
call fcn.00402365
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x1c8]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
or eax, 0xffffffff
cmp esi, eax
je 0x42a139
lea eax, [ebp - 0x50]
push eax
call fcn.004010dc
test eax, eax
pop ecx
jne 0x42a11c
cmp byte [ebp - 0x50], 0x2e
je 0x42a11c
cmp dword [ebp + 0x2dc], eax
je 0x42a0b3
test byte [ebp - 0x7c], 2
jne 0x42a11c
test byte [ebp - 0x7c], 0x10
je 0x42a119
cmp dword [ebp + 0x2e0], eax
je 0x42a11c
push ebx
push eax
lea eax, [ebp + 0xc5]
push eax
mov byte [ebp + 0xc4], 0
call fcn.00508d00
lea eax, [ebp + 0x1c8]
push eax
lea eax, [ebp + 0xc4]
push eax
call fcn.0050d660
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp + 0xc4]
push eax
call fcn.00402c0c
push dword [ebp + 0x2e0]
lea eax, [ebp + 0xc4]
push dword [ebp + 0x2dc]
push eax
call fcn.00401712
add esp, 0x28
add dword [ebp - 0x80], eax
jmp 0x42a11c
inc dword [ebp - 0x80]
lea eax, [ebp - 0x7c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x42a091
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp + 0x2cc]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00508cf0
add ebp, 0x2d0
leave
ret
Function at 0x42a23c
Capabilities:
Move file

Disassembly:
jmp 0x42a23c
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x6294a0]
xor eax, ebp
mov dword [ebp + 0x18c], eax
mov eax, dword [ebp + 0x198]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x19c]
mov esi, 0x103
xor ebx, ebx
push esi
mov dword [ebp - 0x80], eax
lea eax, [ebp + 0x89]
push ebx
push eax
mov byte [ebp + 0x88], bl
call fcn.00508d00
push esi
lea eax, [ebp - 0x7b]
push ebx
push eax
mov byte [ebp - 0x7c], bl
call fcn.00508d00
push dword [ebp - 0x80]
call fcn.004010dc
add esp, 0x1c
test eax, eax
jne 0x42a384
push edi
call fcn.004010dc
test eax, eax
pop ecx
jne 0x42a384
inc esi
push esi
lea eax, [ebp + 0x88]
push edi
push eax
call fcn.00402abd
lea eax, [ebp + 0x88]
push eax
call fcn.00401de3
lea eax, [ebp + 0x88]
push eax
call fcn.00401d0c
lea eax, [ebp + 0x88]
push eax
call fcn.00508320
add esp, 0x18
jmp 0x42a2fa
lea ecx, [ebp + eax + 0x88]
cmp byte [ecx], 0x5c
jne 0x42a2ff
mov byte [ecx], bl
dec eax
cmp eax, ebx
jg 0x42a2ec
lea eax, [ebp + 0x88]
push eax
call fcn.00402a1d
push esi
push dword [ebp - 0x80]
lea eax, [ebp - 0x7c]
push eax
call fcn.00402abd
lea eax, [ebp - 0x7c]
push eax
call fcn.00401de3
lea eax, [ebp - 0x7c]
push eax
call fcn.00401d0c
lea eax, [ebp - 0x7c]
push eax
call fcn.00508320
add esp, 0x1c
jmp 0x42a343
lea ecx, [ebp + eax - 0x7c]
cmp byte [ecx], 0x5c
jne 0x42a348
mov byte [ecx], bl
dec eax
cmp eax, ebx
jg 0x42a338
lea eax, [ebp - 0x7c]
push eax
call fcn.00403224
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x88]
push eax
call fcn.00401758
add esp, 0xc
cmp dword [ebp + 0x1a0], ebx
lea eax, [ebp + 0x88]
je 0x42a380
push 0xb
push eax
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
jmp 0x42a386
push 0xa
jmp 0x42a374
xor eax, eax
mov ecx, dword [ebp + 0x18c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00508cf0
add ebp, 0x190
leave
ret
Function at 0x42a8b2
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
lea ebp, [esp - 0x2cc]
sub esp, 0x34c
mov eax, dword [0x6294a0]
xor eax, ebp
mov dword [ebp + 0x2c8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x2d4]
mov esi, 0x103
xor ebx, ebx
push esi
lea eax, [ebp + 0xc1]
push ebx
push eax
mov byte [ebp + 0xc0], bl
call fcn.00508d00
push esi
lea eax, [ebp + 0x1c5]
push ebx
push eax
mov byte [ebp + 0x1c4], bl
call fcn.00508d00
push 0x13c
lea eax, [ebp - 0x7c]
push ebx
push eax
mov dword [ebp - 0x80], ebx
call fcn.00508d00
add esp, 0x24
cmp edi, ebx
je 0x42a99d
cmp byte [edi], bl
je 0x42a99d
push 0x104
lea eax, [ebp + 0xc0]
push edi
push eax
call fcn.00402abd
lea eax, [ebp + 0xc0]
push eax
lea eax, [ebp + 0x1c4]
push eax
call fcn.0050d660
lea eax, [ebp + 0x1c4]
push eax
call fcn.00402a1d
mov eax, dword [0x635670]
lea ecx, [eax + 0xf]
mov eax, dword [0x63566c]
add esp, 0x18
cmp eax, ecx
jle 0x42a979
push eax
push str.:8:DoesFileExist_Helper___has_determined_that_over__d_helper_threads_may_be_stuck_
mov dword [0x635670], eax
call fcn.00401375
pop ecx
pop ecx
inc dword [0x63566c]
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 0xc0]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
dec dword [0x63566c]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42aa0e
xor eax, eax
mov ecx, dword [ebp + 0x2c8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00508cf0
add ebp, 0x2cc
leave
ret 4
cmp byte [ebp - 0x54], 0x2e
je 0x42a9ff
lea eax, [ebp - 0x54]
push eax
call fcn.004010dc
test eax, eax
pop ecx
jne 0x42a9ff
cmp byte [ebp + 0x1c4], 0x2a
jne 0x42aa16
cmp byte [ebp + 0x1c6], 0x2a
jne 0x42aa16
cmp byte [ebp + 0x1c5], 0x3f
je 0x42aa16
movsx eax, byte [ebp + 0x1c5]
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.00511b90
test eax, eax
pop ecx
pop ecx
jne 0x42aa16
lea eax, [ebp - 0x80]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x42aa25
cmp dword [0x5f2e54], ebx
jne 0x42a9b9
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
inc eax
jmp 0x42a99f
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x42a99d
Function at 0x42baae
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x6294a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x103
xor ebx, ebx
push esi
lea eax, [ebp - 0x147]
push ebx
push eax
mov byte [ebp - 0x148], bl
call fcn.00508d00
push 0x3f
lea eax, [ebp - 0x43]
push ebx
push eax
mov byte [ebp - 0x44], bl
call fcn.00508d00
add esp, 0x18
cmp edi, ebx
je 0x42bb7c
push edi
call fcn.00401ff5
mov dword [esp], 0x21e88e
push 0xde
call fcn.00402ff4
push eax
push str.P2_Tmp__d
lea eax, [ebp - 0x44]
push 0x40
push eax
call fcn.00402dbf
add esp, 0x18
lea eax, [ebp - 0x148]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x42bb45
push str._GetLastError_
push str.:2:CreateTempFile___FAILED:_GetTempPath___FAILED:__s
jmp 0x42bb75
push edi
push ebx
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x42bb6b
push edi
call fcn.004010dc
test eax, eax
pop ecx
jne 0x42bb6b
mov eax, edi
jmp 0x42bb7e
push str._GetLastError_
push str.:2:CreateTempFile___FAILED:_GetTempFileName___FAILED:__s
call fcn.004020c2
pop ecx
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00508cf0
leave
ret
Function at 0x42c358
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x6294a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x20]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x1c]
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp + 0x24]
push 0x103
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x107]
push 0
push eax
mov dword [ebp - 0x118], esi
mov dword [ebp - 0x114], edi
mov byte [ebp - 0x108], 0
call fcn.00508d00
push 0x1bda
push str..File.c
push 1
push 0x1c8
push 1
call fcn.00509d00
mov ebx, eax
add esp, 0x20
test ebx, ebx
jne 0x42c3da
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x42c4f7
mov eax, dword [0x637104]
test eax, eax
jne 0x42c3ed
call fcn.00402f4f
mov dword [0x637104], eax
push ebx
push eax
call fcn.0040153c
cmp dword [0x637104], 0
pop ecx
pop ecx
jne 0x42c416
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 1
push ebx
call fcn.0050a6d0
pop ecx
pop ecx
jmp 0x42c4f7
test esi, esi
mov dword [ebx], esi
je 0x42c430
lea edi, [ebx + 4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x114]
mov esi, dword [ebp - 0x118]
jmp 0x42c440
push 0xc
lea eax, [ebx + 4]
push 0
push eax
call fcn.00508d00
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp + 0x18]
push 0x40
push dword [ebp - 0x10c]
mov dword [ebx + 0x1c], eax
lea eax, [ebx + 0x24]
push eax
mov dword [ebx + 0x20], edi
call fcn.00402abd
push 0x104
push dword [ebp - 0x110]
lea eax, [ebp - 0x108]
push eax
call fcn.00402abd
lea eax, [ebp - 0x108]
push eax
call fcn.00402a1d
push 0x40
lea eax, [ebp - 0x108]
push eax
lea eax, [ebx + 0x64]
push eax
call fcn.00402abd
mov eax, dword [ebp + 0x28]
and dword [ebx + 0xb0], 0
mov dword [ebx + 0xa4], eax
call fcn.00401e97
mov dword [ebx + 0xb4], eax
lea eax, [ebx + 0xb8]
push eax
call fcn.00401ff5
and dword [ebx + 0xac], 0
add esp, 0x2c
push edi
push dword [ebp + 0x18]
push ebx
push 0x42c301
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [ebx + 0xa8], eax
jne 0x42c4f9
mov esi, ebx
call fcn.0042c2a9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00508cf0
leave
ret 0x24
Function at 0x42d212
Capabilities:
Create directory

Disassembly:
jmp 0x42d212
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x6294a0]
xor eax, ebp
mov dword [ebp + 0x94], eax
push ebx
mov ebx, dword [ebp + 0xa0]
push esi
push edi
xor edi, edi
cmp ebx, edi
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], edi
je 0x42d3cc
cmp byte [ebx], 0x30
je 0x42d3cc
mov esi, 0x104
push esi
lea eax, [ebp - 0x70]
push edi
push eax
call fcn.00508d00
push esi
lea eax, [ebp - 0x70]
push ebx
push eax
call fcn.00402abd
lea eax, [ebp - 0x70]
push 0x22
push eax
call fcn.0040224d
add esp, 0x20
cmp dword [ebp + 0xa4], edi
mov ebx, str.CreateDirectorySuper
jbe 0x42d2a7
push 0xf83
push str..File.c
push ebx
push edi
push edi
lea eax, [ebp - 0x70]
push eax
push 0x42aad7
push edi
push edi
call fcn.00401f3c
mov dword [ebp - 0x7c], eax
jmp 0x42d2aa
mov dword [ebp - 0x7c], edi
cmp dword [ebp - 0x7c], edi
jne 0x42d303
cmp dword [ebp + 0xa4], edi
jbe 0x42d2cd
push str._GetLastError_
push edi
push dword [ebp - 0x78]
push str.:8:CreateDirectorySuper___FAILED_to_create_thread_to_create_directory___s_._NumThreads_d:__s
call fcn.004020c2
add esp, 0x10
push edi
push dword [ebp - 0x78]
push edi
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
cmp eax, edi
je 0x42d2fb
cmp eax, 0x50
je 0x42d2fb
cmp eax, 0xb7
je 0x42d2fb
cmp eax, 0x4c7
je 0x42d2fb
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x42d3cc
xor eax, eax
inc eax
jmp 0x42d3ce
call fcn.00401e97
mov esi, dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x74], edi
jmp 0x42d337
cmp dword [ebp - 0x74], 0x103
jne 0x42d36c
call fcn.00401e97
sub eax, dword [ebp - 0x80]
cmp eax, dword [ebp + 0xa4]
ja 0x42d346
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x7c]
call esi
test eax, eax
jne 0x42d316
jmp 0x42d36c
push dword [ebp - 0x78]
call fcn.00401e97
sub eax, dword [ebp - 0x80]
push eax
push str.:5:CreateDirectorySuper___timed_out_after__ldms_while_creating___s_
call fcn.00401375
add esp, 0xc
mov dword [ebp - 0x74], edi
mov dword [0x635668], 0x5b4
push 0xfb7
push str..File.c
push ebx
push dword [ebp - 0x7c]
call fcn.00403134
push dword [0x635668]
mov esi, dword [sym.imp.KERNEL32.dll_SetLastError]
call esi
cmp dword [ebp - 0x74], edi
jne 0x42d2fb
push dword [ebp - 0x78]
call fcn.00401096
test eax, eax
pop ecx
jne 0x42d3c4
push dword [0x635668]
push str._GetLastError_
push dword [ebp + 0xa4]
push dword [ebp - 0x78]
push str.:3:FYI:_CreateDirectorySuper__s___lu___FAILED:__s_ld
call fcn.00401375
add esp, 0x14
push dword [0x635668]
call esi
xor eax, eax
mov ecx, dword [ebp + 0x94]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00508cf0
add ebp, 0x98
leave
ret
Function at 0x42e172
Capabilities:
Get file size
Read file on windows

Disassembly:
jmp 0x42e172
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x94
mov eax, dword [0x6294a0]
xor eax, ebp
mov dword [ebp + 0x68], eax
push ebx
mov ebx, dword [ebp + 0x74]
push esi
mov esi, dword [ebp + 0x7c]
push ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], esi
call fcn.004010dc
test eax, eax
pop ecx
je 0x42e1a7
xor eax, eax
jmp 0x42e32e
push edi
call fcn.00401e97
push esi
push dword [ebp + 0x78]
xor edi, edi
push edi
mov esi, 0x80
push esi
push 3
push edi
push 7
push closesocket
push ebx
mov dword [ebp - 0x28], eax
call fcn.004016d1
mov ebx, eax
add esp, 0x24
cmp ebx, 0xffffffff
jne 0x42e284
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 0x1c]
cmp ebx, edi
mov dword [ebp - 0x24], eax
je 0x42e1ef
cmp dword [ebx], edi
jne 0x42e201
cmp dword [ebp + 0x78], edi
je 0x42e206
call fcn.00401e97
sub eax, dword [ebp - 0x28]
cmp eax, dword [ebp + 0x78]
jb 0x42e206
push dword [ebp - 0x24]
jmp 0x42e279
push ebx
push dword [ebp + 0x78]
push edi
push esi
push 3
push edi
push 7
push 0x2000000
push dword [ebp - 0x20]
call fcn.004016d1
mov ebx, eax
add esp, 0x24
cmp ebx, 0xffffffff
jne 0x42e284
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp - 0x1c]
cmp eax, edi
je 0x42e23b
cmp dword [eax], edi
jne 0x42e278
cmp dword [ebp + 0x78], edi
je 0x42e24d
call fcn.00401e97
sub eax, dword [ebp - 0x28]
cmp eax, dword [ebp + 0x78]
jae 0x42e278
push dword [ebp + 0x78]
push dword [ebp - 0x20]
call fcn.00401f5f
test eax, eax
pop ecx
pop ecx
je 0x42e278
push esi
push str._GetLastError_
push esi
push dword [ebp - 0x24]
push dword [ebp - 0x20]
push str.:8:GetFileSizeTimeOut___Seems_to_have_failed_because_of_an_access_rights_problem_:___s_:__u:_u:__s_ld
call fcn.004020c2
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x42e311
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [ebp - 0x24], eax
jne 0x42e2bd
mov eax, dword [ebp - 0x1c]
cmp eax, edi
je 0x42e29d
mov edi, dword [eax]
push str._GetLastError_
push edi
push dword [ebp + 0x78]
push dword [ebp - 0x20]
push str.:7:GetFileSizeTimeOut___s____ld___d__FAILED:__s
call fcn.00401375
add esp, 0x14
push 0x104f
jmp 0x42e301
cmp eax, edi
jbe 0x42e315
push edi
lea eax, [ebp - 0x1c]
push eax
push esi
lea eax, [ebp - 0x18]
push eax
push ebx
mov dword [ebp - 0x1c], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42e2de
cmp dword [ebp - 0x1c], edi
jne 0x42e315
push str._GetLastError_
push dword [ebp - 0x1c]
push dword [ebp - 0x24]
push dword [ebp + 0x78]
push dword [ebp - 0x20]
push str.:7:GetFileSizeTimeOut___s____ld__FAILED:_GetFileSize___returned__ld_but_ReadFile_____ldBytesRead__FAILED:__s
call fcn.004020c2
add esp, 0x18
push 0x105b
push str..File.c
push str.GetFileSizeTimeOut
push ebx
call fcn.00403134
xor eax, eax
jmp 0x42e32d
push 0x1060
push str..File.c
push str.GetFileSizeTimeOut
push ebx
call fcn.00403134
mov eax, dword [ebp - 0x24]
pop edi
mov ecx, dword [ebp + 0x68]
pop esi
xor ecx, ebp
pop ebx
call fcn.00508cf0
add ebp, 0x6c
leave
ret
Function at 0x42f7db
Capabilities:
Copy file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x6294a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
push ebx
call fcn.004010dc
test eax, eax
pop ecx
jne 0x42f95b
push edi
call fcn.004010dc
test eax, eax
pop ecx
jne 0x42f95b
push ebx
call fcn.00508320
mov esi, 0x104
cmp eax, esi
pop ecx
jae 0x42f905
push edi
call fcn.00508320
cmp eax, esi
pop ecx
jae 0x42f905
push dword [ebp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileA]
push edi
push ebx
call esi
test eax, eax
jne 0x42f900
push edi
call fcn.004014d3
test eax, eax
pop ecx
je 0x42f8c8
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.00508d00
push 0x104
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.00402abd
lea eax, [ebp - 0x108]
push eax
call fcn.00402a1d
lea eax, [ebp - 0x108]
push eax
call fcn.004010dc
add esp, 0x20
test eax, eax
jne 0x42f95b
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.00401758
pop ecx
pop ecx
push dword [ebp + 0x10]
lea eax, [ebp - 0x108]
push eax
push ebx
call esi
jmp 0x42f95d
cmp dword [ebp + 0x10], 0
jne 0x42f95b
push edi
call fcn.00402b5d
test eax, eax
pop ecx
je 0x42f95b
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 3
je 0x42f95b
and eax, 0xfffffffc
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push edi
jmp 0x42f8c0
xor eax, eax
inc eax
jmp 0x42f95d
push ebx
call fcn.0040262b
push edi
mov esi, eax
call fcn.0040262b
test esi, esi
pop ecx
pop ecx
mov edi, eax
je 0x42f94d
test edi, edi
je 0x42f943
push dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 1
push esi
mov ebx, eax
call fcn.0050a6d0
push 1
push edi
call fcn.0050a6d0
add esp, 0x10
mov eax, ebx
jmp 0x42f95d
push 1
push esi
call fcn.0050a6d0
pop ecx
pop ecx
test edi, edi
je 0x42f95b
push 1
push edi
call fcn.0050a6d0
pop ecx
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00508cf0
leave
ret
Function at 0x433385
Capabilities:
Check if file exists
Get file attributes

Disassembly:
jmp 0x433385
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x6294a0]
xor eax, ebp
mov dword [ebp + 0x88], eax
push ebx
push esi
mov esi, dword [ebp + 0x94]
push edi
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x7b]
push ebx
push eax
mov byte [ebp - 0x7c], bl
call fcn.00508d00
push 0x104
lea eax, [ebp - 0x7c]
push esi
push eax
call fcn.00402abd
lea eax, [ebp - 0x7c]
push eax
call fcn.00401d0c
push ebx
lea eax, [ebp - 0x7c]
push 0x5c
push eax
call fcn.00402027
add esp, 0x28
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x43344e
test al, 0x10
je 0x43344e
push ebx
lea eax, [ebp - 0x7c]
push 1
push eax
call fcn.00401582
push ebx
lea eax, [ebp - 0x7c]
push 1
push eax
call fcn.004011f4
add esp, 0x18
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, ebx
mov dword [ebp - 0x80], eax
jne 0x433449
lea eax, [ebp - 0x7c]
push eax
call fcn.00402b5d
test eax, eax
pop ecx
je 0x433449
push dword [ebp - 0x80]
lea eax, [ebp - 0x7c]
push str._GetLastError_
push eax
push esi
push str.:3:DeleteDirectory___s___FAILED:_DeleteFiles___s___1__0__FAILED:__s_ld
call fcn.004020c2
add esp, 0x14
push dword [ebp - 0x80]
jmp 0x43347a
xor edi, edi
cmp eax, 0xffffffff
je 0x433478
push esi
call fcn.00402b5d
test eax, eax
pop ecx
je 0x433478
push esi
call fcn.004014d3
test eax, eax
pop ecx
jne 0x433478
push esi
push str.:3:DeleteDirectory___s___FAILED:_The_given_file_is_not_a_directory_
call fcn.004020c2
pop ecx
pop ecx
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp + 0x88]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00508cf0
add ebp, 0x8c
leave
ret