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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebx]
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], ecx
je 0x4023a5
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 4]
push edx
push ecx
lea edx, [ebp - 8]
push edx
push ecx
push dword [ebp + 8]
push eax
call edi
cmp dword [ebp - 8], 1
je 0x40234e
cmp dword [ebp - 8], 2
jne 0x4023a4
push esi
mov esi, dword [ebp + 0xc]
call fcn.004015eb
mov eax, dword [ebp - 4]
shr eax, 1
inc eax
push eax
call fcn.004018bb
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [ebx]
call edi
test eax, eax
jne 0x4023a3
mov eax, dword [ebp - 4]
shr eax, 1
and word [esi + eax*2], 0
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x402395
push eax
call fcn.004926b1
pop ecx
mov edx, esi
call fcn.0040162b
mov dword [ebp - 0xc], 1
pop esi
pop edi
mov eax, dword [ebp - 0xc]
leave
ret 8

Function at 0x4023ac
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x11c
push esi
push edi
mov esi, 0x11c
push esi
xor edi, edi
lea eax, [ebp - 0xa4]
push edi
push eax
call fcn.004923b0
add esp, 0xc
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xa4], esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetVersionExW]
push eax
call esi
cmp eax, edi
jne 0x402405
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa4], 0x114
call esi
cmp eax, edi
je 0x4024b3
mov eax, dword [ebp - 0x94]
dec eax
je 0x40249f
dec eax
jne 0x4024b3
cmp dword [ebp - 0xa0], 6
jne 0x402450
inc eax
cmp dword [ebp - 0x9c], eax
jne 0x402438
xor ecx, ecx
cmp byte [ebp + 0x76], al
setne cl
add ecx, 8
jmp 0x40244c
cmp dword [ebp - 0x9c], edi
jne 0x40248c
xor ecx, ecx
cmp byte [ebp + 0x76], al
setne cl
lea ecx, [ecx + ecx + 7]
mov edi, ecx
jmp 0x4024b3
cmp dword [ebp - 0xa0], 5
jne 0x40247f
cmp dword [ebp - 0x9c], 2
jne 0x402466
push 5
jmp 0x40249c
cmp dword [ebp - 0x9c], 1
jne 0x402473
push 6
jmp 0x40249c
cmp dword [ebp - 0x9c], edi
jne 0x4024b3
push 3
jmp 0x40249c
cmp dword [ebp - 0xa0], 4
ja 0x4024b3
push 4
jmp 0x40249c
cmp dword [ebp - 0x9c], 2
jne 0x4024b3
cmp byte [ebp + 0x76], al
jne 0x4024b3
push 0xa
pop edi
jmp 0x4024b3
mov eax, dword [ebp - 0x98]
and eax, 0xffff0000
cmp eax, 0x45a0000
sbb edi, edi
inc edi
inc edi
mov eax, edi
pop edi
pop esi
add ebp, 0x78
leave
ret
Function at 0x40258b
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
lea eax, [ebp - 4]
xor edi, edi
push eax
push dword [ebp + 0xc]
mov dword [ebx + 4], edi
mov dword [ebx + 8], edi
mov dword [ebx + 0xc], edi
mov dword [ebp - 4], edi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 8], eax
mov eax, dword [0x519a54]
mov esi, 0x519a54
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov ecx, esi
lea esi, [ebp - 0x28]
mov dword [ebp - 0x2c], eax
call fcn.004016bf
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
push dword [eax]
lea eax, [ebp - 0x2c]
push eax
call fcn.00401b70
cmp dword [ebp - 4], edi
mov dword [ebp + 0xc], edi
jle 0x4026c1
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
lea edi, [eax + ecx*4]
mov eax, dword [edi]
movzx ecx, word [eax]
cmp cx, 0x2f
je 0x402633
cmp cx, 0x2d
je 0x402633
push eax
lea eax, [ebp - 0xc]
call fcn.004019de
lea eax, [ebp - 0xc]
push eax
lea edi, [ebp - 0x24]
call fcn.0040567f
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.0040153b
jmp 0x4026b2
lea eax, [ebp - 0x2c]
push eax
mov esi, ebx
call fcn.004058fb
mov eax, dword [edi]
inc eax
inc eax
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00401b70
push 0x3d
xor ecx, ecx
lea esi, [ebp - 0x2c]
call fcn.00412061
mov esi, eax
cmp esi, 0xffffffff
je 0x4026a7
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax - 0xc]
lea eax, [ebp - 0x10]
sub ecx, esi
push eax
dec ecx
lea eax, [ebp - 0x2c]
call fcn.004054b7
lea edi, [ebp - 0x28]
call fcn.0040208c
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040153b
mov ecx, esi
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x2c]
call fcn.00401ad2
lea edi, [ebp - 0x2c]
call fcn.0040208c
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.0040153b
lea ebx, [ebp - 0x24]
call fcn.004056da
mov ebx, dword [ebp + 8]
inc dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 4]
jl 0x4025f7
lea eax, [ebp - 0x2c]
push eax
mov esi, ebx
call fcn.004058fb
lea edi, [ebp - 0x2c]
call fcn.00402806
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8
Function at 0x4030cd
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
push esi
inc ebx
cmp dword [ebp + 0xc], 0x4e
push edi
mov edi, eax
jne 0x403109
mov eax, dword [ebp + 0x14]
cmp dword [eax + 4], 0x3e8
jne 0x403109
mov ecx, edi
mov dword [edi + 0x388], ebx
call fcn.00403045
mov esi, dword [ebp + 0x18]
mov dword [esi], eax
cmp dword [edi + 0x388], 0
je 0x40310c
mov eax, ebx
jmp 0x403153
mov esi, dword [ebp + 0x18]
push 0
push esi
push dword [ebp + 0x14]
mov ecx, edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0044123b
test eax, eax
jne 0x403105
mov eax, dword [ebp + 0xc]
cmp eax, 0x402
jne 0x40315a
push 5
push dword [edi + 4]
lea eax, [edi + 0x388]
mov dword [ebp + 0xc], eax
mov dword [eax], ebx
call dword [sym.imp.USER32.dll_ShowWindow]
and dword [esi], 0
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
jne 0x403105
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
cmp eax, 0x403
jne 0x403194
mov eax, dword [edi + 0x390]
mov dword [edi + 0x28], eax
xor eax, eax
push eax
push eax
push eax
mov dword [edi + 0x388], ebx
mov dword [edi + 0x378], ebx
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageW]
and dword [esi], 0
cmp dword [edi + 0x388], 0
jmp 0x40314f
cmp eax, 0x465
jne 0x4031d0
xor eax, eax
lea esi, [edi + 0x2c]
push eax
mov dword [edi + 0x388], ebx
call fcn.0040cb3f
mov eax, dword [edi + 0x30]
add esi, 0x2a0
push 5
lea ecx, [edi + 0x3bc]
mov dword [edi + 0x3f4], esi
call fcn.0045f484
mov eax, dword [ebp + 0x18]
and dword [eax], 0
jmp 0x40318b
cmp eax, 0x110
jne 0x403151
lea eax, [edi + 0x388]
push ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax], ebx
mov dword [ebp + 0xc], eax
mov eax, esp
mov dword [eax], ecx
call fcn.00402b06
mov dword [esi], eax
jmp 0x403149

Function at 0x4036c5
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
push ebx
push edi
push dword [ebp + 0xc]
lea ebx, [ebp - 4]
push dword [ebp + 8]
call fcn.00403738
xor edi, edi
cmp dword [esi], edi
pop ecx
pop ecx
je 0x40371f
mov eax, esi
push dword [eax]
lea eax, [ebp - 4]
lea ecx, [ebp - 0xc]
call fcn.0041e7cc
pop ecx
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebx, eax
mov eax, dword [ebp - 0xc]
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
call fcn.0040153b
test bl, bl
jne 0x403726
inc edi
lea eax, [esi + edi*4]
cmp dword [eax], 0
jne 0x4036e9
mov dword [ebp - 8], 1
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040153b
mov eax, dword [ebp - 8]
pop edi
pop ebx
leave
ret
Function at 0x403d7e
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x519a54]
push ebx
push esi
push edi
xor edi, edi
mov ecx, 0x519a54
mov dword [ebp - 4], edi
call dword [eax + 0xc]
push 1
mov ebx, eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
add ebx, 0x10
push reloc.OLEAUT32.dll_SysReAllocString
lea esi, [ebp - 4]
mov dword [ebp - 8], ebx
call fcn.004022c9
test eax, eax
je 0x403dd0
lea eax, [ebp - 8]
push eax
push str.KAV7NEEDREBOOT
mov ebx, esi
call fcn.00402317
test eax, eax
mov ebx, dword [ebp - 8]
je 0x403dd0
inc edi
lea eax, [ebx - 0x10]
call fcn.0040153b
cmp dword [ebp - 4], 0
je 0x403de7
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40514b
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
xor edi, edi
push 0x3e
lea eax, [ebp - 0x4e]
push edi
push eax
mov word [ebp - 0x50], di
call fcn.004923b0
add esp, 0xc
push str.SOFTWAREKingsoftAntivirusSetup
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], vtable.CKANRegisterKey.0
mov dword [ebp - 8], edi
call fcn.00445efe
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00445f86
mov eax, dword [0x519a54]
mov ecx, 0x519a54
call dword [eax + 0xc]
add eax, 0x10
cmp dword [ebp + 0xc], edi
mov dword [ebp - 4], eax
mov eax, 0x4f6898
mov ecx, str.coverinstall
jne 0x4051b1
mov ecx, eax
cmp dword [ebp + 8], edi
je 0x4051bb
mov eax, 0x4ed5dc
push ecx
push eax
lea eax, [ebp - 4]
push 0x4ed5ec
push eax
call fcn.0041e7b9
mov ebx, dword [ebp - 4]
add esp, 0x10
push ebx
push str.installparam
lea esi, [ebp - 0xc]
call fcn.00445f45
lea eax, [ebp - 0x50]
push eax
call fcn.0049380a
cmp eax, 0x5e
pop ecx
je 0x4051f5
cmp eax, 0xa8
jne 0x405218
cmp dword [ebp - 8], edi
mov dword [ebp + 0xc], 1
je 0x405218
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push edi
push str.LockNavigationBar
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [ebx - 0x10]
call fcn.0040153b
lea ecx, [ebp - 0xc]
call fcn.00445ee1
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40573d
Capabilities:
Log keystrokes

Disassembly:
sub esp, 0xc
mov eax, dword [0x51a990]
push ebx
push ebp
push edi
xor edi, edi
cmp eax, edi
mov dword [esp + 0x10], edi
je 0x405757
mov ebx, dword [eax + 4]
jmp 0x405759
xor ebx, ebx
cmp ebx, edi
jne 0x405769
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov ebx, eax
cmp ebx, edi
je 0x40578e
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp ebx, eax
je 0x40578e
push ebx
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x40578e
push edi
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [esp + 0x10], 1
push dword [esp + 0x1c]
mov eax, esi
push ebx
mov dword [esi + 0x334], edi
call fcn.00405f4c
cmp eax, edi
mov dword [esp + 0xc], eax
jne 0x4057b8
push 1
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
jmp 0x4058c0
mov edx, eax
call fcn.0040b203
cmp dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
jne 0x4057d4
lea eax, [esi + 4]
push eax
mov eax, ebx
call fcn.0040b0b6
cmp dword [esi + 0x324], edi
je 0x405867
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebp, eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
push edi
push edi
push edi
push 0x2001
mov dword [esp + 0x2c], eax
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0x43
push edi
push edi
push edi
push edi
push edi
push dword [esp + 0x24]
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp ebp, dword [esp + 0x1c]
je 0x40582c
push 1
push ebp
push dword [esp + 0x24]
call dword [sym.imp.USER32.dll_AttachThreadInput]
push dword [esp + 0xc]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp ebp, dword [esp + 0x1c]
je 0x405848
push edi
push ebp
push dword [esp + 0x24]
call dword [sym.imp.USER32.dll_AttachThreadInput]
push 0xffffffffffffffec
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x80000
je 0x405867
push edi
push edi
push 0xf
push dword [esi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, esi
call fcn.004060da
push 0x97
push edi
lea ebp, [esi + 4]
push ebp
mov dword [esi + 0x334], edi
call fcn.0041e79c
cmp dword [esp + 0x10], edi
je 0x4058a8
push 1
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
cmp ebx, edi
je 0x4058a8
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [ebp]
jne 0x4058a8
push ebx
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov edx, dword [esp + 0x14]
call fcn.0040b203
push dword [ebp]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [esi + 0x338]
pop edi
pop ebp
pop ebx
add esp, 0xc
ret 4
Function at 0x40595a
Capabilities:
Log keystrokes

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov edi, eax
mov eax, dword [0x51a990]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x1c], ebp
je 0x405977
mov esi, dword [eax + 4]
jmp 0x405979
xor esi, esi
cmp esi, ebp
jne 0x405989
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov esi, eax
cmp esi, ebp
je 0x4059ae
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp esi, eax
je 0x4059ae
push esi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4059ae
push ebp
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [esp + 0x1c], 1
push ecx
mov eax, esp
mov dword [edi + 0x378], ebp
push esi
mov ebx, edi
mov dword [eax], ebp
call fcn.0040621e
mov ebx, eax
cmp ebx, ebp
jne 0x4059d7
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
jmp 0x405ab3
mov edx, ebx
call fcn.0040b203
mov dword [esp + 0x20], eax
lea eax, [edi + 4]
push eax
mov eax, esi
call fcn.0040b0b6
cmp dword [edi + 0x36c], ebp
je 0x405a61
push ebp
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
push ebp
push ebp
push ebp
push 0x2001
mov dword [esp + 0x24], eax
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0x43
push ebp
push ebp
push ebp
push ebp
push ebp
push ebx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x14]
je 0x405a44
push 1
push eax
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_AttachThreadInput]
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x14]
je 0x405a61
push ebp
push eax
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_AttachThreadInput]
call fcn.00488ed6
push 0x97
push ebp
lea ebx, [edi + 4]
push ebx
mov dword [edi + 0x378], ebp
call fcn.0041e79c
cmp dword [esp + 0x1c], ebp
je 0x405a9f
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
cmp esi, ebp
je 0x405a9f
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [ebx]
jne 0x405a9f
push esi
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov edx, dword [esp + 0x20]
call fcn.0040b203
push dword [ebx]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [edi + 0x28]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x405abb
Capabilities:
Log keystrokes

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov edi, eax
mov eax, dword [0x51a990]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x1c], ebp
je 0x405ad8
mov esi, dword [eax + 4]
jmp 0x405ada
xor esi, esi
cmp esi, ebp
jne 0x405aea
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov esi, eax
cmp esi, ebp
je 0x405b0f
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp esi, eax
je 0x405b0f
push esi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x405b0f
push ebp
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [esp + 0x1c], 1
push ecx
mov eax, esp
mov dword [edi + 0x378], ebp
push esi
mov ebx, edi
mov dword [eax], ebp
call fcn.0040637d
mov ebx, eax
cmp ebx, ebp
jne 0x405b38
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
jmp 0x405c14
mov edx, ebx
call fcn.0040b203
mov dword [esp + 0x20], eax
lea eax, [edi + 4]
push eax
mov eax, esi
call fcn.0040b0b6
cmp dword [edi + 0x36c], ebp
je 0x405bc2
push ebp
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
push ebp
push ebp
push ebp
push 0x2001
mov dword [esp + 0x24], eax
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0x43
push ebp
push ebp
push ebp
push ebp
push ebp
push ebx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x14]
je 0x405ba5
push 1
push eax
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_AttachThreadInput]
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x14]
je 0x405bc2
push ebp
push eax
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_AttachThreadInput]
call fcn.00488ed6
push 0x97
push ebp
lea ebx, [edi + 4]
push ebx
mov dword [edi + 0x378], ebp
call fcn.0041e79c
cmp dword [esp + 0x1c], ebp
je 0x405c00
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
cmp esi, ebp
je 0x405c00
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [ebx]
jne 0x405c00
push esi
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov edx, dword [esp + 0x20]
call fcn.0040b203
push dword [ebx]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [edi + 0x28]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x40a505
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push dword [ebp + 0xc]
mov esi, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov edi, eax
test edi, edi
jne 0x40a524
xor eax, eax
jmp 0x40a574
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
mov dword [ebp - 8], eax
je 0x40a520
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x40a520
push ebx
lea ebx, [edi + 1]
push ebx
call fcn.00401ee0
test eax, eax
je 0x40a560
push edi
push dword [ebp - 4]
push eax
call fcn.00492ac0
add esp, 0xc
mov eax, ebx
call fcn.0040a455
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_FreeResource]
xor eax, eax
inc eax
pop ebx
pop edi
pop esi
leave
ret

Function at 0x40a578
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, eax
mov eax, dword [esi]
xor ebx, ebx
cmp dword [eax - 0xc], ebx
push edi
mov dword [ebp - 8], ebx
je 0x40a655
mov eax, dword [0x519a54]
mov ecx, 0x519a54
call dword [eax + 0xc]
push dword [ebp + 0x10]
add eax, 0x10
push dword [ebp + 8]
mov dword [ebp - 4], eax
push dword [esi]
lea eax, [ebp - 4]
push str._s_d._s
push eax
call fcn.0041e7b9
add esp, 0x14
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp + 0x10], eax
je 0x40a64a
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov edi, eax
cmp edi, ebx
je 0x40a641
mov esi, dword [ebp + 0xc]
push ebx
lea eax, [ebp + 8]
push eax
push edi
lea eax, [edi + 0xa]
push eax
mov dword [ebp + 8], ebx
call fcn.00401ee0
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x40a638
cmp dword [ebp + 8], edi
jne 0x40a638
mov eax, edi
call fcn.0040a455
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040153b
xor eax, eax
inc eax
jmp 0x40a658
xor eax, eax
mov edx, esi
call fcn.00401ec0
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040153b
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40a7f4
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
test byte [esi + 0x14], 2
je 0x40a84d
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
sub eax, ecx
je 0x40a83e
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
sub edx, eax
je 0x40a83e
mov edx, dword [esi + 0x10]
push 0x11
push 0
push 0
sub ecx, edx
push ecx
sub eax, edx
push eax
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x40a84d
push 0
push dword [esi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
and byte [esi + 0x14], 0xfd
leave
ret 4
Function at 0x40a851
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 0xc], 1
push edi
mov edi, eax
jne 0x40a871
push 0
push dword [edi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
and byte [edi + 0x14], 0xfd
jmp 0x40a8ce
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
je 0x40a8d3
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
je 0x40a8d3
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x40a8ce
or byte [edi + 0x14], 4
mov al, byte [edi + 0x14]
test al, 2
jne 0x40a8c5
push dword [ebp + 8]
or al, 2
mov byte [edi + 0x14], al
call fcn.00409f49
push 8
push dword [edi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x40a8ce
cmp dword [edi + 0x18], esi
je 0x40a8ce
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], esi
jmp 0x40a8e2
push 0
push dword [edi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
and byte [edi + 0x14], 0xfd
pop edi
leave
ret 8

Function at 0x40c7f4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
xor ebx, ebx
lea edi, [esi + 0x2c0]
cmp dword [edi], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x40c81f
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov dword [edi], ebx
mov eax, dword [esi + 0x2b4]
cmp eax, ebx
je 0x40c8fe
push eax
call fcn.0041e2dd
mov edi, eax
cmp edi, ebx
pop ecx
je 0x40c8b3
mov eax, dword [edi]
push 2
push ebx
mov ecx, edi
call dword [eax + 0x28]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x34]
test eax, eax
je 0x40c858
push 1
push edi
push esi
call fcn.0040b006
mov eax, dword [esi + 0x2b4]
cmp eax, dword [esi + 0x2b0]
jne 0x40c8b3
movzx eax, word [ebp + 0x10]
movzx ecx, word [ebp + 0xc]
shl eax, 0x10
or eax, ecx
push eax
push dword [ebp + 8]
mov ecx, edi
push 0x202
call fcn.0041e51f
mov eax, dword [edi + 0x40]
cmp eax, ebx
je 0x40c8a2
cmp word [eax], bx
je 0x40c8a2
push 1
push ebx
push ebx
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x40c8b3
mov eax, dword [edi + 0x10]
cmp eax, ebx
je 0x40c8b3
mov dword [ebp - 4], 1
mov dword [ebp - 8], eax
cmp dword [ebp - 4], ebx
mov dword [esi + 0x2b4], ebx
je 0x40c8fe
mov eax, dword [esi + 4]
push eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x1c], eax
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
push dword [esi + 4]
mov dword [ebp - 0xc], eax
call dword [sym.imp.USER32.dll_GetParent]
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp - 0x18]
push 0x4e
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop ebx
leave
ret 0xc