joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43b17c
Capabilities:
Get number of processors

Disassembly:
mov eax, 0x6104ea
call fcn.0060cc48
push ecx
push ecx
and dword [ebp - 0x10], 0
mov eax, 0x20e2
push ebx
mov ebx, ecx
push esi
push edi
push 8
mov word [ebx + 0x30], ax
lea ecx, [ebx + 4]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
call fcn.00416b68
push dword [ebp + 0xc]
mov ecx, ebx
call fcn.00416ed4
push dword [ebp + 0x10]
mov ecx, ebx
call fcn.00416ed4
push dword [ebp + 0x14]
mov ecx, ebx
call fcn.00416cfa
call fcn.00404f47
push eax
lea ecx, [ebp + 0xc]
call fcn.004065d8
push dword [ebp + 0x18]
and dword [ebp - 4], 0
lea eax, [ebp + 0xc]
push 0x6960ec
push eax
call fcn.00406cc8
mov esi, dword [ebp + 0xc]
add esp, 0xc
mov ecx, ebx
push esi
call fcn.00416ed4
push 1
lea eax, [ebp + 8]
mov byte [ebp + 8], 0x64
push eax
lea ecx, [ebx + 4]
call fcn.00416b68
push dword [ebp + 0x1c]
mov ecx, ebx
call fcn.00416cfa
push dword [ebp + 0x20]
mov ecx, ebx
call fcn.00416d0f
mov ecx, ebx
call fcn.00416eaa
lea ecx, [esi - 0x10]
call fcn.00404ea9
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x43ba57
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
cmp dword [ebp + 8], 0
push edi
mov edi, ecx
je 0x43bb4a
cmp dword [ebp + 0xc], 0
je 0x43bb4a
push esi
lea eax, [ebp + 0xc]
xor esi, esi
push eax
push dword [ebp + 0x10]
mov dword [ebp + 0xc], esi
push esi
push dword [edi + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x43bb36
push 0x20a
lea eax, [ebp - 0x210]
mov dword [ebp + 8], esi
push esi
push eax
call fcn.005e26d0
add esp, 0xc
mov dword [ebp - 4], 0x104
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp + 8]
push eax
push esi
push dword [edi + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x43bb36
mov eax, dword [edi + 0x18]
cmp eax, dword [ebp + 8]
jne 0x43bb36
cmp eax, 1
je 0x43baea
cmp eax, 2
jne 0x43bb10
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp + 0x10]
call fcn.00406173
mov eax, dword [ebp + 0x10]
lea ecx, [eax - 0x10]
cmp dword [eax - 0xc], esi
jne 0x43bb0b
call fcn.00404ea9
jmp 0x43bb36
call fcn.00404ea9
cmp dword [edi + 0x18], 4
jne 0x43bb33
push 4
lea eax, [ebp - 0x210]
mov dword [ebp + 0x10], esi
push eax
lea eax, [ebp + 0x10]
push eax
call fcn.005e11d0
add esp, 0xc
cmp dword [ebp + 0x10], esi
jbe 0x43bb36
xor esi, esi
inc esi
cmp dword [ebp + 0xc], 0
je 0x43bb45
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
jmp 0x43bb4c
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x43bc06
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
mov eax, 0x610552
call fcn.0060cc48
sub esp, 0x218
cmp dword [ebp + 8], 0
push esi
mov esi, ecx
jne 0x43bc26
xor eax, eax
jmp 0x43bd26
call fcn.0043bbdd
test eax, eax
je 0x43bc1f
push ebx
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x10], ebx
push ebx
push dword [esi + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x43bd14
push edi
mov edi, dword [esi + 0x10]
cmp dword [edi - 0xc], ebx
jne 0x43bc60
inc ebx
jmp 0x43bd13
push 0x208
lea eax, [ebp - 0x224]
push ebx
push eax
call fcn.005e26d0
add esp, 0xc
mov dword [ebp - 0x14], 0x208
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], ebx
push eax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x43bd13
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp + 8]
call fcn.00406173
lea ecx, [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.0046f780
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x1c]
call fcn.00470634
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.00406123
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
lea eax, [esi + 0x14]
push eax
lea edx, [ebp + 8]
lea ecx, [ebp + 0xc]
call fcn.0040b545
pop ecx
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
test eax, eax
je 0x43bd03
xor ebx, ebx
inc ebx
call fcn.00404ea9
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
pop edi
cmp dword [ebp - 0x10], 0
je 0x43bd23
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8

Function at 0x43bed6
Capabilities:
Query environment variable

Disassembly:
push 0x10
push 0x6b1230
call fcn.0060cc70
xor esi, esi
mov dword [ebp - 0x1c], esi
cmp dword [ebp + 8], esi
je 0x43bf7e
cmp dword [ebp + 0xc], esi
je 0x43bf7e
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
cmp edi, 1
jb 0x43bf7e
cmp edi, 0x103
ja 0x43bf7e
mov dword [ebp - 4], esi
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0049a823
pop ecx
mov ecx, eax
mov dword [ebp - 0x1c], ecx
test ecx, ecx
je 0x43bf7a
lea eax, [edi + edi]
push eax
push esi
push ecx
call fcn.005e26d0
add esp, 0xc
push edi
mov edi, dword [ebp - 0x1c]
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x43bf7a
mov ecx, 0x103
cmp eax, ecx
ja 0x43bf7a
push eax
push edi
push ecx
push dword [ebp + 0xc]
call fcn.005f4afd
add esp, 0x10
inc esi
jmp 0x43bf77
mov dword [ebp - 0x20], esi
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1c], 0
je 0x43bf8d
push dword [ebp - 0x1c]
call fcn.0049a81e
pop ecx
mov eax, esi
call fcn.0060ccac
ret 0xc
Function at 0x43bfa5
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x6105fa
call fcn.0060cc48
sub esp, 0x18
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x18], ebx
push dword [esi + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43c0ea
push edi
lea edi, [esi + 0xc]
mov eax, dword [edi]
cmp dword [eax - 0xc], ebx
jne 0x43bfcf
inc ebx
jmp 0x43c0e9
mov eax, dword [esi + 8]
sub eax, 0x10
push eax
call fcn.004067cf
pop ecx
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
push 1
lea eax, [ebp - 0x24]
mov dword [ebp - 4], ebx
push eax
lea ecx, [ebp - 0x14]
call fcn.00405d7f
mov byte [ebp - 4], 1
mov ecx, eax
push 0x694b58
mov dword [ebp - 0x18], 1
call fcn.004068fd
test eax, eax
je 0x43c03d
push 1
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x14]
call fcn.00405d7f
mov dword [ebp - 4], 2
mov ecx, eax
push 0x6963b0
mov dword [ebp - 0x18], 3
call fcn.004068fd
mov byte [ebp - 0xd], bl
test eax, eax
jne 0x43c041
mov byte [ebp - 0xd], 1
test byte [ebp - 0x18], 2
je 0x43c052
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
cmp byte [ebp - 0xd], 0
je 0x43c095
mov eax, dword [esi - 0xc]
lea ecx, [ebp - 0x14]
dec eax
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00405d36
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.00406123
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
mov esi, dword [ebp - 0x14]
push 0x694b58
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x24]
call fcn.0040aec1
push edi
mov edx, eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1c]
call fcn.0040b545
pop ecx
pop ecx
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
push dword [ebp - 0x1c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 0x1c]
test eax, eax
jne 0x43c0d6
lea ecx, [ecx - 0x10]
jmp 0x43c0dc
xor ebx, ebx
inc ebx
add ecx, 0xfffffff0
call fcn.00404ea9
lea ecx, [esi - 0x10]
call fcn.00404ea9
pop edi
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x43ea82
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov edx, dword [ebp + 0x10]
xor eax, eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
mov dword [ebp - 0xc], eax
push 1
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
sub edx, dword [edi + 0x14]
sub esi, dword [edi + 0x10]
mov eax, dword [edi]
push edx
push esi
mov dword [ebp + 0xc], esi
mov dword [ebp + 0x10], edx
call dword [eax + 0x8c]
mov ebx, dword [edi + 0x174]
mov dword [ebp - 0x10], eax
test ebx, ebx
je 0x43eb9e
mov ecx, ebx
call fcn.0046b755
mov esi, eax
test esi, esi
je 0x43eb2b
mov eax, dword [esi + 0xc]
push 2
push 0
push esi
mov dword [ebp - 0xc], eax
call fcn.0043e6ce
movzx ecx, word [ebp + 0x10]
movzx eax, word [ebp + 0xc]
shl ecx, 0x10
or ecx, eax
push ecx
push dword [ebp + 8]
mov ecx, esi
push 0x202
call fcn.0046b79e
mov eax, dword [ebp - 0x10]
cmp dword [edi + 0x174], eax
jne 0x43eb4d
mov eax, dword [esi + 0x3c]
xor ecx, ecx
test eax, eax
je 0x43eb40
cmp word [eax], cx
je 0x43eb40
push 1
push ecx
push ecx
push eax
push str.open
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [ebp - 4]
mov ecx, eax
xor edx, edx
mov dword [edi + 0x174], edx
test eax, eax
je 0x43eb7d
push 0x67
jmp 0x43eb96
cmp dword [esi + 0xc], ecx
je 0x43eb2b
mov ecx, dword [ebp - 8]
xor eax, eax
inc eax
jmp 0x43eb30
push 1
xor eax, eax
push eax
push esi
call fcn.0043e6ce
movzx ecx, word [ebp + 0x10]
movzx eax, word [ebp + 0xc]
shl ecx, 0x10
or ecx, eax
push ecx
push dword [ebp + 8]
mov ecx, esi
push 0x2a3
call fcn.0046b79e
mov eax, dword [ebp - 4]
xor ecx, ecx
inc ecx
jmp 0x43eb30
test ecx, ecx
je 0x43eb9e
cmp dword [ebp - 0xc], edx
je 0x43eb9e
cmp ebx, dword [edi + 0x170]
jne 0x43eb94
mov dword [edi + 0x170], edx
push 0x6a
push esi
mov ecx, edi
call fcn.0043e6fd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4407e4
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x60db0f
call fcn.0060cc48
sub esp, 0x10
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.00406173
and dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0xe]
push eax
movzx eax, word [ebp - 0x10]
push eax
movzx eax, word [ebp - 0x12]
push eax
movzx eax, word [ebp - 0x14]
push eax
lea eax, [ebp + 8]
push str.__02d__02d__02d__03d__n
push eax
call fcn.004090e5
add esp, 0x18
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x442c3c
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
push esi
mov esi, 0x11c
lea eax, [ebp - 0x11c]
push esi
xor ebx, ebx
push ebx
push eax
call fcn.005e26d0
add esp, 0xc
mov dword [ebp - 0x11c], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x11c]
push eax
call esi
test eax, eax
jne 0x442c93
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x11c], 0x114
push eax
call esi
test eax, eax
je 0x442d3a
mov eax, dword [ebp - 0x10c]
sub eax, 1
je 0x442d25
sub eax, 1
jne 0x442d3a
cmp dword [ebp - 0x118], 6
jne 0x442cef
mov eax, dword [ebp - 0x114]
cmp eax, 1
jne 0x442ccc
xor ebx, ebx
cmp byte [ebp - 2], al
setne bl
add ebx, 8
jmp 0x442d3a
test eax, eax
jne 0x442cdf
cmp byte [ebp - 2], 1
push 9
pop ebx
push 7
pop eax
cmove ebx, eax
jmp 0x442d3a
cmp eax, 2
jne 0x442d3a
cmp byte [ebp - 2], 1
jne 0x442d3a
push 0xa
pop ebx
jmp 0x442d3a
cmp dword [ebp - 0x118], 5
jne 0x442d18
mov eax, dword [ebp - 0x114]
cmp eax, 2
jne 0x442d07
push 5
jmp 0x442cec
cmp eax, 1
jne 0x442d10
push 6
jmp 0x442cec
test eax, eax
jne 0x442d3a
push 3
jmp 0x442cec
cmp dword [ebp - 0x118], 4
ja 0x442d3a
push 4
jmp 0x442cec
mov eax, dword [ebp - 0x110]
and eax, 0xffff0000
cmp eax, 0x45a0000
sbb ebx, ebx
add ebx, 2
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x448b56
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x610e51
call fcn.0060cc48
push ecx
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], edi
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [edi + 4], ebx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x20], eax
mov dword [ebp - 4], ebx
lea ecx, [edi + 0x2c]
mov dword [edi + 0x28], ebx
mov dword [edi + 0x24], vtable.IContainer.0
call fcn.0046be9e
lea ecx, [edi + 0x188]
mov byte [ebp - 4], 1
call fcn.0046be9e
lea ecx, [edi + 0x2e4]
mov byte [ebp - 4], 2
call fcn.0046be9e
mov dword [edi + 0x444], ebx
mov dword [edi + 0x440], 0x69b26c
mov dword [edi + 0x450], ebx
mov dword [edi + 0x448], ebx
mov dword [edi + 0x44c], ebx
mov byte [ebp - 4], 4
call fcn.00404f47
push eax
lea ecx, [edi + 0x474]
call fcn.004065d8
mov dword [edi + 0x4b4], ebx
mov dword [edi + 0x4b8], ebx
mov byte [ebp - 4], 6
call fcn.00404f47
push eax
lea ecx, [edi + 0x4bc]
call fcn.004065d8
mov eax, dword [ebp + 8]
lea ecx, [edi + 0x4dc]
mov dword [edi + 0x4d8], eax
call fcn.0045137d
xor ecx, ecx
lea ebx, [edi + 0x518]
mov dword [ebx], vtable.CBkControlCreator.0
mov dword [ebx + 4], ecx
mov dword [ebx + 8], ecx
mov dword [edi + 0x524], ecx
mov dword [edi + 0x528], ecx
mov dword [edi + 0x52c], ecx
mov dword [edi + 0x530], ecx
mov dword [edi + 0x534], ecx
add edi, 0x538
mov dword [ebp + 8], edi
mov dword [edi], ecx
mov eax, vtable.KEvent.0
mov dword [edi + 8], ecx
mov dword [edi + 4], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], ecx
mov dword [edi + 0x28], ecx
mov dword [edi + 0x2c], ecx
mov dword [edi + 0x30], ecx
mov byte [ebp - 4], 0xd
lea esi, [edi + 0x34]
mov dword [ebp - 0x14], esi
mov dword [esi], ecx
mov dword [esi + 4], ecx
call fcn.004069f1
mov dword [esi], eax
xor edx, edx
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov dword [edi + 0x3c], edx
inc ecx
mov dword [edi + 0x18], edx
mov dword [edi + 0x1c], edx
mov dword [edi + 0x20], edx
mov dword [edi + 0x24], edx
or dword [eax + 0x4c8], 0xffffffff
mov dword [eax + 0x51c], edi
pop edi
mov dword [eax + 0x500], ecx
mov dword [eax + 0x4b0], ecx
mov dword [eax + 0x470], ecx
mov dword [eax + 0x4c0], ecx
mov dword [eax + 0x4cc], ecx
mov dword [eax + 0x504], ecx
mov dword [eax + 0x510], ecx
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0x184], ebx
mov dword [eax + 0x2e0], ebx
mov dword [eax + 0x43c], ebx
pop esi
mov dword [eax + 0x454], edx
mov dword [eax + 0x458], edx
mov dword [eax + 0x464], edx
mov dword [eax + 0x468], edx
mov dword [eax + 0x488], edx
mov dword [eax + 0x48c], edx
mov dword [eax + 0x490], edx
mov dword [eax + 0x494], edx
mov dword [eax + 0x498], edx
mov dword [eax + 0x4a8], edx
mov dword [eax + 0x46c], edx
mov dword [eax + 0x4a0], edx
mov dword [eax + 0x4ac], edx
mov dword [eax + 0x4a4], edx
mov dword [eax + 0x4c4], edx
mov dword [eax + 0x4d0], edx
mov dword [eax + 0x4d4], edx
mov dword [eax + 0x45c], edx
mov dword [eax + 0x508], edx
mov dword [eax + 0x50c], edx
mov dword [eax + 0x49c], edx
mov dword [eax + 0x514], 0xff
mov dword [eax + 0x460], edx
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x44ced9
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x44cf24
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x44cf1d
cmp dword [ebp + 8], 0x1b
jne 0x44cf05
push 0
push 2
jmp 0x44cf0f
cmp dword [ebp + 8], 0xd
jne 0x44cf1d
push 0
push 1
push 0x111
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
and dword [esi + 0x520], 0
pop esi
pop ebp
ret 0xc
Function at 0x44da8d
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
push 1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
lea ecx, [edi + 0x2c]
mov eax, dword [ecx]
call dword [eax + 0x44]
mov esi, eax
test esi, esi
jne 0x44dadc
push 1
push dword [ebp + 0x10]
lea ecx, [edi + 0x188]
mov eax, dword [ecx]
push dword [ebp + 0xc]
call dword [eax + 0x44]
mov esi, eax
test esi, esi
jne 0x44dadc
push 1
push dword [ebp + 0x10]
lea ecx, [edi + 0x2e4]
mov eax, dword [ecx]
push dword [ebp + 0xc]
call dword [eax + 0x44]
mov esi, eax
xor ebx, ebx
cmp dword [edi + 0x45c], ebx
je 0x44db54
cmp dword [edi + 0x46c], ebx
je 0x44dafa
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov dword [edi + 0x46c], ebx
cmp dword [edi + 0x45c], esi
jne 0x44db4e
mov ecx, esi
call fcn.0046b755
movzx edx, word [ebp + 0x10]
mov esi, eax
movzx ecx, word [ebp + 0xc]
shl edx, 0x10
or edx, ecx
mov ecx, esi
push edx
push dword [ebp + 8]
push 0x205
call fcn.0046b79e
mov ecx, dword [edi + 4]
or dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0xc], 0xd
mov dword [ebp - 0x14], ecx
mov eax, dword [esi + 0xc]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push eax
push 0xffffffffffffffff
push 0x4e
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [edi + 0x45c], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4509d4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 0xc]
movzx eax, dx
mov esi, ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x450a4f
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x450a19
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x450a19
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x450a1d
xor eax, eax
jmp 0x450a4e
mov ecx, dword [ebp + 8]
lea eax, [ebx + 1]
push eax
call fcn.00406a4b
test eax, eax
je 0x450a38
push ebx
push edi
push eax
call fcn.005e11d0
add esp, 0xc
mov ecx, dword [ebp + 8]
lea eax, [ebx + 1]
push eax
call fcn.00413e9a
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
inc eax
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x450a53
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, 0x60db0f
call fcn.0060cc48
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov ebx, edi
mov eax, dword [esi]
mov dword [ebp - 0x10], ebx
cmp dword [eax - 0xc], ebx
je 0x450b33
call fcn.00404f47
push eax
lea ecx, [ebp + 8]
call fcn.004065d8
mov dword [ebp - 4], edi
lea eax, [ebp + 8]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [esi]
push str._s_d._s
push eax
call fcn.00406cc8
mov esi, dword [ebp + 8]
add esp, 0x14
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x450b2b
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x450b21
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0x14]
and dword [ebp + 0x14], 0
push 0
push eax
push ebx
lea eax, [ebx + 0xa]
push eax
call fcn.00406a4b
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x450b17
cmp dword [ebp + 0x14], ebx
jne 0x450b17
mov ecx, dword [ebp + 0x10]
push ebx
call fcn.00413e9a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esi - 0x10]
call fcn.00404ea9
xor eax, eax
inc eax
jmp 0x450b35
mov ecx, dword [ebp + 0x10]
push 0
call fcn.00406b5c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x10]
lea ecx, [esi - 0x10]
call fcn.00404ea9
mov eax, ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x450d21
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 0xc], 1
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, ecx
jne 0x450d45
push 0
push dword [esi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
and byte [esi + 0x14], 0xfd
jmp 0x450da4
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
je 0x450da9
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
je 0x450da9
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x450da4
or byte [esi + 0x14], 4
mov al, byte [esi + 0x14]
test al, 2
jne 0x450d9b
push dword [ebp + 8]
or al, 2
mov ecx, esi
mov byte [esi + 0x14], al
call fcn.00452029
push 8
push dword [esi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x450da4
cmp dword [esi + 0x18], edi
je 0x450da4
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x450db8
push 0
push dword [esi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
and byte [esi + 0x14], 0xfd
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x450dc0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
cmp byte [esi + 0xc], 0
jne 0x450e21
test byte [esi + 0x14], 2
je 0x450e21
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
sub eax, edx
je 0x450e12
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
sub eax, ecx
je 0x450e12
sub edx, dword [esi + 0x10]
sub ecx, dword [esi + 0x10]
push 0x11
push 0
push 0
push edx
push ecx
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x450e21
push 0
push dword [esi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
and byte [esi + 0x14], 0xfd
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x450e28
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov esi, ecx
xor edi, edi
inc edi
cmp byte [esi + 0xd], 0
je 0x450f30
mov eax, dword [ebp + 0xc]
cmp eax, 0x18
ja 0x450edc
je 0x450ebf
dec eax
sub eax, edi
je 0x450e9b
sub eax, edi
je 0x450f26
dec eax
sub eax, edi
je 0x450e88
sub eax, 0xa
jne 0x450eed
cmp byte [esi + 0xc], al
jne 0x450f30
cmp byte [esi + 0x1c], al
je 0x450f30
push dword [ebp + 8]
call fcn.00452029
mov byte [esi + 0x1c], 0
jmp 0x450f30
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.00450d21
jmp 0x450f30
push 0
push dword [esi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 8]
call dword [sym.imp.USER32.dll_DestroyWindow]
or dword [esi + 8], 0xffffffff
or dword [esi + 4], 0xffffffff
mov word [esi + 0xc], 0
jmp 0x450f30
test byte [esi + 0x14], 1
je 0x450f30
cmp dword [ebp + 0x10], 0
jne 0x450f30
push 0
push dword [esi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
and byte [esi + 0x14], 0xf9
jmp 0x450f30
sub eax, 0x1a
je 0x450f15
sub eax, 0x1fc
je 0x450f30
sub eax, 0x1c
je 0x450ef1
xor edi, edi
jmp 0x450f30
cmp byte [esi + 0xc], 0
je 0x450f05
push dword [ebp + 8]
call fcn.00452189
mov byte [esi + 0xc], 0
jmp 0x450f30
test byte [esi + 0x14], 2
je 0x450f30
push dword [ebp + 8]
call fcn.00452029
jmp 0x450f30
mov eax, dword [ebp + 0x10]
cmp eax, 0x2f
je 0x450f26
cmp eax, 0x18
je 0x450f26
test eax, eax
jne 0x450f30
push ecx
push ecx
push dword [ebp + 8]
call fcn.00450dc0
mov eax, edi
pop edi
pop esi
pop ebp
ret 0x10