joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4092e4
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x438ac0
call fcn.00437bf0
push ecx
push esi
push edi
xor esi, esi
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x409329
cmp dword [ebp + 0x10], esi
je 0x40934d
push esi
push 0x4454cc
push dword [ebp + 8]
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x40934d
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x10]
push esi
push edx
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 4]
push ecx
push eax
push edi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00402cb3
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

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

Disassembly:
mov eax, 0x438ad4
call fcn.00437bf0
push ecx
push ecx
push ebx
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
jne 0x4093ae
push ebx
push str.Error1_
push dword [ebp + 8]
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x4093ef
push esi
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, dword [ebp + 0xc]
mov edi, eax
mov dword [ebp - 0x14], ebx
lea eax, [edi + 1]
lea ecx, [esi + 4]
push eax
call fcn.00403003
lea ecx, [ebp - 0x14]
push ebx
push ecx
push edi
push eax
mov dword [esi], eax
push dword [ebp - 0x10]
mov dword [esi + 8], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop ebx
pop edi
pop esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00402cb3
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40aaaa
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
call fcn.0040aed9
mov ebx, dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceW]
push 5
push dword [ebp + 0xc]
push ebx
call esi
push pe_nt_image_headers32
mov dword [ebp + 8], eax
push dword [ebp + 0xc]
push ebx
call esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, dword [sym.imp.KERNEL32.dll_LockResource]
xor ecx, ecx
mov dword [ebp - 0xc], eax
cmp eax, ecx
mov dword [ebp - 4], ecx
mov dword [ebp + 0xc], ecx
mov dword [ebp - 8], ecx
je 0x40ab02
push eax
push ebx
call esi
push eax
mov dword [ebp - 4], eax
call edi
mov dword [ebp + 0xc], eax
cmp dword [ebp + 8], 0
je 0x40ab52
push dword [ebp + 8]
push ebx
call esi
push eax
mov dword [ebp + 8], eax
call edi
push dword [ebp + 0xc]
mov esi, eax
push esi
call fcn.0040ab71
pop ecx
mov edi, eax
pop ecx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
push ebx
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
cmp edi, esi
mov dword [ebp - 8], eax
je 0x40ab49
push edi
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [ebp + 0xc], 0
pop edi
pop esi
pop ebx
je 0x40ab6a
cmp dword [ebp - 0xc], 0
je 0x40ab6a
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 8]
leave
ret 0x14

Function at 0x40e96f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x439120
call fcn.00437bf0
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40e9a5
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 2
je 0x40e9a1
call esi
cmp eax, 3
je 0x40e9a1
or esi, 0xffffffff
jmp 0x40e9b0
xor esi, esi
jmp 0x40e9b0
test al, 0x10
je 0x40e9ad
push 2
jmp 0x40e9af
push 1
pop esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00402cb3
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x411076
Capabilities:
Hide graphical window
Print debug messages

Disassembly:
mov eax, dword [esp + 0x10]
push esi
mov esi, ecx
mov dword [eax], 1
call fcn.0041156f
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
push str.DestroyWindow___n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
pop esi
ret 0x10

Function at 0x4110ad
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x1c]
xor ebx, ebx
mov esi, ecx
push 0x11
mov dword [edi], ebx
call dword [sym.imp.USER32.dll_GetKeyState]
xor ecx, ecx
test ax, ax
mov eax, dword [esp + 0x14]
setl cl
sub eax, 0x23
je 0x41113b
dec eax
je 0x411122
dec eax
je 0x411116
dec eax
je 0x41110e
dec eax
je 0x4110fa
dec eax
je 0x4110ea
sub eax, 0x49
jmp 0x411172
mov dword [edi], 1
push ebx
mov ecx, esi
call fcn.00411664
jmp 0x411172
cmp ecx, ebx
je 0x411172
mov dword [edi], 1
push ebx
mov ecx, esi
call fcn.00411697
jmp 0x411172
push 1
pop eax
mov dword [edi], eax
push eax
jmp 0x4110f1
cmp ecx, ebx
je 0x411172
push 1
pop eax
mov dword [edi], eax
push eax
jmp 0x411105
cmp ecx, ebx
je 0x411172
push dword [esi + 0x58]
mov ecx, dword [esi + 0x6c]
call fcn.004106a3
push eax
mov dword [edi], 1
push ebx
jmp 0x41116a
cmp ecx, ebx
je 0x411172
mov dword [edi], 1
mov eax, dword [esi + 0x6c]
push ebx
add eax, 4
push ebx
push 0x1004
push dword [eax]
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [esi + 0x58]
mov ecx, dword [esi + 0x6c]
mov edi, eax
call fcn.004106a3
dec edi
push eax
push edi
mov ecx, dword [esi + 0x6c]
call fcn.0041078d
pop edi
pop esi
xor eax, eax
pop ebx
ret 0x10
Function at 0x41117a
Capabilities:
Get graphical window text
Log keystrokes via polling

Disassembly:
mov eax, 0x4392f0
call fcn.00437bf0
sub esp, 0x34
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
push 1
mov esi, ecx
pop ebx
push 0x10
mov dword [edi], ebx
call dword [sym.imp.USER32.dll_GetKeyState]
xor ecx, ecx
test ax, ax
movzx eax, word [ebp + 0xc]
setl cl
cmp eax, 9
je 0x411321
cmp eax, 0xd
je 0x41130d
cmp eax, 0x1b
je 0x4112f8
xor ebx, ebx
mov dword [edi], ebx
mov eax, dword [0x444130]
mov dword [ebp + 0x14], eax
mov edi, 0x400
lea ecx, [ebp + 0x14]
push edi
mov dword [ebp - 4], ebx
call fcn.00403003
push edi
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
lea ecx, [ebp + 0x14]
call fcn.0040306b
mov eax, dword [esi + 4]
mov dword [ebp - 0x18], ebx
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.USER32.dll_GetWindowDC]
push dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_GetParent]
mov dword [ebp - 0x18], eax
call edi
push ebx
push ebx
push 0x31
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push dword [ebp - 0x18]
call ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
push eax
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0x20]
push ecx
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x18]
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
push dword [ebp - 0x10]
push dword [ebp - 0x18]
call ebx
mov ebx, dword [sym.imp.USER32.dll_GetClientRect]
add dword [ebp - 0x20], 5
lea eax, [ebp - 0x30]
push eax
push dword [esi + 4]
call ebx
push dword [esi + 4]
call edi
lea ecx, [ebp - 0x40]
push ecx
push eax
call ebx
push dword [esi + 4]
call edi
mov edi, dword [sym.imp.USER32.dll_ClientToScreen]
mov ebx, eax
lea eax, [ebp - 0x30]
push eax
push dword [esi + 4]
call edi
test eax, eax
je 0x411295
lea eax, [ebp - 0x28]
push eax
push dword [esi + 4]
call edi
mov edi, dword [sym.imp.USER32.dll_ScreenToClient]
lea eax, [ebp - 0x30]
push eax
push ebx
call edi
test eax, eax
je 0x4112ad
lea eax, [ebp - 0x28]
push eax
push ebx
call edi
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x20]
sub edx, ecx
cmp eax, edx
jle 0x4112e2
add eax, ecx
cmp eax, dword [ebp - 0x38]
jl 0x4112c6
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
sub edx, dword [ebp - 0x2c]
push 1
sub eax, ecx
push edx
push eax
push dword [ebp - 0x2c]
push ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_MoveWindow]
lea ecx, [ebp - 0x18]
call fcn.004118c5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call fcn.00402cb3
jmp 0x411333
push dword [esi + 4]
mov dword [esi + 0x64], ebx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x411333
xor ebx, ebx
cmp ecx, ebx
je 0x411317
push 1
jmp 0x411318
push ebx
mov ecx, esi
call fcn.00411664
jmp 0x411333
xor ebx, ebx
cmp ecx, ebx
je 0x41132b
push 1
jmp 0x41132c
push ebx
mov ecx, esi
call fcn.00411697
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
Function at 0x41156f
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x439318
call fcn.00437bf0
sub esp, 0x38
mov eax, dword [0x444130]
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
mov edi, 0x1000
push edi
lea ecx, [ebp - 0x10]
call fcn.00403003
push edi
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.0040306b
cmp dword [esi + 0x54], 0
jl 0x41164a
mov edi, dword [sym.imp.USER32.dll_GetParent]
push ebx
push dword [esi + 4]
call edi
mov ebx, dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov dword [ebp - 0x44], eax
mov eax, dword [esi + 0x6c]
add eax, 4
push dword [eax]
call ebx
push dword [ebp - 0x10]
mov dword [ebp - 0x40], eax
mov eax, dword [esi + 0x54]
mov dword [ebp - 0x3c], 0xffffff50
mov dword [ebp - 0x34], eax
mov eax, dword [esi + 0x58]
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 0x60]
push eax
mov dword [ebp - 0x38], 1
call sub.MSVCRT.dll_wcscmp
pop ecx
test eax, eax
pop ecx
jne 0x41160b
or dword [ebp - 0x30], 0xffffffff
cmp dword [esi + 0x64], 0
je 0x411616
mov eax, dword [esi + 0x60]
jmp 0x411619
mov eax, dword [ebp - 0x10]
or dword [esi + 0x54], 0xffffffff
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0x6c]
mov dword [ebp - 0x20], 0x1000
add eax, 4
push dword [eax]
call ebx
push dword [esi + 4]
mov ebx, eax
call edi
lea ecx, [ebp - 0x44]
push ecx
push ebx
push 0x4e
push eax
call edi
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00402cb3
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x41176b
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 8]
push edi
push eax
lea eax, [ebp - 4]
push eax
xor edi, edi
push 0xb0
push ebx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call esi
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
cmp dword [ebp - 8], eax
mov dword [ebp + 8], eax
jne 0x4117fa
cmp dword [ebp - 4], edi
jne 0x4117fa
mov eax, dword [0x45689c]
mov ecx, 0x1ff
mov dword [ebp - 0x808], eax
xor eax, eax
lea edi, [ebp - 0x804]
push 0x400
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x808]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x808]
push 0x2e
push eax
call sub.MSVCRT.dll_wcsrchr
pop ecx
test eax, eax
pop ecx
je 0x41185e
lea ecx, [ebp - 0x808]
sub eax, ecx
sar eax, 1
push eax
jmp 0x411854
mov eax, dword [0x45689c]
mov ecx, 0x1ff
mov dword [ebp - 0x808], eax
xor eax, eax
lea edi, [ebp - 0x804]
push 0x400
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x808]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x808]
push 0x2e
push eax
call sub.MSVCRT.dll_wcsrchr
cmp dword [ebp - 4], 0
pop ecx
pop ecx
jne 0x411852
test eax, eax
je 0x41185e
push dword [ebp + 8]
lea ecx, [ebp - 0x808]
sub eax, ecx
sar eax, 1
inc eax
push eax
jmp 0x411856
push 0xffffffffffffffff
push 0
push 0xb1
push ebx
call esi
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x413824
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1034
call fcn.00437c10
push ebx
push esi
mov esi, dword [ebp + 0xc]
or eax, 0xffffffff
mov ebx, ecx
mov dword [ebp - 0xc], eax
test byte [esi + 0x10], 2
jne 0x41384c
mov dword [ebx + 0x4c], eax
jmp 0x413920
push edi
lea ecx, [ebp - 8]
push dword [esi + 0x14]
call fcn.00402cdf
mov edi, dword [esi + 0xc]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x1004
mov dword [ebp - 4], edi
push dword [ebx + 4]
call esi
cmp edi, eax
jl 0x41387a
and dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov dword [ebp + 0xc], eax
and dword [ebp - 0x34], 0
push 9
pop ecx
xor eax, eax
lea edi, [ebp - 0x30]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x1034]
xor edi, edi
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x2c], edi
push dword [ebp + 0xc]
mov dword [ebp - 0x1c], 0x400
push 0x1073
push dword [ebx + 4]
call esi
lea eax, [ebp - 0x1034]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str._____n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 8]
push dword [eax - 8]
push eax
lea eax, [ebp - 0x1034]
push eax
call sub.MSVCRT.dll__wcsnicmp
add esp, 0xc
test eax, eax
je 0x41390a
inc dword [ebp + 0xc]
push edi
push edi
push 0x1004
push dword [ebx + 4]
call esi
cmp dword [ebp + 0xc], eax
jl 0x4138fd
mov dword [ebp + 0xc], edi
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 4]
je 0x41390f
jmp 0x413880
mov esi, dword [ebp + 0xc]
jmp 0x413912
mov esi, dword [ebp - 0xc]
lea ecx, [ebp - 8]
mov dword [ebx + 0x4c], esi
call fcn.00402cb3
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x415d80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov ecx, dword [0x456b70]
push edi
cmp ecx, ebx
je 0x415dac
mov ecx, dword [ecx]
lea eax, [esi + 0x214]
mov dword [eax], ecx
add dword [0x456b74], 4
cmp dword [eax], ebx
jmp 0x415dd8
push dword [esi + 0x20c]
lea edi, [esi + 0x214]
push 1
push 4
push edi
call sub.MSVCRT.dll_fread
add esp, 0x10
cmp eax, 1
jae 0x415dd6
push str.Read_Error
mov ecx, esi
call fcn.004158a3
cmp dword [edi], ebx
je 0x415f14
mov ecx, esi
call fcn.00415aeb
mov ecx, esi
call fcn.00415912
lea edi, [esi + 0x220]
mov ecx, 0x3f1
mov eax, 0x20202020
mov dword [ebp - 4], 0xfc4
rep stosd dword es:[edi], eax
cmp dword [esi + 0x214], ebx
mov dword [ebp - 8], ebx
jbe 0x415f14
mov edi, 0xfff
mov ecx, esi
call fcn.00415b11
mov ebx, eax
cmp bx, 0x100
jge 0x415e7a
mov eax, dword [0x456b80]
test eax, eax
je 0x415e4e
mov ecx, dword [0x456b84]
lea edx, [ecx + 1]
cmp edx, dword [0x456b7c]
jge 0x415e5f
mov byte [ecx + eax], bl
inc dword [0x456b84]
jmp 0x415e5f
push dword [esi + 0x210]
movsx eax, bx
push eax
call sub.MSVCRT.dll_putc
pop ecx
pop ecx
mov eax, dword [ebp - 4]
movsx ecx, ax
inc eax
and eax, edi
inc dword [ebp - 8]
mov byte [ecx + esi + 0x220], bl
mov dword [ebp - 4], eax
jmp 0x415f05
mov ecx, esi
call fcn.00415c51
mov cx, ax
mov eax, dword [ebp - 4]
sub eax, ecx
lea ecx, [ebx - 0xfd]
dec eax
and eax, edi
test cx, cx
jle 0x415f05
movsx eax, ax
mov dword [ebp - 0xc], eax
movsx eax, cx
add dword [ebp - 8], eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
and eax, edi
movzx bx, byte [eax + esi + 0x220]
mov eax, dword [0x456b80]
test eax, eax
je 0x415ed9
mov ecx, dword [0x456b84]
lea edx, [ecx + 1]
cmp edx, dword [0x456b7c]
jge 0x415eea
mov byte [ecx + eax], bl
inc dword [0x456b84]
jmp 0x415eea
push dword [esi + 0x210]
movsx eax, bx
push eax
call sub.MSVCRT.dll_putc
pop ecx
pop ecx
mov eax, dword [ebp - 4]
movsx ecx, ax
inc eax
and eax, edi
inc dword [ebp - 0xc]
dec dword [ebp - 0x10]
mov byte [ecx + esi + 0x220], bl
mov dword [ebp - 4], eax
jne 0x415ea6
mov eax, dword [ebp - 8]
cmp eax, dword [esi + 0x214]
jb 0x415e19
pop edi
pop esi
pop ebx
leave
ret
Function at 0x415fa7
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, 0x43952e
call fcn.00437bf0
push ecx
push edi
mov edi, ecx
push fcn.0042b7bd
push 0x41606e
push 0x20
lea eax, [edi + 0xc]
push 0x20
push eax
mov dword [ebp - 0x10], edi
call fcn.00437c4c
and dword [ebp - 4], 0
mov dword [edi], 0x43ccb4
cmp dword [0x456b88], 0
jne 0x416054
push ebx
push esi
push str.powrprof.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
push str.EnumPwrSchemes
push ebx
call esi
push str.PowerEnumerate
push ebx
mov dword [0x456b88], eax
call esi
push str.PowerReadFriendlyName
push ebx
mov dword [0x456b8c], eax
call esi
push str.PowerGetActiveScheme
push ebx
mov dword [0x456b90], eax
call esi
push str.GetActivePwrScheme
push ebx
mov dword [0x456b94], eax
call esi
push str.SetActivePwrScheme
push ebx
mov dword [0x456b98], eax
call esi
push str.PowerSetActiveScheme
push ebx
mov dword [0x456b9c], eax
call esi
pop esi
mov dword [0x456ba0], eax
pop ebx
or dword [edi + 4], 0xffffffff
mov ecx, edi
call fcn.004160e4
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
leave
ret
Function at 0x416802
Capabilities:
Check os version
Contain obfuscated stackstrings

Disassembly:
mov eax, 0x43959c
call fcn.00437bf0
sub esp, 0x18
push ebx
xor ebx, ebx
cmp dword [0x46936c], ebx
push esi
push edi
jne 0x416970
mov edi, 0x114
mov esi, 0x468e38
push edi
push ebx
push esi
mov dword [0x46936c], 1
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x468e38], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [0x468e3c]
movzx edx, word [0x468e40]
movzx ecx, ax
shl ecx, 0x10
or ecx, edx
mov dword [0x469370], ecx
mov ecx, dword [0x444130]
mov dword [ebp - 0x14], ecx
cmp eax, 5
mov dword [ebp - 4], ebx
jb 0x416964
mov esi, 0x11c
mov edi, 0x456c50
push esi
push ebx
push edi
call sub.MSVCRT.dll_memset
mov eax, dword [0x444130]
add esp, 0xc
mov dword [0x456c50], esi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x10]
push eax
mov byte [ebp - 4], 1
mov byte [ebp - 0x20], 0x6e
mov byte [ebp - 0x1f], 0x74
mov byte [ebp - 0x1e], 0x64
mov byte [ebp - 0x1d], 0x6c
mov byte [ebp - 0x1c], 0x6c
mov byte [ebp - 0x1b], 0x2e
mov byte [ebp - 0x1a], 0x64
mov byte [ebp - 0x19], 0x6c
mov byte [ebp - 0x18], 0x6c
mov byte [ebp - 0x17], bl
call fcn.00402ee2
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
je 0x416934
lea ecx, [ebp - 0x24]
mov byte [ebp - 0x24], 0x52
push ecx
push eax
mov byte [ebp - 0x23], 0x74
mov byte [ebp - 0x22], 0x6c
mov byte [ebp - 0x21], 0x47
mov byte [ebp - 0x20], 0x65
mov byte [ebp - 0x1f], 0x74
mov byte [ebp - 0x1e], 0x56
mov byte [ebp - 0x1d], 0x65
mov byte [ebp - 0x1c], 0x72
mov byte [ebp - 0x1b], 0x73
mov byte [ebp - 0x1a], 0x69
mov byte [ebp - 0x19], 0x6f
mov byte [ebp - 0x18], 0x6e
mov byte [ebp - 0x17], bl
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x416934
push edi
call eax
mov eax, dword [0x456c54]
cmp eax, ebx
jne 0x416940
push edi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [0x456c54]
mov dword [0x468e3c], eax
mov eax, dword [0x456c58]
mov dword [0x468e40], eax
mov eax, dword [0x456c5c]
lea ecx, [ebp - 0x10]
mov dword [0x468e44], eax
mov byte [ebp - 4], bl
call fcn.00402cb3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00402cb3
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x416989
Capabilities:
Identify system language via api

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
call edi
call edi
mov si, ax
and esi, 0x3ff
call edi
push 1
pop ecx
push 7
mov dword [0x468f54], ecx
pop edi
shr ax, 0xa
cmp si, di
jne 0x4169c1
and dword [0x468f54], 0
jmp 0x416b8f
cmp si, 9
jne 0x4169d2
mov dword [0x468f54], ecx
jmp 0x416b8f
cmp si, 0x10
jne 0x4169e7
mov dword [0x468f54], 2
jmp 0x416b8f
cmp si, 0x1d
jne 0x4169fc
mov dword [0x468f54], 3
jmp 0x416b8f
cmp si, 0x1a
jne 0x416a11
mov dword [0x468f54], 4
jmp 0x416b8f
push 8
pop edx
cmp si, dx
jne 0x416a28
mov dword [0x468f54], 5
jmp 0x416b8f
cmp si, 0x18
jne 0x416a3d
mov dword [0x468f54], 6
jmp 0x416b8f
cmp si, 0x19
je 0x416b25
push 0x13
pop edi
cmp si, di
jne 0x416a6e
cmp ax, 2
mov dword [0x468f54], edx
jne 0x416b8f
mov dword [0x468f54], 0x12
jmp 0x416b8f
cmp si, 3
jne 0x416a83
mov dword [0x468f54], 9
jmp 0x416b8f
push 0xa
pop edx
cmp si, dx
je 0x416b54
cmp si, 0x29
jne 0x416aa4
mov dword [0x468f54], 0xb
jmp 0x416b8f
cmp si, 0x21
jne 0x416ab9
mov dword [0x468f54], 0xc
jmp 0x416b8f
cmp si, 4
jne 0x416ae1
cmp ax, cx
mov dword [0x468f54], 0xd
jne 0x416b8f
mov dword [0x468f54], 0xf
jmp 0x416b8f
push 0x16
pop edx
cmp si, dx
jne 0x416af8
mov dword [0x468f54], 0xe
jmp 0x416b8f
cmp si, 0xc
jne 0x416b0d
mov dword [0x468f54], 0x10
jmp 0x416b8f
cmp si, 0x2a
jne 0x416b1f
mov dword [0x468f54], 0x11
jmp 0x416b8f
cmp si, 0x12
jne 0x416b2d
mov dword [0x468f54], edi
jmp 0x416b8f
push 0x15
pop eax
cmp si, ax
jne 0x416b41
mov dword [0x468f54], 0x14
jmp 0x416b8f
cmp si, 0x1f
jne 0x416b4e
mov dword [0x468f54], eax
jmp 0x416b8f
cmp si, 0xe
jne 0x416b5c
mov dword [0x468f54], edx
jmp 0x416b8f
cmp si, 5
jne 0x416b6e
mov dword [0x468f54], 0x17
jmp 0x416b8f
cmp si, cx
jne 0x416b7f
mov dword [0x468f54], 0x18
jmp 0x416b8f
cmp si, 0x11
jne 0x416b8f
mov dword [0x468f54], 0x19
push dword [0x468f54]
push 0x454394
call fcn.0040f51e
pop ecx
mov dword [0x468f54], eax
pop ecx
pop edi
pop esi
ret

Function at 0x417027
Capabilities:
Check mutex on windows
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push dword [0x465708]
xor ebx, ebx
mov dword [0x457174], esi
mov dword [0x469360], ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
cmp byte [0x469374], bl
mov dword [0x46937c], eax
mov dword [ebp + 8], ebx
jne 0x41708c
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0xb7
je 0x417072
call edi
cmp eax, 5
jne 0x41708c
lea eax, [ebp + 8]
push eax
push 0x4165ea
call dword [sym.imp.USER32.dll_EnumWindows]
push 0xaffe
call dword [sym.imp.USER32.dll_PostQuitMessage]
push ebx
push esi
push ebx
push ebx
push 0xffffffffffffff9c
mov eax, SysReAllocStringLen
push 0xffffffffffffff9c
push eax
push eax
push 0x8cf0002
push 0x456f74
push 0x456d74
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
push ebx
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 0x3e8
push ebx
push eax
push eax
push esi
call dword [sym.imp.USER32.dll_SetTimer]
push 1
pop eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4179ea
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x439638
call fcn.00437bf0
sub esp, 0xc
push ebx
push edi
xor edi, edi
push edi
push 0x80
push 4
push edi
push 1
push 0x40000000
push dword [ebp + 8]
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x417a6d
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x10]
push edi
push eax
lea eax, [ebp - 0x14]
push 2
push eax
push ebx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], 0xfeff
call esi
mov eax, dword [ebp + 0xc]
push dword [eax - 8]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
lea ecx, [ebp - 0x10]
push edi
push ecx
push eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], edi
call sub.MSVCRT.dll_wcslen
pop ecx
shl eax, 1
push eax
push dword [ebp - 0x18]
push ebx
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
lea ecx, [ebp + 8]
call fcn.00402cb3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00402cb3
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret