joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10040780
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x101ba0ec]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x50], 8
lea eax, [esi + 0x3c]
jb 0x100407a1
mov eax, dword [eax]
push 0x10184350
push eax
lea eax, [ebp - 0x20c]
push str._s_s_
push eax
call fcn.10041b40
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100407db
lea eax, [ebp - 0x20c]
push eax
call fcn.10110097
add esp, 4
lea ecx, [ebp - 0x20c]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x100407e4
mov eax, dword [str.Related.ini]
mov dword [ecx], eax
mov eax, dword [0x1018437c]
mov dword [ecx + 4], eax
mov eax, dword [0x10184380]
mov dword [ecx + 8], eax
mov eax, dword [0x10184384]
mov dword [ecx + 0xc], eax
mov eax, dword [0x10184388]
mov dword [ecx + 0x10], eax
mov eax, dword [0x1018438c]
mov dword [ecx + 0x14], eax
cmp word [ebp - 0x20c], 0
jne 0x1004082d
xor ecx, ecx
jmp 0x10040845
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10040836
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [esi + 0xcc]
call fcn.10041f80
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1010a832
mov esp, ebp
pop ebp
ret

Function at 0x10040990
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x101ba0ec]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x50], 8
lea eax, [esi + 0x3c]
jb 0x100409b1
mov eax, dword [eax]
push str.UseData
push eax
lea eax, [ebp - 0x20c]
push str._s_s_
push eax
call fcn.10041b40
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100409eb
lea eax, [ebp - 0x20c]
push eax
call fcn.10110097
add esp, 4
cmp word [ebp - 0x20c], 0
jne 0x100409f9
xor ecx, ecx
jmp 0x10040a11
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10040a02
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [esi + 0x144]
call fcn.10041f80
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1010a832
mov esp, ebp
pop ebp
ret
Function at 0x100412a0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x188]
push esi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, dword [esi]
lea ebx, [edi + 0x180]
sub edx, dword [ebx]
mov eax, dword [esi + 4]
sbb eax, dword [ebx + 4]
push 0
push 0x3e8
push eax
push edx
call fcn.1010b640
push dword [edi + 0x1c4]
push dword [edi + 0x1c0]
push edx
push eax
call fcn.10155fb0
test edx, edx
jl 0x1004130a
jg 0x100412f0
cmp eax, 0x3e8
jbe 0x1004130a
push ebx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
call fcn.10054290
mov dword [edi + 0xc], eax
mov eax, dword [0x101c7da4]
mov dword [edi + 0x15c], eax
mov eax, dword [edi + 0xc]
pop edi
pop esi
pop ebx
ret
Function at 0x10044a40
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x101ba0ec]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
xor edi, edi
mov dword [ebp - 0x34], 0
xorps xmm0, xmm0
mov dword [ebp - 0x30], edi
mov dword [esi + 8], edi
mov dword [esi], edi
mov dword [esi + 4], edi
mov al, byte [ebx + 0x6012]
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], edi
movsd qword [ebp - 0x54], xmm0
movsd qword [ebp - 0x3c], xmm0
mov byte [ebp - 0x29], al
test al, al
je 0x10044c00
push edi
mov ecx, ebx
call fcn.100445d0
test al, al
je 0x10044abc
lea eax, [ebp - 0x34]
mov ecx, ebx
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.10044960
test al, al
je 0x10044c14
jmp 0x10044ba5
mov al, byte [ebp - 0x29]
cmp al, 0x28
jne 0x10044b07
mov dword [ebp - 0x4c], 0x14
mov dword [ebp - 0x48], 6
mov dword [ebp - 0x44], 0xffffffff
mov eax, dword [esi + 8]
inc edi
mov dword [ebp - 0x30], edi
cmp eax, 0x3e8
je 0x10044c62
movups xmm0, xmmword [ebp - 0x4c]
inc eax
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
lea eax, [eax + eax*2]
movups xmmword [esi + eax*8 + 0x10], xmm0
movsd xmm0, qword [ebp - 0x54]
jmp 0x10044bd3
cmp al, 0x29
jne 0x10044b22
mov dword [ebp - 0x4c], 0x28
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
jmp 0x10044ad8
movsx eax, byte [ebx + edi + 0x6012]
push eax
push 0x101844d8
mov dword [ebp - 0x58], eax
call fcn.1012ad60
add esp, 8
test eax, eax
je 0x10044b43
mov al, 1
jmp 0x10044b53
push dword [ebp - 0x58]
call fcn.101337b1
add esp, 4
test eax, eax
setne al
test al, al
je 0x10044be8
lea eax, [ebp - 0x28]
mov ecx, ebx
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.10044680
test al, al
je 0x10044c3b
lea eax, [ebp - 0x34]
mov ecx, ebx
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.100448a0
test al, al
je 0x10044c3b
mov eax, dword [ebp - 0x4c]
add eax, 0xffffffeb
cmp eax, 0x12
ja 0x10044b9b
dec dword [ebp - 0x34]
cmp dword [ebp - 0x34], 0
jl 0x10044c27
mov eax, dword [esi + 8]
cmp eax, 0x3e8
je 0x10044c62
movups xmm0, xmmword [ebp - 0x4c]
mov edi, dword [ebp - 0x30]
inc eax
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
lea eax, [eax + eax*2]
movups xmmword [esi + eax*8 + 0x10], xmm0
movsd xmm0, qword [ebp - 0x3c]
movsd qword [ebp - 0x54], xmm0
movq qword [esi + eax*8 + 0x20], xmm0
mov ecx, 0x3e8
mov eax, dword [esi + 4]
inc eax
cdq
idiv ecx
mov dword [esi + 4], edx
mov al, byte [ebx + edi + 0x6012]
mov byte [ebp - 0x29], al
test al, al
jne 0x10044a90
cmp dword [ebp - 0x34], 1
je 0x10044c14
mov dword [ebx + 0x6208], 2
mov dword [ebx + 0x620c], 0x13e
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1010a832
mov esp, ebp
pop ebp
ret 4
mov dword [ebx + 0x6208], 2
mov dword [ebx + 0x620c], 0x109
mov ecx, dword [ebp - 8]
pop edi
pop esi
mov dword [ebx + 0x6208], 8
xor ecx, ebp
mov dword [ebx + 0x620c], 0x134
pop ebx
call fcn.1010a832
mov esp, ebp
pop ebp
ret 4
push str.Queue_overflow_
push 0x101c51c8
call fcn.100453d0
push eax
call fcn.10045670
add esp, 0xc
push 1
call fcn.10138eb0
int3
Function at 0x10045140
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x7d38
call fcn.1010bba0
mov eax, dword [0x101ba0ec]
xor eax, esp
mov dword [esp + 0x7d34], eax
push esi
push edi
mov edi, ecx
lea eax, [esp + 0x1f68]
push 0x5dd0
push edi
push eax
call fcn.1012b780
mov ecx, dword [esp + 0x1f7c]
or esi, 0xffffffff
add esp, 0xc
mov dword [esp + 0x1f60], esi
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], 0
test ecx, ecx
jle 0x1004537c
mov dword [esp + 0x10], 0x3e8
test ecx, ecx
je 0x10045375
mov edx, dword [esp + 0x1f68]
dec ecx
lea eax, [edx + edx*2]
movups xmm3, xmmword [esp + eax*8 + 0x1f78]
movq xmm2, qword [esp + eax*8 + 0x1f88]
lea eax, [edx + 1]
cdq
idiv dword [esp + 0x10]
movd eax, xmm3
mov dword [esp + 0x1f70], ecx
mov dword [esp + 0x1f68], edx
cmp eax, 0x14
jge 0x10045225
test eax, eax
jne 0x1004520b
cmp esi, 0x3e7
je 0x100453a6
inc esi
mov dword [esp + 0x1f60], esi
movsd qword [esp + esi*8 + 0x20], xmm2
jmp 0x100452fb
cmp esi, 0x3e7
je 0x100453a6
movsd xmm0, qword [edi + eax*8 + 0x5dd0]
jmp 0x100452ed
cmp eax, 0x28
jle 0x10045291
cmp esi, 0xffffffff
je 0x10045344
movsd xmm0, qword [esp + esi*8 + 0x20]
mov ecx, eax
dec esi
sub ecx, 0x29
je 0x10045288
sub ecx, 1
je 0x100452da
cmp eax, 0x32
jle 0x1004526f
mov eax, dword [eax*4 + 0x101845ac]
sub esp, 8
movsd qword [esp], xmm0
call eax
fstp qword [esp + 0x20]
movsd xmm0, qword [esp + 0x20]
add esp, 8
jmp 0x100452da
mov dword [edi + 0x6208], 8
xorps xmm0, xmm0
mov dword [edi + 0x620c], 0x1b9
jmp 0x100452da
xorps xmm0, xmmword [0x10198540]
jmp 0x100452da
add eax, 0xffffffeb
cmp eax, 0x12
ja 0x10045302
cmp esi, 0xffffffff
je 0x10045344
movsd xmm1, qword [esp + esi*8 + 0x20]
dec esi
mov dword [esp + 0x1f60], esi
cmp esi, 0xffffffff
je 0x10045344
movsd xmm0, qword [esp + esi*8 + 0x20]
sub esp, 0x18
mov eax, esp
mov ecx, edi
dec esi
movups xmmword [eax], xmm3
movq qword [eax + 0x10], xmm2
movaps xmm3, xmm1
movaps xmm2, xmm0
call fcn.10045080
cmp esi, 0x3e7
je 0x100453a6
mov ecx, dword [esp + 0x1f70]
inc esi
mov dword [esp + 0x1f60], esi
movsd qword [esp + esi*8 + 0x20], xmm0
mov esi, dword [esp + 0x1f60]
mov eax, dword [esp + 0xc]
inc eax
mov dword [esp + 0xc], eax
cmp eax, dword [esp + 0x14]
jl 0x100451a5
cmp esi, 0xffffffff
je 0x1004537c
movsd xmm0, qword [esp + esi*8 + 0x20]
dec esi
movsd qword [edi + 0x5dd0], xmm0
cmp esi, 0xffffffff
jne 0x1004534b
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 0x7d34]
xor ecx, esp
call fcn.1010a832
mov esp, ebp
pop ebp
ret
push str.Attempt_to_pop_an_empty_stack_
jmp 0x100453ab
mov dword [edi + 0x6208], 3
xor al, al
mov dword [edi + 0x620c], 0x1ee
pop edi
pop esi
mov ecx, dword [esp + 0x7d34]
xor ecx, esp
call fcn.1010a832
mov esp, ebp
pop ebp
ret
push str.Deleting_from_an_empty_queue_
jmp 0x100453ab
mov ecx, dword [esp + 0x7d3c]
xor al, al
mov dword [edi + 0x6208], 9
mov dword [edi + 0x620c], 0x1f3
pop edi
pop esi
xor ecx, esp
call fcn.1010a832
mov esp, ebp
pop ebp
ret
push str.Stack_overflow_
push 0x101c51c8
call fcn.100453d0
push eax
call fcn.10045670
add esp, 0xc
push 1
call fcn.10138eb0
int3
Function at 0x10047390
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10157de6
mov eax, dword fs:[0]
push eax
sub esp, 0x67c
mov eax, dword [0x101ba0ec]
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 ebx, ecx
push 0x22c
lea eax, [ebp - 0x680]
push 0
push eax
call fcn.1012bd00
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
call fcn.1012bd00
add esp, 0xc
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10047401
xor eax, eax
jmp 0x10047475
lea eax, [ebp - 0x680]
mov dword [ebp - 0x680], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x10047469
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
xor eax, eax
movzx ecx, word [ebp + eax - 0x65c]
lea eax, [eax + 2]
mov word [ebp + eax - 0x21a], cx
test cx, cx
jne 0x10047425
lea eax, [ebp - 0x218]
push eax
call fcn.101391c9
add esp, 4
lea ecx, [ebp - 0x218]
call fcn.100472e0
test al, al
jne 0x10047491
lea eax, [ebp - 0x680]
push eax
push esi
call edi
test eax, eax
jne 0x10047423
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 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.1010a832
mov esp, ebp
pop ebp
ret
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.1012bd00
add esp, 0xc
push dword [ebp - 0x678]
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0x104
lea ecx, [ebp - 0x420]
push ecx
push 0
push eax
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
sub esp, 0x18
lea eax, [ebp - 0x420]
mov ecx, esp
mov dword [ebp - 0x684], esp
push eax
call fcn.10041a70
sub esp, 0x18
mov dword [ebp - 4], 0
lea eax, [ebp - 0x218]
mov ecx, esp
push eax
call fcn.10041a70
lea ecx, [ebp - 0x450]
mov dword [ebp - 4], 0xffffffff
call fcn.1004b4d0
push eax
mov ecx, ebx
mov dword [ebp - 4], 1
call fcn.10049740
lea ecx, [ebp - 0x450]
call fcn.10047530
jmp 0x10047470

Function at 0x10048300
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfac
mov eax, dword [0x101ba0ec]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x7d0
lea eax, [ebp - 0xfa8]
mov esi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea edx, [ebp - 0xfa8]
mov eax, esi
sub edx, esi
movzx ecx, word [eax]
lea eax, [eax + 2]
mov word [edx + eax - 2], cx
test cx, cx
jne 0x10048332
push 1
push 0
push 0
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x1004836c
sub esp, 8
lea ecx, [ebp - 0xfa8]
call fcn.100483e0
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1010a832
mov esp, ebp
pop ebp
ret
Function at 0x10048380
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10048390
sub ecx, edx
sar ecx, 1
jne 0x100483a8
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push 1
push 0
push 0
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x100483d3
sub esp, 8
mov ecx, esi
call fcn.100483e0
add esp, 8
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x100483e0
Capabilities:
Create process on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10157fd0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x94
mov eax, dword [0x101ba0ec]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x44
lea eax, [ebp - 0xa0]
push 0
push eax
call fcn.1012bd00
xorps xmm0, xmm0
mov dword [ebp - 0xa0], 0x44
xor eax, eax
mov dword [ebp - 0x18], 7
add esp, 0xc
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x54], xmm0
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], eax
mov word [ebp - 0x44], ax
mov byte [ebp - 4], 1
cmp word [esi], ax
jne 0x10048478
xor ecx, ecx
jmp 0x1004848f
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10048480
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.10041f80
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0xa0]
push ecx
push 0
push 0
push 0
push 1
push 0
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x100484cc
xor esi, esi
jmp 0x100484e1
push dword [ebp - 0x54]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x50]
call esi
mov esi, 1
mov eax, dword [ebp - 0x30]
cmp eax, 8
jb 0x100484f6
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.10042120
mov ecx, dword [ebp - 0x18]
xor eax, eax
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
cmp ecx, 8
jb 0x1004851f
inc ecx
push ecx
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x2c]
call fcn.10042120
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1010a832
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x10048bb0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x160c
call fcn.1010bba0
mov eax, dword [0x101ba0ec]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
lea eax, [ebp - 0x210]
mov ebx, ecx
push 0
push eax
mov dword [ebp - 0x160c], ebx
call fcn.1012bd00
add esp, 0xc
lea eax, [ebp - 0x210]
push ebx
push 0x10184498
push eax
call fcn.1004b4b0
lea ecx, [ebp - 0x210]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10048c06
sub ecx, edx
sar ecx, 1
lea eax, [ecx - 1]
test eax, eax
jle 0x10048c34
cmp word [ebp + ecx*2 - 0x212], 0x5c
je 0x10048c34
mov eax, 0x5c
mov word [ebp + ecx*2 - 0x210], ax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0xbe8]
push 0x10184a18
push eax
call fcn.1004b4b0
add esp, 0xc
lea eax, [ebp - 0x1608]
push eax
lea eax, [ebp - 0xbe8]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10048d3a
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
nop word [eax + eax]
lea eax, [ebp - 0x1608]
push eax
push esi
call edi
test eax, eax
je 0x10048d34
cmp word [ebp - 0x15dc], 0x2e
je 0x10048c80
mov ax, word [ebp - 0x15da]
test ax, ax
je 0x10048c80
cmp ax, 0x2e
jne 0x10048cb8
cmp word [ebp - 0x15d8], 0
je 0x10048c80
test byte [ebp - 0x1608], 0x10
je 0x10048d04
push 0x208
lea eax, [ebp - 0x418]
push 0
push eax
call fcn.1012bd00
add esp, 0xc
lea eax, [ebp - 0x15dc]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x418]
push str._s_s_
push eax
call fcn.1004b4b0
add esp, 0x10
lea ecx, [ebp - 0x418]
call fcn.10048bb0
lea eax, [ebp - 0x15dc]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x13b8]
push 0x10184440
push eax
call fcn.1004b4b0
add esp, 0x10
lea eax, [ebp - 0x13b8]
push eax
call ebx
jmp 0x10048c80
mov ebx, dword [ebp - 0x160c]
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x20
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1010a832
mov esp, ebp
pop ebp
ret
Function at 0x1004e470
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101585e8
mov eax, dword fs:[0]
push eax
sub esp, 0xec
mov eax, dword [0x101ba0ec]
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, edx
mov esi, ecx
mov dword [ebp - 0xf0], esi
xor eax, eax
mov dword [ebp - 0xf4], 0
push eax
push 0x1018444c
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.10041f80
lea ecx, [ebp - 0xe8]
mov dword [ebp - 4], 0
call fcn.10110df8
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1004e603
push 0
push 1
push 4
push 0
push 1
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1004e531
push 0x1018444c
mov ecx, esi
call fcn.10041a70
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x1004e636
inc ecx
push ecx
jmp 0x1004e62b
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xec], eax
inc eax
push eax
mov dword [ebp - 0xf0], eax
call fcn.10050ec0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x1004e56f
push 0x1018444c
mov ecx, esi
call fcn.10041a70
lea ecx, [ebp - 0x28]
call fcn.100420d0
jmp 0x1004e636
push dword [ebp - 0xf0]
push 0
push ebx
call fcn.1012bd00
add esp, 0xc
lea eax, [ebp - 0xf8]
push 0
push eax
push dword [ebp - 0xec]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xec]
lea ecx, [ebp - 0xe8]
push ebx
call fcn.101117c6
push ebx
call fcn.10050eb0
add esp, 4
lea eax, [ebp - 0x58]
lea ecx, [ebp - 0xe8]
push eax
call fcn.10111011
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
call fcn.1011093e
add esp, 8
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
call fcn.100467b0
cmp dword [ebp - 0x30], 0
jbe 0x1004e5fb
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.10041c10
lea ecx, [ebp - 0x40]
call fcn.100420d0
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
mov word [esi], ax
lea eax, [ebp - 0x28]
push eax
call fcn.100419b0
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x1004e636
inc eax
push eax
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.10042120
mov eax, esi
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.1010a832
mov esp, ebp
pop ebp
ret
Function at 0x1004f5a0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10158768
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x101ba0ec]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1004f5f6
and al, 0x10
xor cl, cl
cmp cl, al
sbb eax, eax
neg eax
je 0x1004f5f6
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
lea ecx, [ebp - 0x14]
call fcn.10051e70
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x14]
mov ecx, edi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1004f610
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jle 0x1004f633
cmp word [edi + ecx*2 - 2], 0x5c
jne 0x1004f633
xor eax, eax
mov word [edi + ecx*2 - 2], ax
push 0x5c
push edi
call fcn.1012acb4
add esp, 8
test eax, eax
jne 0x1004f647
lea esi, [eax + 0xf]
jmp 0x1004f677
xor ecx, ecx
mov word [eax], cx
mov ecx, edi
call fcn.1004f5a0
mov esi, eax
test esi, esi
jne 0x1004f677
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1004f675
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0xb7
jne 0x1004f677
xor esi, esi
push edi
call fcn.10050eb0
add esp, 4
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 0x1004f7c0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1004f850
lea eax, [esp + 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
mov esi, dword [ebp + 0x14]
test eax, eax
je 0x1004f83c
mov eax, dword [esp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], eax
test esi, 0x100
ja 0x1004f82d
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
lea eax, [esp + 8]
push eax
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and esi, 0x27
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10