joyce8/EMBER2024-capa huggingface dataset:
Function at 0x455430
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
xor edx, edx
movaps xmm5, xmmword [0x4b7f00]
push esi
mov esi, dword [esp + 0xc]
movups xmm4, xmmword [eax]
pshufb xmm4, xmmword [0x4b7ef0]
mov eax, dword [esp + 0x10]
movaps xmm3, xmm4
add eax, 0xffffffe0
je 0x45556b
dec eax
lea ecx, [esi + 8]
shr eax, 5
inc eax
mov edx, eax
shl edx, 5
nop dword [eax + eax]
movq qword [ecx - 8], xmm3
movaps xmm2, xmm3
lea ecx, [ecx + 0x20]
movaps xmm0, xmm3
movaps xmm1, xmm3
pclmulqdq xmm1, xmm4, 0
pclmulqdq xmm0, xmm4, 1
pclmulqdq xmm2, xmm4, 0x10
xorps xmm2, xmm0
movaps xmm0, xmm1
pslldq xmm0, 8
xorps xmm2, xmm0
movaps xmm0, xmm1
psrldq xmm1, 8
pclmulqdq xmm0, xmm5, 0x10
xorps xmm2, xmm0
movaps xmm0, xmm3
xorps xmm1, xmm2
psllq xmm1, 1
pclmulqdq xmm0, xmm4, 0x11
pclmulqdq xmm1, xmm5, 0
xorps xmm1, xmm0
movaps xmm0, xmm2
psrldq xmm0, 8
xorps xmm1, xmm0
punpcklqdq xmm2, xmm1
psllq xmm1, 1
psrlq xmm2, 0x3f
xorps xmm2, xmm1
movaps xmm0, xmm2
movaps xmm1, xmm2
movups xmmword [ecx - 0x18], xmm2
movups xmmword [ecx - 0x20], xmm3
movq qword [ecx - 0x20], xmm2
movaps xmm3, xmm2
pclmulqdq xmm1, xmm4, 0
pclmulqdq xmm0, xmm4, 1
pclmulqdq xmm3, xmm4, 0x10
xorps xmm3, xmm0
movaps xmm0, xmm1
pslldq xmm0, 8
xorps xmm3, xmm0
movaps xmm0, xmm1
psrldq xmm1, 8
pclmulqdq xmm0, xmm5, 0x10
xorps xmm3, xmm0
xorps xmm1, xmm3
movaps xmm0, xmm3
psllq xmm1, 1
psrldq xmm0, 8
pclmulqdq xmm1, xmm5, 0
pclmulqdq xmm2, xmm4, 0x11
xorps xmm1, xmm2
xorps xmm1, xmm0
punpcklqdq xmm3, xmm1
psrlq xmm3, 0x3f
psllq xmm1, 1
xorps xmm3, xmm1
sub eax, 1
jne 0x455470
movaps xmm2, xmm3
movq qword [edx + esi], xmm3
pclmulqdq xmm2, xmm4, 0x10
movaps xmm0, xmm3
movaps xmm1, xmm3
pclmulqdq xmm0, xmm4, 1
xorps xmm2, xmm0
pclmulqdq xmm1, xmm4, 0
movaps xmm0, xmm1
pslldq xmm0, 8
xorps xmm2, xmm0
movaps xmm0, xmm1
pclmulqdq xmm0, xmm5, 0x10
xorps xmm2, xmm0
psrldq xmm1, 8
xorps xmm1, xmm2
movaps xmm0, xmm3
psllq xmm1, 1
pclmulqdq xmm0, xmm4, 0x11
pclmulqdq xmm1, xmm5, 0
xorps xmm1, xmm0
movaps xmm0, xmm2
psrldq xmm0, 8
xorps xmm1, xmm0
punpcklqdq xmm2, xmm1
psrlq xmm2, 0x3f
psllq xmm1, 1
xorps xmm2, xmm1
movups xmmword [edx + esi + 0x10], xmm2
movups xmmword [edx + esi + 8], xmm3
movq qword [edx + esi + 8], xmm2
pop esi
ret

Function at 0x455870
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x455897
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x45589a
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.0045584c
pop esi
leave
ret 8
Function at 0x4593c8
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 0x4593fd
mov ecx, dword [edx + 0xc]
cmp dword [ebp + 0xc], ecx
jb 0x4593fa
mov eax, dword [edx + 8]
add eax, ecx
cmp dword [ebp + 0xc], eax
jb 0x459406
add edx, 0x28
cmp edx, esi
jne 0x4593e8
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x459403

Function at 0x45a4ff
Capabilities:
Parse pe header

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b1dae
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.0045ac10
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 0x45af84
push 0x22c
push 0
lea ecx, [ebp - 0x2a4]
push ecx
call fcn.004738e0
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 0x45af79
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x2a4]
push eax
call fcn.0045b540
add esp, 0xc
test eax, eax
je 0x45af26
mov dword [ebp - 0x10], 0
cmp dword [ebp + 0x18], 0
je 0x45ae85
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 0x45af00
cmp dword [ebp + 0x18], 0
je 0x45aed6
cmp dword [ebp - 0x10], 0
je 0x45aec4
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.0045ab30
nop
jmp 0x45af49
mov edx, dword [ebp - 0x29c]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], 1
jmp 0x45aefe
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.0045ab30
nop
jmp 0x45af49
jmp 0x45af26
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.0045ab30
nop
lea ecx, [ebp - 0x2a4]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x45af3c
jmp 0x45af49
mov eax, 1
test eax, eax
jne 0x45ae43
cmp dword [ebp - 0x1c], 0
je 0x45af79
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.0045ab30
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 0x45c100
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b1e4e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x1008
call fcn.0045a700
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp + 8]
call fcn.00401aa0
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.004738e0
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 0x45c18a
lea ecx, [ebp - 0x1014]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00401b60
nop
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x45c270
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1834
call fcn.0045a700
mov dword [ebp - 0x14], 0
mov eax, dword [0x4e32f8]
mov ecx, dword fs:[0x2c]
mov edx, dword [ecx + eax*4]
mov eax, dword [0x4e3648]
cmp eax, dword [edx + 4]
jle 0x45c2da
push 0x4e3648
call fcn.0045921f
add esp, 4
cmp dword [0x4e3648], 0xffffffff
jne 0x45c2da
mov ecx, 0x4e3630
call fcn.00404700
push 0x4b4f40
call fcn.00459603
add esp, 4
push 0x4e3648
call fcn.004591ce
add esp, 4
cmp dword [0x4e3640], 0
jne 0x45c2ec
mov dword [ebp - 8], 1
jmp 0x45c2f3
mov dword [ebp - 8], 0
mov cl, byte [ebp - 8]
mov byte [ebp - 1], cl
movzx edx, byte [ebp - 1]
test edx, edx
je 0x45c3b8
push 0x1000
push 0
lea eax, [ebp - 0x1834]
push eax
call fcn.004738e0
add esp, 0xc
mov dword [ebp - 0x18], 0x800
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x1834]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x45c399
push 0x800
push 0
lea eax, [ebp - 0x834]
push eax
call fcn.004738e0
add esp, 0xc
lea ecx, [ebp - 0x834]
mov dword [ebp - 0xc], ecx
push 0x44
mov edx, dword [ebp - 0xc]
push edx
lea eax, [ebp - 0x1834]
push eax
call fcn.0045c420
add esp, 0xc
test eax, eax
je 0x45c399
mov ecx, dword [ebp - 0xc]
push ecx
lea edx, [ebp - 0x34]
push edx
call fcn.0045dde0
add esp, 8
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, 0x4e3630
call fcn.0040d3c0
lea ecx, [ebp - 0x34]
call fcn.00401ac0
nop
cmp dword [0x4e3640], 0
jne 0x45c3ab
mov dword [ebp - 0x10], 1
jmp 0x45c3b2
mov dword [ebp - 0x10], 0
mov cl, byte [ebp - 0x10]
mov byte [ebp - 2], cl
push 0x4e3630
mov ecx, dword [ebp + 8]
call fcn.00404610
mov eax, dword [ebp - 0x14]
or eax, 1
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret
Function at 0x45c420
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b1e6d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push 0
push 0x400
lea ecx, [ebp - 0x4c]
call fcn.00458c19
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0x400
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x10]
push edx
push 0
lea ecx, [ebp - 0x4c]
call fcn.0044f350
push eax
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x45c536
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x45c536
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp + 0x10]
jbe 0x45c4c8
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.00401940
nop
mov eax, dword [ebp - 0x28]
jmp 0x45c565
cmp dword [ebp - 0x10], 0x400
jbe 0x45c50c
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 0x20]
ja 0x45c4fa
mov edx, dword [ebp - 0x14]
push edx
lea ecx, [ebp - 0x4c]
call fcn.0040ef40
nop
jmp 0x45c50c
push 0
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x20]
push eax
lea ecx, [ebp - 0x4c]
call fcn.0040ef70
nop
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x10]
push edx
push 0
lea ecx, [ebp - 0x4c]
call fcn.0044f350
push eax
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x45c545
mov dword [ebp - 0x24], 1
jmp 0x45c54c
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.00401940
nop
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x45d390
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.0045d420
add esp, 4
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
jmp 0x45d3c2
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp + 0xc]
jge 0x45d416
mov eax, dword [ebp - 4]
and eax, 0x800000ff
jns 0x45d3db
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 0x45d3f5
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 0x45d3b9
mov eax, dword [ebp + 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x461bc0
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b23ed
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
mov dword [ebp - 4], 0
lea eax, [ebp - 0x44]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
call fcn.00402240
nop
lea ecx, [ebp - 0x44]
call fcn.00401cd0
nop
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x14]
call fcn.00402240
nop
lea ecx, [ebp - 0x2c]
call fcn.00401cd0
nop
mov byte [ebp - 4], 3
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x44]
push ecx
call fcn.00465380
add esp, 0xc
lea ecx, [ebp - 0x44]
call fcn.00401910
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x461c54
lea ecx, [ebp - 0x44]
call fcn.00401910
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
lea ecx, [ebp - 0x2c]
call fcn.00401910
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x461c77
lea ecx, [ebp - 0x2c]
call fcn.00401910
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
lea ecx, [ebp - 0x5c]
call fcn.00401aa0
mov byte [ebp - 4], 4
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x5c]
push eax
call fcn.00464e80
add esp, 8
lea ecx, [ebp - 0x5c]
call fcn.00401910
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x461cb6
lea ecx, [ebp - 0x5c]
call fcn.00401910
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x5c]
call fcn.00401940
nop
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00401940
nop
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00401940
nop
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x466560
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b2b6d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
lea ecx, [ebp - 0x2c]
call fcn.00401aa0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00466300
add esp, 8
lea ecx, [ebp - 0x2c]
call fcn.00401910
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4665c9
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00401940
nop
mov eax, dword [ebp - 0x10]
jmp 0x4665eb
lea edx, [ebp - 0x2c]
push edx
call fcn.00466400
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00401940
nop
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x46a490
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b1f0e
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.00404700
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 0x46a52f
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
and edx, 1
je 0x46a527
and dword [ebp - 0x10], 0xfffffffe
mov ecx, dword [ebp + 8]
call fcn.00401ac0
nop
mov eax, dword [ebp + 8]
jmp 0x46a656
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 0x46a579
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 0x46a571
and dword [ebp - 0x10], 0xfffffffe
mov ecx, dword [ebp + 8]
call fcn.00401ac0
nop
mov eax, dword [ebp + 8]
jmp 0x46a656
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 0x46a59f
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0040f120
nop
jmp 0x46a5b1
push 0
mov edx, dword [ebp - 0x14]
sub edx, dword [ebp - 0x24]
push edx
mov ecx, dword [ebp + 8]
call fcn.004107c0
nop
push 0
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00404540
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 0x46a5e5
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x46a5f2
push 0
mov ecx, dword [ebp + 8]
call fcn.0040f120
nop
jmp 0x46a630
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 0x46a61e
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp + 8]
call fcn.0040f120
nop
jmp 0x46a630
push 0
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 0x28]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004107c0
nop
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
and edx, 1
je 0x46a653
and dword [ebp - 0x10], 0xfffffffe
mov ecx, dword [ebp + 8]
call fcn.00401ac0
nop
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x46a8b0
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 0x46a948
mov ecx, dword [ebp + 8]
call fcn.00401910
movzx eax, word [eax]
test eax, eax
je 0x46a948
mov ecx, dword [ebp + 8]
call fcn.00401910
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46a948
mov ecx, dword [ebp + 8]
call fcn.00401910
push eax
lea ecx, [ebp - 0x20]
push ecx
call fcn.0046a490
add esp, 8
mov edx, dword [ebp - 0x10]
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 2
jbe 0x46a93f
push 0
lea ecx, [ebp - 0x20]
call fcn.0040d2e0
movsx eax, byte [eax]
cmp eax, 0x4d
jne 0x46a93f
push 1
lea ecx, [ebp - 0x20]
call fcn.0040d2e0
movsx ecx, byte [eax]
cmp ecx, 0x5a
jne 0x46a93f
mov byte [ebp - 1], 1
lea ecx, [ebp - 0x20]
call fcn.00401ac0
nop
mov al, byte [ebp - 1]
jmp 0x46a94a
lea ecx, [ebp - 0x20]
call fcn.00401ac0
nop
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x46a950
Capabilities:
Check if file exists
Copy file
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b3005
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
cmp dword [ebp + 8], 0
je 0x46a999
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
test ecx, ecx
je 0x46a999
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46a999
cmp dword [ebp + 0xc], 0
je 0x46a999
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax]
test ecx, ecx
jne 0x46a9a0
xor eax, eax
jmp 0x46ab22
cmp dword [ebp + 0xc], 0
je 0x46ab0e
mov edx, dword [ebp + 0xc]
movzx eax, word [edx]
test eax, eax
je 0x46ab0e
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46ab0e
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x48]
call fcn.004258a0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x48]
push eax
call fcn.0046ae90
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x30]
call fcn.004019f0
mov byte [ebp - 4], 1
mov dword [ebp - 0x10], 0
jmp 0x46aa08
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0x64
jge 0x46aa9c
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 0x46aa41
cmp dword [ebp + 0x10], 0
je 0x46aa41
lea ecx, [ebp - 0x30]
call fcn.00401910
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
cmp dword [ebp + 0xc], 0
je 0x46aa5f
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx]
test edx, edx
je 0x46aa5f
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46aa61
jmp 0x46aa9c
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.0045e0c0
add esp, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x30]
call fcn.0041f390
lea ecx, [ebp - 0x60]
call fcn.00401940
nop
jmp 0x46a9ff
cmp dword [ebp + 0xc], 0
je 0x46aaba
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx]
test edx, edx
je 0x46aaba
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46aaef
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 0x46ab22
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 0x46ab20
push 1
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x46ab22
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x46ab40
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b302d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
cmp dword [ebp + 0xc], 0
je 0x46ac7b
mov dword [ebp - 4], 0
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
call fcn.00402240
nop
lea ecx, [ebp - 0x3c]
call fcn.00401cd0
nop
mov dword [ebp - 4], 1
push 0
push 0
push 0
lea ecx, [ebp - 0x3c]
push ecx
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x24], esp
mov edx, dword [ebp + 8]
push edx
call fcn.004258a0
call fcn.0045d5c0
add esp, 0x28
cmp dword [ebp - 0x2c], 0
jne 0x46abbd
mov dword [ebp - 0x14], 1
jmp 0x46abc4
mov dword [ebp - 0x14], 0
mov al, byte [ebp - 0x14]
mov byte [ebp - 0xd], al
movzx ecx, byte [ebp - 0xd]
test ecx, ecx
jne 0x46ac6b
push 0
lea ecx, [ebp - 0x3c]
call fcn.00401910
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
nop
lea ecx, [ebp - 0x3c]
call fcn.00401910
test eax, eax
je 0x46ac18
lea ecx, [ebp - 0x3c]
call fcn.00401910
movzx edx, word [eax]
test edx, edx
je 0x46ac18
lea ecx, [ebp - 0x3c]
call fcn.00401910
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46ac6b
push 0
lea ecx, [ebp - 0x3c]
call fcn.00401910
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryExW]
nop
lea ecx, [ebp - 0x3c]
call fcn.00401910
test eax, eax
je 0x46ac5a
lea ecx, [ebp - 0x3c]
call fcn.00401910
movzx eax, word [eax]
test eax, eax
je 0x46ac5a
lea ecx, [ebp - 0x3c]
call fcn.00401910
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46ac6b
lea ecx, [ebp - 0x3c]
call fcn.00401910
push eax
call fcn.0045bc60
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00401940
nop
cmp dword [ebp + 0x10], 0
je 0x46ac8a
mov dword [ebp - 0x18], 1
jmp 0x46ac91
mov dword [ebp - 0x18], 4
push 0
push 0x80
mov ecx, dword [ebp - 0x18]
push ecx
push 0
push 1
push 0x80000000
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret