joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406b70
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x494be8
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x4b9a40]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov dword [esp + 0xc], 0
call fcn.00443ed5
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x406bb6
push 0x80004005
call fcn.004010b0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0xc], esi
mov edx, dword [esp + 0x20]
lea ecx, [esp + 8]
push ecx
push edx
mov dword [esp + 0x20], 0
push 0
mov dword [esp + 0x14], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x406c83
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x406c16
push 0x104
lea ecx, [esp + 0x10]
call fcn.004022e0
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 8]
push esi
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004613f7
add esp, 8
test eax, eax
jl 0x406c79
cmp eax, dword [esi - 8]
jg 0x406c79
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
add esi, 0xfffffff0
push esi
call fcn.00402330
add eax, 0x10
mov dword [ebx], eax
add esp, 4
mov dword [esp + 0x18], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x406cb3
mov ecx, dword [esi]
push esi
jmp 0x406cac
push 0x80070057
call fcn.004010b0
push 0x49f6f4
mov ecx, ebx
call fcn.00401bc0
lea eax, [esi - 0x10]
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406cb3
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret
Function at 0x407960
Capabilities:
Create directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x496230
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x4b9a40]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x20]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x10], esp
mov esi, esp
push eax
call fcn.00402330
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00406aa0
add esp, 4
test eax, eax
jne 0x4079c0
push eax
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.main.7z
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.00405830
add esp, 0xc
mov eax, dword [esp + 0x24]
mov byte [esp + 0x18], 1
push eax
mov eax, dword [esp + 0x10]
call fcn.00407a70
mov ecx, dword [esp + 0x10]
add esp, 4
push ecx
mov ecx, dword [esp + 0x24]
call fcn.004314b0
mov edx, dword [esp + 0x10]
add esp, 4
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [esp + 0x18], 0
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407a2e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x18], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407a56
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret

Function at 0x407a70
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ecx
push edi
push 0
push 0x100
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x407a97
xor eax, eax
pop edi
pop ecx
ret
push ebx
push ebp
push esi
call fcn.00448214
movzx ecx, word [esp + 0x18]
mov esi, dword [eax + 0xc]
push 0x49ff0c
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push ebx
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
lea edx, [esp + 0x14]
push edx
push eax
push ebp
push edi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebp
pop ebx
mov eax, 1
pop edi
pop ecx
ret
Function at 0x408b30
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x494a88
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x4b9a40]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov eax, dword [0x4b9a40]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov dword [esp + 0x28], 0
call fcn.00443ed5
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x408b81
push 0x80004005
call fcn.004010b0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0xc], eax
push 0x42
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionAppCompatFlagsLayers
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 1
call fcn.00402230
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
push 0x20006
push 0
push 0
push 0
push esi
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x408c64
push str.YouXunBoxYouxun.exe
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x10]
push ecx
call fcn.00405830
add esp, 0xc
push str.RUNASADMIN
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 2
call fcn.00401bc0
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 0xc]
lea edx, [ecx + ecx]
mov ecx, dword [esp + 0x10]
push edx
push eax
mov eax, dword [esp + 0x10]
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
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 0x408c3f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x28], 1
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408c64
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi - 0x10]
mov byte [esp + 0x28], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408c90
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 + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408cb8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00461095
add esp, 0x24
ret
Function at 0x409980
Capabilities:
Create shortcut via ishelllink

Disassembly:
push 0xffffffffffffffff
push 0x494a50
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
mov eax, dword [0x4b9a40]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
push ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 0x10]
push eax
push 0x49e5e4
push 1
push ebx
push 0x49e614
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jge 0x4099ee
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x1c
ret
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x50]
push esi
push eax
call edx
push esi
lea ecx, [esp + 0x10]
call fcn.00401bc0
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0xc]
push 0x5c
push eax
call fcn.00461aa3
add esp, 8
or esi, 0xffffffff
cmp eax, ebx
jne 0x409a23
mov eax, esi
jmp 0x409a29
sub eax, dword [esp + 0xc]
sar eax, 1
push eax
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x14]
call fcn.004057b0
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 1
call fcn.00401f40
mov byte [esp + 0x24], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409a6a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
cmp edi, ebx
je 0x409a8d
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x44]
push ebx
push edi
push eax
call edx
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x30]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x2c]
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push 0x49e644
push eax
mov eax, dword [ecx]
call eax
cmp eax, ebx
jge 0x409af2
call dword [sym.imp.ole32.dll_CoUninitialize]
mov dword [esp + 0x24], esi
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x409ade
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x1c
ret
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x2c]
mov ecx, dword [eax]
push 1
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
cmp eax, ebx
jl 0x409ab7
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov dword [esp + 0x24], esi
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x409b48
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x409b60
Capabilities:
Get common file path

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0x1a
push 0
mov dword [esp + 0xc], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x409bf5
mov eax, dword [esi]
mov edx, dword [eax - 8]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
sub edx, 0x104
or ecx, edx
jge 0x409ba1
push 0x104
mov ecx, esi
call fcn.004022e0
mov eax, dword [esi]
push edi
push eax
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov edi, eax
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x409bc9
push ecx
push eax
call fcn.004613f7
add esp, 8
test eax, eax
jl 0x409beb
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x409beb
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, edi
pop edi
pop ecx
ret
push 0x80070057
call fcn.004010b0
xor eax, eax
pop ecx
ret

Function at 0x409c00
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x4b9a40]
xor eax, esp
mov dword [esp + 0x114], eax
lea eax, [esp]
push eax
mov dword [esp + 4], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x409c43
cmp dword [esp + 0x10], 2
jne 0x409c43
cmp dword [esp + 4], 6
jne 0x409c43
mov eax, 1
cmp dword [esp + 8], eax
je 0x409c45
xor eax, eax
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00461095
add esp, 0x118
ret
Function at 0x409f50
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x493278
mov eax, dword fs:[0]
push eax
push edi
mov eax, dword [0x4b9a40]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov dword [esp + 0x10], 2
mov eax, dword [esi]
mov edi, dword [esp + 0x20]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x104
or eax, ecx
jge 0x409fa2
push 0x104
mov ecx, esi
call fcn.004022e0
mov eax, dword [esi]
mov ecx, dword [esp + 0x18]
push edi
push 0x104
push eax
mov eax, dword [esp + 0x28]
push 0x49f6f4
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x409fdb
push ecx
push eax
call fcn.004613f7
add esp, 8
test eax, eax
jl 0x40a074
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x40a074
mov dword [ecx - 0xc], eax
mov edx, dword [esi]
xor ecx, ecx
mov word [edx + eax*2], cx
mov byte [esp + 0x10], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40a016
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x10], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a03b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x10], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a063
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0xc
ret
push 0x80070057
call fcn.004010b0
int3
Function at 0x40add0
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4949a0
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x4b9a40]
xor eax, esp
mov dword [esp + 0x214], eax
mov eax, dword [0x4b9a40]
xor eax, esp
push eax
lea eax, [esp + 0x21c]
mov dword fs:[0], eax
xor eax, eax
push 0x206
mov dword [esp + 0x228], 1
push eax
lea ecx, [esp + 0x1a]
push ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0x104
mov word [esp + 0x1c], ax
call fcn.004660c0
add esp, 0xc
push 0x4a0418
lea ecx, [esp + 0x10]
call fcn.00401bc0
mov eax, dword [esp + 0xc]
lea edx, [esp + 4]
push edx
push 0xf003f
push 0
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40aebb
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 8]
lea edx, [esp + 0x14]
push edx
push eax
push eax
mov eax, dword [esp + 0x240]
push eax
push ecx
mov dword [esp + 0x20], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40aebb
mov eax, dword [esp + 0x22c]
mov ecx, dword [eax - 0xc]
lea edx, [ecx + ecx]
mov ecx, dword [esp + 4]
push edx
push eax
mov eax, dword [esp + 0x238]
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40aee6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x224], 0
mov eax, dword [esp + 0x22c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40af11
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x224], 0xffffffff
mov eax, dword [esp + 0x230]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40af3f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x21c]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.00461095
add esp, 0x224
ret
Function at 0x40af70
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x2004]
mov eax, 0x2004
call fcn.00465940
push 0xffffffffffffffff
push 0x4930be
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4b9a40]
xor eax, ebp
mov dword [ebp + 0x2000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor esi, esi
push esi
push esi
push esi
push esi
push esi
push str.session
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 1
call fcn.00442f86
push esi
push esi
push 0x600002
mov byte [ebp - 4], 3
mov eax, dword [ebp + 0x200c]
push esi
push eax
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call fcn.00443c4c
mov ecx, dword [ebp + 0x2010]
push esi
push 0x80
push 2
push esi
push 2
push 0xc0000000
mov ebx, eax
push ecx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x14], edi
cmp edi, 0xffffffff
jne 0x40b07b
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.00443795
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0x200c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b049
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x2010]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b1b1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40b1b1
push 0x1ffe
lea edx, [ebp + 2]
xor ecx, ecx
push esi
push edx
mov word [ebp], cx
call fcn.004660c0
add esp, 0xc
mov dword [ebp - 0x1c], esi
mov eax, dword [ebx]
mov edx, dword [eax + 0x34]
push 0x1000
lea ecx, [ebp]
push ecx
mov ecx, ebx
call edx
push 0
mov esi, eax
lea eax, [ebp - 0x1c]
push eax
push esi
lea ecx, [ebp]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test esi, esi
jg 0x40b096
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 1
call fcn.00443795
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0x200c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b0fc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x2010]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b1b1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40b1b1
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2000]
xor ecx, ebp
call fcn.00461095
add ebp, 0x2004
mov esp, ebp
pop ebp
ret
Function at 0x40bd10
Capabilities:
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x494968
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push esi
push edi
mov eax, dword [0x4b9a40]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x44], edi
mov eax, dword [esp + 0x4c]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x14], esp
mov esi, esp
push eax
call fcn.00402330
add eax, 0x10
mov dword [esi], eax
add esp, 4
lea esi, [esp + 0x14]
call fcn.0040bc20
fldz
add esp, 4
fstp qword [esp + 0x2c]
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x2c]
push edx
push eax
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
cmp eax, 1
jne 0x40bda6
fild qword [esp + 0x14]
jmp 0x40bdaa
fld qword [esp + 0x2c]
call fcn.00468e16
mov esi, eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov edi, edx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bdd3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x44], 0xffffffff
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bdfb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, edi
mov eax, esi
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x3c
ret
Function at 0x40d4c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
call fcn.00448214
mov esi, dword [eax + 0xc]
movzx eax, word [esp + 0x10]
push 0x4a07f0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x40d4ed
pop edi
pop esi
pop ebp
ret 8
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x40d50d
pop ebx
pop edi
pop esi
pop ebp
ret 8
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
push esi
push eax
call fcn.0046a6a0
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
push 0
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ebx, dword [esp + 0x18]
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
test esi, esi
je 0x40d564
lea eax, [esi + 4]
push eax
push ebx
mov dword [esi], vtable.Gdiplus::Image.0
mov dword [eax], 0
call sub.gdiplus.dll_GdipLoadImageFromStream
mov dword [esi + 8], eax
jmp 0x40d566
xor esi, esi
push edi
mov dword [ebp], esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x18]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
pop ebx
xor eax, eax
cmp dword [ebp], eax
pop edi
pop esi
setne al
pop ebp
ret 8