joyce8/EMBER2024-capa huggingface dataset:
Function at 0x488d40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 4
mov dword [ebp - 8], 4
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 8]
push edx
push 0
mov ecx, dword [ebp + 8]
call fcn.00405ee0
push eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x488da2
cmp dword [ebp - 8], 4
jne 0x488da2
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x10]
mov dword [edx], eax
mov eax, 1
jmp 0x488da4
xor eax, eax
mov esp, ebp
pop ebp
ret 8

Function at 0x488db0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 4
mov dword [ebp - 4], 4
mov eax, dword [ebp - 8]
push eax
lea ecx, [ebp + 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
push 0
mov ecx, dword [ebp + 8]
call fcn.00405ee0
push eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
add eax, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x488ed0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x61c850]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
jne 0x488f07
mov al, 1
jmp 0x489094
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x21c], 0x104
mov dword [ebp - 0xc], 0
lea edx, [ebp - 0xc]
push edx
push 0x20019
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
je 0x488f51
xor al, al
jmp 0x489094
mov edx, dword [ebp + 0xc]
push edx
call fcn.00496a0e
add esp, 4
mov ecx, dword [ebp + 0xc]
lea edx, [ecx + eax*2]
mov dword [ebp - 0x224], edx
mov eax, dword [ebp - 0x224]
movzx ecx, word [eax - 2]
cmp ecx, 0x5c
je 0x488fa0
mov edx, 0x5c
mov eax, dword [ebp - 0x224]
mov word [eax], dx
mov ecx, dword [ebp - 0x224]
add ecx, 2
mov dword [ebp - 0x224], ecx
xor edx, edx
mov eax, dword [ebp - 0x224]
mov word [eax], dx
lea ecx, [ebp - 8]
push ecx
push 0
push 0
push 0
lea edx, [ebp - 0x21c]
push edx
lea eax, [ebp - 0x218]
push eax
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
je 0x488fe4
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x489094
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp - 0x224]
push ecx
call fcn.0049a470
add esp, 8
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00488ed0
add esp, 8
movzx ecx, al
test ecx, ecx
jne 0x489013
jmp 0x489050
mov dword [ebp - 0x21c], 0x104
lea edx, [ebp - 8]
push edx
push 0
push 0
push 0
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x218]
push ecx
push 0
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
je 0x488fe4
mov eax, dword [ebp - 0x224]
sub eax, 2
mov dword [ebp - 0x224], eax
xor ecx, ecx
mov edx, dword [ebp - 0x224]
mov word [edx], cx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [ebp - 0x220], eax
xor eax, eax
cmp dword [ebp - 0x220], 0
sete al
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00493f9c
mov esp, ebp
pop ebp
ret
Function at 0x4890b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x61c850]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x400], ecx
xor eax, eax
mov word [ebp - 0x3f0], ax
push 0x3e6
push 0
lea ecx, [ebp - 0x3ee]
push ecx
call fcn.00496f40
add esp, 0xc
mov dword [ebp - 0x3fc], 0x3e8
mov dword [ebp - 0x3f8], 1
mov ecx, dword [ebp + 8]
call fcn.004613d0
test eax, eax
jbe 0x489118
mov ecx, dword [ebp + 8]
call fcn.00405ee0
mov dword [ebp - 0x404], eax
jmp 0x489122
mov dword [ebp - 0x404], 0
lea edx, [ebp - 0x3fc]
push edx
lea eax, [ebp - 0x3f0]
push eax
lea ecx, [ebp - 0x3f8]
push ecx
push 0
mov edx, dword [ebp - 0x404]
push edx
mov eax, dword [ebp - 0x400]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x3f4], eax
cmp dword [ebp - 0x3f4], 0
jne 0x489180
cmp dword [ebp - 0x3f8], 1
jne 0x489180
lea edx, [ebp - 0x3f0]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.0043b320
mov eax, 1
jmp 0x489182
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493f9c
mov esp, ebp
pop ebp
ret 8

Function at 0x4891a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 1
mov ecx, dword [ebp + 0xc]
call fcn.004613d0
shl eax, 1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00405ee0
push eax
mov ecx, dword [ebp - 4]
push ecx
push 0
mov ecx, dword [ebp + 8]
call fcn.00405ee0
push eax
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
add eax, 1
mov esp, ebp
pop ebp
ret 8

Function at 0x489200
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a0c19
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x61c850]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x428], 0
lea ecx, [ebp - 0x418]
call fcn.0043b2f0
mov dword [ebp - 4], 1
xor eax, eax
mov word [ebp - 0x3fc], ax
push 0x3e6
push 0
lea ecx, [ebp - 0x3fa]
push ecx
call fcn.00496f40
add esp, 0xc
mov dword [ebp - 0x424], 0x3e8
mov dword [ebp - 0x420], 1
lea edx, [ebp - 0x424]
push edx
lea eax, [ebp - 0x3fc]
push eax
lea ecx, [ebp - 0x420]
push ecx
push 0
mov ecx, dword [ebp + 0xc]
call fcn.00405ee0
push eax
mov edx, dword [ebp - 0x42c]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x41c], eax
cmp dword [ebp - 0x41c], 0
jne 0x4892da
cmp dword [ebp - 0x420], 1
jne 0x4892da
lea ecx, [ebp - 0x3fc]
push ecx
lea ecx, [ebp - 0x418]
call fcn.0043b320
lea edx, [ebp - 0x418]
push edx
mov ecx, dword [ebp + 8]
call fcn.00467f20
mov eax, dword [ebp - 0x428]
or eax, 1
mov dword [ebp - 0x428], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x418]
call fcn.00405ea0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00493f9c
mov esp, ebp
pop ebp
ret 8
Function at 0x48d170
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x5a1028
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x61c850]
xor eax, esp
mov dword [esp + 0x34], eax
push ebp
push esi
push edi
mov eax, dword [0x61c850]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
lea ecx, [eax + 0x28]
push ecx
push 4
push eax
push 0x48d080
push 0
push 0
call fcn.00496e92
mov ebp, eax
add esp, 0x18
test ebp, ebp
jne 0x48d212
call fcn.0048bb60
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x18]
mov esi, eax
lea edi, [ebp + 0xb]
mov dword [esp + 0x14], str.boost::thread_resource_error
call fcn.004943aa
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], esi
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebp
mov byte [esp + 0x28], 0
mov dword [esp + 0x14], vtable.boost::thread_resource_error.0
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x54], ebp
call fcn.0040bf90
mov ecx, dword [esi]
add ecx, 4
mov edx, 1
lock xadd dword [ecx], edx
mov edi, dword [esi]
mov eax, dword [edi + 8]
test eax, eax
je 0x48d235
cmp eax, 0xffffffff
je 0x48d235
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 8], ebp
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.00493f9c
add esp, 0x44
ret
Function at 0x48e3b0
Capabilities:
Clear file content

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push 0x80
push 3
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x48e40b
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push 0
push 0
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x48e40b
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x48e40b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x48e40b
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x48f640
Capabilities:
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x5a1310
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x61c850]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov eax, dword [0x61c850]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x60]
mov esi, dword [esp + 0x5c]
mov edi, dword [esp + 0x64]
cmp eax, 1
jne 0x48f69b
test edi, edi
je 0x48f694
mov dword [edi], 0
call fcn.0048bb60
mov dword [edi + 4], eax
xor al, al
jmp 0x48f79a
cmp eax, 3
je 0x48f724
cmp eax, 0xb
je 0x48f724
push 0x19
push str.boost::filesystem::remove
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
call fcn.00407900
cmp dword [esi + 0x14], 8
mov dword [esp + 0x54], 1
jb 0x48f6e0
mov eax, dword [esi]
jmp 0x48f6e2
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
test al, al
lea ecx, [esp + 0x10]
push ecx
sete dl
push edi
movzx eax, dl
push esi
push eax
call fcn.0048f470
add esp, 0x10
cmp dword [esp + 0x24], 0x10
mov bl, al
jb 0x48f71c
mov ecx, dword [esp + 0x10]
push ecx
call fcn.004970e2
add esp, 4
test bl, bl
je 0x48f798
xor al, al
jmp 0x48f79a
push 0x19
xor ebx, ebx
push str.boost::filesystem::remove
lea ecx, [esp + 0x34]
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
call fcn.00407900
cmp dword [esi + 0x14], 8
mov dword [esp + 0x54], ebx
jb 0x48f754
mov eax, dword [esi]
jmp 0x48f756
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
lea edx, [esp + 0x2c]
push edx
test al, al
sete al
push edi
movzx ecx, al
push esi
push ecx
call fcn.0048f470
add esp, 0x10
cmp dword [esp + 0x40], 0x10
mov bl, al
jb 0x48f790
mov edx, dword [esp + 0x2c]
push edx
call fcn.004970e2
add esp, 4
test bl, bl
jne 0x48f694
mov al, 1
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.00493f9c
add esp, 0x48
ret
Function at 0x48fca0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
cmp dword [ebx + 0x14], 8
push edi
jb 0x48fcb3
mov eax, dword [ebx]
jmp 0x48fcb5
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x48fcde
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0xc]
push ebx
push ecx
call fcn.0048fb80
mov eax, dword [eax]
add esp, 0xc
pop edi
pop ebx
add esp, 8
ret
push esi
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x48fcf5
mov dword [esi], 0
call fcn.0048bb60
mov dword [esi + 4], eax
pop esi
test edi, 0x400
je 0x48fd2e
push ebx
call fcn.0048e4c0
add esp, 4
test al, al
je 0x48fd23
mov edx, edi
and dl, 0x10
movzx eax, dl
neg eax
sbb eax, eax
and eax, 7
pop edi
add eax, 4
pop ebx
add esp, 8
ret
pop edi
mov eax, 9
pop ebx
add esp, 8
ret
mov eax, edi
and eax, 0x10
or eax, 0x20
pop edi
shr eax, 4
pop ebx
add esp, 8
ret
Function at 0x490530
Capabilities:
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x5a15d8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x61c850]
xor eax, esp
mov dword [esp + 0x34], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x61c850]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x60]
mov edi, dword [esp + 0x64]
push 0x18
xor ebp, ebp
push str.boost::filesystem::space
lea ecx, [esp + 0x34]
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], ebp
mov byte [esp + 0x34], 0
call fcn.00407900
cmp dword [esi + 0x14], 8
mov dword [esp + 0x54], ebp
jb 0x49059b
mov eax, dword [esi]
jmp 0x49059d
mov eax, esi
lea ecx, [esp + 0x2c]
push ecx
push edi
push esi
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x30]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
sete al
movzx ecx, al
push ecx
call fcn.0048f470
add esp, 0x10
test al, al
sete bl
cmp dword [esp + 0x40], 0x10
jb 0x4905e4
mov edx, dword [esp + 0x2c]
push edx
call fcn.004970e2
add esp, 4
mov eax, dword [esp + 0x5c]
test bl, bl
je 0x490627
mov edx, dword [esp + 0x28]
xor ecx, ecx
xor esi, esi
add ecx, dword [esp + 0x24]
adc edx, esi
mov dword [eax], ecx
xor ecx, ecx
xor edi, edi
add ecx, dword [esp + 0x14]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x18]
adc edx, edi
mov dword [eax + 8], ecx
xor ecx, ecx
add ecx, dword [esp + 0x1c]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x20]
adc edx, edi
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
jmp 0x490638
mov dword [eax + 0x10], ebp
mov dword [eax + 0x14], ebp
mov dword [eax + 8], ebp
mov dword [eax + 0xc], ebp
mov dword [eax], ebp
mov dword [eax + 4], ebp
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.00493f9c
add esp, 0x44
ret
Function at 0x490660
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x5a1610
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x61c850]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x61c850]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov edi, dword [esp + 0x54]
cmp dword [edi + 0x14], 8
mov esi, dword [esp + 0x58]
mov ebp, dword [esp + 0x50]
mov dword [esp + 0x1c], esi
jb 0x4906ac
mov eax, dword [edi]
jmp 0x4906ae
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4906cc
push esi
push edi
push ebp
call fcn.0048fb80
add esp, 0xc
jmp 0x49081f
test ebx, 0x400
je 0x4907db
cmp dword [edi + 0x14], 8
jb 0x4906e2
mov edx, dword [edi]
jmp 0x4906e4
mov edx, edi
xor eax, eax
mov word [esp + 0x20], ax
mov eax, edx
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x490700
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x28]
call fcn.00409920
cmp dword [esp + 0x34], 8
mov eax, dword [esp + 0x20]
mov dword [esp + 0x48], 0
jae 0x490731
lea eax, [esp + 0x20]
push 0
push 0x2000000
push 3
push 0
push 7
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0x14], esi
cmp dword [esp + 0x34], 8
mov byte [esp + 0x48], 2
jb 0x490766
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004970e2
add esp, 4
xor edx, edx
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
mov word [esp + 0x20], dx
cmp esi, 0xffffffff
jne 0x490796
mov eax, dword [esp + 0x1c]
push eax
push edi
push ebp
call fcn.0048fb80
add esp, 0xc
jmp 0x49081f
push edi
call fcn.0048e4c0
add esp, 4
test al, al
jne 0x4907c8
push ebx
push edi
call fcn.0048f7c0
add esp, 8
push esi
mov dword [ebp], 9
mov dword [ebp + 4], eax
mov dword [esp + 0x4c], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x49081f
push esi
mov dword [esp + 0x4c], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x4907ed
mov dword [esi], 0
call fcn.0048bb60
mov dword [esi + 4], eax
push ebx
push edi
mov dword [esp + 0x1c], 3
test bl, 0x10
jne 0x490804
mov dword [esp + 0x1c], 2
call fcn.0048f7c0
mov dword [esp + 0x20], eax
lea eax, [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
add esp, 8
mov dword [ebp], ecx
mov dword [ebp + 4], edx
mov eax, ebp
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00493f9c
add esp, 0x38
ret
Function at 0x491900
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5a1800
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x61c850]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi + 4], 0
push 0x5b6ee0
lea ecx, [esp + 0x10]
mov dword [esp + 0x3c], 0
mov dword [esi], vtable.std::codecvt_wchar_t__char__int_.0
call fcn.00401540
mov byte [esp + 0x38], 1
call fcn.0048a6bb
lea ecx, [esp + 0xc]
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
mov byte [esp + 0x38], 0
call fcn.00401610
mov dword [esi], vtable.windows_file_codecvt.0
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x34
ret

Function at 0x492e60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5a1aaa
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x61c850]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x61c850]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov edi, dword [esp + 0x88]
lea eax, [esp + 0x34]
xor ebp, ebp
push eax
mov esi, ecx
mov dword [esp + 0x18], ebp
call fcn.00492b20
mov esi, dword [esi + 0x10]
mov dword [esp + 0x80], ebp
cmp dword [esp + 0x54], esi
je 0x492f4a
mov esi, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x34]
cmp esi, 1
jbe 0x492f01
mov eax, edx
cmp ecx, 8
jae 0x492edb
lea eax, [esp + 0x34]
movzx eax, word [eax]
cmp eax, 0x2f
je 0x492ee8
cmp eax, 0x5c
jne 0x492f01
mov eax, edx
cmp ecx, 8
jae 0x492ef3
lea eax, [esp + 0x34]
movzx eax, word [eax + 2]
cmp eax, 0x2f
je 0x492f14
cmp eax, 0x5c
je 0x492f14
mov eax, edx
cmp ecx, 8
jae 0x492f0c
lea eax, [esp + 0x34]
cmp word [eax + esi*2 - 2], 0x3a
jne 0x492f4a
push 0xffffffffffffffff
xor ecx, ecx
push ebp
lea edx, [esp + 0x3c]
mov word [esp + 0x20], cx
mov esi, 7
push edx
lea ecx, [esp + 0x24]
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], ebp
call fcn.00408010
lea eax, [esp + 0x18]
mov byte [esp + 0x80], 1
lea ebx, [esi - 6]
jmp 0x492f6e
mov esi, 7
xor eax, eax
mov dword [esp + 0x6c], esi
mov dword [esp + 0x68], ebp
mov word [esp + 0x58], ax
mov ebx, 2
lea eax, [esp + 0x58]
mov dword [esp + 0x80], ebx
push 0xffffffffffffffff
xor ecx, ecx
mov dword [edi + 0x14], esi
mov dword [edi + 0x10], ebp
push ebp
mov word [edi], cx
push eax
mov ecx, edi
mov dword [esp + 0x20], ebx
call fcn.00408010
or ebx, 4
test bl, 2
je 0x492fa7
and ebx, 0xfffffffd
cmp dword [esp + 0x6c], 8
jb 0x492fa7
mov edx, dword [esp + 0x58]
push edx
call fcn.004970e2
add esp, 4
test bl, 1
je 0x492fcf
cmp dword [esp + 0x2c], 8
jb 0x492fc0
mov eax, dword [esp + 0x18]
push eax
call fcn.004970e2
add esp, 4
xor ecx, ecx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], ebp
mov word [esp + 0x18], cx
cmp dword [esp + 0x48], 8
jb 0x492fe3
mov edx, dword [esp + 0x34]
push edx
call fcn.004970e2
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.00493f9c
add esp, 0x70
ret 4
Function at 0x493f9c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x61c850]
jne 0x493fa6
repz ret
jmp fcn.0049f564

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x4989bd
call fcn.0049bc1b
mov dword [eax], esi
call fcn.0049bc08
push 0x16
pop esi
mov dword [eax], esi
call fcn.0049f907
mov eax, esi
jmp 0x498a12
test dword [ebp + 0xc], 0xfffffff9
jne 0x4989a3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4989ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0049bc2e
pop ecx
call fcn.0049bc08
mov eax, dword [eax]
jmp 0x498a12
test al, 0x10
jne 0x498a10
test al, 1
je 0x498a10
test byte [ebp + 0xc], 2
je 0x498a10
call fcn.0049bc1b
mov dword [eax], 5
call fcn.0049bc08
mov dword [eax], 0xd
jmp 0x4989e1
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4a9f07
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x61c850]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0049ef29
and dword [ebp - 0x14], 0
cmp dword [0x62d028], 0
mov dword [ebp - 0x18], eax
jne 0x4a9fba
push 0x5b99fc
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4aa062
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4aa062
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x62d028], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x62d02c], eax
call edi
push eax
call esi
push 0x5b99b0
push ebx
mov dword [0x62d030], eax
call edi
push eax
call esi
mov dword [0x62d038], eax
test eax, eax
je 0x4a9fba
push 0x5b9998
push ebx
call edi
push eax
call esi
mov dword [0x62d034], eax
mov eax, dword [0x62d034]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4aa013
cmp dword [0x62d038], ecx
je 0x4aa013
push eax
call esi
push dword [0x62d038]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4aa013
test ebx, ebx
je 0x4aa013
call edi
test eax, eax
je 0x4aa00a
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4aa00a
test byte [ebp - 8], 1
jne 0x4aa013
or dword [ebp + 0x10], 0x200000
jmp 0x4aa046
mov eax, dword [0x62d02c]
cmp eax, dword [ebp - 0x18]
je 0x4aa046
push eax
call esi
test eax, eax
je 0x4aa046
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4aa046
mov eax, dword [0x62d030]
cmp eax, dword [ebp - 0x18]
je 0x4aa046
push eax
call esi
test eax, eax
je 0x4aa046
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x62d028]
call esi
test eax, eax
je 0x4aa062
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4aa064
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00493f9c
leave
ret
Function at 0x4b9190
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a2c2b
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x61c850]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
lea ecx, [ebp + 8]
call fcn.00405ee0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0xf8], eax
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 0xf8], 0xffffffff
jne 0x4b9210
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00405ea0
mov eax, dword [ebp - 0x14]
jmp 0x4b9237
push 0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0xf8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00405ea0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x1c