joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4412b7
Capabilities:
Compare security identifiers

Disassembly:
push 0x20
mov eax, 0x470bb2
call fcn.00443729
lea eax, [ebp - 0x1c]
push eax
xor ebx, ebx
push ebx
push 8
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x14], 0x500
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x44131a
call esi
cmp eax, 0x3f0
jne 0x44130a
lea eax, [ebp - 0x1c]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call esi
cmp eax, 0x78
jne 0x441316
xor eax, eax
jmp 0x4413c1
test eax, eax
je 0x44130f
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x20]
push eax
push ebx
push ebx
push 2
push dword [ebp - 0x1c]
call edi
test eax, eax
jne 0x44130f
call esi
cmp eax, 0x7a
jne 0x44130f
push dword [ebp - 0x20]
call fcn.00444191
mov esi, eax
pop ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x20]
push esi
push 2
push dword [ebp - 0x1c]
call edi
test eax, eax
je 0x4413b4
lea eax, [ebp - 0x28]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4413b4
mov edi, ebx
cmp dword [esi], ebx
jbe 0x4413ab
lea eax, [esi + 4]
mov dword [ebp - 0x24], eax
push dword [ebp - 0x28]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x4413a8
mov eax, dword [ebp - 0x24]
inc edi
add eax, 8
mov dword [ebp - 0x24], eax
cmp edi, dword [esi]
jb 0x441389
jmp 0x4413ab
xor ebx, ebx
inc ebx
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
or dword [ebp - 4], 0xffffffff
push esi
call fcn.0044246e
pop ecx
mov eax, ebx
call fcn.004436d8
ret
Function at 0x4413d0
Capabilities:
Create process on windows

Disassembly:
push 0x98
mov eax, 0x470bef
call fcn.00443729
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.00442700
push 0x44
pop esi
push esi
lea eax, [ebp - 0xa4]
push ebx
push eax
call fcn.00442700
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 0x441433
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 0x4414d7
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.004436d8
ret 8
Function at 0x4414ed
Capabilities:
Create process on windows

Disassembly:
push 0xb8
mov eax, 0x470c2f
call fcn.00443729
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.00442700
push 0x44
pop esi
push esi
lea eax, [ebp - 0xc4]
push ebx
push eax
call fcn.00442700
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 0x44155c
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 0x44165e
mov esi, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
xor edi, edi
inc edi
jmp 0x441605
cmp eax, edi
jne 0x441618
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 0x441618
cmp dword [ebp - 0x7c], 0x10
je 0x441618
cmp dword [ebp - 0x7c], 0x12
je 0x441618
push 0x4ff
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x64]
push eax
push edi
call esi
test eax, eax
jne 0x4415e1
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 [0x4a6824], 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 0x441663
mov esi, 0xcccccccc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00401580
mov eax, esi
call fcn.004436d8
ret 8
Function at 0x441679
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.00442700
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 0x441776
jmp 0x441740
cmp eax, 1
jne 0x441758
jmp 0x44172d
cmp dword [ebp - 0x20], 0xf
je 0x44170b
cmp dword [ebp - 0x20], 0x113
jne 0x44171f
mov ecx, dword [ebp + 0x14]
push 1
call fcn.004376d2
jmp 0x44171f
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 0x441740
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 0x4416f0
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 0x4416e9
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 [0x4a6824], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
pop ebx
leave
ret 0x10

Function at 0x441994
Capabilities:
Delete directory

Disassembly:
push 8
mov eax, 0x470332
call fcn.004436f6
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.00456412
add esp, 0x34
test al, al
je 0x4419f0
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.004436c4
ret 4
Function at 0x4419fa
Capabilities:
Delete file
Set file attributes

Disassembly:
push 8
mov eax, 0x470332
call fcn.004436f6
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.00456412
add esp, 0x34
test al, al
jne 0x441a38
mov eax, esi
jmp 0x441a78
push dword [ebp + 8]
xor edi, edi
call fcn.0044089e
test eax, eax
jne 0x441a76
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.004436c4
ret 4

Function at 0x449b06
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x449b41
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x449b28
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x449b39
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x449b43
inc edi
add eax, 0x28
cmp edi, esi
jb 0x449b1e
xor eax, eax
pop edi
pop esi
ret
Function at 0x44e54e
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.0044b61e
mov dword [ebp - 0x14], eax
cmp dword [0x4a76f0], edi
jne 0x44e63f
push 0x800
push edi
push 0x482a38
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x44e5cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x44e71f
push 0x482a38
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x44e71f
push 0x482a50
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x44e71f
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x4a76f0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x4a76f4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x4a76f8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4a7700], eax
test eax, eax
je 0x44e63c
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4a76fc], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x44e664
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x44e657
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x44e679
push 4
pop eax
jmp 0x44e721
cmp dword [ebp - 0x14], edi
je 0x44e679
push dword [0x4a76f0]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x44e65e
mov eax, dword [0x4a76fc]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x44e6d7
cmp dword [0x4a7700], esi
je 0x44e6d7
push eax
call ebx
push dword [0x4a7700]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x44e6d7
test eax, eax
je 0x44e6d7
call ecx
test eax, eax
je 0x44e6cc
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 0x44e6cc
test byte [ebp - 8], 1
jne 0x44e6d7
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x44e707
mov eax, dword [0x4a76f4]
cmp eax, esi
je 0x44e704
push eax
call ebx
test eax, eax
je 0x44e704
call eax
mov edi, eax
test edi, edi
je 0x44e704
mov eax, dword [0x4a76f8]
cmp eax, esi
je 0x44e704
push eax
call ebx
test eax, eax
je 0x44e704
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x4a76f0]
call ebx
test eax, eax
je 0x44e71f
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x44e721
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004426e3
leave
ret
Function at 0x455649
Capabilities:
Read file on windows

Disassembly:
push 0x10c
mov eax, 0x470e2a
call fcn.00443729
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 0x4556ce
lea edi, [ebp - 0x118]
push edi
push eax
push edx
call fcn.0045eace
test al, al
jne 0x455720
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.00434674
push 0x497a1c
lea eax, [ebp - 0x114]
push eax
call fcn.00443669
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 0x455720
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.004344c8
push 0x4979a8
lea eax, [ebp - 0xc0]
jmp 0x4556c8
mov eax, dword [ebp - 0x118]
call fcn.004436d8
ret 8

Function at 0x4557e0
Capabilities:
Write file on windows

Disassembly:
push 0x88
mov eax, 0x470e8d
call fcn.00443729
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 0x455858
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.004344c8
push 0x4979a8
lea eax, [ebp - 0x90]
push eax
call fcn.00443669
mov eax, dword [ebp - 0x94]
call fcn.004436d8
ret 8

Function at 0x455ac7
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 0x455b4c
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 0x455b45
mov ecx, dword [edi]
test ecx, ecx
je 0x455b40
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x455b36
cmp edx, 2
jbe 0x455b28
cmp edx, 7
jne 0x455b36
test cl, 1
jne 0x455b36
shr ecx, 1
cmp ecx, 1
jb 0x455b36
cmp word [esi + ecx*2 - 2], bx
jne 0x455b36
cmp ecx, 1
jbe 0x455b45
cmp word [esi + ecx*2 - 4], bx
jmp 0x455b34
test cl, 1
jne 0x455b36
shr ecx, 1
cmp word [esi + ecx*2 - 2], bx
je 0x455b45
xor eax, eax
push 0xd
mov word [esi], ax
pop eax
jmp 0x455b45
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 0x45638f
Capabilities:
Get file attributes

Disassembly:
push 0
mov eax, 0x470f4a
call fcn.004436f6
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp byte [ebp + 0x38], bl
je 0x4563bb
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 0x456402
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.0045a0d0
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.00456311
add esp, 0x30
test eax, eax
setne bl
lea ecx, [ebp + 8]
call fcn.00401580
mov al, bl
call fcn.004436c4
ret

Function at 0x456412
Capabilities:
Check if file exists

Disassembly:
push 0xc8
mov eax, 0x470f8b
call fcn.00443729
xor ebx, ebx
test byte [ebp + 0x38], 0x10
mov dword [ebp - 4], ebx
je 0x456470
lea ecx, [ebp + 8]
call fcn.0043b17b
test al, al
je 0x456470
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.004565f5
add esp, 0x34
mov bl, al
lea ecx, [ebp + 8]
call fcn.00401580
mov al, bl
jmp 0x4565ef
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.0045747d
add esp, 0x30
cmp eax, 0xffffffff
je 0x4564b1
test byte [ebp + 0x38], 4
je 0x4564a3
test al, 0x10
je 0x4564ad
test byte [ebp + 0x38], 8
je 0x456461
test al, 0x10
je 0x456461
mov bl, 1
jmp 0x456461
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
je 0x4565e5
cmp esi, 3
je 0x4565e5
cmp esi, 5
jne 0x456599
lea ecx, [ebp - 0xcc]
call fcn.004558c1
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.00457150
mov esi, eax
add esp, 0x34
cmp esi, 0xffffffff
je 0x456570
lea ecx, [ebp - 0xd0]
call fcn.0042c87f
test byte [ebp + 0x38], 4
mov dword [ebp - 0xd0], esi
je 0x45653c
test byte [ebp - 0xcc], 0x10
je 0x45654b
test byte [ebp + 0x38], 8
je 0x45654d
test byte [ebp - 0xcc], 0x10
je 0x45654d
mov bl, 1
lea ecx, [ebp - 0xd0]
call fcn.0042c87f
lea ecx, [ebp - 0x70]
call fcn.00401580
lea ecx, [ebp - 0xa0]
call fcn.00401580
jmp 0x456461
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0xd0]
mov esi, eax
call fcn.0042c87f
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 0x456461
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.00434523
push 0x4979a8
lea eax, [ebp - 0x90]
push eax
call fcn.00443669
lea ecx, [ebp + 8]
call fcn.00401580
xor al, al
call fcn.004436d8
ret
Function at 0x45824e
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 0x458284
push str.GetSystemDefaultUILanguage
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x458284
call eax
jmp 0x458339
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 0x4582ce
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push 0x485198
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x45831a
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 0x458307
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.004561c7
test esi, esi
je 0x45831a
mov esi, 0x409
jmp 0x45832c
push 0x10
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.004440fe
add esp, 0xc
movzx esi, ax
lea ecx, [ebp - 0x14]
call fcn.004561c7
mov ax, si
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004426e3
leave
ret
Function at 0x458d63
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x38
mov eax, 0x4715ef
call fcn.00443729
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 0x458d8f
mov al, 1
jmp 0x458dab
xor ecx, ecx
movzx edx, word [eax]
add eax, 2
test dx, dx
je 0x458da3
cmp ecx, esi
je 0x458db1
lea eax, [eax + edx*2]
inc ecx
cmp ecx, 0x10
jl 0x458d91
xor al, al
call fcn.004436d8
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 0x458d8b

Function at 0x459507
Capabilities:
Enumerate process modules

Disassembly:
push 0x4a0
mov eax, 0x471711
call fcn.00443729
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 0x45965f
xor edi, edi
cmp dword [ebp - 0x484], edi
jbe 0x45965f
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 0x459643
push 0x18
lea eax, [ebp - 0x4a4]
push 0
push eax
call fcn.00442700
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 0x459643
cmp dword [ebp - 0x494], 0
je 0x459643
lea ecx, [ebp - 0x444]
call fcn.00455901
mov eax, dword [ebp - 0x490]
push 0x485198
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.00455866
mov ecx, dword [ebp - 0x488]
lea eax, [ebp - 0x47c]
push eax
lea eax, [ebp - 0x4ac]
push eax
mov byte [ebp - 4], 2
call fcn.004588fa
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 0x459566
call fcn.004436d8
ret