joyce8/EMBER2024-capa huggingface dataset:
Function at 0x453460
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ca336
mov eax, dword fs:[0]
push eax
sub esp, 0x1e8
mov eax, dword [0x642490]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1ec], 0
xorpd xmm0, xmm0
movlpd qword [ebp - 0x1b0], xmm0
xorpd xmm0, xmm0
movlpd qword [ebp - 0x1a8], xmm0
push 0x6151f3
lea ecx, [ebp - 0x1e0]
call fcn.004066a0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
mov dword [eax + 4], 0
mov byte [ebp - 0x1e1], 0x41
jmp 0x4534ec
mov cl, byte [ebp - 0x1e1]
add cl, 1
mov byte [ebp - 0x1e1], cl
movsx edx, byte [ebp - 0x1e1]
cmp edx, 0x5a
jg 0x453609
push 0x61520f
lea ecx, [ebp - 0x1c8]
call fcn.004066a0
mov byte [ebp - 4], 1
movzx eax, byte [ebp - 0x1e1]
push eax
lea ecx, [ebp - 0x1c8]
call fcn.00433ac0
push 0x616c2c
lea ecx, [ebp - 0x1c8]
call fcn.0040df50
lea ecx, [ebp - 0x1a0]
push ecx
lea ecx, [ebp - 0x1c8]
call fcn.004067b0
push eax
call fcn.00430620
add esp, 8
lea edx, [ebp - 0x1a0]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebp - 0x1e8], eax
cmp dword [ebp - 0x1e8], 1
je 0x4535f5
mov eax, dword [ebp - 0x1e8]
mov dword [ebp - 0x1f4], eax
cmp dword [ebp - 0x1f4], 3
je 0x453585
jmp 0x4535f5
lea ecx, [ebp - 0x1a8]
push ecx
lea edx, [ebp - 0x1b0]
push edx
movzx eax, byte [ebp - 0x1e1]
push eax
call fcn.004532a0
add esp, 0xc
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x1f0], ecx
mov edx, dword [ebp - 0x1f0]
mov eax, dword [ebp - 0x1a4]
cmp eax, dword [edx + 4]
jl 0x4535f5
jg 0x4535cf
mov ecx, dword [ebp - 0x1f0]
mov edx, dword [ebp - 0x1a8]
cmp edx, dword [ecx]
jbe 0x4535f5
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x1a8]
mov dword [eax], ecx
mov edx, dword [ebp - 0x1a4]
mov dword [eax + 4], edx
lea eax, [ebp - 0x1c8]
push eax
lea ecx, [ebp - 0x1e0]
call fcn.00407150
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c8]
call fcn.00406730
jmp 0x4534dd
lea ecx, [ebp - 0x1e0]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004066e0
mov edx, dword [ebp - 0x1ec]
or edx, 1
mov dword [ebp - 0x1ec], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1e0]
call fcn.00406730
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00588a69
mov esp, ebp
pop ebp
ret
Function at 0x459360
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x642490]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x240], 0x616d50
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x238], eax
mov ecx, dword [ebp - 0x238]
mov dword [ebp - 0x24c], ecx
mov edx, dword [ebp - 0x240]
mov ax, word [edx]
mov word [ebp - 0x22a], ax
mov ecx, dword [ebp - 0x238]
mov dx, word [ebp - 0x22a]
mov word [ecx], dx
mov eax, dword [ebp - 0x240]
add eax, 2
mov dword [ebp - 0x240], eax
mov ecx, dword [ebp - 0x238]
add ecx, 2
mov dword [ebp - 0x238], ecx
cmp word [ebp - 0x22a], 0
jne 0x45939f
lea edx, [ebp - 0x228]
push edx
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov dword [ebp - 0x244], eax
cmp dword [ebp - 0x244], 0
je 0x45942b
push 0x615251
mov ecx, dword [ebp + 8]
call fcn.004066a0
mov eax, dword [ebp - 0x234]
or eax, 1
mov dword [ebp - 0x234], eax
mov eax, dword [ebp + 8]
jmp 0x4594fc
lea ecx, [ebp - 0x20c]
push ecx
mov edx, dword [ebp - 0x228]
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x4594ad
mov dword [ebp - 0x23c], 0x616d54
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x230], eax
mov ecx, dword [ebp - 0x230]
mov dword [ebp - 0x248], ecx
mov edx, dword [ebp - 0x23c]
mov ax, word [edx]
mov word [ebp - 0x22c], ax
mov ecx, dword [ebp - 0x230]
mov dx, word [ebp - 0x22c]
mov word [ecx], dx
mov eax, dword [ebp - 0x23c]
add eax, 2
mov dword [ebp - 0x23c], eax
mov ecx, dword [ebp - 0x230]
add ecx, 2
mov dword [ebp - 0x230], ecx
cmp word [ebp - 0x22c], 0
jne 0x459465
mov edx, dword [ebp - 0x228]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x224]
push ecx
call fcn.004306c0
add esp, 8
lea edx, [ebp - 0x224]
push edx
mov ecx, dword [ebp + 8]
call fcn.004066e0
mov eax, dword [ebp - 0x234]
or eax, 1
mov dword [ebp - 0x234], eax
lea ecx, [ebp - 0x224]
call fcn.00406730
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00588a69
mov esp, ebp
pop ebp
ret
Function at 0x45ae50
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c94c8
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x642490]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x60], 0
lea ecx, [ebp - 0x5c]
call fcn.00410520
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x64]
movzx ecx, byte [eax + 0x4e]
test ecx, ecx
je 0x45aea5
mov dword [ebp - 0x68], 1
jmp 0x45aeac
mov dword [ebp - 0x68], 0
mov edx, dword [ebp - 0x68]
mov dword [ebp - 0x14], edx
push 4
lea eax, [ebp - 0x14]
push eax
push 1
push 6
mov ecx, dword [ebp - 0x64]
mov edx, dword [ecx + 0x30]
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov byte [ebp - 0x5c], 1
push 0x615273
lea ecx, [ebp - 0x58]
call fcn.00408bc0
lea eax, [ebp - 0x5c]
push eax
mov ecx, dword [ebp + 8]
call fcn.0041b560
mov ecx, dword [ebp - 0x60]
or ecx, 1
mov dword [ebp - 0x60], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.00409aa0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00588a69
mov esp, ebp
pop ebp
ret 4
Function at 0x46fef1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x46ff36
call fcn.0047a8f5
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x46ff36
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x46ff52
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0047aa8e
mov ebx, eax
test edi, edi
je 0x46ff50
test esi, esi
je 0x46ff50
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4762d4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.0047a8f5
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x47630b
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.0047632c
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4f105b
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.00479d6a
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x4f1097
call fcn.004f127a
mov dword [esi + 0xc], 1
jmp 0x4f109c
call fcn.004f127a
cmp dword [esi], 0
je 0x4f10e5
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x4f10bf
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.0046fffb
jmp 0x4f10d0
push 0xff
mov ecx, esi
call fcn.00413cc0
push pe_nt_image_headers32
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.0046de1e
jmp 0x4f1109
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x4f1109
push dword [esi]
push dword [ebp - 4]
call fcn.0047d469
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4f11cf
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.004f127a
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x4f1217
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0046fffb
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0046de1e
jmp 0x4f1222
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0047d469
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x553abc
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.005847b9
call fcn.0047a949
cmp dword [eax + 0x14], 0
jne 0x553ad7
mov ecx, esi
pop esi
jmp fcn.00552ec2
pop esi
ret

Function at 0x5602de
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.004978c1
call fcn.0047a949
cmp dword [eax + 0x14], 0
jne 0x5602f9
mov ecx, esi
pop esi
jmp fcn.0055fbc7
pop esi
ret
Function at 0x5a0c95
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x642490]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0059324e
mov dword [ebp - 0x14], eax
cmp dword [0x64f948], esi
jne 0x5a0d88
push 0x800
push esi
push 0x60b160
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x5a0d15
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x5a0e68
push esi
push esi
push 0x60b160
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x5a0e68
push 0x60b178
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x5a0e68
push eax
call ebx
push 0x60b184
push edi
mov dword [0x64f948], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x60b194
push edi
mov dword [0x64f94c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x64f950], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x64f958], eax
test eax, eax
je 0x5a0d85
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x64f954], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x5a0dad
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x5a0da0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x5a0dc2
push 4
pop eax
jmp 0x5a0e6a
cmp dword [ebp - 0x14], esi
je 0x5a0dc2
push dword [0x64f948]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x5a0da7
mov eax, dword [0x64f954]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x5a0e20
cmp dword [0x64f958], edi
je 0x5a0e20
push eax
call ebx
push dword [0x64f958]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x5a0e20
test eax, eax
je 0x5a0e20
call ecx
test eax, eax
je 0x5a0e15
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x5a0e15
test byte [ebp - 8], 1
jne 0x5a0e20
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x5a0e50
mov eax, dword [0x64f94c]
cmp eax, edi
je 0x5a0e4d
push eax
call ebx
test eax, eax
je 0x5a0e4d
call eax
mov esi, eax
test esi, esi
je 0x5a0e4d
mov eax, dword [0x64f950]
cmp eax, edi
je 0x5a0e4d
push eax
call ebx
test eax, eax
je 0x5a0e4d
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x64f948]
call ebx
test eax, eax
je 0x5a0e68
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x5a0e6a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00588a69
mov esp, ebp
pop ebp
ret
Function at 0x5b0b08
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x4069f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x406a0b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x406a42
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x406a3e
jmp 0x406a30
cmp esi, eax
jae 0x406a42
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x406a30
cmp esi, eax
jb 0x406a49
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x410360
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
test esi, esi
jne 0x410372
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [0x58c2f8]
test eax, eax
jne 0x41038b
call fcn.0042764c
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x44]
mov dword [0x58c2f8], eax
movzx ecx, si
push 0x5628f8
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x41036b
mov edx, dword [0x58c2f8]
push ebx
push edi
push esi
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov eax, dword [0x58c2f8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push 2
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
push ebx
push eax
call fcn.005167e0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea ecx, [ebp - 4]
push ecx
push 1
xor edi, edi
push esi
mov dword [ebp - 4], edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x41044d
push 0x10
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov esi, eax
cmp esi, edi
je 0x41042c
mov ecx, dword [ebp - 4]
lea eax, [esi + 4]
push eax
push ecx
mov dword [esi], vtable.Gdiplus::Image.0
mov dword [eax], edi
call dword [sym.imp.gdiplus.dll_GdipLoadImageFromStream]
mov dword [esi + 8], eax
jmp 0x41042e
xor esi, esi
mov eax, dword [ebp - 4]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [esi + 8]
mov dword [esi + 8], edi
cmp eax, edi
je 0x410456
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
pop edi
pop ebx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x410460
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov dword [ebp - 4], 0
call fcn.0042764c
mov esi, dword [eax + 0xc]
movzx eax, word [ebp + 8]
push 0x5628f8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x4104da
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push 2
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
push edi
push eax
call fcn.005167e0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea ecx, [ebp - 4]
push ecx
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
pop ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x410670
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x535298
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x584460]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x120], ebx
mov edi, 1
mov dword [ebp - 0x128], esi
mov dword [ebp - 0x124], 0x3fc
mov dword [ebp - 0x11c], edi
call fcn.0041df57
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4106dd
push 0x80004005
call fcn.00402e30
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
lea ecx, [ebp - 0x114]
push ecx
push 0xf003f
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionThemes
mov dword [ebp - 4], ebx
push SysReAllocStringLen
mov dword [ebp - 0x120], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x410834
lea edx, [ebp - 0x124]
push edx
mov edx, dword [ebp - 0x114]
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x11c]
push ecx
push ebx
push str.CurrentTheme
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x410827
mov eax, dword [ebp - 0x114]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x110]
push ecx
push 0x564178
push esi
call fcn.00402b00
mov eax, dword [esi]
push 0x2e
push eax
call fcn.005127f2
add esp, 0x14
cmp eax, ebx
jne 0x41077e
or eax, 0xffffffff
jmp 0x410782
sub eax, dword [esi]
sar eax, 1
dec eax
push eax
push edi
lea edx, [ebp - 0x118]
push edx
mov ecx, esi
call fcn.00410c60
push eax
mov ecx, esi
mov dword [ebp - 4], edi
call fcn.00406e10
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x118]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4107c3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi]
mov edi, dword [eax - 0xc]
push 0x5c
push eax
call fcn.005127f2
add esp, 8
cmp eax, ebx
jne 0x4107dc
or eax, 0xffffffff
jmp 0x4107e0
sub eax, dword [esi]
sar eax, 1
push edi
inc eax
push eax
lea ecx, [ebp - 0x118]
push ecx
mov ecx, esi
call fcn.00410c60
push eax
mov ecx, esi
mov dword [ebp - 4], 2
call fcn.00406e10
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x118]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x410834
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x410834
mov ecx, dword [ebp - 0x114]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
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.00511b7f
mov esp, ebp
pop ebp
ret
Function at 0x4128f0
Capabilities:
Get process image filename
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x584460]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
call fcn.00412990
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x412977
push 0x104
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
test eax, eax
je 0x412970
lea ecx, [ebp - 0x20c]
push ebx
push ecx
call fcn.00512931
add esp, 8
test eax, eax
je 0x412970
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00511b7f
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00511b7f
mov esp, ebp
pop ebp
ret

Function at 0x412990
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x584460]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4129c6
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00511b7f
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 0x230]
push eax
push esi
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x412a3f
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
lea esp, [esp]
lea ecx, [ebp - 0x20c]
mov eax, ebx
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x412a1e
test dx, dx
je 0x412a1a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x412a1e
add eax, 4
add ecx, 4
test dx, dx
jne 0x4129f8
xor eax, eax
jmp 0x412a23
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x412a51
lea ecx, [ebp - 0x230]
push ecx
push esi
mov dword [ebp - 0x230], 0x22c
call edi
test eax, eax
jne 0x4129f0
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00511b7f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x228]
pop edi
xor ecx, ebp
pop esi
call fcn.00511b7f
mov esp, ebp
pop ebp
ret
Function at 0x412a70
Capabilities:
Check if file exists
Create process on windows
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53585b
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x584460]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.PowerCtrlClient.exe
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x412b9f
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x220], esp
push str.PowerCtrlClient.exe
mov esi, 0x5c
call fcn.00406ce0
mov ecx, esi
lea edi, [ebp - 0x21c]
call fcn.00412bc0
push 0x3c
lea eax, [ebp - 0x25c]
push 0
push eax
mov dword [ebp - 4], 0
call fcn.00513a30
add esp, 0xc
push 1
push 0x56441c
mov ecx, edi
mov dword [ebp - 0x25c], 0x3c
mov dword [ebp - 0x24c], str.PowerCtrlClient.exe
mov dword [ebp - 0x240], 5
mov dword [ebp - 0x258], 0x40
mov dword [ebp - 0x250], str.open
mov dword [ebp - 0x248], 0
call fcn.00412fe0
lea ecx, [ebp - 0x218]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edx, dword [ebp - 0x21c]
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push edx
call esi
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
lea ecx, [ebp - 0x218]
push ecx
mov edi, eax
call esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x412b9d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
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.00511b7f
mov esp, ebp
pop ebp
ret