joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43d3a0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x53f1e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test ebx, ebx
je 0x43d42b
push 0x104
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.004b4709
lea eax, [ebp - 0x414]
add esp, 0xc
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43d3e0
sub eax, edx
sar eax, 1
je 0x43d40a
lea ecx, [ebp + eax*2 - 0x416]
movzx eax, word [ecx]
cmp eax, 0x2f
je 0x43d405
cmp eax, 0x5c
jne 0x43d40a
xor edx, edx
mov word [ecx], dx
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x43d42b
push 0
lea ecx, [ebp - 0x414]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [edi]
test ax, ax
je 0x43d50f
mov ecx, edi
mov edx, edi
jmp 0x43d440
cmp ax, 0x2f
je 0x43d44c
cmp ax, 0x5c
jne 0x43d44e
mov ecx, edx
movzx eax, word [edx + 2]
add edx, 2
test ax, ax
jne 0x43d440
cmp ecx, edi
je 0x43d48f
sub ecx, edi
push esi
sar ecx, 1
lea esi, [ecx + ecx]
push esi
lea edx, [ebp - 0x414]
push edi
push edx
call fcn.004b5e30
lea ecx, [ebp - 0x414]
push ecx
xor eax, eax
push ebx
mov word [ebp + esi - 0x414], ax
call fcn.0043d3a0
add esp, 0x14
pop esi
xor edx, edx
mov word [ebp - 0x20c], dx
test ebx, ebx
je 0x43d4b1
push 0x104
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004b4709
add esp, 0xc
xor ecx, ecx
lea eax, [ebp - 0x20c]
mov word [ebp - 6], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43d4c0
sub eax, edx
sar eax, 1
mov edx, 0x104
sub edx, eax
push edx
lea eax, [ebp + eax*2 - 0x20c]
push edi
push eax
call fcn.004b4709
add esp, 0xc
lea edx, [ebp - 0x20c]
xor ecx, ecx
push edx
mov word [ebp - 6], cx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x43d50f
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004b1681
mov esp, ebp
pop ebp
ret
Function at 0x43eec0
Capabilities:
Inspect load icon resource
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4e3328
mov eax, dword fs:[0]
push eax
sub esp, 0x1e8
mov eax, dword [0x53f1e4]
xor eax, esp
mov dword [esp + 0x1e0], eax
push ebx
push esi
push edi
mov eax, dword [0x53f1e4]
xor eax, esp
push eax
lea eax, [esp + 0x1f8]
mov dword fs:[0], eax
mov edi, dword [sym.Update.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const]
push 0xfffffffffffffff0
mov esi, ecx
call edi
mov ebx, dword [sym.imp.USER32.dll_GetWindowLongW]
push eax
call ebx
and eax, 0xff3effff
or eax, 0x6000000
push eax
push 0xfffffffffffffff0
mov ecx, esi
call edi
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
movzx eax, word [esi + 0x450]
mov ecx, dword [esi + 4]
push eax
push 0xfffffffffffffffa
push ecx
call ebx
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov edx, dword [esi + 4]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
push edi
push 1
push 0x80
push edx
call ebx
mov eax, dword [esi + 4]
push edi
push 0
push 0x80
push eax
call ebx
mov ecx, dword [esi + 4]
lea edi, [esi + 0x10]
push ecx
mov ecx, edi
call dword [0x510fe4]
lea ecx, [esp + 0xa4]
call dword [0x510ff0]
push 0
push edi
lea edx, [esp + 0x1c]
mov dword [esp + 0x208], 0
mov ebx, dword [sym.Update.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::GetData_void_const]
push edx
push 0
lea ecx, [esi + 0x348]
mov dword [esp + 0x24], vtable.CCustomCtrlBuildCallback.0
call ebx
push ecx
mov ecx, esp
mov dword [ecx], eax
lea ecx, [esp + 0xb8]
mov dword [esp + 0x2c], esp
call dword [0x510ff4]
test eax, eax
jne 0x43f03c
lea ecx, [esp + 0x1c]
call dword [0x511044]
mov byte [esp + 0x200], 1
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
push eax
lea eax, [esp + 0x20]
push 0x50bdb4
push eax
call dword [0x511050]
add esp, 0xc
lea ecx, [esp + 0x1c]
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x200], 0
call dword [0x511048]
lea ecx, [esp + 0xa4]
mov dword [esp + 0x200], 0xffffffff
call dword [0x510ff8]
or eax, 0xffffffff
jmp 0x43f068
push eax
mov ecx, edi
call dword [0x510fe8]
mov edx, dword [esi]
mov eax, dword [edx + 0x40]
mov ecx, esi
call eax
lea ecx, [esp + 0xa4]
mov dword [esp + 0x200], 0xffffffff
call dword [0x510ff8]
xor eax, eax
mov ecx, dword [esp + 0x1f8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1e0]
xor ecx, esp
call fcn.004b1681
mov esp, ebp
pop ebp
ret 0x10
Function at 0x441d60
Capabilities:
Enumerate processes
Print debug messages
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x53f1e4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov dword [ebp - 0x240], 0
push edi
nop
push 0
push 2
mov dword [ebp - 0x238], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [ebp - 0x23c], edi
cmp edi, 0xffffffff
je 0x441f13
push 0x228
lea eax, [ebp - 0x22c]
push 0
push eax
mov dword [ebp - 0x230], 0x22c
call fcn.004b96b0
add esp, 0xc
lea ecx, [ebp - 0x230]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x244], eax
test esi, esi
je 0x441ee2
lea esp, [esp]
mov esi, dword [ebx]
mov ecx, dword [ebx + 4]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
xor edi, edi
add eax, edx
je 0x441ec0
mov dword [ebp - 0x234], edi
jmp 0x441e20
mov eax, dword [ebp - 0x234]
add eax, esi
cmp dword [eax + 0x14], 8
jb 0x441e30
mov eax, dword [eax]
push eax
lea edx, [ebp - 0x20c]
push edx
call fcn.004b2762
add esp, 8
test eax, eax
jne 0x441e96
mov eax, dword [ebp - 0x228]
cmp dword [ebp - 0x244], eax
je 0x441e96
push eax
push 0
push 1
mov dword [ebp - 0x238], 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x441e7a
push str.KillProcessFromList
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x441e96
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0xbb8
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebx]
mov ecx, dword [ebx + 4]
add dword [ebp - 0x234], 0x1c
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc edi
add eax, edx
cmp edi, eax
jb 0x441e20
mov edx, dword [ebp - 0x23c]
lea ecx, [ebp - 0x230]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x441df0
mov edi, dword [ebp - 0x23c]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x238], 0
je 0x441f13
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x240]
inc eax
mov dword [ebp - 0x240], eax
cmp eax, 5
jl 0x441d80
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004b1681
mov esp, ebp
pop ebp
ret
Function at 0x442f70
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e7ad0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x53f1e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0xa
xor eax, eax
xor edi, edi
push 0x50c074
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], ax
call fcn.00404960
lea eax, [esi + 0x70]
push 0
mov dword [ebp - 4], edi
push eax
lea ebx, [esi + 0x8c]
lea edi, [esi + 0x54]
push edi
mov ecx, ebx
lea edx, [ebp - 0x2c]
call fcn.00409050
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 8
mov byte [ebp - 0x49], al
jb 0x442ff7
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004b1676
add esp, 4
cmp byte [ebp - 0x49], 0
je 0x44302d
cmp dword [edi + 0x14], 8
jb 0x443007
mov eax, dword [edi]
jmp 0x443009
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x44302d
cmp dword [esi + 0x80], 0
je 0x44302d
mov word [esi + 0xe1], 1
mov al, 1
jmp 0x4430ae
push 0xa
xor edx, edx
push 0x50c074
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], dx
call fcn.00404960
push 1
lea eax, [esi + 0x70]
push eax
push edi
mov ecx, ebx
lea edx, [ebp - 0x48]
mov dword [ebp - 4], 1
call fcn.00409050
add esp, 0xc
cmp dword [ebp - 0x34], 8
mov bl, al
jb 0x44307f
mov eax, dword [ebp - 0x48]
push eax
call fcn.004b1676
add esp, 4
test bl, bl
je 0x4430ac
cmp dword [edi + 0x14], 8
jb 0x44308b
mov edi, dword [edi]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4430ac
cmp dword [esi + 0x80], 0
je 0x4430ac
mov word [esi + 0xe1], 0x101
mov al, 1
jmp 0x4430ae
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b1681
mov esp, ebp
pop ebp
ret
Function at 0x444790
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ea390
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x53f1e4]
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, 1
test byte [0x5431e4], bl
jne 0x4447e0
or dword [0x5431e4], ebx
call fcn.00442d10
push 0x4ec540
call fcn.004b3d86
add esp, 4
xor esi, esi
cmp dword [0x543160], esi
je 0x444952
test byte [0x5431e4], bl
jne 0x44480e
or dword [0x5431e4], ebx
call fcn.00442d10
push 0x4ec540
call fcn.004b3d86
add esp, 4
cmp dword [0x543148], 8
mov eax, dword [0x543134]
jae 0x444821
mov eax, 0x543134
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x444952
test byte [0x5431e4], bl
jne 0x444850
or dword [0x5431e4], ebx
call fcn.00442d10
push 0x4ec540
call fcn.004b3d86
add esp, 4
lea eax, [ebp - 0x58]
mov edi, vtable.CVersionHelp.0
push eax
mov ecx, 0x5430e0
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], esi
call fcn.00444e80
mov dword [ebp - 4], esi
test byte [0x5431e4], bl
jne 0x444895
or dword [0x5431e4], ebx
call fcn.00442d10
push 0x4ec540
call fcn.004b3d86
add esp, 4
lea ecx, [ebp - 0x44]
push ecx
mov ecx, 0x543150
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
call fcn.00444e80
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], bl
call fcn.00444d80
test al, al
jne 0x444952
mov edx, dword [0x53ef48]
mov eax, dword [edx + 0xc]
mov ecx, 0x53ef48
call eax
add eax, 0x10
mov dword [ebp - 0x30], eax
push 0x50a8a0
mov byte [ebp - 4], 2
call fcn.0042a770
push eax
mov edx, str.Setup
lea ecx, [ebp - 0x2c]
call fcn.0042ade0
mov byte [ebp - 4], 3
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x44490a
lea eax, [ebp - 0x2c]
push 0x50a8b0
push eax
lea edi, [ebp - 0x30]
call fcn.00408a70
mov esi, dword [ebp - 0x30]
add esp, 8
xor edx, edx
mov ecx, esi
call fcn.00443df0
lea ecx, [ebp - 0x2c]
test eax, eax
jne 0x444956
call fcn.00404a50
lea eax, [esi - 0x10]
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x444952
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x44497c
call fcn.00404a50
lea eax, [esi - 0x10]
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44497a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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.004b1681
mov esp, ebp
pop ebp
ret
Function at 0x444b70
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e5950
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x53f1e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
test byte [0x5431e4], 1
mov dword [ebp - 0x4c], edi
jne 0x444bc1
or dword [0x5431e4], 1
call fcn.00442d10
push 0x4ec540
call fcn.004b3d86
add esp, 4
push 0xffffffffffffffff
push edi
xor eax, eax
push 0x543134
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], ax
call fcn.00404530
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x2c]
mov esi, 8
cmp dword [ebp - 0x18], esi
jae 0x444bf4
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x444c50
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x444c0a
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x444c24
push 1
mov eax, 0x5062dc
lea ecx, [ebp - 0x2c]
call fcn.00403f00
mov dword [ebx + 0x10], edi
xor edx, edx
mov dword [ebx + 0x14], 7
lea edi, [ebp - 0x2c]
mov esi, ebx
mov word [ebx], dx
call fcn.00404350
cmp dword [ebp - 0x18], 8
jb 0x444d06
mov eax, dword [ebp - 0x2c]
push eax
jmp 0x444cfe
test byte [0x5431e4], 1
jne 0x444c72
or dword [0x5431e4], 1
call fcn.00442d10
push 0x4ec540
call fcn.004b3d86
add esp, 4
movzx ecx, byte [0x5431c5]
push ecx
lea esi, [ebp - 0x48]
call fcn.00405180
add esp, 4
push 1
mov eax, 0x5062dc
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00403f00
push 7
mov eax, 0x50a8b0
mov ecx, esi
call fcn.00403f00
push 1
mov eax, 0x5062dc
mov ecx, esi
call fcn.00403f00
mov dword [ebx + 0x10], edi
xor edx, edx
mov edi, esi
mov dword [ebx + 0x14], 7
mov esi, ebx
mov word [ebx], dx
call fcn.00404350
mov esi, 8
cmp dword [ebp - 0x34], esi
jb 0x444ce1
mov eax, dword [ebp - 0x48]
push eax
call fcn.004b1676
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], cx
cmp dword [ebp - 0x18], esi
jb 0x444d06
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004b1676
add esp, 4
mov eax, ebx
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.004b1681
mov esp, ebp
pop ebp
ret
Function at 0x44a4b0
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
test byte [0x5431e8], 1
jne 0x44a4eb
or dword [0x5431e8], 1
call fcn.0044d3c0
push 0x4ec550
call fcn.004b3d86
add esp, 4
mov esi, 0x5431f0
call fcn.0044f330
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov al, 1
pop esi
ret

Function at 0x44b3d0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x53f1e4]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [0x5431e8], 1
jne 0x44b402
or dword [0x5431e8], 1
call fcn.0044d3c0
push 0x4ec550
call fcn.004b3d86
add esp, 4
push str.WEMedia.exe
lea eax, [ebp - 0x20]
push 0x543244
push eax
call fcn.00403a10
mov eax, dword [ebp - 0x20]
add esp, 0xc
cmp dword [ebp - 0xc], 8
jae 0x44b424
lea eax, [ebp - 0x20]
push 1
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
cmp dword [ebp - 0xc], 8
jb 0x44b452
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.004b1676
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b1681
mov esp, ebp
pop ebp
ret

Function at 0x44d1d0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x53f1e4]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [0x5431e8], 1
jne 0x44d202
or dword [0x5431e8], 1
call fcn.0044d3c0
push 0x4ec550
call fcn.004b3d86
add esp, 4
push str.WEMedia.exe
lea eax, [ebp - 0x20]
push 0x543244
push eax
call fcn.00403a10
mov eax, dword [ebp - 0x20]
add esp, 0xc
cmp dword [ebp - 0xc], 8
jae 0x44d224
lea eax, [ebp - 0x20]
push 1
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
cmp dword [ebp - 0xc], 8
jb 0x44d252
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.004b1676
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b1681
mov esp, ebp
pop ebp
ret
Function at 0x44e270
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eb446
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x53f1e4]
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 eax, dword [ebp + 8]
push 0xa
push 0x83
push 0
mov esi, ecx
mov ebx, edx
mov dword [ebp - 0x4c], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x44e34c
test byte [0x5436ec], 1
jne 0x44e2f6
or dword [0x5436ec], 1
push 0x543670
mov dword [ebp - 4], eax
call fcn.00432d70
push 0x4ec4d0
mov byte [0x5436e8], 0
call fcn.004b3d86
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0x50a890
push 0x543670
mov edx, str.Error
lea ecx, [ebp - 0x48]
call fcn.0042ade0
mov edi, eax
mov esi, ebx
mov dword [ebp - 4], 1
call fcn.00404350
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x34], 8
jb 0x44e336
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004b1676
add esp, 4
mov ecx, dword [ebp - 0x4c]
push 3
push 0x50d738
call fcn.00404960
xor al, al
jmp 0x44e45f
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
xor edi, edi
push edi
mov dword [ebp - 0x54], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x50], eax
cmp eax, edi
jne 0x44e3ab
push 0x50a89c
call fcn.0042a770
push eax
mov edx, str.Error
lea ecx, [ebp - 0x48]
call fcn.0042ade0
mov edi, eax
mov esi, ebx
mov dword [ebp - 4], 2
call fcn.00404350
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x34], 8
jb 0x44e336
mov edx, dword [ebp - 0x48]
push edx
jmp 0x44e32e
lea edx, [esi + 0x54]
mov dword [ebp - 0x5c], esi
mov esi, 8
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x60], 0x44e220
cmp dword [edx + 0x14], esi
jb 0x44e3c7
mov edx, dword [edx]
xor eax, eax
mov word [ebp - 0x2c], ax
mov eax, edx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], 7
lea edi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x44e3e0
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x2c]
call fcn.00404960
mov edx, dword [ebp - 0x50]
push ebx
mov ebx, dword [ebp - 0x54]
lea edi, [ebp - 0x60]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 3
call fcn.00405960
add esp, 4
test al, al
sete bl
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], esi
jb 0x44e432
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004b1676
add esp, 4
xor edx, edx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], dx
test bl, bl
je 0x44e45d
mov ecx, dword [ebp - 0x4c]
push 3
push 0x50d690
call fcn.00404960
xor al, al
jmp 0x44e45f
mov al, 1
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.004b1681
mov esp, ebp
pop ebp
ret 4
Function at 0x44f330
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [0x54307c], 1
mov eax, dword [esi + 0x4c]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x44f392
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x44f381
cmp dword [ebp - 4], 0x103
jne 0x44f381
mov edx, dword [esi + 0x4c]
push 0x3e8
push edx
call edi
mov eax, dword [esi + 0x4c]
push 0x22b
push eax
call ebx
mov ecx, dword [esi + 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x4c], 0
mov eax, dword [esi + 0x50]
test eax, eax
je 0x44f3d8
lea edx, [ebp - 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x44f3c7
cmp dword [ebp - 4], 0x103
jne 0x44f3c7
mov eax, dword [esi + 0x50]
push 0x3e8
push eax
call edi
mov ecx, dword [esi + 0x50]
push 0x22b
push ecx
call ebx
mov edx, dword [esi + 0x50]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x50], 0
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x451210
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e4848
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x53f1e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, 1
test byte [0x5431e8], bl
jne 0x45125f
or dword [0x5431e8], ebx
call fcn.0044d3c0
push 0x4ec550
call fcn.004b3d86
add esp, 4
push 0xffffffffffffffff
xor esi, esi
push esi
xor eax, eax
push 0x543244
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], ax
call fcn.00404530
mov dword [ebp - 4], esi
cmp dword [ebp - 0x1c], esi
jne 0x45129c
cmp dword [ebp - 0x18], 8
jb 0x451330
mov ecx, dword [ebp - 0x2c]
push ecx
jmp 0x451328
push 0xb
mov eax, str.WEMedia.exe
lea ecx, [ebp - 0x2c]
call fcn.00403f00
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x4512b7
lea eax, [ebp - 0x2c]
push ebx
push esi
push esi
push eax
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
test byte [0x54366c], bl
jne 0x451306
or dword [0x54366c], ebx
push 0x4ec610
mov dword [0x543650], esi
mov dword [0x543654], esi
mov dword [0x543658], esi
mov dword [0x54365c], esi
mov dword [0x543660], esi
mov dword [0x543668], esi
call fcn.004b3d86
add esp, 4
mov edx, dword [0x543650]
push esi
push esi
push 0x10
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
push esi
call dword [sym.imp.USER32.dll_PostQuitMessage]
cmp dword [ebp - 0x18], 8
jb 0x451330
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004b1676
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b1681
mov esp, ebp
pop ebp
ret
Function at 0x4542f0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x53f1e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, eax
lea eax, [ebp - 0x18]
push eax
push 0x20
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x454368
lea ecx, [ebp - 0x10]
push ecx
push 0x50efb0
push esi
mov dword [ebp - 0x14], 1
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [ebp - 0x18]
push esi
push esi
push 0x10
lea edx, [ebp - 0x14]
push edx
push esi
push eax
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x18]
mov esi, eax
neg esi
sbb esi, esi
push ecx
inc esi
call ebx
push edi
call ebx
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b1681
mov esp, ebp
pop ebp
ret

Function at 0x454380
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x5405e4]
push esi
mov esi, 8
push edi
cmp dword [0x5405f8], esi
jae 0x45439d
mov eax, 0x5405e4
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
je 0x454444
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x45444c
mov ecx, dword [0x540600]
cmp dword [0x540614], esi
jae 0x4543d4
mov ecx, 0x540600
mov eax, dword [0x54061c]
cmp dword [0x540630], esi
jae 0x4543e6
mov eax, 0x54061c
push ecx
push eax
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
test esi, esi
je 0x45440e
push 0
push 0xf120
push 0x112
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [0x5430d8]
test eax, eax
je 0x454444
cmp dword [eax + 8], 2
mov edi, eax
jl 0x454444
push str.Main.cpp
push 2
push ecx
mov eax, esp
mov dword [ebp - 4], esp
push eax
mov ecx, 0x50efd4
mov esi, 0x184
call fcn.00408620
push edi
mov ecx, esi
call fcn.0042c420
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret