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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword fs:[0x2c]
push esi
push edi
mov edi, ecx
mov ecx, dword [eax]
mov eax, dword [0x47b558]
mov dword [ebp - 4], edi
mov dword [ebp - 4], edi
cmp eax, dword [ecx + 4]
jle 0x409a5b
push 0x47b558
call fcn.004252e5
add esp, 4
cmp dword [0x47b558], 0xffffffff
jne 0x409a5b
xorps xmm0, xmm0
mov dword [0x47b570], 0
xor eax, eax
mov dword [0x47b574], 7
movups xmmword [0x47b560], xmm0
push 0x45a7f0
mov word [0x47b560], ax
call fcn.004256c9
add esp, 4
push 0x47b558
call fcn.00425294
add esp, 4
mov edx, dword [0x47b574]
mov ecx, dword [0x47b560]
cmp edx, 7
jbe 0x409a70
test ecx, ecx
je 0x409a9b
cmp edx, 7
mov eax, 0x47b560
cmova eax, ecx
cmp word [eax], 0
je 0x409a9b
cmp edx, 7
mov eax, 0x47b560
cmova eax, ecx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x409b67
lea ecx, [ebp - 0x20]
call fcn.0040c3e0
mov esi, eax
cmp esi, 0x47b560
je 0x409b31
mov ecx, dword [0x47b574]
cmp ecx, 7
jbe 0x409af1
mov edx, dword [0x47b560]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x409ae7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409b7b
push ecx
push edx
call fcn.004256de
add esp, 8
mov dword [0x47b570], 0
xor eax, eax
mov dword [0x47b574], 7
mov word [0x47b560], ax
movups xmm0, xmmword [esi]
movups xmmword [0x47b560], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [0x47b570], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov ecx, dword [ebp - 0xc]
cmp ecx, 7
jbe 0x409b67
mov edx, dword [ebp - 0x20]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x409b5d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409b7b
push ecx
push edx
call fcn.004256de
add esp, 8
push 0x47b560
mov ecx, edi
call fcn.004019f0
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.004313ba
int3
Function at 0x409b90
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword fs:[0x2c]
push esi
push edi
mov edi, ecx
mov ecx, dword [eax]
mov eax, dword [0x47b554]
mov dword [ebp - 4], edi
mov dword [ebp - 4], edi
cmp eax, dword [ecx + 4]
jle 0x409c0b
push 0x47b554
call fcn.004252e5
add esp, 4
cmp dword [0x47b554], 0xffffffff
jne 0x409c0b
xorps xmm0, xmm0
mov dword [0x47b5a0], 0
xor eax, eax
mov dword [0x47b5a4], 7
movups xmmword [0x47b590], xmm0
push 0x45a850
mov word [0x47b590], ax
call fcn.004256c9
add esp, 4
push 0x47b554
call fcn.00425294
add esp, 4
mov edx, dword [0x47b5a4]
mov ecx, dword [0x47b590]
cmp edx, 7
jbe 0x409c20
test ecx, ecx
je 0x409c4b
cmp edx, 7
mov eax, 0x47b590
cmova eax, ecx
cmp word [eax], 0
je 0x409c4b
cmp edx, 7
mov eax, 0x47b590
cmova eax, ecx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x409d17
lea ecx, [ebp - 0x20]
call fcn.0040c730
mov esi, eax
cmp esi, 0x47b590
je 0x409ce1
mov ecx, dword [0x47b5a4]
cmp ecx, 7
jbe 0x409ca1
mov edx, dword [0x47b590]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x409c97
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409d2b
push ecx
push edx
call fcn.004256de
add esp, 8
mov dword [0x47b5a0], 0
xor eax, eax
mov dword [0x47b5a4], 7
mov word [0x47b590], ax
movups xmm0, xmmword [esi]
movups xmmword [0x47b590], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [0x47b5a0], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov ecx, dword [ebp - 0xc]
cmp ecx, 7
jbe 0x409d17
mov edx, dword [ebp - 0x20]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x409d0d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409d2b
push ecx
push edx
call fcn.004256de
add esp, 8
push 0x47b590
mov ecx, edi
call fcn.004019f0
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.004313ba
int3

Function at 0x40aae0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x477140]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea ecx, [ebp - 0x1c]
call fcn.0040b4d0
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
cmp edx, 7
jbe 0x40ab08
test ecx, ecx
je 0x40ab35
cmp edx, 7
lea eax, [ebp - 0x1c]
cmova eax, ecx
cmp word [eax], 0
je 0x40ab35
cmp edx, 7
lea eax, [ebp - 0x1c]
cmova eax, ecx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
test eax, eax
je 0x40ab35
mov bl, 1
jmp 0x40ab37
xor bl, bl
cmp edx, 7
jbe 0x40ab67
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ab5d
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ab78
push edx
push ecx
call fcn.004256de
add esp, 8
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00425278
mov esp, ebp
pop ebp
ret
call fcn.004313ba
int3
Function at 0x40ab80
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x477140]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea ecx, [ebp - 0x1c]
call fcn.0040bda0
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
cmp edx, 7
jbe 0x40aba8
test ecx, ecx
je 0x40abd5
cmp edx, 7
lea eax, [ebp - 0x1c]
cmova eax, ecx
cmp word [eax], 0
je 0x40abd5
cmp edx, 7
lea eax, [ebp - 0x1c]
cmova eax, ecx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
test eax, eax
je 0x40abd5
mov bl, 1
jmp 0x40abd7
xor bl, bl
cmp edx, 7
jbe 0x40ac07
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40abfd
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ac18
push edx
push ecx
call fcn.004256de
add esp, 8
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00425278
mov esp, ebp
pop ebp
ret
call fcn.004313ba
int3
Function at 0x40ca80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4585ed
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x477140]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0x493e0
push 0
call fcn.0042b680
test eax, eax
jne 0x40cc1f
mov eax, dword [0x470944]
xor esi, esi
movups xmm0, xmmword [str.QGRXYY]
mov dword [ebp - 0x34], eax
mov ax, word [0x470948]
movups xmmword [ebp - 0x44], xmm0
mov word [ebp - 0x30], ax
nop
mov eax, 0x24924925
mul esi
mov eax, esi
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
lea ecx, [eax*8]
sub ecx, eax
mov eax, esi
shl ecx, 3
sub eax, ecx
add eax, 0x32
xor word [ebp + esi*2 - 0x44], ax
inc esi
cmp esi, 0xb
jl 0x40cae0
lea eax, [ebp - 0x44]
push eax
push 0x493e0
push 0
call fcn.0042b680
test eax, eax
jne 0x40cc1f
xorps xmm0, xmm0
mov dword [ebp - 0x18], eax
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x28]
push 0x1fffff
push eax
push 0
call fcn.00427270
add esp, 0xc
cmp dword [ebp - 0x18], 0
je 0x40cb7b
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
push eax
push 0x3a98
push 0
call fcn.0042b680
test eax, eax
je 0x40cb7b
mov byte [ebp - 0x29], 1
jmp 0x40cbe4
mov eax, dword [0x47092c]
xor esi, esi
movups xmm0, xmmword [str.q_Gr]
mov dword [ebp - 0x4c], eax
mov ax, word [0x470930]
movups xmmword [ebp - 0x5c], xmm0
mov word [ebp - 0x48], ax
nop word [eax + eax]
mov eax, 0x24924925
mul esi
mov eax, esi
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
lea ecx, [eax*8]
sub ecx, eax
mov eax, esi
shl ecx, 3
sub eax, ecx
add eax, 0x32
xor word [ebp + esi*2 - 0x5c], ax
inc esi
cmp esi, 0xb
jl 0x40cba0
lea eax, [ebp - 0x5c]
push eax
push 0x493e0
push 0
call fcn.0042b680
mov byte [ebp - 0x29], 0
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x40cc1a
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40cc10
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cc3b
push ecx
push edx
call fcn.004256de
add esp, 8
mov al, byte [ebp - 0x29]
jmp 0x40cc21
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00425278
mov esp, ebp
pop ebp
ret
call fcn.004313ba
int3
Function at 0x4120f0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x458bdd
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x477140]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x28]
xor esi, esi
call fcn.00406980
mov dword [ebp - 4], esi
cmp dword [ebp - 0x18], esi
je 0x412152
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x412284
push str.ck_W
push 0x3e8
push dword [0x47b214]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push 0xff
push dword [0x47b214]
mov dword [0x47b218], 1
call fcn.0042a020
add esp, 8
push 0xffffffffffffffec
push dword [0x47b214]
call dword [sym.imp.USER32.dll_GetWindowLongW]
or eax, 0x40000
push eax
push 0xffffffffffffffec
push dword [0x47b214]
call dword [sym.imp.USER32.dll_SetWindowLongW]
call fcn.0040ca80
call fcn.0040fa70
test al, al
je 0x41223a
push 0
push ecx
lea eax, [ebp - 0x38]
mov dword [ebp - 0x30], 0
push eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x34], 0
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
lea edx, [ebp - 0x34]
mov dword [ebp - 0x3c], 0
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x38], 0
call fcn.0040ee60
mov ecx, dword [ebp - 0x30]
add esp, 0x10
call fcn.0040ef50
mov ecx, dword [ebp - 0x34]
add esp, 4
call fcn.0040f2d0
mov ecx, dword [ebp - 0x2c]
call fcn.0040f5d0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
push ecx
push 0
push 0
push 0
xor edx, edx
xor ecx, ecx
call fcn.0040ee60
mov ecx, dword [ebp - 0x2c]
add esp, 0x14
call fcn.0040f770
push 2
push dword [0x47b214]
mov dword [0x47b218], 0
call fcn.0042a020
add esp, 8
push 0x4709fc
push 0x3e8
push dword [0x47b214]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push 0
push 0
push 0x402
push 0x3e9
push dword [0x47b214]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
test esi, esi
je 0x41228f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x4122c5
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4122bb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4122e1
push ecx
push edx
call fcn.004256de
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00425278
mov esp, ebp
pop ebp
ret
call fcn.004313ba
int3

Function at 0x42548e
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
jmp 0x4254c3
mov ecx, dword [edx + 0xc]
cmp dword [ebp + 0xc], ecx
jb 0x4254c0
mov eax, dword [edx + 8]
add eax, ecx
cmp dword [ebp + 0xc], eax
jb 0x4254cc
add edx, 0x28
cmp edx, esi
jne 0x4254ae
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x4254c9
Function at 0x42632f
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42636e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42636e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42636e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42636e
cmp dword [ecx + 0x74], 0xe
jbe 0x42636e
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x426bd0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45970e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x298
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp + 8]
call fcn.00426a40
mov dword [ebp - 0x58], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
or eax, 1
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x426db4
push 0x22c
push 0
lea ecx, [ebp - 0x2a4]
push ecx
call fcn.0042e560
add esp, 0xc
mov dword [ebp - 0x2a4], 0x22c
lea edx, [ebp - 0x2a4]
push edx
mov eax, dword [ebp - 0x14]
push eax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x426da9
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x2a4]
push eax
call fcn.00427370
add esp, 0xc
test eax, eax
je 0x426d56
mov dword [ebp - 0x10], 0
cmp dword [ebp + 0x18], 0
je 0x426cb5
mov ecx, dword [ebp - 0x29c]
push ecx
push 0
mov edx, dword [ebp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x10], eax
cmp dword [ebp + 0x14], 0
je 0x426d30
cmp dword [ebp + 0x18], 0
je 0x426d06
cmp dword [ebp - 0x10], 0
je 0x426cf4
mov eax, dword [ebp - 0x29c]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x38], ecx
lea edx, [ebp - 0x3c]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x60]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00426960
nop
jmp 0x426d79
mov edx, dword [ebp - 0x29c]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], 1
jmp 0x426d2e
mov eax, dword [ebp - 0x29c]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x40], ecx
lea edx, [ebp - 0x44]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
push eax
lea ecx, [ebp - 0x68]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00426960
nop
jmp 0x426d79
jmp 0x426d56
mov edx, dword [ebp - 0x29c]
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x48], eax
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
push edx
lea eax, [ebp - 0x70]
push eax
mov ecx, dword [ebp + 8]
call fcn.00426960
nop
lea ecx, [ebp - 0x2a4]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x426d6c
jmp 0x426d79
mov eax, 1
test eax, eax
jne 0x426c73
cmp dword [ebp - 0x1c], 0
je 0x426da9
mov dword [ebp - 0x30], 0
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x50], edx
lea eax, [ebp - 0x54]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
push ecx
lea edx, [ebp - 0x78]
push edx
mov ecx, dword [ebp + 8]
call fcn.00426960
nop
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x427f30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4597ae
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x1008
call fcn.00426530
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp + 8]
call fcn.00401af0
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
or eax, 1
mov dword [ebp - 0x10], eax
push 0x1000
push 0
lea ecx, [ebp - 0x1014]
push ecx
call fcn.0042e560
add esp, 0xc
push 0
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x1014]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x427fba
lea ecx, [ebp - 0x1014]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00401bb0
nop
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x428970
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
call fcn.00428a00
add esp, 4
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
jmp 0x4289a2
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp + 0xc]
jge 0x4289f6
mov eax, dword [ebp - 4]
and eax, 0x800000ff
jns 0x4289bb
dec eax
or eax, 0xffffff00
inc eax
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + eax]
add edx, dword [ebp - 0xc]
and edx, 0x800000ff
jns 0x4289d5
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0xc]
movzx ecx, byte [eax]
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
movzx eax, byte [edx]
xor eax, ecx
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 4]
mov byte [ecx], al
jmp 0x428999
mov eax, dword [ebp + 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x42a400
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45981e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp + 8]
call fcn.00402ed0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
or eax, 1
mov dword [ebp - 0x10], eax
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x42a49f
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
and edx, 1
je 0x42a497
and dword [ebp - 0x10], 0xfffffffe
mov ecx, dword [ebp + 8]
call fcn.00401b10
nop
mov eax, dword [ebp + 8]
jmp 0x42a5c6
push 0
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x42a4e9
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
and edx, 1
je 0x42a4e1
and dword [ebp - 0x10], 0xfffffffe
mov ecx, dword [ebp + 8]
call fcn.00401b10
nop
mov eax, dword [ebp + 8]
jmp 0x42a5c6
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x24]
ja 0x42a50f
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00404e20
nop
jmp 0x42a521
push 0
mov edx, dword [ebp - 0x14]
sub edx, dword [ebp - 0x24]
push edx
mov ecx, dword [ebp + 8]
call fcn.004054d0
nop
push 0
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00402d80
push eax
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp dword [ebp - 0x1c], 0
je 0x42a555
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x42a562
push 0
mov ecx, dword [ebp + 8]
call fcn.00404e20
nop
jmp 0x42a5a0
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x20]
cmp edx, dword [ebp - 0x28]
ja 0x42a58e
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp + 8]
call fcn.00404e20
nop
jmp 0x42a5a0
push 0
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 0x28]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004054d0
nop
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
and edx, 1
je 0x42a5c3
and dword [ebp - 0x10], 0xfffffffe
mov ecx, dword [ebp + 8]
call fcn.00401b10
nop
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x42a820
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov ecx, dword [ebp + 8]
call fcn.00401910
test eax, eax
je 0x42a8b8
mov ecx, dword [ebp + 8]
call fcn.00401910
movzx eax, word [eax]
test eax, eax
je 0x42a8b8
mov ecx, dword [ebp + 8]
call fcn.00401910
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42a8b8
mov ecx, dword [ebp + 8]
call fcn.00401910
push eax
lea ecx, [ebp - 0x20]
push ecx
call fcn.0042a400
add esp, 8
mov edx, dword [ebp - 0x10]
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 2
jbe 0x42a8af
push 0
lea ecx, [ebp - 0x20]
call fcn.00404a70
movsx eax, byte [eax]
cmp eax, 0x4d
jne 0x42a8af
push 1
lea ecx, [ebp - 0x20]
call fcn.00404a70
movsx ecx, byte [eax]
cmp ecx, 0x5a
jne 0x42a8af
mov byte [ebp - 1], 1
lea ecx, [ebp - 0x20]
call fcn.00401b10
nop
mov al, byte [ebp - 1]
jmp 0x42a8ba
lea ecx, [ebp - 0x20]
call fcn.00401b10
nop
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x42a8c0
Capabilities:
Check if file exists
Copy file
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4599f5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
cmp dword [ebp + 8], 0
je 0x42a909
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
test ecx, ecx
je 0x42a909
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42a909
cmp dword [ebp + 0xc], 0
je 0x42a909
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax]
test ecx, ecx
jne 0x42a910
xor eax, eax
jmp 0x42aa92
cmp dword [ebp + 0xc], 0
je 0x42aa7e
mov edx, dword [ebp + 0xc]
movzx eax, word [edx]
test eax, eax
je 0x42aa7e
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42aa7e
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x48]
call fcn.00406760
mov dword [ebp - 4], 0
lea eax, [ebp - 0x48]
push eax
call fcn.0042ae00
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x30]
call fcn.004019f0
mov byte [ebp - 4], 1
mov dword [ebp - 0x10], 0
jmp 0x42a978
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0x64
jge 0x42aa0c
push 1
lea ecx, [ebp - 0x30]
call fcn.00401910
push eax
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x42a9b1
cmp dword [ebp + 0x10], 0
je 0x42a9b1
lea ecx, [ebp - 0x30]
call fcn.00401910
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
cmp dword [ebp + 0xc], 0
je 0x42a9cf
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx]
test edx, edx
je 0x42a9cf
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42a9d1
jmp 0x42aa0c
mov ecx, dword [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x48]
call fcn.00401910
push eax
push str._s._d
lea edx, [ebp - 0x60]
push edx
call fcn.004295a0
add esp, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x30]
call fcn.00405fa0
lea ecx, [ebp - 0x60]
call fcn.00401940
nop
jmp 0x42a96f
cmp dword [ebp + 0xc], 0
je 0x42aa2a
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx]
test edx, edx
je 0x42aa2a
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42aa5f
push 1
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.00401940
nop
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00401940
nop
mov eax, dword [ebp - 0x18]
jmp 0x42aa92
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.00401940
nop
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00401940
nop
jmp 0x42aa90
push 1
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x42aa92
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc