joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4165a0
Capabilities:
Get memory capacity

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x478990]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push str.GlobalMemoryStatusEx
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x416622
push 0x40
lea eax, [ebp - 0x50]
push 0
push eax
call fcn.00441290
add esp, 0xc
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x50], 0x40
call esi
cmp eax, 1
jne 0x416622
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x44]
shrd eax, ecx, 0x14
shr ecx, 0x14
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043e7dc
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
xorps xmm0, xmm0
lea eax, [ebp - 0x30]
movdqa xmmword [ebp - 0x30], xmm0
push eax
movdqa xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0x30], 0x20
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x28]
xor ecx, ebp
shr eax, 0x14
pop esi
call fcn.0043e7dc
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret

Function at 0x4167c0
Capabilities:
Get session information
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x454be9
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x478990]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x20], 0
push 0x468518
mov ecx, esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], esi
mov dword [esi], 0
call fcn.00406740
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea ecx, [ebp - 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
push 5
push dword [ebp - 0x18]
mov dword [ebp - 0x14], 0
push 0
mov dword [ebp - 0x1c], 0
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x41687d
mov edx, dword [ebp - 0x1c]
test edx, edx
jne 0x416860
xor ecx, ecx
jmp 0x416874
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416865
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.004065f0
push dword [ebp - 0x1c]
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, esi
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.0043e7dc
mov esp, ebp
pop ebp
ret
Function at 0x416910
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x478990]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x120]
push eax
xor bl, bl
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp eax, 1
jne 0x416bdf
mov eax, dword [ebp + 8]
dec eax
cmp eax, 0x13
ja case.default.0x416953
jmp dword [eax*4 + 0x416bf0]
cmp dword [ebp - 0x11c], 0xa
jne 0x416bdf
cmp dword [ebp - 0x118], 0
jne 0x416bdf
mov bl, 1
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043e7dc
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x11c], 6
jne 0x416bdf
cmp dword [ebp - 0x118], 3
jne 0x416bdf
mov bl, 1
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043e7dc
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x11c], 6
jne 0x416bdf
cmp dword [ebp - 0x118], 2
jne 0x416bdf
mov bl, 1
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043e7dc
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x11c], 6
jne 0x416bdf
cmp dword [ebp - 0x118], 1
jne 0x416bdf
mov bl, 1
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043e7dc
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x11c], 6
jmp 0x416961
cmp dword [ebp - 0x11c], 5
jne 0x416bdf
cmp dword [ebp - 0x118], 0
jbe 0x416bdf
mov bl, 1
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043e7dc
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x11c], 0xa
jne 0x416bdf
cmp dword [ebp - 0x118], 0
jne 0x416bdf
cmp byte [ebp - 6], 1
jmp 0x41696e
cmp dword [ebp - 0x11c], 0xa
jne 0x416bdf
cmp dword [ebp - 0x118], 0
jne 0x416bdf
cmp byte [ebp - 6], 1
je 0x416bdf
mov bl, 1
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043e7dc
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x11c], 6
jne 0x416bdf
cmp dword [ebp - 0x118], 3
jne 0x416bdf
cmp byte [ebp - 6], 1
jmp 0x41696e
cmp dword [ebp - 0x11c], 6
jne 0x416bdf
cmp dword [ebp - 0x118], 3
jmp 0x416a7e
cmp dword [ebp - 0x11c], 6
jne 0x416bdf
cmp dword [ebp - 0x118], 2
jne 0x416bdf
cmp byte [ebp - 6], 1
jmp 0x41696e
cmp dword [ebp - 0x11c], 6
jne 0x416bdf
cmp dword [ebp - 0x118], 2
jmp 0x416a7e
cmp dword [ebp - 0x11c], 6
jne 0x416bdf
cmp dword [ebp - 0x118], 1
jne 0x416bdf
cmp byte [ebp - 6], 1
jmp 0x41696e
cmp dword [ebp - 0x11c], 6
jne 0x416bdf
cmp dword [ebp - 0x118], 1
jmp 0x416a7e
cmp dword [ebp - 0x11c], 6
jmp 0x416a71
cmp dword [ebp - 0x11c], 6
jmp 0x416a4e
cmp dword [ebp - 0x11c], 6
jne 0x416bdf
cmp dword [ebp - 0x118], 0
jne 0x416bdf
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x416bdf
mov bl, 1
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043e7dc
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x11c], 6
jne 0x416bdf
cmp dword [ebp - 0x118], 0
jne 0x416bdf
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
jmp 0x41696e
cmp dword [ebp - 0x11c], 5
jne 0x416bdf
cmp dword [ebp - 0x118], 1
jmp 0x41696e
cmp dword [ebp - 0x11c], 5
jmp 0x416961
xor bl, bl
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0043e7dc
mov esp, ebp
pop ebp
ret
Function at 0x417ba0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ecx]
lea edx, [ebp - 4]
push edx
call dword [eax + 0x18]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp - 4]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x417bd2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x41a100
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4551b1
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x478990]
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, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ecx, ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x30], 0
call fcn.00419e20
lea eax, [ebp - 0x1c]
push eax
push esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], 1
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x41a291
push esi
call fcn.0041c5d9
add esp, 4
mov edi, eax
push edi
push esi
push 0
push dword [ebp - 0x28]
mov dword [ebp - 0x2c], edi
call sub.VERSION.dll_GetFileVersionInfoW
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueW
call fcn.0041c8d4
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x41a1b0
push 0x80004005
call fcn.00406820
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x28], edi
test dword [ebp - 0x14], 0xfffffffc
mov dword [ebp - 4], 1
jbe 0x41a268
mov ecx, dword [ebp - 0x24]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
lea eax, [ebp - 0x28]
push str.StringFileInfo_04x_04xFileVersion
push eax
call fcn.00405f50
mov edi, dword [ebp - 0x28]
add esp, 0x10
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
push edi
push dword [ebp - 0x2c]
call sub.VERSION.dll_VerQueryValueW
call fcn.0041c8d4
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x41a21c
push 0x80004005
call fcn.00406820
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x34], esi
push dword [ebp - 0x20]
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 2
call fcn.004199e0
push eax
mov ecx, ebx
mov byte [ebp - 4], 3
call fcn.00419f60
lea ecx, [ebp - 0x68]
call fcn.00419ed0
add esi, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41a268
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x2c]
call fcn.0041c5e2
add edi, 0xfffffff0
add esp, 4
mov byte [ebp - 4], 0
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41a291
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
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.0043e7dc
mov esp, ebp
pop ebp
ret
Function at 0x41aa20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x455296
mov eax, dword fs:[0]
push eax
sub esp, 0x414
mov eax, dword [0x478990]
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 esi, dword [ebp + 8]
push str.SOFTWAREMicrosoft.NETFramework
lea ecx, [ebp - 0x41c]
xor bl, bl
mov dword [ebp - 0x41c], 0
call fcn.00406740
lea eax, [ebp - 0x418]
push eax
push 0x20019
push 0
push dword [ebp - 0x41c]
mov dword [ebp - 4], 0
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x418], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
or edi, 0xffffffff
test eax, eax
jne 0x41ab77
push 0x3fe
push eax
mov word [ebp - 0x410], ax
lea eax, [ebp - 0x40e]
push eax
mov dword [ebp - 0x414], 0x400
call fcn.00441290
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x410]
push eax
push 0
push 0
push str.InstallRoot
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41ab6b
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x420]
call fcn.00406740
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00406090
mov edx, dword [ebp - 0x420]
add edx, 0xfffffff0
mov byte [ebp - 4], bl
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41ab35
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi]
test eax, eax
jne 0x41ab3f
xor ecx, ecx
jmp 0x41ab51
push dword [eax - 8]
push eax
call fcn.0043ea2f
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x41abbb
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x41abbb
mov dword [eax - 0xc], ecx
mov eax, dword [esi]
xor edx, edx
mov word [eax + ecx*2], dx
mov eax, dword [esi]
cmp dword [eax - 0xc], edx
setne bl
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x41c]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x41ab9b
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
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.0043e7dc
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00406820
int3
Function at 0x41b200
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x455398
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x478990]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.ForceReboot
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], 0
call fcn.00406740
lea eax, [ebp - 0x24]
push eax
push 0x28
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x41b2b9
lea eax, [ebp - 0x1c]
push eax
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
push 0
push dword [ebp - 0x24]
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x14], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41b2b9
push str.do_Reboot
push dword [ebp - 0x28]
push 8
push 0x47d0b4
call fcn.00417de0
add esp, 0x10
push 0
push 0x12
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41b2dd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043e7dc
mov esp, ebp
pop ebp
ret
Function at 0x41b300
Capabilities:
Delete registry value
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4553d6
mov eax, dword fs:[0]
push eax
sub esp, 0x414
mov eax, dword [0x478990]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.0041c8d4
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x41b349
push 0x80004005
call fcn.00406820
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x420], eax
xor eax, eax
push 0x3fe
push eax
mov word [ebp - 0x410], ax
lea eax, [ebp - 0x40e]
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x414], 0x400
call fcn.00441290
add esp, 0xc
lea ecx, [ebp - 0x41c]
push str.RemoveReboot
mov dword [ebp - 0x41c], 0
call fcn.00406740
push 0x2d
push str.SoftwareMicrosoftWindowsCurrentVersionRun
lea ecx, [ebp - 0x420]
mov byte [ebp - 4], 1
call fcn.004065f0
mov esi, dword [ebp - 0x420]
lea eax, [ebp - 0x418]
push eax
push 0x2001f
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41b434
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x410]
push eax
push 0
push 0
push str.SIAStarter
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41b434
push str.SIAStarter
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push str.SIAStarter
push esi
push str.Remove_Run_Key__s__value__s
push dword [ebp - 0x41c]
push 8
push 0x47d0b4
call fcn.00417de0
add esp, 0x18
mov edx, dword [ebp - 0x41c]
add edx, 0xfffffff0
or edi, 0xffffffff
mov byte [ebp - 4], 0
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x41b45a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x41b478
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
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.0043e7dc
mov esp, ebp
pop ebp
ret
Function at 0x41b5b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, ecx
xorps xmm0, xmm0
movq qword [edi + 4], xmm0
movq qword [edi + 0xc], xmm0
mov dword [edi + 4], 0x10
mov dword [edi + 0x28], 1
test ebx, ebx
je 0x41b65f
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x41b65f
mov eax, ebx
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41b5f0
sub eax, edx
sar eax, 1
push esi
lea esi, [eax + 1]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041c5d9
push ebx
push esi
push eax
mov dword [ebp + 8], eax
call fcn.004416fa
add esp, 0x10
pop esi
test eax, eax
jne 0x41b647
push dword [edi + 8]
call fcn.0041c5e2
mov eax, dword [ebp + 8]
add esp, 4
mov dword [edi + 8], eax
pop edi
xor eax, eax
pop ebx
pop ebp
ret 4
mov eax, dword [ebp + 8]
push eax
call fcn.0041c5e2
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop ebx
pop ebp
ret 4
pop edi
mov eax, 2
pop ebx
pop ebp
ret 4
Function at 0x41f210
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x45565a
call fcn.00441f31
mov edi, ecx
xor esi, esi
cmp dword [edi + 0x6c], esi
jne 0x41f236
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x41f28a
call fcn.0041c8d4
push eax
lea ecx, [ebp - 0x10]
call fcn.00406840
mov ecx, dword [edi + 0x6c]
lea edx, [ebp - 0x10]
mov eax, dword [ecx]
push edx
mov dword [ebp - 4], esi
call dword [eax + 0x8c]
mov edi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push edi
call fcn.00441572
push eax
call fcn.00406240
add esp, 0x14
test edi, edi
je 0x41f27d
push edi
call fcn.00441e3b
pop ecx
mov esi, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00406870
mov eax, esi
call fcn.00441eff
ret 8

Function at 0x421939
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x478990]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x47bc44]
push esi
push edi
mov edi, dword [ebp + 8]
test eax, eax
jne 0x421985
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4219a2
push str.SetDefaultDllDirectories
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EncodePointer]
mov dword [0x47bc44], eax
jmp 0x42198e
push eax
call dword [sym.imp.KERNEL32.dll_DecodePointer]
mov esi, eax
test esi, esi
je 0x4219a2
push 0x800
push 0
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x421a0f
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x4219bd
xor eax, eax
jmp 0x421a0f
lea eax, [ebp - 0x210]
push eax
call fcn.00441e3b
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x4219ee
push 0x468514
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00442a42
add esp, 0xc
test eax, eax
jne 0x4219b9
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00442a42
add esp, 0xc
test eax, eax
jne 0x4219b9
lea eax, [ebp - 0x210]
push eax
call fcn.00425f35
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0043e7dc
leave
ret

Function at 0x4221a4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov esi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], esi
je 0x4221e9
call fcn.004204df
mov ebx, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4221e9
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x422205
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0041c4f8
mov ebx, eax
test edi, edi
je 0x422203
test esi, esi
je 0x422203
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x427e0b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov esi, edi
mov eax, ecx
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], esi
je 0x427e55
call fcn.004204df
mov ebx, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x427e52
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x427e8e
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov eax, dword [ebp - 4]
xor ebx, ebx
inc ebx
test edi, edi
je 0x427e77
push dword [ebp + 0x10]
mov edx, dword [eax]
push edi
push dword [ebp + 8]
mov ecx, eax
call dword [edx + 0x20]
mov ebx, eax
test esi, esi
je 0x427e77
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x68]
test ecx, ecx
je 0x427e8c
mov eax, dword [ecx]
push dword [ebp + 0x10]
call dword [eax + 0xa0]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x429705
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x42973b
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x429749
push str.SetFileAttributesTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x429749
push dword [esi]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x42974b
cmp dword [esi + 4], 0
je 0x429749
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop esi
pop ebp
ret 8
Function at 0x429750
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x478990]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor ecx, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], ecx
test esi, esi
je 0x429796
lea eax, [ebp - 0x28]
push eax
push ecx
push edi
mov ecx, esi
call fcn.004290d4
mov ebx, eax
neg ebx
sbb ebx, ebx
and ebx, dword [ebp - 0x28]
jmp 0x42979f
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4297b1
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042ba8c
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x20]
cmp ecx, ebx
je 0x4297e9
test bl, 1
je 0x4297e9
push ecx
push edi
test esi, esi
je 0x4297cf
mov ecx, esi
call fcn.00429705
jmp 0x4297d5
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x4297e6
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042ba8c
mov eax, dword [ebp - 0x2c]
lea ecx, [eax + 8]
mov eax, dword [ecx]
or eax, dword [ecx + 4]
je 0x4298c6
lea eax, [ebp - 0x44]
push eax
push ecx
call fcn.00428f7c
pop ecx
pop ecx
mov ecx, dword [ebp - 0x2c]
lea edx, [ecx + 0x10]
mov eax, dword [edx]
or eax, dword [edx + 4]
je 0x429825
lea eax, [ebp - 0x54]
push eax
push edx
call fcn.00428f7c
pop ecx
lea eax, [ebp - 0x54]
pop ecx
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x34], eax
mov eax, dword [ecx]
or eax, dword [ecx + 4]
je 0x42983e
lea eax, [ebp - 0x4c]
push eax
push ecx
call fcn.00428f7c
pop ecx
lea eax, [ebp - 0x4c]
pop ecx
mov dword [ebp - 0x38], eax
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push edi
test esi, esi
je 0x42985e
mov ecx, esi
call fcn.00429032
jmp 0x429864
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x30], eax
cmp eax, 0xffffffff
jne 0x42987c
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042ba8c
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x44]
push ecx
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x4298ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x30]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push esi
call fcn.0042ba8c
mov esi, dword [ebp - 0x3c]
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4298c6
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042ba8c
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x20], ebx
je 0x4298fb
test bl, 1
jne 0x4298fb
push dword [eax + 0x20]
push edi
test esi, esi
je 0x4298e4
mov ecx, esi
call fcn.00429705
jmp 0x4298ea
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x4298fb
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042ba8c
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043e7dc
leave
ret 0xc