joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4689f0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d2098
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x513330]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov dword [esp + 0x20], ecx
fldz
mov ebx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
xor eax, eax
mov dword [ebx], eax
fst qword [edx]
mov edx, dword [ebp + 0x10]
fstp qword [esp + 0x24]
mov dword [edx], eax
mov edx, dword [ecx + 0x30]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], eax
cmp edx, 6
jne 0x468a5d
mov dword [ebx], 0x64
mov dword [ecx + 0x44], 0x64
jmp 0x468ba0
mov edx, dword [ecx + 0x30]
cmp edx, 2
je 0x468a79
mov edx, dword [ecx + 0x30]
cmp edx, 5
je 0x468a79
mov edx, dword [ecx + 0x30]
cmp edx, 4
jne 0x468ba0
mov esi, dword [ecx + 0x1e0]
cmp esi, eax
je 0x468ba0
jmp 0x468a94
mov ecx, dword [esp + 0x20]
lea edi, [ecx + 0x23c]
push edi
mov dword [esp + 0x30], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x30], 1
xor eax, eax
test esi, esi
setne al
mov dword [esp + 0x40], 0
test eax, eax
je 0x468bb7
mov eax, esi
mov ecx, dword [eax + 8]
mov esi, dword [esi]
test ecx, ecx
je 0x468b0c
mov eax, dword [ecx]
mov eax, dword [eax + 8]
lea edx, [esp + 0x1c]
push edx
lea edx, [esp + 0x28]
push edx
lea edx, [esp + 0x20]
push edx
call eax
test al, al
je 0x468b0c
mov ecx, dword [esp + 0x18]
add dword [ebx], ecx
mov eax, dword [ebp + 0xc]
fld qword [eax]
mov edx, dword [ebp + 0x10]
fadd qword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
fstp qword [eax]
mov eax, dword [edx]
cmp eax, ecx
jg 0x468b06
mov eax, ecx
inc dword [esp + 0x14]
mov dword [edx], eax
push edi
mov dword [esp + 0x44], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [esp + 0x30], 0
test esi, esi
jne 0x468a90
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x468ba0
mov eax, dword [ebx]
test eax, eax
je 0x468b87
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
jge 0x468b46
fadd qword [0x4fae18]
imul ecx, ecx, 0x64
mov dword [esp + 0x1c], ecx
fild dword [esp + 0x1c]
test ecx, ecx
jge 0x468b5b
fadd qword [0x4fae18]
fdivp st(1)
fmul qword [0x4fae50]
fnstcw word [esp + 0x14]
movzx eax, word [esp + 0x14]
or eax, 0xc00
mov dword [esp + 0x1c], eax
fldcw word [esp + 0x1c]
fistp qword [esp + 0x2c]
mov edx, dword [esp + 0x2c]
mov dword [ebx], edx
fldcw word [esp + 0x14]
mov ecx, dword [ebx]
mov eax, dword [esp + 0x20]
mov edx, dword [ebp + 0xc]
mov dword [eax + 0x44], ecx
fld qword [edx]
mov ecx, dword [ebp + 0x10]
fstp qword [eax + 0x50]
mov edx, dword [ecx]
mov dword [eax + 0x58], edx
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.00405ef0
int3
Function at 0x469710
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d5e18
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x513330]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov dword [esp + 0x1c], 0
mov edi, dword [esp + 0x30]
cmp dword [edi + 0x1e8], 0
mov eax, dword [0x51856c]
mov edx, dword [eax + 0xc]
mov ecx, 0x51856c
jne 0x46976e
call edx
mov esi, dword [esp + 0x34]
add eax, 0x10
mov dword [esi], eax
call fcn.00405c60
jmp 0x4698d9
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov ebx, 1
mov dword [esp + 0x28], ebx
mov ebp, dword [edi + 0x1e0]
test ebp, ebp
je 0x46981e
mov edi, edi
xor eax, eax
test ebp, ebp
setne al
test eax, eax
je 0x4698f1
mov eax, ebp
mov edi, dword [eax + 8]
mov ebp, dword [ebp]
test edi, edi
je 0x469812
push 6
push str.file_
lea eax, [esp + 0x1c]
push eax
call fcn.0040e720
lea esi, [esp + 0x1c]
mov eax, edi
call fcn.00484920
mov byte [esp + 0x28], 2
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.0040e720
mov byte [esp + 0x28], bl
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x469801
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 3
push 0x4f55e8
lea ecx, [esp + 0x1c]
push ecx
call fcn.0040e720
test ebp, ebp
jne 0x469790
mov edi, dword [esp + 0x30]
lea esi, [esp + 0x30]
mov eax, edi
call fcn.00484920
mov ecx, eax
lea esi, [esp + 0x18]
mov byte [esp + 0x28], 3
call fcn.0046bc10
mov byte [esp + 0x28], 5
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46985e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
lea edi, [esp + 0x1c]
mov dword [esp + 0x24], ebx
call fcn.0046b530
mov eax, dword [esp + 0x20]
add esp, 8
add eax, 0xfffffff0
call fcn.00408230
mov esi, dword [esp + 0x34]
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x28], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4698b1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4698d9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 8
push 0x80004005
call fcn.00405ef0
int3
Function at 0x469900
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push 0xffffffffffffffff
push 0x4d5dc9
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x513330]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, dword [esp + 0x24]
mov dword [esp + 0xc], 0
mov dword [esp + 0x18], 1
mov eax, dword [esp + 0x20]
lea esi, [esp + 0x20]
call fcn.00484920
mov ecx, eax
mov esi, edi
mov byte [esp + 0x18], 2
call fcn.0046bc10
mov byte [esp + 0x18], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov dword [esp + 0xc], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46997f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
je 0x469997
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
test al, al
jne 0x4699b1
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4699b1
mov eax, dword [edi]
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 1
push 0x4e9038
push edi
call fcn.0040e720
mov eax, dword [esp + 0x28]
mov ecx, dword [eax - 0xc]
push ecx
push eax
push edi
call fcn.0040e720
mov byte [esp + 0x18], 0
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4699f2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 0xc

Function at 0x469a10
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
sub esp, 8
push ebp
mov ebp, dword [eax + 0x1e0]
test ebp, ebp
je 0x469ad3
push ebx
push esi
push edi
mov eax, ebp
mov edi, dword [eax + 8]
mov ebp, dword [ebp]
test edi, edi
je 0x469ac8
lea esi, [esp + 0x10]
mov eax, edi
call fcn.00484920
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
jne 0x469a4c
xor al, al
jmp 0x469a58
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
test al, al
mov eax, dword [esp + 0x10]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x469a7d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x469ac8
lea esi, [esp + 0x14]
mov eax, edi
call fcn.00484920
mov esi, eax
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x469aa8
mov ecx, dword [esi]
push 4
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x469ac8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebp, ebp
jne 0x469a25
pop edi
pop esi
pop ebx
pop ebp
add esp, 8
ret
Function at 0x46ab00
Capabilities:
Access peb ldr_data
Query environment variable
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4d5d00
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x513330]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x30]
lea eax, [esp + 0x30]
push eax
xor ebx, ebx
push ebx
mov edi, ecx
mov edx, dword [edi + 0xc]
lea ecx, [esp + 0x20]
push ecx
push ebx
add edi, 0xc
push ebp
push edx
mov dword [esp + 0x48], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x46ab96
mov eax, dword [esp + 0x30]
shr eax, 1
xor ecx, ecx
mov dword [esp + 0x14], eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a3368
mov esi, eax
add esp, 4
mov dword [esp + 0x1c], esi
push ebp
push edi
lea edi, [esp + 0x1c]
mov dword [esp + 0x30], ebx
call fcn.00431ec0
test eax, eax
je 0x46ab9d
push esi
call fcn.004a529a
add esp, 4
xor eax, eax
jmp 0x46ac20
cmp dword [esp + 0x18], 2
jne 0x46ac07
mov ebp, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push ebx
push ebx
push esi
call ebp
xor ecx, ecx
mov edi, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a3368
mov ebx, eax
add esp, 4
mov dword [esp + 0x14], ebx
push edi
push ebx
push esi
mov byte [esp + 0x34], 1
call ebp
test eax, eax
je 0x46abf4
mov edi, dword [esp + 0x34]
mov edx, ebx
call fcn.00405c20
push ebx
call fcn.004a529a
add esp, 4
jmp 0x46ac12
push ebx
call fcn.004a529a
push esi
call fcn.004a529a
add esp, 8
xor eax, eax
jmp 0x46ac20
mov edi, dword [esp + 0x34]
mov edx, esi
call fcn.00405c20
push esi
call fcn.004a529a
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 8

Function at 0x46b0b0
Capabilities:
Read file on windows

Disassembly:
push 0
push eax
mov eax, dword [esp + 0xc]
push ecx
mov ecx, dword [eax]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x46b0ce
call fcn.00405b90
ret 4
xor eax, eax
ret 4
Function at 0x46b530
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4d4c6c
mov eax, dword fs:[0]
push eax
sub esp, 0x94
push ebx
push ebp
push esi
mov eax, dword [0x513330]
xor eax, esp
push eax
lea eax, [esp + 0xa4]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xb8]
mov eax, dword [esp + 0xb4]
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jne 0x46b57b
lea eax, [ecx + 1]
jmp 0x46b72b
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0xac], 0
cmp ebx, 0xffffffff
jne 0x46b5bb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 9
jmp 0x46b72b
mov edx, dword [0x51856c]
mov eax, dword [edx + 0xc]
mov ecx, 0x51856c
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
lea esi, [esp + 0x10]
mov byte [esp + 0xac], 1
call fcn.004615d0
mov eax, dword [ebp]
sub eax, 1
je 0x46b652
sub eax, 1
je 0x46b615
sub eax, 1
je 0x46b696
mov eax, esi
call fcn.00452320
test ebx, ebx
je 0x46b60b
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 5
jmp 0x46b72b
mov edx, 0x4f56bc
lea ebx, [esp + 0x10]
call fcn.00461170
lea ecx, [esp + 0x18]
push edi
push ecx
call fcn.00476fe0
add esp, 8
mov byte [esp + 0xac], 2
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
push eax
mov eax, ebx
push eax
call fcn.00461f80
lea eax, [esp + 0x18]
call fcn.00452320
jmp 0x46b692
mov eax, dword [edi]
push 3
lea ecx, [esp + 0x28]
push eax
lea eax, [esp + 0x28]
mov dword [esp + 0x28], ecx
call fcn.0046d4d0
mov byte [esp + 0xac], 3
mov edx, dword [esp + 0x20]
lea ebx, [esp + 0x10]
call fcn.00461170
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x24]
cmp eax, edx
je 0x46b692
push eax
call fcn.004a594c
add esp, 4
mov ebx, dword [esp + 0x14]
mov eax, dword [ebp]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x1c], 0
cmp eax, 3
jne 0x46b6b3
mov ecx, dword [edi]
mov ecx, dword [ecx - 0xc]
add ecx, ecx
jmp 0x46b6b6
mov ecx, dword [esi - 0xc]
cmp eax, 3
jne 0x46b6bf
mov eax, dword [edi]
jmp 0x46b6c1
mov eax, esi
push 0
lea edx, [esp + 0x20]
push edx
push ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
or edx, 0xffffffff
test eax, eax
lea eax, [esi - 0x10]
mov byte [esp + 0xac], 0
lea ecx, [eax + 0xc]
jne 0x46b70b
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46b6f9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebx, ebx
je 0x46b704
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xa
jmp 0x46b72b
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46b71e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebx, ebx
je 0x46b729
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0xa4]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret
Function at 0x46bb00
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4d5c91
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x513330]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x2c]
xor esi, esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x14], esi
mov eax, dword [0x51856c]
mov edx, dword [eax + 0xc]
mov ecx, 0x51856c
call edx
add eax, 0x10
mov dword [edi], eax
mov dword [esp + 0x24], esi
mov ebp, dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
push esi
mov dword [esp + 0x1c], 1
call ebp
xor ecx, ecx
mov esi, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a3368
mov ebx, eax
add esp, 4
mov dword [esp + 0x18], ebx
push ebx
push esi
mov dword [esp + 0x2c], 1
call ebp
test eax, eax
je 0x46bbbd
test ebx, ebx
jne 0x46bb98
xor eax, eax
jmp 0x46bbaf
mov eax, ebx
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46bba0
sub eax, edx
sar eax, 1
push ebx
mov ebx, eax
mov eax, edi
call fcn.00405e30
mov ebx, dword [esp + 0x18]
mov eax, dword [edi]
push 0x5c
push eax
call fcn.004a651b
add esp, 8
test eax, eax
jne 0x46bbd3
or eax, 0xffffffff
jmp 0x46bbd7
sub eax, dword [edi]
sar eax, 1
mov ecx, dword [edi]
mov ecx, dword [ecx - 0xc]
dec ecx
cmp eax, ecx
je 0x46bbee
push 1
push 0x4efc7c
push edi
call fcn.0040e720
push ebx
call fcn.004a529a
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret

Function at 0x46bc10
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4d5c42
mov eax, dword fs:[0]
push eax
sub esp, 0x80c
mov eax, dword [0x513330]
xor eax, esp
mov dword [esp + 0x808], eax
push ebx
push edi
mov eax, dword [0x513330]
xor eax, esp
push eax
lea eax, [esp + 0x818]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x820], ebx
mov dword [esp + 0xc], ebx
mov eax, dword [0x51856c]
mov edx, dword [eax + 0xc]
mov edi, ecx
mov ecx, 0x51856c
mov dword [esp + 0x10], esi
call edx
add eax, 0x10
mov dword [esi], eax
push 0x800
lea eax, [esp + 0x18]
push ebx
mov dword [esp + 0x828], ebx
push eax
mov dword [esp + 0x18], 1
call fcn.004ab3f0
mov edi, dword [edi]
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
push ebx
push str.ytd
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [esp + 0x14]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x46bcb0
sub eax, edx
sar eax, 1
lea edx, [esp + 0x14]
mov ebx, eax
push edx
mov eax, esi
call fcn.00405e30
mov eax, esi
mov ecx, dword [esp + 0x818]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x808]
xor ecx, esp
call fcn.004a52a5
add esp, 0x818
ret
Function at 0x46bd00
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x260
mov eax, dword [0x513330]
xor eax, esp
mov dword [esp + 0x258], eax
push ebx
push esi
push edi
mov esi, edx
mov edi, ecx
mov ecx, esi
call fcn.0043a610
mov edi, dword [edi]
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x46bd51
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.004a52a5
add esp, 0x260
ret
mov ecx, dword [esi + 4]
push ecx
lea edx, [esp + 0x40]
push edx
mov ecx, esi
call fcn.0043aa20
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x46bd6c
mov dword [ecx], eax
jmp 0x46bd6e
mov dword [esi], eax
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [esi + 4], eax
lea eax, [esp + 0x10]
push eax
push edi
call ebx
test eax, eax
je 0x46bdaf
mov ecx, dword [esi + 4]
push ecx
lea edx, [esp + 0x40]
push edx
mov ecx, esi
call fcn.0043aa20
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x46bd9e
mov dword [ecx], eax
jmp 0x46bda0
mov dword [esi], eax
mov dword [esi + 4], eax
lea eax, [esp + 0x10]
push eax
push edi
call ebx
test eax, eax
jne 0x46bd83
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x264]
cmp esi, 0x12
pop edi
pop esi
sete al
pop ebx
xor ecx, esp
call fcn.004a52a5
add esp, 0x260
ret
Function at 0x46ced0
Capabilities:
Get file size

Disassembly:
mov eax, dword [eax]
push esi
push 0
push 0x80
push 3
push 0
push 1
push Ordinal_1
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x46cefe
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
ret
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test esi, esi
je 0x46cf15
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret

Function at 0x46cf20
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push 0xffffffffffffffff
push 0x4db1b8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x513330]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x40]
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], 0xa
mov dword [esp + 0x38], ebx
mov eax, dword [ebp]
sub eax, 0x10
call fcn.00408230
add eax, 0x10
mov dword [esp + 0x40], eax
mov byte [esp + 0x38], 1
mov eax, dword [eax - 0xc]
cmp eax, ebx
je 0x46d072
push 1
push 0x4efc7c
lea eax, [esp + 0x48]
push eax
call fcn.0040e720
mov ecx, dword [esp + 0x44]
mov eax, dword [ecx]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea edx, [esp + 0x48]
push edx
call fcn.0040e720
lea edx, [esp + 0x18]
lea ecx, [esp + 0x40]
call fcn.0046bd00
mov esi, dword [esp + 0x18]
cmp esi, ebx
je 0x46d072
mov eax, dword [ebp]
sub eax, 0x10
call fcn.00408230
add eax, 0x10
mov dword [esp + 0x14], eax
push 1
push 0x4efc7c
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x44], 2
call fcn.0040e720
xor eax, eax
cmp esi, ebx
setne al
cmp eax, ebx
je 0x46d0b3
mov eax, esi
mov eax, dword [eax + 8]
mov ecx, dword [eax - 0xc]
mov esi, dword [esi]
push ecx
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.0040e720
mov edi, dword [esp + 0x14]
cmp dword [edi - 0xc], ebx
je 0x46d034
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
cmp al, bl
jne 0x46d049
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46d049
push 4
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea eax, [edi - 0x10]
mov byte [esp + 0x38], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46d06a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, ebx
jne 0x46cfce
mov byte [esp + 0x38], bl
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46d096
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x18]
call fcn.0043a610
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
push 0x80004005
call fcn.00405ef0
int3
Function at 0x46d0c0
Capabilities:
Access peb ldr_data
Check if file exists
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4d7c20
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x513330]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
call fcn.00405a00
mov dword [esp + 0x20], 0
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathGetDriveNumberW]
mov edx, dword [0x51856c]
mov esi, eax
mov eax, dword [edx + 0xc]
mov ecx, 0x51856c
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
add esi, 0x41
push esi
push str._c:_
lea edi, [esp + 0x30]
mov byte [esp + 0x28], 1
call fcn.0040e4a0
mov esi, dword [esp + 0x30]
add esp, 8
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.00405a00
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov eax, dword [esp + 0x10]
setne bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46d17c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0x20], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46d19d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x20], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46d1c5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret

Function at 0x46e520
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4d309e
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x513330]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, dword [esp + 0x20]
lea edi, [esi + 0x30]
mov ebx, edi
mov dword [esp + 0x18], 2
call fcn.0042c370
mov ebx, esi
call fcn.0042c370
mov byte [esp + 0x18], 1
mov eax, dword [esi + 0x60]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46e584
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, edi
call fcn.0042b680
mov ecx, esi
call fcn.0042b680
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4