joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40bcf0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x4f804c
call sym._EnterCriticalSection_4
mov ebx, dword [0x4f8044]
sub esp, 4
test ebx, ebx
je 0x40bd3b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x40bd34
test esi, esi
je 0x40bd34
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x40bd10
mov dword [esp], 0x4f804c
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x40bf20
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x40bf70
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x40c048
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x40bfae
cmp eax, 4
jne 0x40bfd0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x40bfbe
cmp edx, 4
je 0x40bfbe
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.0040bf20

Function at 0x40c5c0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
call sym._GetLastError_0
mov esi, eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call sym._SetLastError_4
sub esp, 4
mov eax, ebx
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x40c5f0
Capabilities:
Set thread local storage value

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sym._TlsSetValue_8
sub esp, 8
test eax, eax
je 0x40c614
xor eax, eax
add esp, 0x1c
ret
add esp, 0x1c
jmp sym._GetLastError_0
Function at 0x41dfe0
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
cmp byte [0x4b0abc], 0
jne 0x41e0b4
mov byte [0x4b0abc], 1
call sym.___cxa_current_exception_type
test eax, eax
je 0x41e14e
mov ebx, dword [eax + 4]
xor eax, eax
cmp byte [ebx], 0x2a
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp + 0x1c], 0xffffffff
sete al
add ebx, eax
lea eax, [esp + 0x1c]
mov dword [esp], ebx
mov dword [esp + 0xc], eax
call sym.___cxa_demangle
mov esi, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x30
mov ebp, eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_after_throwing_an_instance_of_
lea edi, [esi + 0x40]
mov dword [esp + 0xc], edi
call sym._fwrite
cmp dword [esp + 0x1c], 0
mov dword [esp + 4], edi
je 0x41e0aa
mov dword [esp], ebx
call sym._fputs
lea eax, [esi + 0x40]
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp], 0x4b15d5
mov dword [esp + 0xc], eax
call sym._fwrite
cmp dword [esp + 0x1c], 0
je 0x41e0e1
call sym.___cxa_rethrow
mov dword [esp], ebp
call sym._fputs
jmp 0x41e07b
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1d
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_recursively_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sym._fwrite
call sym._abort
mov dword [esp], ebp
call sym._free
jmp 0x41e0a5
call sym._abort
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x2d
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_without_an_active_exception_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sym._fwrite
jmp 0x41e149
Function at 0x432005
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x69e539b3
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x432024
nop
nop
mov eax, section..data
mov ebx, 0x42f314
nop
mov ecx, 0x58d864f1
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x432084
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x401a90
Capabilities:
Get token membership

Disassembly:
sub esp, 0x14
mov eax, dword [0x4585d8]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
xor ebx, ebx
lea eax, [esp + 8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x30], ebx
mov byte [esp + 0x38], bl
mov byte [esp + 0x39], bl
mov byte [esp + 0x3a], bl
mov byte [esp + 0x3b], bl
mov byte [esp + 0x3c], bl
mov byte [esp + 0x3d], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [esp + 4], eax
cmp eax, ebx
je 0x401b0d
mov eax, dword [esp + 8]
lea edx, [esp + 4]
push edx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x401afe
mov dword [esp + 4], ebx
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x14]
pop ebx
xor ecx, esp
call fcn.0042beff
add esp, 0x14
ret

Function at 0x401d60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401d79
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401db4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401db0
lea ebx, [ebx]
cmp esi, eax
jae 0x401db4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401da0
cmp esi, eax
jb 0x401dba
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x4065d0
Capabilities:
Check os version
Get system information on windows

Disassembly:
sub esp, 0x144
mov eax, dword [0x4585d8]
xor eax, esp
mov dword [esp + 0x140], eax
push 0x114
lea eax, [esp + 0x28]
push 0
push eax
mov dword [esi], 0
mov dword [esi + 4], 5
call fcn.0042dd70
add esp, 0xc
push str.GetNativeSystemInfo
push str.kernel32.dll
mov dword [esp + 0x2c], 0x114
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x406630
lea ecx, [esp]
push ecx
call eax
jmp 0x40663a
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [esp]
cmp eax, 9
jg 0x40665e
je 0x406656
test eax, eax
je 0x406665
cmp eax, 6
jne 0x406665
mov dword [esi], 1
jmp 0x406673
mov dword [esi], 2
jmp 0x406673
cmp eax, 0xffff
je 0x40666d
mov dword [esi], 0
jmp 0x406673
mov dword [esi], 3
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [esp + 0x28]
push eax
call edi
test eax, eax
jne 0x40669d
xor eax, eax
pop edi
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.0042beff
add esp, 0x144
ret
push 0x11c
lea ecx, [esp + 0x2c]
push 0
push ecx
call fcn.0042dd70
add esp, 0xc
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x2c], 0x11c
call edi
test al, al
jne 0x4066d7
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x2c], 0x114
call edi
test eax, eax
je 0x406685
mov eax, dword [esp + 0x38]
sub eax, 1
je 0x406774
sub eax, 1
je 0x4066f5
mov dword [esi + 4], 0xa
jmp 0x4067a2
mov eax, dword [esp + 0x2c]
cmp eax, 4
ja 0x406705
mov dword [esi + 4], 3
cmp eax, 5
jne 0x406742
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x40671e
mov dword [esi + 4], 4
jmp 0x4067a2
cmp eax, 1
je 0x406739
cmp eax, 2
jne 0x4067a2
cmp byte [esp + 0x142], 1
mov dword [esi + 4], 6
jne 0x4067a2
mov dword [esi + 4], 5
jmp 0x4067a2
cmp eax, 6
jne 0x4067a2
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x406758
mov dword [esi + 4], 7
jmp 0x4067a2
cmp eax, 1
jne 0x406766
mov dword [esi + 4], 8
jmp 0x4067a2
cmp eax, 2
jne 0x4067a2
mov dword [esi + 4], 9
jmp 0x4067a2
cmp dword [esp + 0x2c], 4
jne 0x4067a2
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x406788
mov dword [esi + 4], eax
jmp 0x4067a2
cmp eax, 0xa
jne 0x406796
mov dword [esi + 4], 1
jmp 0x4067a2
cmp eax, 0x5a
jne 0x4067a2
mov dword [esi + 4], 2
mov ecx, dword [esp + 0x144]
pop edi
xor ecx, esp
mov eax, 1
call fcn.0042beff
add esp, 0x144
ret
Function at 0x4067f0
Capabilities:
Check mutex on windows
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4447fd
mov eax, dword fs:[0]
push eax
sub esp, 0x4d8
push ebx
push esi
push edi
mov eax, dword [0x4585d8]
xor eax, esp
push eax
lea eax, [esp + 0x4e8]
mov dword fs:[0], eax
mov edi, ecx
push 0x44c890
push 1
xor ebx, ebx
push ebx
mov dword [esp + 0x28], 8
mov dword [esp + 0x2c], 0xff
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40690f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x14]
push eax
push 0x406b00
mov dword [esp + 0x1c], ebx
call dword [sym.imp.USER32.dll_EnumWindows]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4069de
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.USER32.dll_IsIconic]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
je 0x4068a3
mov eax, dword [esp + 0x14]
push 9
push eax
call esi
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x4068bb
mov edx, dword [esp + 0x14]
push 5
push edx
call esi
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.USER32.dll_SetActiveWindow]
push ecx
call esi
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.USER32.dll_GetLastActivePopup]
push eax
call esi
mov eax, dword [esp + 0x14]
push 0x202
push ebx
push 0x1425
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
mov ecx, dword [esp + 0x4e8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea esi, [esp + 0x14]
call fcn.004065d0
call fcn.00401a90
test eax, eax
jne 0x40693e
cmp dword [esp + 0x18], 7
jge 0x40693e
push ebx
push 4
push 0x44c8c8
call fcn.0040f9dd
cmp eax, 6
jne 0x4069de
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, edi
call fcn.004184cd
push ebx
call fcn.0041956e
add esp, 4
push ebx
lea edx, [esp + 0x28]
push edx
push 0x45cbf8
mov dword [esp + 0x30], 1
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call sub.gdiplus.dll_GdiplusStartup
push 0x1c
call fcn.0040f1d6
add esp, 4
cmp eax, ebx
je 0x406994
mov esi, eax
call fcn.004013e0
jmp 0x406996
xor eax, eax
push 0x44c908
mov ecx, edi
mov dword [0x45cbf4], eax
mov dword [eax], ebx
mov dword [eax + 0x18], ebx
call fcn.00419a41
lea eax, [esp + 0x34]
push eax
call fcn.00406b80
lea ecx, [esp + 0x34]
mov dword [esp + 0x4f0], ebx
mov dword [edi + 0x20], ecx
call fcn.00411c5a
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0x4f4], 0xffffffff
call fcn.00406a00
xor eax, eax
mov ecx, dword [esp + 0x4e8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4087b0
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push 0xffffffffffffffff
push 0x444388
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4585d8]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
call fcn.0040f605
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4087ec
push 0x80004005
call fcn.00402470
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 8], esi
push 0x8e
mov dword [esp + 0x18], 0
call fcn.0040faf7
test eax, eax
je 0x408825
push 0x8e
push eax
lea ecx, [esp + 0x10]
call fcn.00401ea0
mov esi, dword [esp + 8]
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
or edx, 0xffffffff
cmp eax, 2
lea eax, [esi - 0x10]
mov dword [esp + 0x14], 0xffffffff
lea ecx, [eax + 0xc]
jne 0x408875
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40885f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408888
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x4088a0
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x4442d8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x4585d8]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
call fcn.0040f605
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4088df
push 0x80004005
call fcn.00402470
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x10], esi
push 0x8f
mov dword [esp + 0x24], 0
call fcn.0040faf7
test eax, eax
je 0x408918
push 0x8f
push eax
lea ecx, [esp + 0x18]
call fcn.00401ea0
mov esi, dword [esp + 0x10]
push esi
push 0
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
jne 0x40896a
push str.FindWindow_Fail
call fcn.004045d0
add esp, 4
lea eax, [esi - 0x10]
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408956
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x18
ret
lea ecx, [esp + 0x14]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edx, dword [esp + 0x14]
push edx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x4089aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.TerminateProcess_Fail_error_id_is__d
call fcn.004045d0
add esp, 8
jmp 0x408932
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi - 0x10]
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4089d5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x18
ret
Function at 0x40ef00
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push edi
mov edi, eax
mov eax, dword [edi]
test eax, eax
jne 0x40ef0d
pop edi
ret 8
movzx edx, word [esp + 8]
push esi
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x40ef27
pop esi
pop edi
ret 8
mov eax, dword [edi]
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x40ef83
mov ecx, dword [edi]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40ef83
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x40ef83
mov edx, dword [esp + 0x14]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
mov esi, eax
lea eax, [esp + 0x14]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40ef8b
pop ebx
pop esi
xor eax, eax
pop edi
ret 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop esi
mov eax, 1
pop edi
ret 8

Function at 0x40f000
Capabilities:
Delete file
Move file

Disassembly:
push 0xffffffffffffffff
push 0x443e48
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4585d8]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
lea ecx, [esp + 8]
call fcn.0041b5f7
push 0
push esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 0
call fcn.0041b68f
test eax, eax
jne 0x40f078
push esi
push str.UnPackFromRes::DelFiles___Cant_find__s
call fcn.004045d0
add esp, 8
lea ecx, [esp + 8]
mov dword [esp + 0x28], 0xffffffff
call fcn.0041b620
mov eax, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
add esp, 0x28
ret
lea ecx, [esp + 8]
call fcn.0041b211
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40f052
push 4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x40f052
lea ecx, [esp + 8]
mov dword [esp + 0x28], 0xffffffff
call fcn.0041b620
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
add esp, 0x28
ret

Function at 0x41035d
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x4434c1
call fcn.0042d728
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x410382
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x4103c8
lea ecx, [ebp - 0x10]
call fcn.00402440
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040f295
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00402530
mov eax, esi
call fcn.0042d800
ret 8
Function at 0x411e92
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x411eb6
cmp dword [edi + 0x54], 0
jne 0x411eb6
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0041b18d
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00411e53
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4174e7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x41752e
call fcn.0041b18d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41752e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x41754a
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0041705f
mov esi, eax
test edi, edi
je 0x417548
test ebx, ebx
je 0x417548
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41909d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x4190e5
call fcn.0041b18d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4190e5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x419128
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x419111
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x419111
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x419125
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x42beff
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4585d8]
jne 0x42bf09
repz ret
jmp fcn.00431b3a
Function at 0x43ad85
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00431549
and dword [ebp - 4], 0
cmp dword [0x45c718], 0
mov ebx, eax
jne 0x43ae36
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x43aee7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x43aee7
push eax
call fcn.004314d7
mov dword [esp], 0x44a77c
push edi
mov dword [0x45c718], eax
call esi
push eax
call fcn.004314d7
mov dword [esp], 0x44a768
push edi
mov dword [0x45c71c], eax
call esi
push eax
call fcn.004314d7
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x45c720], eax
call esi
push eax
call fcn.004314d7
pop ecx
mov dword [0x45c728], eax
test eax, eax
je 0x43ae36
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004314d7
pop ecx
mov dword [0x45c724], eax
mov eax, dword [0x45c724]
cmp eax, ebx
je 0x43ae8e
cmp dword [0x45c728], ebx
je 0x43ae8e
push eax
call fcn.00431552
push dword [0x45c728]
mov esi, eax
call fcn.00431552
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x43ae8e
test edi, edi
je 0x43ae8e
call esi
test eax, eax
je 0x43ae85
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x43ae85
test byte [ebp - 0xc], 1
jne 0x43ae8e
or dword [ebp + 0x10], 0x200000
jmp 0x43aec7
mov eax, dword [0x45c71c]
cmp eax, ebx
je 0x43aec7
push eax
call fcn.00431552
pop ecx
test eax, eax
je 0x43aec7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x43aec7
mov eax, dword [0x45c720]
cmp eax, ebx
je 0x43aec7
push eax
call fcn.00431552
pop ecx
test eax, eax
je 0x43aec7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45c718]
call fcn.00431552
pop ecx
test eax, eax
je 0x43aee7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x43aee9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret