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

Disassembly:
push 0x98
mov eax, 0x46f593
call fcn.00442722
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.004416e0
push 0x44
pop esi
push esi
lea eax, [ebp - 0xa4]
push ebx
push eax
call fcn.004416e0
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 0x440413
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.00411965
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.00411965
add esp, 0xc
test esi, esi
je 0x4404b7
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.004426d1
ret 8
Function at 0x4404cd
Capabilities:
Create process on windows

Disassembly:
push 0xb8
mov eax, 0x46f5d3
call fcn.00442722
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.004416e0
push 0x44
pop esi
push esi
lea eax, [ebp - 0xc4]
push ebx
push eax
call fcn.004416e0
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 0x44053c
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.00411965
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 0x44063e
mov esi, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
xor edi, edi
inc edi
jmp 0x4405e5
cmp eax, edi
jne 0x4405f8
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 0x4405f8
cmp dword [ebp - 0x7c], 0x10
je 0x4405f8
cmp dword [ebp - 0x7c], 0x12
je 0x4405f8
push 0x4ff
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x64]
push eax
push edi
call esi
test eax, eax
jne 0x4405c1
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 [0x4a55c4], 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.00411965
mov esi, dword [ebp - 0x44]
add esp, 0x10
jmp 0x440643
mov esi, 0xcccccccc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00401580
mov eax, esi
call fcn.004426d1
ret 8
Function at 0x440659
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.004416e0
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 0x440756
jmp 0x440720
cmp eax, 1
jne 0x440738
jmp 0x44070d
cmp dword [ebp - 0x20], 0xf
je 0x4406eb
cmp dword [ebp - 0x20], 0x113
jne 0x4406ff
mov ecx, dword [ebp + 0x14]
push 1
call fcn.004369d3
jmp 0x4406ff
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 0x440720
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 0x4406d0
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 0x4406c9
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 [0x4a55c4], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
pop ebx
leave
ret 0x10

Function at 0x440974
Capabilities:
Delete directory

Disassembly:
push 8
mov eax, 0x46d08e
call fcn.004426ef
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.0040c6e1
and dword [ebp - 4], edi
or dword [ebp - 4], 0xffffffff
call fcn.00455651
add esp, 0x34
test al, al
je 0x4409d0
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.004426bd
ret 4
Function at 0x4409da
Capabilities:
Delete file
Set file attributes

Disassembly:
push 8
mov eax, 0x46d08e
call fcn.004426ef
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.0040c6e1
and dword [ebp - 4], 0
or dword [ebp - 4], 0xffffffff
call fcn.00455651
add esp, 0x34
test al, al
jne 0x440a18
mov eax, esi
jmp 0x440a58
push dword [ebp + 8]
xor edi, edi
call fcn.0043f87e
test eax, eax
jne 0x440a56
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.004426bd
ret 4
Function at 0x44d55e
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x49d850]
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.0044a62e
mov dword [ebp - 0x14], eax
cmp dword [0x4a6490], edi
jne 0x44d64f
push 0x800
push edi
push 0x481688
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x44d5dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x44d72f
push 0x481688
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x44d72f
push 0x4816a0
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x44d72f
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x4a6490], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x4a6494], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x4a6498], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4a64a0], eax
test eax, eax
je 0x44d64c
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4a649c], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x44d674
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x44d667
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x44d689
push 4
pop eax
jmp 0x44d731
cmp dword [ebp - 0x14], edi
je 0x44d689
push dword [0x4a6490]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x44d66e
mov eax, dword [0x4a649c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x44d6e7
cmp dword [0x4a64a0], esi
je 0x44d6e7
push eax
call ebx
push dword [0x4a64a0]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x44d6e7
test eax, eax
je 0x44d6e7
call ecx
test eax, eax
je 0x44d6dc
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 0x44d6dc
test byte [ebp - 8], 1
jne 0x44d6e7
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x44d717
mov eax, dword [0x4a6494]
cmp eax, esi
je 0x44d714
push eax
call ebx
test eax, eax
je 0x44d714
call eax
mov edi, eax
test edi, edi
je 0x44d714
mov eax, dword [0x4a6498]
cmp eax, esi
je 0x44d714
push eax
call ebx
test eax, eax
je 0x44d714
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x4a6490]
call ebx
test eax, eax
je 0x44d72f
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x44d731
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004416c3
leave
ret
Function at 0x454685
Capabilities:
Read file on windows

Disassembly:
push 0x10c
mov eax, 0x46f7f7
call fcn.00442722
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 0x45470a
lea edi, [ebp - 0x118]
push edi
push eax
push edx
call fcn.0045da9f
test al, al
jne 0x45475c
push ebx
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x70], 0x47c4e4
mov dword [ebp - 0x48], 0x477350
call fcn.0040c384
push 1
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x114]
mov dword [ebp - 4], ebx
call fcn.00433930
push 0x4961bc
lea eax, [ebp - 0x114]
push eax
call fcn.00442662
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 0x45475c
push ebx
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x47c4e4
mov dword [ebp - 0x18], 0x477350
call fcn.0040c384
push edi
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], edi
call fcn.00433784
push 0x496148
lea eax, [ebp - 0xc0]
jmp 0x454704
mov eax, dword [ebp - 0x118]
call fcn.004426d1
ret 8
Function at 0x45476a
Capabilities:
Get common file path

Disassembly:
push 0x78
mov eax, 0x46f84f
call fcn.00442722
mov esi, dword [ebp + 8]
xor ebx, ebx
push ebx
lea eax, [ebp - 0x71]
push eax
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x70], 0x47c4e4
mov dword [ebp - 0x48], 0x477350
call fcn.00402580
mov edi, 0x104
lea eax, [ebp - 0x80]
push edi
lea ecx, [ebp - 0x70]
push eax
mov dword [ebp - 4], ebx
call fcn.00456417
cmp dword [ebp + 0xc], 1
jne 0x454822
mov ecx, dword [eax]
mov byte [ebp - 4], 1
mov byte [eax + 4], 1
call fcn.0040f80d
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ebx, eax
neg ebx
lea ecx, [ebp - 0x80]
sbb bl, bl
mov byte [ebp - 4], 0
call fcn.0040c9c5
inc bl
je 0x4547fb
lea ecx, [ebp - 0x2c]
call fcn.00433aab
push 0x498d54
lea eax, [ebp - 0x2c]
push eax
call fcn.00442662
push 0
lea eax, [ebp - 0x71]
push eax
push str.sysnative
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x47c4e4
mov dword [ebp - 0x18], 0x477350
call fcn.0040c487
mov byte [ebp - 4], 2
jmp 0x45487b
cmp dword [ebp + 0xc], 2
jne 0x454895
mov ecx, dword [eax]
mov byte [ebp - 4], 3
mov byte [eax + 4], 1
call fcn.0040f80d
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ebx, eax
neg ebx
lea ecx, [ebp - 0x80]
sbb bl, bl
mov byte [ebp - 4], 0
call fcn.0040c9c5
inc bl
jne 0x4547e5
push 0
lea eax, [ebp - 0x71]
push eax
push str.syswow64
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x47c4e4
mov dword [ebp - 0x18], 0x477350
call fcn.0040c487
mov byte [ebp - 4], 4
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x70]
call fcn.0041fa5d
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.00401580
jmp 0x4548c7
mov ecx, dword [eax]
mov byte [ebp - 4], 5
mov byte [eax + 4], 1
call fcn.0040f80d
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ebx, eax
neg ebx
lea ecx, [ebp - 0x80]
sbb bl, bl
mov byte [ebp - 4], 0
call fcn.0040c9c5
inc bl
jne 0x4547e5
push 0x477e70
lea ecx, [ebp - 0x70]
call fcn.00454c8f
push 0
push eax
mov ecx, esi
mov dword [esi], 0x47c4e4
mov dword [esi + 0x28], 0x477350
call fcn.0040c384
lea ecx, [ebp - 0x70]
call fcn.00401580
mov eax, esi
call fcn.004426d1
ret

Function at 0x4549ad
Capabilities:
Write file on windows

Disassembly:
push 0x88
mov eax, 0x46f8b2
call fcn.00442722
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 0x454a25
push eax
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x47c4e4
mov dword [ebp - 0x18], 0x477350
call fcn.0040c384
and dword [ebp - 4], 0
push ebx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x90]
call fcn.00433784
push 0x496148
lea eax, [ebp - 0x90]
push eax
call fcn.00442662
mov eax, dword [ebp - 0x94]
call fcn.004426d1
ret 8
Function at 0x454ce6
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 0x454d6b
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 0x454d64
mov ecx, dword [edi]
test ecx, ecx
je 0x454d5f
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x454d55
cmp edx, 2
jbe 0x454d47
cmp edx, 7
jne 0x454d55
test cl, 1
jne 0x454d55
shr ecx, 1
cmp ecx, 1
jb 0x454d55
cmp word [esi + ecx*2 - 2], bx
jne 0x454d55
cmp ecx, 1
jbe 0x454d64
cmp word [esi + ecx*2 - 4], bx
jmp 0x454d53
test cl, 1
jne 0x454d55
shr ecx, 1
cmp word [esi + ecx*2 - 2], bx
je 0x454d64
xor eax, eax
push 0xd
mov word [esi], ax
pop eax
jmp 0x454d64
xor ecx, ecx
mov word [esi], cx
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
push 0x80004005
call fcn.00411bc5
int3

Function at 0x4555ce
Capabilities:
Get file attributes

Disassembly:
push 0
mov eax, 0x46f96f
call fcn.004426ef
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp byte [ebp + 0x38], bl
je 0x4555fa
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 0x455641
push 0x80
sub esp, 0x30
mov ecx, esp
push ebx
lea eax, [ebp + 8]
mov edi, 0x47c4e4
mov esi, 0x477350
push eax
mov dword [ecx], edi
mov dword [ecx + 0x28], esi
call fcn.0040c384
call fcn.004590a4
pop ecx
mov ecx, esp
push ebx
lea eax, [ebp + 8]
push eax
mov dword [ecx], edi
mov dword [ecx + 0x28], esi
call fcn.0040c384
call fcn.00455550
add esp, 0x30
test eax, eax
setne bl
lea ecx, [ebp + 8]
call fcn.00401580
mov al, bl
call fcn.004426bd
ret
Function at 0x455651
Capabilities:
Check if file exists

Disassembly:
push 0xc8
mov eax, 0x46f9b0
call fcn.00442722
xor ebx, ebx
test byte [ebp + 0x38], 0x10
mov dword [ebp - 4], ebx
je 0x4556af
lea ecx, [ebp + 8]
call fcn.0043a7cb
test al, al
je 0x4556af
push dword [ebp + 0x38]
lea eax, [ebp + 8]
sub esp, 0x30
mov ecx, esp
push ebx
push eax
mov dword [ecx], 0x47c4e4
mov dword [ecx + 0x28], 0x477350
call fcn.0040c384
call fcn.00455834
add esp, 0x34
mov bl, al
lea ecx, [ebp + 8]
call fcn.00401580
mov al, bl
jmp 0x45582e
sub esp, 0x30
mov ecx, esp
push ebx
lea eax, [ebp + 8]
push eax
mov dword [ecx], 0x47c4e4
mov dword [ecx + 0x28], 0x477350
call fcn.0040c384
call fcn.00456432
add esp, 0x30
cmp eax, 0xffffffff
je 0x4556f0
test byte [ebp + 0x38], 4
je 0x4556e2
test al, 0x10
je 0x4556ec
test byte [ebp + 0x38], 8
je 0x4556a0
test al, 0x10
je 0x4556a0
mov bl, 1
jmp 0x4556a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
je 0x455824
cmp esi, 3
je 0x455824
cmp esi, 5
jne 0x4557d8
lea ecx, [ebp - 0xcc]
call fcn.00454a8e
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], 0x47c4e4
mov dword [ecx + 0x28], 0x477350
call fcn.0040c384
call fcn.004560ea
mov esi, eax
add esp, 0x34
cmp esi, 0xffffffff
je 0x4557af
lea ecx, [ebp - 0xd0]
call fcn.0042bdef
test byte [ebp + 0x38], 4
mov dword [ebp - 0xd0], esi
je 0x45577b
test byte [ebp - 0xcc], 0x10
je 0x45578a
test byte [ebp + 0x38], 8
je 0x45578c
test byte [ebp - 0xcc], 0x10
je 0x45578c
mov bl, 1
lea ecx, [ebp - 0xd0]
call fcn.0042bdef
lea ecx, [ebp - 0x70]
call fcn.00401580
lea ecx, [ebp - 0xa0]
call fcn.00401580
jmp 0x4556a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0xd0]
mov esi, eax
call fcn.0042bdef
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 0x4556a0
push ebx
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x47c4e4
mov dword [ebp - 0x18], 0x477350
call fcn.0040c384
push 1
push esi
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 3
call fcn.004337df
push 0x496148
lea eax, [ebp - 0x90]
push eax
call fcn.00442662
lea ecx, [ebp + 8]
call fcn.00401580
xor al, al
call fcn.004426d1
ret
Function at 0x457203
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x49d850]
xor eax, ebp
mov dword [ebp - 4], eax
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x457239
push str.GetSystemDefaultUILanguage
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x457239
call eax
jmp 0x4572ee
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 SysStringLen
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], 0xa
call esi
test eax, eax
jne 0x457283
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push 0x483e18
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4572cf
lea eax, [ebp - 0x18]
push eax
push 0xf003f
push ebx
push str..DEFAULTControl_PanelInternational
push SysStringLen
mov dword [ebp - 0x18], ebx
call esi
mov esi, eax
test esi, esi
jne 0x4572bc
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.00455406
test esi, esi
je 0x4572cf
mov esi, 0x409
jmp 0x4572e1
push 0x10
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.004430ee
add esp, 0xc
movzx esi, ax
lea ecx, [ebp - 0x14]
call fcn.00455406
mov ax, si
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004416c3
leave
ret
Function at 0x457d36
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x38
mov eax, 0x470014
call fcn.00442722
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 0x457d62
mov al, 1
jmp 0x457d7e
xor ecx, ecx
movzx edx, word [eax]
add eax, 2
test dx, dx
je 0x457d76
cmp ecx, esi
je 0x457d84
lea eax, [eax + edx*2]
inc ecx
cmp ecx, 0x10
jl 0x457d64
xor al, al
call fcn.004426d1
ret
push 1
lea ecx, [ebp - 0x41]
push ecx
push edx
push eax
lea ecx, [ebp - 0x40]
call fcn.0040c72b
and dword [ebp - 4], 0
push eax
mov ecx, edi
call fcn.0040ca5e
lea ecx, [ebp - 0x40]
call fcn.00401580
jmp 0x457d5e

Function at 0x4584da
Capabilities:
Enumerate process modules

Disassembly:
push 0x4a0
mov eax, 0x470136
call fcn.00442722
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 0x458632
xor edi, edi
cmp dword [ebp - 0x484], edi
jbe 0x458632
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 0x458616
push 0x18
lea eax, [ebp - 0x4a4]
push 0
push eax
call fcn.004416e0
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 0x458616
cmp dword [ebp - 0x494], 0
je 0x458616
lea ecx, [ebp - 0x444]
call fcn.00454ace
mov eax, dword [ebp - 0x490]
push 0x483e18
lea ecx, [ebp - 0x43c]
mov byte [ebp - 4], 1
mov dword [ebp - 0x444], eax
call fcn.00405070
mov eax, dword [ebp - 0x494]
mov dword [ebp - 0x47c], eax
lea eax, [ebp - 0x444]
push eax
lea ecx, [ebp - 0x478]
call fcn.00454a33
mov ecx, dword [ebp - 0x488]
lea eax, [ebp - 0x47c]
push eax
lea eax, [ebp - 0x4ac]
push eax
mov byte [ebp - 4], 2
call fcn.004578af
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 0x458539
call fcn.004426d1
ret