joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47ffc0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov ecx, 0x54a1b4
push 0
call fcn.004a726f
mov edi, eax
mov esi, 1
test edi, edi
je 0x480107
mov ebx, dword [ebp + 8]
mov eax, ebx
shr eax, 4
mov dword [ebp - 8], eax
inc eax
movzx eax, ax
mov dword [ebp - 4], eax
nop dword [eax]
push 0
push eax
push 6
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x480021
push ebx
mov edx, eax
mov ecx, edi
call fcn.00480a20
add esp, 4
test eax, eax
jne 0x48003c
push esi
mov ecx, 0x54a1b4
inc esi
call fcn.004a726f
mov edi, eax
test edi, edi
je 0x480107
mov eax, dword [ebp - 4]
jmp 0x480000
test edi, edi
je 0x480107
mov eax, dword [ebp - 8]
inc eax
push 6
movzx eax, ax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 8], eax
test eax, eax
je 0x480107
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x480107
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x480107
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and ebx, 0xf
jbe 0x4800a5
cmp esi, ecx
jae 0x480107
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ebx, 1
jne 0x480093
cmp esi, ecx
jae 0x480107
cmp word [esi], 0
je 0x480107
mov ebx, dword [ebp - 0xc]
mov ecx, 1
movzx edi, word [esi]
mov eax, dword [ebx]
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edi
or ecx, eax
jge 0x4800d0
push edi
mov ecx, ebx
call fcn.00480120
movzx ecx, word [esi]
lea eax, [esi + 2]
push ecx
push eax
push edi
push dword [ebx]
call fcn.004c3c1a
push eax
call fcn.00480a90
mov eax, dword [ebx]
add esp, 0x14
cmp edi, dword [eax - 8]
jg 0x480112
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [ebx]
mov word [eax + edi*2], cx
lea eax, [ecx + 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.004411b0
int3

Function at 0x480a20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x480a7b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x480a7b
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x480a68
cmp esi, edx
jae 0x480a7b
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x480a56
cmp esi, edx
jae 0x480a7b
xor eax, eax
cmp word [esi], ax
pop edi
cmove esi, eax
mov eax, esi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x482800
Capabilities:
Get common file path
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x545100]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
push edi
mov edi, ecx
cmp dword [0x54cbcc], esi
jne 0x482840
sub esp, 8
lea ecx, [esi + 1]
call fcn.00482580
mov esi, eax
add esp, 8
test esi, esi
jne 0x482918
or dword [0x54cbc8], 2
mov eax, dword [0x54cbcc]
test eax, eax
je 0x482850
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x54cbbc]
mov ecx, eax
inc eax
mov dword [0x54cbbc], eax
test ecx, ecx
jne 0x482906
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.004c2ec7
add esp, 4
xor eax, eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x210]
push 0x104
push eax
push str._SystemRoot_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ax, word [ebp - 0x210]
xor ecx, ecx
cmp cx, ax
je 0x4828ac
mov ecx, 0x25
cmp cx, ax
jne 0x4828d0
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x210]
push eax
push str.SystemRoot
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ecx, edi
call fcn.00474200
mov esi, eax
test esi, esi
jne 0x482901
or dword [0x54cbc8], 1
mov cl, 1
call fcn.00480fe0
mov esi, eax
test esi, esi
jne 0x482901
mov edx, edi
call fcn.00481a10
mov edx, edi
call fcn.00482440
jmp 0x482906
call fcn.00482930
mov eax, dword [0x54cbcc]
test eax, eax
je 0x482916
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004a5e3b
mov esp, ebp
pop ebp
ret
Function at 0x48fb60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [ecx + 0x14], 7
jbe 0x48fb68
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x48fb7b
test al, 0x10
jne 0x48fb7b
mov al, 1
ret
xor al, al
ret

Function at 0x48fb80
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [ecx + 0x14], 7
jbe 0x48fb88
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x48fb9b
test al, 0x10
je 0x48fb9b
mov al, 1
ret
xor al, al
ret

Function at 0x48ff60
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x28
push esi
mov esi, ecx
mov dword [esp + 4], edx
push edi
mov eax, esi
cmp dword [esi + 0x14], 7
jbe 0x48ff7b
mov eax, dword [esi]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x49009f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x48ffc7
cmp dword [esi + 0x14], 7
jbe 0x48ffa0
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x48ffb4
test al, 0x10
jne 0x49009f
push 0xb7
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 3
jne 0x48ffbf
xor eax, eax
nop
mov edi, dword [esi + 0x14]
mov ecx, esi
cmp edi, 7
jbe 0x48ffdc
mov ecx, dword [esi]
mov edx, dword [esi + 0x10]
inc eax
push 2
push 0x530ca8
push eax
call fcn.0040dc20
add esp, 0xc
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
je 0x490058
inc eax
mov dword [esp + 0x20], 0
cmp dword [esi + 0x10], eax
xorps xmm0, xmm0
movaps xmmword [esp + 0x10], xmm0
mov ecx, esi
cmovb eax, dword [esi + 0x10]
mov dword [esp + 0x24], 0
cmp edi, 7
jbe 0x490022
mov ecx, dword [esi]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.0040ab20
cmp dword [esp + 0x24], 7
lea eax, [esp + 0x10]
push dword [esp + 8]
cmova eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [esp + 0x10]
call fcn.0040a900
mov eax, dword [esp + 0xc]
jmp 0x48ffd0
mov eax, esi
cmp edi, 7
jbe 0x490061
mov eax, dword [esi]
push dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x49009f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esi + 0x14], 7
mov edi, eax
jbe 0x490080
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x490090
test al, 0x10
jne 0x49009f
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x490660
Capabilities:
Query environment variable

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ee6c0
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x98
mov eax, dword [0x545100]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x54], esi
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x34]
xorps xmm0, xmm0
mov dword [ebp - 0x50], esi
push 0x108
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
call fcn.0040aac0
mov edx, eax
mov dword [ebp - 0x24], 0x104
xor eax, eax
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x20], 0x107
mov ecx, 0x82
mov edi, edx
rep stosd dword es:[edi], eax
mov word [edx + 0x208], ax
mov byte [ebp - 4], 1
lea eax, [ebp - 0x34]
cmp dword [ebp - 0x20], 7
push dword [ebp - 0x24]
cmova eax, dword [ebp - 0x34]
push eax
push str._TMP_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ecx, eax
test ecx, ecx
je 0x4909ab
mov eax, dword [ebp - 0x24]
cmp ecx, eax
ja 0x4909ab
dec ecx
cmp ecx, eax
ja 0x490749
cmp dword [ebp - 0x20], 7
lea eax, [ebp - 0x34]
mov dword [ebp - 0x24], ecx
cmova eax, dword [ebp - 0x34]
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x490756
sub ecx, eax
push 0
push ecx
lea ecx, [ebp - 0x34]
call fcn.0040b8e0
lea eax, [ebp - 0x34]
push eax
call fcn.00490a00
xorps xmm0, xmm0
lea ecx, [ebp - 0x34]
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
xor eax, eax
movups xmm0, xmmword [ebp - 0x34]
mov dword [esi + 0x14], 0
mov word [ebp - 0x34], ax
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x24]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
call fcn.0040a900
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004a5e3b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push str.Unable_to_expand__TMP_environment_variable_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x6c]
call fcn.00499180
push 0x542628
lea eax, [ebp - 0x6c]
push eax
call fcn.004a869b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
push 2
push 0x530e5c
push eax
lea ecx, [ebp - 0x80]
call fcn.00491d90
push 0x542628
lea eax, [ebp - 0x80]
push eax
call fcn.004a869b
int3
Function at 0x490aa0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ee70e
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x38
push esi
push edi
mov eax, dword [0x545100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x14], esi
mov edi, ecx
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x18], 0
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
xor eax, eax
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], 1
nop dword [eax]
mov ecx, dword [ebx + 0xc]
mov eax, ecx
cmp dword [ecx + 0x14], 7
jbe 0x490b2d
mov eax, dword [ecx]
mov dword [ebp - 0x1c], eax
call fcn.00496800
mov ecx, dword [ebx + 8]
mov dword [ebp - 0x30], eax
mov eax, ecx
mov dword [ebp - 0x2c], edx
cmp dword [ecx + 0x14], 7
jbe 0x490b48
mov eax, dword [ecx]
cmp dword [esi + 0x14], 7
mov dword [ebp - 0x20], eax
mov eax, esi
jbe 0x490b55
mov eax, dword [esi]
mov dword [ebp - 0x24], eax
lea edx, [ebp - 0x24]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x20]
push eax
push 0xf
push str.:016x.
lea ecx, [ebp - 0x48]
call fcn.00491e60
mov esi, eax
add esp, 0x14
cmp edi, esi
je 0x490ba9
mov ecx, edi
call fcn.0040a900
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [edi], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x48]
call fcn.0040a900
cmp dword [edi + 0x10], 0
mov eax, edi
je 0x490bfb
cmp dword [edi + 0x14], 7
jbe 0x490bc1
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x490bd8
mov esi, dword [ebp - 0x14]
test al, 0x10
je 0x490b20
cmp dword [edi + 0x14], 7
mov eax, edi
jbe 0x490be2
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x490bf9
mov esi, dword [ebp - 0x14]
test al, 0x10
jne 0x490b20
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x490c10
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, edx
mov bh, 1
push edi
mov edx, ecx
mov bl, bh
mov dword [ebp - 4], edx
lea edi, [esi + 0x14]
mov ecx, edi
mov dword [ebp - 8], ecx
nop dword [eax]
test bl, bl
je 0x490c77
cmp dword [ecx], 7
mov eax, esi
jbe 0x490c3d
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, dword [ebp - 8]
mov bl, 1
cmp eax, 0xffffffff
je 0x490c74
and eax, 0x3126
lea edi, [esi + 0x14]
mov ecx, 0x80
cmove eax, ecx
cmp dword [edi], 7
mov ecx, esi
jbe 0x490c67
mov ecx, dword [esi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
sete bl
mov edx, dword [ebp - 4]
cmp dword [edi], 7
mov ecx, esi
jbe 0x490c80
mov ecx, dword [esi]
cmp dword [edx + 0x14], 7
mov eax, edx
jbe 0x490c8a
mov eax, dword [edx]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x490cd2
add bh, 0xff
je 0x490cc9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x490cb2
cmp eax, 0x20
mov eax, 0x14
jne 0x490cb7
mov eax, 0xc8
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
jmp 0x490c30
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x490cdc
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x490d05
and eax, 0x3126
mov ecx, 0x80
cmove eax, ecx
cmp dword [esi + 0x14], 7
jbe 0x490cfd
mov esi, dword [esi]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x490f40
Capabilities:
Check if file exists
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, edx
mov bh, 1
push edi
mov edx, ecx
mov bl, bh
mov dword [ebp - 4], edx
lea edi, [esi + 0x14]
mov ecx, edi
mov dword [ebp - 8], ecx
nop dword [eax]
test bl, bl
je 0x490fa7
cmp dword [ecx], 7
mov eax, esi
jbe 0x490f6d
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, dword [ebp - 8]
mov bl, 1
cmp eax, 0xffffffff
je 0x490fa4
and eax, 0x3126
lea edi, [esi + 0x14]
mov ecx, 0x80
cmove eax, ecx
cmp dword [edi], 7
mov ecx, esi
jbe 0x490f97
mov ecx, dword [esi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
sete bl
mov edx, dword [ebp - 4]
cmp dword [edi], 7
mov ecx, esi
jbe 0x490fb0
mov ecx, dword [esi]
cmp dword [edx + 0x14], 7
mov eax, edx
jbe 0x490fba
mov eax, dword [edx]
push 0xb
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x491002
add bh, 0xff
je 0x490ff9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x490fe2
cmp eax, 0x20
mov eax, 0x14
jne 0x490fe7
mov eax, 0xc8
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
jmp 0x490f60
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x49100c
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x491035
and eax, 0x3126
mov ecx, 0x80
cmove eax, ecx
cmp dword [esi + 0x14], 7
jbe 0x49102d
mov esi, dword [esi]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x491040
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov bl, 1
nop word [eax + eax]
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x49105a
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4910b0
test al, 0x10
jne 0x4910b0
test bl, bl
je 0x4910b0
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x491078
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x49108b
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4910a8
add bl, 0xff
je 0x491050
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x491050
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4910c0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ee785
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x545100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x10], 0
jne 0x4910f9
xor al, al
jmp 0x4911ab
test dl, dl
jne 0x49111a
cmp dword [edi + 0x14], 7
jbe 0x491105
mov edi, dword [edi]
push 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
setne al
jmp 0x4911ab
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
push 3
push 0x530e54
lea ecx, [ebp - 0x38]
movq qword [ebp - 0x1c], xmm0
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
call fcn.0040ab20
push 0
lea eax, [ebp - 0x38]
mov dword [ebp - 4], 0
push 1
push eax
mov edx, edi
lea ecx, [ebp - 0x1c]
call fcn.004916c0
add esp, 0xc
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.0040a900
mov esi, dword [ebp - 0x18]
cmp esi, dword [ebp - 0x1c]
je 0x491194
mov ecx, esi
nop dword [eax]
add ecx, 0xffffffe8
xor dl, dl
add esi, 0xffffffe8
call fcn.004910c0
mov ecx, esi
cmp esi, dword [ebp - 0x1c]
jne 0x491180
xor dl, dl
mov ecx, edi
call fcn.004910c0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 0x1d], al
call fcn.0040bc70
mov al, byte [ebp - 0x1d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a5e3b
mov esp, ebp
pop ebp
ret
Function at 0x491590
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ee835
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x40
mov eax, dword [0x545100]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], edx
mov edi, ecx
cmp dword [edi + 0x14], 7
mov eax, edi
jbe 0x4915dd
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp - 0x4c]
push eax
call fcn.0048fda0
add esp, 8
xor edx, edx
mov dword [ebp - 4], 0
mov ecx, eax
call fcn.0048ff60
lea ecx, [ebp - 0x4c]
call fcn.0040a900
cmp dword [edi + 0x14], 7
mov eax, edi
jbe 0x49160e
mov eax, dword [edi]
push 0
push 0x80
push 2
push 0
push 5
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 1
cmp esi, 0xffffffff
je 0x491674
push 0
lea eax, [ebp - 0x1c]
push eax
push dword [ebx + 8]
push dword [ebp - 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x491699
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a5e3b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
push 0x15
push str.set_file_content_
push eax
lea ecx, [ebp - 0x34]
call fcn.0043c300
push 0x542628
lea eax, [ebp - 0x34]
push eax
call fcn.004a869b
push str.set_file_content
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x34]
call fcn.00499120
push 0x542628
lea eax, [ebp - 0x34]
push eax
call fcn.004a869b
int3
Function at 0x492c20
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x545100]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x14]
mov esi, ecx
push eax
push edi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x492ca9
mov ecx, dword [ebp - 0x14]
mov eax, ecx
mov edx, dword [ebp - 0x10]
or eax, edx
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], edx
je 0x492c8c
push 0
push ecx
push edx
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
mov eax, dword [esi + 8]
test eax, eax
je 0x492c85
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], edi
test edi, edi
je 0x492ccb
mov ecx, dword [ebp - 8]
pop edi
mov dword [esi + 0x18], 2
xor ecx, ebp
mov byte [esi + 4], 1
pop esi
call fcn.004a5e3b
mov esp, ebp
pop ebp
ret 0x14
push str.Unable_to_get_file_size_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x28]
call fcn.00499120
push 0x542628
lea eax, [ebp - 0x28]
push eax
call fcn.004a869b
push str.Unable_to_create_file_mapping_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x28]
call fcn.00499120
push 0x542628
lea eax, [ebp - 0x28]
push eax
call fcn.004a869b
int3
Function at 0x492f00
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eeb40
mov eax, dword fs:[0]
push eax
sub esp, 0x20c
mov eax, dword [0x545100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0x218], ecx
test ecx, ecx
je 0x493020
test ebx, ebx
je 0x493020
cmp word [ebx], 0
je 0x493020
mov dword [ebp - 0x214], 0
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x214]
push eax
mov eax, edi
mov dword [ebp - 4], 0
or eax, 8
push eax
push 0
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x492fd7
push 0x100
lea eax, [ebp - 0x210]
push eax
push 0
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x492fd3
mov ecx, dword [ebp - 0x214]
lea edx, [ebp - 0x210]
push edi
call fcn.00492f00
add esp, 4
test al, al
je 0x492fbc
xor esi, esi
jmp 0x492f81
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x492f81
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor bl, bl
jmp 0x493000
test esi, esi
je 0x492fe2
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor bl, bl
jmp 0x493000
push 0
push edi
push ebx
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
sete bl
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x49301c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x49301c
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov al, bl
jmp 0x49302a
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a5e3b
mov esp, ebp
pop ebp
ret