joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44cf0c
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x6102d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x44d050
push ebx
push edi
xor edi, edi
xor ebx, ebx
push edi
push 0x80
push 4
push edi
inc ebx
mov dword [ebp - 0x10c], edi
push ebx
push accept
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x44cf6d
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10c], eax
jmp 0x44cf73
mov eax, dword [ebp - 0x10c]
lea esi, [eax + 1]
push esi
call fcn.0045ec70
and dword [ebp - 0x11c], 0
pop ecx
push 0
lea ecx, [ebp - 0x11c]
mov dword [ebp - 0x118], eax
push ecx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.0056f980
lea eax, [ebp - 0x108]
push str.e2bd2a097c4425853892b21eee5af792
push eax
call fcn.0057cdf0
lea eax, [ebp - 0x108]
push eax
call fcn.0057cef0
mov edi, dword [ebp - 0x10c]
add esp, 0x18
mov dword [ebp - 0x114], eax
xor eax, eax
mov dword [ebp - 0x110], eax
test edi, edi
jle 0x44d03e
mov edx, dword [ebp - 0x118]
mov cl, byte [ebp - 0x108]
cmp byte [edx], cl
jne 0x44d032
xor ecx, ecx
xor esi, esi
cmp dword [ebp - 0x114], ecx
jle 0x44d02c
mov al, byte [edx + ecx]
cmp al, byte [ebp + ecx - 0x108]
jne 0x44d026
mov eax, dword [ebp - 0x114]
inc esi
cmp esi, eax
je 0x44d040
inc ecx
cmp ecx, eax
jl 0x44d00a
mov eax, dword [ebp - 0x110]
mov cl, byte [ebp - 0x108]
inc eax
inc edx
mov dword [ebp - 0x110], eax
cmp eax, edi
jl 0x44cffa
xor ebx, ebx
push dword [ebp - 0x118]
call fcn.0045ec79
pop ecx
pop edi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0045ef18
leave
ret

Function at 0x44e223
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x38
lea eax, [ebp - 0x38]
mov dword [ebp - 0x3c], 0x3c
push 0
push eax
call fcn.0056f980
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x38], 0x200
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x28], eax
call fcn.00453b83
test eax, eax
mov ecx, str.runas
cmovne ecx, dword [ebp - 0x30]
mov dword [ebp - 0x30], ecx
lea ecx, [ebp - 0x3c]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x44e281
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
inc eax
leave
ret
Function at 0x44e286
Capabilities:
Create process on windows

Disassembly:
push 0x90
mov eax, 0x59ec86
call fcn.0045f202
mov eax, dword [ebp + 0x18]
xor esi, esi
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push 0x44
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x9c]
push esi
push eax
mov dword [ebp - 0x44], esi
call fcn.0056f980
push 0x10
lea eax, [ebp - 0x58]
mov dword [ebp - 0x9c], 0x44
push esi
push eax
call fcn.0056f980
add esp, 0x18
mov dword [ebp - 0x18], esi
xor eax, eax
mov word [ebp - 0x28], ax
push 7
pop ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], ecx
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 1
test edi, edi
je 0x44e35e
push edi
call fcn.0057cf7b
pop ecx
push eax
push edi
lea ecx, [ebp - 0x40]
call fcn.00411630
cmp dword [ebp - 0x30], esi
je 0x44e35e
mov edi, 0x5a1e04
push edi
call fcn.0057cf7b
pop ecx
push eax
push edi
lea ecx, [ebp - 0x28]
call fcn.00411630
push ebx
call fcn.0057cf7b
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x28]
call fcn.004114b0
mov edi, 0x5a1e08
push edi
call fcn.0057cf7b
pop ecx
push eax
push edi
lea ecx, [ebp - 0x28]
call fcn.004114b0
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x28]
push eax
call fcn.004114b0
jmp 0x44e36f
push ebx
call fcn.0057cf7b
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x28]
call fcn.00411630
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0x67
call fcn.00450c85
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
pop ecx
cmovae eax, dword [ebp - 0x28]
pop ecx
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x9c]
push ecx
push esi
push esi
push esi
push 1
push esi
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x44e3f8
cmp byte [ebp + 0x10], 0
je 0x44e3c8
or eax, 0xffffffff
cmp dword [ebp + 0x14], 0
cmovg eax, dword [ebp + 0x14]
push eax
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [ebp - 0x48]
test esi, esi
je 0x44e3e5
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x44e3e5
mov eax, dword [ebp - 0x44]
mov dword [esi], eax
push dword [ebp - 0x58]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x54]
call esi
xor esi, esi
inc esi
lea ecx, [ebp - 0x40]
call fcn.004113b0
lea ecx, [ebp - 0x28]
call fcn.004113b0
mov eax, esi
call fcn.0045f1bd
ret
Function at 0x44e80c
Capabilities:
Enumerate processes

Disassembly:
push 0x260
mov eax, 0x59ed5c
call fcn.0045f202
mov eax, dword [ebp + 8]
test eax, eax
je 0x44e8d1
push eax
lea ecx, [ebp - 0x40]
call fcn.0040f6c0
lea eax, [ebp - 0x40]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0044d8a7
mov edi, 0x22c
lea eax, [ebp - 0x26c]
push edi
push ebx
push eax
call fcn.0056f980
add esp, 0x10
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x44e8c7
lea eax, [ebp - 0x26c]
mov dword [ebp - 0x26c], edi
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x44e8bc
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040f6c0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
call fcn.0044d8a7
pop ecx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.0045008d
test al, al
jne 0x44e8d7
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call fcn.004113b0
lea eax, [ebp - 0x26c]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x44e877
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x40]
call fcn.004113b0
mov eax, ebx
call fcn.0045f1bd
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x264]
lea ecx, [ebp - 0x28]
call fcn.004113b0
jmp 0x44e8c7
Function at 0x44fd6d
Capabilities:
Enumerate processes

Disassembly:
push 0x288
mov eax, 0x59f12c
call fcn.0045f202
mov edi, dword [ebp + 0xc]
xor eax, eax
mov ebx, dword [ebp + 0x10]
mov esi, eax
mov dword [ebp - 0x290], esi
mov dword [ebp - 0x28c], eax
mov dword [ebp - 0x288], eax
push 0x22c
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x284]
push eax
call fcn.0056f980
add esp, 0xc
lea ecx, [ebp - 0x58]
push edi
call fcn.0040f6c0
push ebx
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.0040f6c0
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 2
push eax
call fcn.0044d8a7
lea eax, [ebp - 0x40]
push eax
call fcn.0044d8a7
pop ecx
pop ecx
xor edi, edi
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x44fee0
lea eax, [ebp - 0x284]
mov dword [ebp - 0x284], 0x22c
push eax
push ebx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x44fe87
mov esi, dword [ebp + 8]
cmp dword [ebp - 0x27c], esi
je 0x44fe70
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040f6c0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
call fcn.0044d8a7
pop ecx
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x28]
call fcn.0045008d
test al, al
je 0x44fe64
mov eax, dword [ebp - 0x27c]
lea ecx, [ebp - 0x290]
mov dword [ebp - 0x294], eax
lea eax, [ebp - 0x294]
push eax
call fcn.0044e1d1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.004113b0
lea eax, [ebp - 0x284]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x44fe11
mov esi, dword [ebp - 0x290]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x28c]
jmp 0x44fed2
push dword [esi]
lea eax, [ebp - 0x28]
push eax
call fcn.0044e668
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 4
push eax
call fcn.0044d8a7
add esp, 0xc
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x28]
push edi
push eax
call fcn.0044db9a
lea ecx, [ebp - 0x28]
cmp eax, 0xffffffff
jg 0x44fed8
mov byte [ebp - 4], 2
call fcn.004113b0
add esi, 4
cmp esi, ebx
jne 0x44fe96
jmp 0x44fee0
xor edi, edi
inc edi
call fcn.004113b0
lea ecx, [ebp - 0x40]
call fcn.004113b0
lea ecx, [ebp - 0x58]
call fcn.004113b0
lea ecx, [ebp - 0x290]
call fcn.004500fd
mov eax, edi
call fcn.0045f1bd
ret
Function at 0x44ff03
Capabilities:
Enumerate processes

Disassembly:
push 0x260
mov eax, 0x59ed5c
call fcn.0045f202
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x26c]
mov edi, 0x22c
xor ebx, ebx
push edi
push ebx
push eax
call fcn.0056f980
add esp, 0xc
lea ecx, [ebp - 0x40]
push esi
call fcn.0040f6c0
lea eax, [ebp - 0x40]
mov dword [ebp - 4], ebx
push eax
call fcn.0044d8a7
pop ecx
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x44ffc1
lea eax, [ebp - 0x26c]
mov dword [ebp - 0x26c], edi
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x44ffac
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040f6c0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
call fcn.0044d8a7
pop ecx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.0045008d
lea ecx, [ebp - 0x28]
test al, al
jne 0x44ffb2
mov byte [ebp - 4], bl
call fcn.004113b0
lea eax, [ebp - 0x26c]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x44ff67
jmp 0x44ffba
xor ebx, ebx
inc ebx
call fcn.004113b0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x40]
call fcn.004113b0
mov eax, ebx
call fcn.0045f1bd
ret

Function at 0x45023f
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor eax, eax
xor ecx, ecx
xor esi, esi
push edi
cmp dword [ebp + 0xc], eax
jle 0x450331
mov edi, dword [ebp + 8]
mov dl, byte [esi + edi]
movzx ebx, dl
cmp dl, 0x3d
jne 0x45026c
inc ecx
cmp ecx, 2
jg 0x450338
cmp dl, 0x7f
ja 0x450338
mov dl, byte [ebx + 0x5a7fc0]
cmp dl, 0x7f
je 0x450338
cmp dl, 0x40
jae 0x450291
test ecx, ecx
jne 0x450338
inc eax
inc esi
cmp esi, dword [ebp + 0xc]
jl 0x450257
test eax, eax
je 0x450331
mov edi, dword [ebp + 0x14]
imul eax, eax, 6
add eax, 7
sar eax, 3
cmp dword [edi], eax
jge 0x4502b9
mov dword [edi], eax
push 0xfffffffffffffff0
jmp 0x45033a
mov edx, dword [ebp + 0x10]
xor eax, eax
xor ebx, ebx
mov dword [ebp + 0xc], eax
test esi, esi
jle 0x45032c
mov eax, dword [ebp + 8]
push 3
pop edi
movzx eax, byte [eax]
mov cl, byte [eax + 0x5a7fc0]
xor eax, eax
cmp cl, 0x40
sete al
shl ebx, 6
sub edi, eax
movzx eax, cl
mov ecx, dword [ebp + 0xc]
and eax, 0x3f
or ebx, eax
inc ecx
mov dword [ebp + 0xc], ecx
cmp ecx, 4
jne 0x45031d
xor eax, eax
mov dword [ebp + 0xc], eax
test edi, edi
jle 0x450308
mov eax, ebx
shr eax, 0x10
mov byte [edx], al
inc edx
cmp edi, 1
jle 0x450315
mov eax, ebx
shr eax, 8
mov byte [edx], al
inc edx
cmp edi, 2
jle 0x45031d
mov byte [edx], bl
inc edx
mov eax, dword [ebp + 8]
dec esi
inc eax
mov dword [ebp + 8], eax
test esi, esi
jg 0x4502cd
mov edi, dword [ebp + 0x14]
sub edx, dword [ebp + 0x10]
mov dword [edi], edx
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
push 0xffffffffffffffee
pop eax
jmp 0x450333
Function at 0x45033d
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jne 0x450351
xor eax, eax
jmp 0x450487
mov eax, ebx
shl eax, 3
push 6
pop ecx
cdq
idiv ecx
mov edx, ebx
imul ecx, eax, 6
shl edx, 3
push 3
sub edx, ecx
dec edx
pop ecx
sub edx, 1
je 0x45037a
dec edx
sub edx, 1
jne 0x45037c
add eax, 2
jmp 0x45037c
add eax, ecx
push esi
mov esi, dword [ebp + 0x14]
inc eax
cmp dword [esi], eax
jge 0x45038f
push 0xfffffffffffffff0
mov dword [esi], eax
pop eax
jmp 0x450486
mov eax, ebx
cdq
idiv ecx
xor ecx, ecx
imul eax, eax, 3
push edi
mov edi, dword [ebp + 0x10]
test eax, eax
jle 0x45041f
dec eax
mov ebx, dword [ebp + 8]
xor edx, edx
push 3
pop ecx
div ecx
inc eax
imul ecx, eax, 3
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
movzx ecx, byte [ebx]
movzx edx, byte [ebx + 1]
mov eax, ecx
movzx esi, byte [ebx + 2]
add ebx, 3
shr eax, 2
push 3
mov al, byte [eax + 0x5a7f80]
mov byte [edi], al
pop eax
and ecx, eax
mov eax, edx
shr eax, 4
add ecx, ecx
and edx, 0xf
mov al, byte [eax + ecx*8 + 0x5a7f80]
mov byte [edi + 1], al
mov eax, esi
shr eax, 6
and esi, 0x3f
mov al, byte [eax + edx*4 + 0x5a7f80]
mov byte [edi + 2], al
mov al, byte [esi + 0x5a7f80]
mov byte [edi + 3], al
add edi, 4
sub dword [ebp - 4], 1
jne 0x4503b6
mov esi, dword [ebp + 0x14]
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], ebx
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
jmp 0x450422
mov eax, dword [ebp + 8]
cmp ecx, ebx
jge 0x450479
movzx edx, byte [eax]
inc ecx
mov dword [ebp + 0xc], ecx
cmp ecx, ebx
jge 0x450437
movzx ecx, byte [eax + 1]
jmp 0x450439
xor ecx, ecx
mov eax, edx
shr eax, 2
push 3
mov al, byte [eax + 0x5a7f80]
mov byte [edi], al
pop eax
and edx, eax
mov eax, ecx
add edx, edx
shr eax, 4
mov al, byte [eax + edx*8 + 0x5a7f80]
mov byte [edi + 1], al
cmp dword [ebp + 0xc], ebx
jge 0x45046d
and ecx, 0xf
mov al, byte [ecx*4 + 0x5a7f80]
jmp 0x45046f
mov al, 0x3d
mov byte [edi + 2], al
mov byte [edi + 3], 0x3d
add edi, 4
mov eax, edi
sub eax, dword [ebp + 0x10]
mov dword [esi], eax
xor eax, eax
mov byte [edi], 0
pop edi
pop esi
pop ebx
leave
ret

Function at 0x450508
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push esi
push edi
push str.kernel32.dll
mov esi, ecx
call ebx
mov dword [esi], eax
test eax, eax
je 0x450589
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5a805c
push eax
call edi
push 0x5a8070
push dword [esi]
mov dword [esi + 8], eax
call edi
push 0x5a8080
push dword [esi]
mov dword [esi + 0xc], eax
call edi
push 0x5a80a0
push dword [esi]
mov dword [esi + 0x18], eax
call edi
push str.GetSystemWow64DirectoryW
push dword [esi]
mov dword [esi + 0x14], eax
call edi
push str.advapi32.dll
mov dword [esi + 0x10], eax
call ebx
mov dword [esi + 4], eax
test eax, eax
je 0x450589
mov ebx, 0x5a80a0
push ebx
push eax
call edi
push ebx
push dword [esi + 4]
mov dword [esi + 0x20], eax
call edi
mov dword [esi + 0x1c], eax
xor eax, eax
inc eax
jmp 0x45058b
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x45086b
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x6102d4]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0056f980
lea eax, [ebp - 0x224]
push str.941285465903431208644251175609036900111925153030
push eax
call fcn.0044e03f
add esp, 0x14
cmp dword [eax + 0x14], 8
jb 0x4508ad
mov eax, dword [eax]
push 0x5a1790
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00411a40
add esp, 0xc
lea ecx, [ebp - 0x224]
call fcn.004113b0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
xor ecx, ebp
neg eax
call fcn.0045ef18
leave
ret
Function at 0x4508ec
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2034
call fcn.0045ef30
mov eax, dword [0x6102d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, 0x208
lea eax, [ebp - 0x61c]
push edi
xor esi, esi
push esi
push eax
call fcn.0056f980
push str.C:log_
mov ebx, 0x104
lea eax, [ebp - 0x61c]
push ebx
push eax
call fcn.0057d5e7
push 0x800
lea eax, [ebp - 0x1024]
push esi
push eax
call fcn.0056f980
push 0x5a1790
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push str._s_s.log
push eax
call fcn.00450704
push edi
lea eax, [ebp - 0x824]
push esi
push eax
call fcn.0056f980
add esp, 0x40
lea eax, [ebp - 0x20c]
push edi
push esi
push eax
call fcn.0056f980
add esp, 0xc
lea eax, [ebp - 0x20c]
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call fcn.0057cf7b
pop ecx
test eax, eax
je 0x450b4b
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.0056fada
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop ecx
pop ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x414]
push eax
call ebx
test eax, eax
je 0x450b4b
lea eax, [ebp - 0x20c]
push eax
call fcn.0057cf7b
lea ecx, [ebp - 0x20a]
lea eax, [ecx + eax*2]
push eax
lea eax, [ebp - 0x824]
push 0x104
push eax
call fcn.0057d5e7
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push str._s_s.txt
push eax
call fcn.00450704
lea eax, [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x1024]
push 0x3ff
push 0x400
push eax
call fcn.0040d690
push esi
call fcn.005778fc
mov dword [ebp - 0x2034], eax
lea eax, [ebp - 0x2034]
push eax
mov dword [ebp - 0x2030], edx
call fcn.0057de52
add esp, 0x40
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
test edi, edi
je 0x450b4b
lea ecx, [ebp - 0x1024]
push ecx
push eax
push dword [edi]
mov eax, dword [edi + 0x10]
push dword [edi + 4]
inc eax
push dword [edi + 8]
push dword [edi + 0xc]
push eax
mov eax, dword [edi + 0x14]
add eax, 0x76c
push eax
lea eax, [ebp - 0x2024]
push str.__d__d__d__d__d__d___d_:_s
push eax
call fcn.00450722
xor eax, eax
add esp, 0x28
mov word [ebp - 0x826], ax
lea eax, [ebp - 0x414]
push eax
call ebx
xor ebx, ebx
inc ebx
test eax, eax
lea eax, [ebp - 0x414]
push 0x5a8190
push eax
cmovne esi, ebx
call fcn.0057d7cd
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x450b4b
test esi, esi
jne 0x450af1
push edi
push 2
lea eax, [ebp - 0x202c]
mov dword [ebp - 0x202c], 0xfeff
push ebx
push eax
call fcn.0057db70
add esp, 0x10
lea eax, [ebp - 0x2024]
push eax
call fcn.0057cf7b
push edi
add eax, eax
push eax
lea eax, [ebp - 0x2024]
push ebx
push eax
call fcn.0057db70
push edi
push 2
lea eax, [ebp - 0x2028]
mov dword [ebp - 0x2028], 0xd
push ebx
push eax
call fcn.0057db70
push edi
push 2
lea eax, [ebp - 0x2028]
mov dword [ebp - 0x2028], 0xa
push ebx
push eax
call fcn.0057db70
push edi
call fcn.0057d8b8
add esp, 0x38
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045ef18
leave
ret
Function at 0x450b5a
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.0045ef30
mov eax, dword [0x6102d4]
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 0
call fcn.005778fc
mov dword [ebp - 0x1014], eax
lea eax, [ebp - 0x1014]
push eax
mov dword [ebp - 0x1010], edx
call fcn.0057de52
pop ecx
pop ecx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [esi + 0x10]
push edi
push eax
push dword [esi]
mov eax, dword [esi + 0x14]
inc ecx
push dword [esi + 4]
add eax, 0x76c
push dword [esi + 8]
push dword [esi + 0xc]
push ecx
push eax
lea eax, [ebp - 0x1004]
push str.__d__d__d__d__d__d___d_:_s
push eax
call fcn.00450722
add esp, 0x28
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push 0
xor ecx, ecx
pop edi
inc ecx
test eax, eax
push 0x5a8190
push ebx
cmovne edi, ecx
call fcn.0057d7cd
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x450c76
test edi, edi
jne 0x450c19
push esi
push 2
lea eax, [ebp - 0x100c]
mov dword [ebp - 0x100c], 0xfeff
push 1
push eax
call fcn.0057db70
add esp, 0x10
lea eax, [ebp - 0x1004]
push eax
call fcn.0057cf7b
push esi
add eax, eax
push eax
lea eax, [ebp - 0x1004]
push 1
push eax
call fcn.0057db70
push esi
push 2
lea eax, [ebp - 0x1008]
mov dword [ebp - 0x1008], 0xd
push 1
push eax
call fcn.0057db70
push esi
push 2
lea eax, [ebp - 0x1008]
mov dword [ebp - 0x1008], 0xa
push 1
push eax
call fcn.0057db70
push esi
call fcn.0057d8b8
add esp, 0x38
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045ef18
leave
ret
Function at 0x451020
Capabilities:
Check if file exists
Copy file
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, dword [0x6102d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x61c]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, 0x208
push esi
push 0
push eax
mov dword [ebp - 0x620], ebx
call fcn.0056f980
push esi
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.0056f980
lea eax, [ebp - 0x61c]
push ebx
push eax
call fcn.0057d078
lea eax, [ebp - 0x414]
push edi
push eax
call fcn.0057d078
lea eax, [ebp - 0x61c]
push eax
call fcn.0057cd41
lea eax, [ebp - 0x414]
push eax
call fcn.0057cd41
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x61c]
push eax
call fcn.0057d10e
add esp, 0x38
test eax, eax
je 0x451165
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor esi, esi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0056f980
add esp, 0xc
lea eax, [ebp - 0x20c]
test esi, esi
jne 0x4510ee
push edi
push 0x5a8254
push eax
call fcn.00411a40
add esp, 0xc
jmp 0x4510fe
push esi
push edi
push str._s.bak_d
push eax
call fcn.00411a40
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45111c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.0057cb8b
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push edi
push dword [ebp - 0x620]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 5
test eax, eax
lea eax, [ebp - 0x20c]
push 0
push eax
jne 0x451163
call ebx
cmp esi, 0xa
jge 0x451165
inc esi
jmp 0x4510bd
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045ef18
leave
ret
Function at 0x451511
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push 0x90
mov eax, 0x59f2b1
call fcn.0045f202
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x98], eax
xor esi, esi
lea ecx, [ebp - 0x28]
push 0x5a178c
mov dword [ebp - 4], esi
call fcn.0040f6c0
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.00459916
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
mov edi, esi
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4515d9
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push esi
cmovae eax, dword [ebp + 8]
push 0x80
push 4
push esi
push 1
push accept
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4515db
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp - 0x98]
push eax
mov dword [ecx], eax
call fcn.0045ec70
mov edi, eax
pop ecx
test edi, edi
je 0x4515db
mov eax, dword [ebp - 0x98]
push dword [eax]
push esi
push edi
call fcn.0056f980
add esp, 0xc
lea eax, [ebp - 0x9c]
push esi
push eax
mov eax, dword [ebp - 0x98]
push dword [eax]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, edi
lea ecx, [ebp - 0x28]
call fcn.004113b0
lea ecx, [ebp + 8]
call fcn.004113b0
mov eax, esi
call fcn.0045f1bd
ret