joyce8/EMBER2024-capa huggingface dataset:
Function at 0x441399
Capabilities:
Create process on windows

Disassembly:
push 0x98
mov eax, 0x470b6a
call fcn.004436e9
mov eax, dword [ebp + 8]
xor ecx, ecx
inc ecx
push ecx
lea ecx, [ebp - 0x41]
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.004025e0
xor ebx, ebx
mov dword [ebp - 4], ebx
push 0x10
lea eax, [ebp - 0x60]
push ebx
push eax
call fcn.004426c0
push 0x44
pop esi
push esi
lea eax, [ebp - 0xa4]
push ebx
push eax
call fcn.004426c0
xor ecx, ecx
xor eax, eax
inc ecx
add esp, 0x18
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0x78], ecx
mov word [ebp - 0x74], ax
cmp dword [ebp + 0xc], eax
je 0x4413fc
mov word [ebp - 0x74], cx
cmp dword [ebp - 0x28], 8
lea eax, [ebp - 0x3c]
cmovae eax, dword [ebp - 0x3c]
push eax
lea eax, [ebp - 0x4c]
push str.Attempting_to_launch__no_wait_:__s
mov edi, str.utils.cpp
push eax
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], 0x486
call fcn.0041183c
add esp, 0xc
lea eax, [ebp - 0x50]
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x40]
push eax
call fcn.00402910
xor ecx, ecx
inc ecx
mov byte [ebp - 4], cl
mov byte [eax + 4], cl
mov ecx, dword [eax]
call fcn.004035c0
lea ecx, [ebp - 0x60]
push ecx
lea ecx, [ebp - 0xa4]
push ecx
push ebx
push ebx
push 0x20
xor ecx, ecx
inc ecx
push ecx
push ebx
push ebx
push dword [eax]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x50]
call fcn.00403460
push esi
lea eax, [ebp - 0x4c]
push str.Launch_result__d
push eax
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], 0x48b
call fcn.0041183c
add esp, 0xc
test esi, esi
je 0x4414a0
push 0x3e8
push dword [ebp - 0x60]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00401580
mov eax, esi
call fcn.00443698
ret 8
Function at 0x4414b6
Capabilities:
Create process on windows

Disassembly:
push 0xb8
mov eax, 0x470baa
call fcn.004436e9
mov eax, dword [ebp + 8]
xor ecx, ecx
inc ecx
push ecx
lea ecx, [ebp - 0x45]
push ecx
xor ebx, ebx
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x44], ebx
call fcn.004025e0
mov dword [ebp - 4], ebx
push 0x10
lea eax, [ebp - 0x64]
push ebx
push eax
call fcn.004426c0
push 0x44
pop esi
push esi
lea eax, [ebp - 0xc4]
push ebx
push eax
call fcn.004426c0
xor edi, edi
xor eax, eax
inc edi
add esp, 0x18
mov dword [ebp - 0xc4], esi
mov dword [ebp - 0x98], edi
mov word [ebp - 0x94], ax
cmp dword [ebp + 0xc], eax
je 0x441525
mov word [ebp - 0x94], di
cmp dword [ebp - 0x28], 8
lea eax, [ebp - 0x3c]
cmovae eax, dword [ebp - 0x3c]
push eax
lea eax, [ebp - 0x50]
push str.Attempting_to_launch:__s
push eax
mov dword [ebp - 0x50], str.utils.cpp
mov dword [ebp - 0x4c], 0x446
call fcn.0041183c
add esp, 0xc
lea eax, [ebp - 0x54]
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x40]
push eax
call fcn.00402910
xor ecx, ecx
inc ecx
mov byte [ebp - 4], cl
mov byte [eax + 4], cl
mov ecx, dword [eax]
call fcn.004035c0
lea ecx, [ebp - 0x64]
push ecx
lea ecx, [ebp - 0xc4]
push ecx
push ebx
push ebx
push 0x20
push ebx
push ebx
push ebx
push dword [eax]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x54]
call fcn.00403460
test esi, esi
je 0x441627
mov esi, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
xor edi, edi
inc edi
jmp 0x4415ce
cmp eax, edi
jne 0x4415e1
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
cmp dword [ebp - 0x7c], 0x11
je 0x4415e1
cmp dword [ebp - 0x7c], 0x10
je 0x4415e1
cmp dword [ebp - 0x7c], 0x12
je 0x4415e1
push 0x4ff
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x64]
push eax
push edi
call esi
test eax, eax
jne 0x4415aa
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0x44]
push dword [ebp - 0x64]
mov dword [0x4a67f4], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x44]
mov dword [ebp - 0x50], str.utils.cpp
push eax
lea eax, [ebp - 0x50]
push str.Launch_result__d__exit_code__d
push eax
mov dword [ebp - 0x4c], 0x467
call fcn.0041183c
mov esi, dword [ebp - 0x44]
add esp, 0x10
jmp 0x44162c
mov esi, 0xcccccccc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00401580
mov eax, esi
call fcn.00443698
ret 8
Function at 0x441642
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push 0x38
xor ebx, ebx
lea eax, [ebp - 0x5c]
push ebx
push eax
call fcn.004426c0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x4c], eax
xor eax, eax
add esp, 0xc
cmp dword [ebp + 0x10], eax
mov dword [ebp - 4], ebx
setne al
mov dword [ebp - 8], 0xcccccccc
mov dword [ebp - 0x60], 0x3c
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x5c], 0x40
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ecx, dword [ebp - 4]
test eax, eax
cmovne ecx, dword [ebp - 0x28]
mov dword [ebp - 4], ecx
test ecx, ecx
je 0x44173f
jmp 0x441709
cmp eax, 1
jne 0x441721
jmp 0x4416f6
cmp dword [ebp - 0x20], 0xf
je 0x4416d4
cmp dword [ebp - 0x20], 0x113
jne 0x4416e8
mov ecx, dword [ebp + 0x14]
push 1
call fcn.00437609
jmp 0x4416e8
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x441709
push 1
push ebx
push ebx
push ebx
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x4416b9
push 0x4ff
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 4]
push eax
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
test eax, eax
jne 0x4416b2
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 8]
push dword [ebp - 4]
mov dword [0x4a67f4], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
pop ebx
leave
ret 0x10

Function at 0x44195d
Capabilities:
Delete directory

Disassembly:
push 8
mov eax, 0x470c56
call fcn.004436b6
push 8
sub esp, 0x30
mov ecx, esp
mov dword [ebp - 0x14], esp
xor ebx, ebx
inc ebx
push ebx
lea eax, [ebp - 0xd]
push eax
push dword [ebp + 8]
xor edi, edi
call fcn.0040ca90
and dword [ebp - 4], edi
or dword [ebp - 4], 0xffffffff
call fcn.004563d2
add esp, 0x34
test al, al
je 0x4419b9
push 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
push 0
cmovne edi, ebx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov eax, edi
call fcn.00443684
ret 4
Function at 0x4419c3
Capabilities:
Delete file
Set file attributes

Disassembly:
push 8
mov eax, 0x470c56
call fcn.004436b6
push 4
sub esp, 0x30
mov ecx, esp
mov dword [ebp - 0x14], esp
xor esi, esi
inc esi
push esi
lea eax, [ebp - 0xd]
push eax
push dword [ebp + 8]
call fcn.0040ca90
and dword [ebp - 4], 0
or dword [ebp - 4], 0xffffffff
call fcn.004563d2
add esp, 0x34
test al, al
jne 0x441a01
mov eax, esi
jmp 0x441a41
push dword [ebp + 8]
xor edi, edi
call fcn.00440867
test eax, eax
jne 0x441a3f
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x8001
call esi
push 0x80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 1
test eax, eax
pop eax
push 0
cmovne edi, eax
call esi
mov eax, edi
call fcn.00443684
ret 4
Function at 0x44e50e
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x49e850]
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
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0044b5de
mov dword [ebp - 0x14], eax
cmp dword [0x4a76c0], edi
jne 0x44e5ff
push 0x800
push edi
push 0x482a08
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x44e58c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x44e6df
push 0x482a08
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x44e6df
push 0x482a20
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x44e6df
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x4a76c0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x4a76c4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x4a76c8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4a76d0], eax
test eax, eax
je 0x44e5fc
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4a76cc], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x44e624
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x44e617
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x44e639
push 4
pop eax
jmp 0x44e6e1
cmp dword [ebp - 0x14], edi
je 0x44e639
push dword [0x4a76c0]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x44e61e
mov eax, dword [0x4a76cc]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x44e697
cmp dword [0x4a76d0], esi
je 0x44e697
push eax
call ebx
push dword [0x4a76d0]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x44e697
test eax, eax
je 0x44e697
call ecx
test eax, eax
je 0x44e68c
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 0x44e68c
test byte [ebp - 8], 1
jne 0x44e697
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x44e6c7
mov eax, dword [0x4a76c4]
cmp eax, esi
je 0x44e6c4
push eax
call ebx
test eax, eax
je 0x44e6c4
call eax
mov edi, eax
test edi, edi
je 0x44e6c4
mov eax, dword [0x4a76c8]
cmp eax, esi
je 0x44e6c4
push eax
call ebx
test eax, eax
je 0x44e6c4
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x4a76c0]
call ebx
test eax, eax
je 0x44e6df
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x44e6e1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004426a3
leave
ret
Function at 0x455609
Capabilities:
Read file on windows

Disassembly:
push 0x10c
mov eax, 0x470df1
call fcn.004436e9
mov esi, ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [esi + 4]
mov edx, dword [ebp + 8]
xor edi, edi
xor ebx, ebx
inc edi
cmp eax, 0xffffffff
cmove eax, edi
mov dword [ebp - 0x118], ebx
test ecx, ecx
je 0x45568e
lea edi, [ebp - 0x118]
push edi
push eax
push edx
call fcn.0045ea8d
test al, al
jne 0x4556e0
push ebx
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x70], 0x477ab0
mov dword [ebp - 0x48], 0x478490
call fcn.0040c733
push 1
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x114]
mov dword [ebp - 4], ebx
call fcn.004345ab
push 0x497948
lea eax, [ebp - 0x114]
push eax
call fcn.00443629
push ebx
lea ecx, [ebp - 0x118]
push ecx
push eax
push edx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4556e0
push ebx
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x477ab0
mov dword [ebp - 0x18], 0x478490
call fcn.0040c733
push edi
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], edi
call fcn.004343ff
push 0x4978d4
lea eax, [ebp - 0xc0]
jmp 0x455688
mov eax, dword [ebp - 0x118]
call fcn.00443698
ret 8

Function at 0x4557a0
Capabilities:
Write file on windows

Disassembly:
push 0x88
mov eax, 0x470e54
call fcn.004436e9
mov esi, ecx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor ebx, ebx
push 0
inc ebx
cmp eax, 0xffffffff
lea ecx, [ebp - 0x94]
push ecx
cmove eax, ebx
push eax
push edx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x455818
push eax
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x477ab0
mov dword [ebp - 0x18], 0x478490
call fcn.0040c733
and dword [ebp - 4], 0
push ebx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x90]
call fcn.004343ff
push 0x4978d4
lea eax, [ebp - 0x90]
push eax
call fcn.00443629
mov eax, dword [ebp - 0x94]
call fcn.00443698
ret 8

Function at 0x455a87
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x455b0c
mov esi, dword [ebp + 8]
push edi
push esi
lea eax, [ebp + 0x10]
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp + 0x10], ebx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test esi, esi
je 0x455b05
mov ecx, dword [edi]
test ecx, ecx
je 0x455b00
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x455af6
cmp edx, 2
jbe 0x455ae8
cmp edx, 7
jne 0x455af6
test cl, 1
jne 0x455af6
shr ecx, 1
cmp ecx, 1
jb 0x455af6
cmp word [esi + ecx*2 - 2], bx
jne 0x455af6
cmp ecx, 1
jbe 0x455b05
cmp word [esi + ecx*2 - 4], bx
jmp 0x455af4
test cl, 1
jne 0x455af6
shr ecx, 1
cmp word [esi + ecx*2 - 2], bx
je 0x455b05
xor eax, eax
push 0xd
mov word [esi], ax
pop eax
jmp 0x455b05
xor ecx, ecx
mov word [esi], cx
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
push 0x80004005
call fcn.00411a9c
int3
Function at 0x45634f
Capabilities:
Get file attributes

Disassembly:
push 0
mov eax, 0x4710dd
call fcn.004436b6
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp byte [ebp + 0x38], bl
je 0x45637b
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
jne 0x4563c2
push 0x80
sub esp, 0x30
mov ecx, esp
push ebx
lea eax, [ebp + 8]
mov edi, 0x477ab0
mov esi, 0x478490
push eax
mov dword [ecx], edi
mov dword [ecx + 0x28], esi
call fcn.0040c733
call fcn.0045a090
pop ecx
mov ecx, esp
push ebx
lea eax, [ebp + 8]
push eax
mov dword [ecx], edi
mov dword [ecx + 0x28], esi
call fcn.0040c733
call fcn.004562d1
add esp, 0x30
test eax, eax
setne bl
lea ecx, [ebp + 8]
call fcn.00401580
mov al, bl
call fcn.00443684
ret

Function at 0x4563d2
Capabilities:
Check if file exists

Disassembly:
push 0xc8
mov eax, 0x470f2f
call fcn.004436e9
xor ebx, ebx
test byte [ebp + 0x38], 0x10
mov dword [ebp - 4], ebx
je 0x456430
lea ecx, [ebp + 8]
call fcn.0043b0b2
test al, al
je 0x456430
push dword [ebp + 0x38]
lea eax, [ebp + 8]
sub esp, 0x30
mov ecx, esp
push ebx
push eax
mov dword [ecx], 0x477ab0
mov dword [ecx + 0x28], 0x478490
call fcn.0040c733
call fcn.004565b5
add esp, 0x34
mov bl, al
lea ecx, [ebp + 8]
call fcn.00401580
mov al, bl
jmp 0x4565af
sub esp, 0x30
mov ecx, esp
push ebx
lea eax, [ebp + 8]
push eax
mov dword [ecx], 0x477ab0
mov dword [ecx + 0x28], 0x478490
call fcn.0040c733
call fcn.0045743d
add esp, 0x30
cmp eax, 0xffffffff
je 0x456471
test byte [ebp + 0x38], 4
je 0x456463
test al, 0x10
je 0x45646d
test byte [ebp + 0x38], 8
je 0x456421
test al, 0x10
je 0x456421
mov bl, 1
jmp 0x456421
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
je 0x4565a5
cmp esi, 3
je 0x4565a5
cmp esi, 5
jne 0x456559
lea ecx, [ebp - 0xcc]
call fcn.00455881
or dword [ebp - 0xd0], 0xffffffff
lea eax, [ebp - 0xcc]
push eax
sub esp, 0x30
mov ecx, esp
push ebx
lea eax, [ebp + 8]
push eax
mov byte [ebp - 4], 2
mov dword [ecx], 0x477ab0
mov dword [ecx + 0x28], 0x478490
call fcn.0040c733
call fcn.00457110
mov esi, eax
add esp, 0x34
cmp esi, 0xffffffff
je 0x456530
lea ecx, [ebp - 0xd0]
call fcn.0042c7b6
test byte [ebp + 0x38], 4
mov dword [ebp - 0xd0], esi
je 0x4564fc
test byte [ebp - 0xcc], 0x10
je 0x45650b
test byte [ebp + 0x38], 8
je 0x45650d
test byte [ebp - 0xcc], 0x10
je 0x45650d
mov bl, 1
lea ecx, [ebp - 0xd0]
call fcn.0042c7b6
lea ecx, [ebp - 0x70]
call fcn.00401580
lea ecx, [ebp - 0xa0]
call fcn.00401580
jmp 0x456421
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0xd0]
mov esi, eax
call fcn.0042c7b6
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], bl
call fcn.00401580
lea ecx, [ebp - 0xa0]
call fcn.00401580
test byte [ebp + 0x38], 0x20
je 0x456421
push ebx
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x477ab0
mov dword [ebp - 0x18], 0x478490
call fcn.0040c733
push 1
push esi
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 3
call fcn.0043445a
push 0x4978d4
lea eax, [ebp - 0x90]
push eax
call fcn.00443629
lea ecx, [ebp + 8]
call fcn.00401580
xor al, al
call fcn.00443698
ret
Function at 0x45820e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x49e850]
xor eax, ebp
mov dword [ebp - 4], eax
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x458244
push str.GetSystemDefaultUILanguage
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x458244
call eax
jmp 0x4582f9
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x14]
push eax
push 0xf003f
xor ebx, ebx
push ebx
push str..DefaultControl_PaneldesktopResourceLocale
push SysFreeString
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], 0xa
call esi
test eax, eax
jne 0x45828e
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push 0x485168
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4582da
lea eax, [ebp - 0x18]
push eax
push 0xf003f
push ebx
push str..DEFAULTControl_PanelInternational
push SysFreeString
mov dword [ebp - 0x18], ebx
call esi
mov esi, eax
test esi, esi
jne 0x4582c7
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push str.Locale
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
lea ecx, [ebp - 0x18]
call fcn.00456187
test esi, esi
je 0x4582da
mov esi, 0x409
jmp 0x4582ec
push 0x10
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.004440be
add esp, 0xc
movzx esi, ax
lea ecx, [ebp - 0x14]
call fcn.00456187
mov ax, si
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004426a3
leave
ret
Function at 0x458d23
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x38
mov eax, 0x4715b6
call fcn.004436e9
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
push dword [eax]
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
push ecx
and esi, 0xf
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x458d4f
mov al, 1
jmp 0x458d6b
xor ecx, ecx
movzx edx, word [eax]
add eax, 2
test dx, dx
je 0x458d63
cmp ecx, esi
je 0x458d71
lea eax, [eax + edx*2]
inc ecx
cmp ecx, 0x10
jl 0x458d51
xor al, al
call fcn.00443698
ret
push 1
lea ecx, [ebp - 0x41]
push ecx
push edx
push eax
lea ecx, [ebp - 0x40]
call fcn.0040cada
and dword [ebp - 4], 0
push eax
mov ecx, edi
call fcn.0040cdaa
lea ecx, [ebp - 0x40]
call fcn.00401580
jmp 0x458d4b

Function at 0x4594c7
Capabilities:
Enumerate process modules

Disassembly:
push 0x4a0
mov eax, 0x4716fb
call fcn.004436e9
mov eax, dword [ebp + 8]
mov dword [ebp - 0x488], eax
lea eax, [ebp - 0x484]
push eax
push 0x400
lea eax, [ebp - 0x410]
push eax
call sub.PSAPI.DLL_EnumProcesses
push str.NtQueryInformationProcess
push str.Ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x45961f
xor edi, edi
cmp dword [ebp - 0x484], edi
jbe 0x45961f
push dword [ebp + edi*4 - 0x410]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x480], esi
and dword [ebp - 4], 0
test esi, esi
je 0x459603
push 0x18
lea eax, [ebp - 0x4a4]
push 0
push eax
call fcn.004426c0
add esp, 0xc
lea eax, [ebp - 0x48c]
push eax
push 0x18
lea eax, [ebp - 0x4a4]
push eax
push 0
push esi
call ebx
test eax, eax
js 0x459603
cmp dword [ebp - 0x494], 0
je 0x459603
lea ecx, [ebp - 0x444]
call fcn.004558c1
mov eax, dword [ebp - 0x490]
push 0x485168
lea ecx, [ebp - 0x43c]
mov byte [ebp - 4], 1
mov dword [ebp - 0x444], eax
call fcn.00405190
mov eax, dword [ebp - 0x494]
mov dword [ebp - 0x47c], eax
lea eax, [ebp - 0x444]
push eax
lea ecx, [ebp - 0x478]
call fcn.00455826
mov ecx, dword [ebp - 0x488]
lea eax, [ebp - 0x47c]
push eax
lea eax, [ebp - 0x4ac]
push eax
mov byte [ebp - 4], 2
call fcn.004588ba
lea ecx, [ebp - 0x474]
call fcn.00401580
lea ecx, [ebp - 0x440]
call fcn.00401580
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x480]
call fcn.00403440
inc edi
cmp edi, dword [ebp - 0x484]
jb 0x459526
call fcn.00443698
ret
Function at 0x459875
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x49e850]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.00458944
test al, al
je 0x4598e4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x18]
push ecx
push 0x28
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4598e4
push esi
lea eax, [ebp - 0x20]
push eax
push str.SeShutdownPrivilege
xor esi, esi
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [ebp - 0x20]
push esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
push esi
push esi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 0x18]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
pop esi
push 0xffff
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.004426a3
leave
ret

Function at 0x459deb
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 8]
xor eax, eax
cmp dword [ebp + 0x24], 8
push esi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0x10]
cmovae eax, dword [ebp + 0x10]
push 0x2001f
push eax
push ecx
lea ecx, [ebp - 0xc]
call fcn.00401410
mov esi, eax
test esi, esi
jne 0x459e37
cmp dword [ebp + 0x54], 8
lea eax, [ebp + 0x40]
cmovae eax, dword [ebp + 0x40]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
lea ecx, [ebp - 0xc]
mov dword [0x4a78c0], esi
call fcn.004013e0
lea ecx, [ebp + 0xc]
call fcn.00401580
lea ecx, [ebp + 0x3c]
call fcn.00401580
xor eax, eax
test esi, esi
sete al
pop esi
leave
ret

Function at 0x459e5f
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x49e850]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x459e91
xor al, al
jmp 0x459eaa
cmp dword [ebp - 0x108], 2
jne 0x459ea8
cmp dword [ebp - 0x114], 5
jb 0x459ea8
xor eax, eax
inc eax
jmp 0x459eaa
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004426a3
leave
ret