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

Disassembly:
push 0x98
mov eax, 0x47077b
call fcn.00443652
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.00442610
push 0x44
pop esi
push esi
lea eax, [ebp - 0xa4]
push ebx
push eax
call fcn.00442610
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 0x441348
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.00411a9d
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.00411a9d
add esp, 0xc
test esi, esi
je 0x4413ec
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.00443601
ret 8
Function at 0x441402
Capabilities:
Create process on windows

Disassembly:
push 0xb8
mov eax, 0x4707bb
call fcn.00443652
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.00442610
push 0x44
pop esi
push esi
lea eax, [ebp - 0xc4]
push ebx
push eax
call fcn.00442610
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 0x441471
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.00411a9d
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 0x441573
mov esi, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
xor edi, edi
inc edi
jmp 0x44151a
cmp eax, edi
jne 0x44152d
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 0x44152d
cmp dword [ebp - 0x7c], 0x10
je 0x44152d
cmp dword [ebp - 0x7c], 0x12
je 0x44152d
push 0x4ff
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x64]
push eax
push edi
call esi
test eax, eax
jne 0x4414f6
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 [0x4a65e4], 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.00411a9d
mov esi, dword [ebp - 0x44]
add esp, 0x10
jmp 0x441578
mov esi, 0xcccccccc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00401580
mov eax, esi
call fcn.00443601
ret 8
Function at 0x44158e
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.00442610
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 0x44168b
jmp 0x441655
cmp eax, 1
jne 0x44166d
jmp 0x441642
cmp dword [ebp - 0x20], 0xf
je 0x441620
cmp dword [ebp - 0x20], 0x113
jne 0x441634
mov ecx, dword [ebp + 0x14]
push 1
call fcn.00437696
jmp 0x441634
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 0x441655
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 0x441605
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 0x4415fe
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 [0x4a65e4], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
pop ebx
leave
ret 0x10

Function at 0x4418a9
Capabilities:
Delete directory

Disassembly:
push 8
mov eax, 0x470867
call fcn.0044361f
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.0040cbd7
and dword [ebp - 4], edi
or dword [ebp - 4], 0xffffffff
call fcn.00456567
add esp, 0x34
test al, al
je 0x441905
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.004435ed
ret 4
Function at 0x44190f
Capabilities:
Delete file
Set file attributes

Disassembly:
push 8
mov eax, 0x470867
call fcn.0044361f
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.0040cbd7
and dword [ebp - 4], 0
or dword [ebp - 4], 0xffffffff
call fcn.00456567
add esp, 0x34
test al, al
jne 0x44194d
mov eax, esi
jmp 0x44198d
push dword [ebp + 8]
xor edi, edi
call fcn.004407b3
test eax, eax
jne 0x44198b
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.004435ed
ret 4
Function at 0x44e48e
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.0044b55e
mov dword [ebp - 0x14], eax
cmp dword [0x4a74b0], edi
jne 0x44e57f
push 0x800
push edi
push 0x482768
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x44e50c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x44e65f
push 0x482768
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x44e65f
push 0x482780
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x44e65f
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x4a74b0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x4a74b4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x4a74b8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4a74c0], eax
test eax, eax
je 0x44e57c
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4a74bc], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x44e5a4
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x44e597
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x44e5b9
push 4
pop eax
jmp 0x44e661
cmp dword [ebp - 0x14], edi
je 0x44e5b9
push dword [0x4a74b0]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x44e59e
mov eax, dword [0x4a74bc]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x44e617
cmp dword [0x4a74c0], esi
je 0x44e617
push eax
call ebx
push dword [0x4a74c0]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x44e617
test eax, eax
je 0x44e617
call ecx
test eax, eax
je 0x44e60c
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 0x44e60c
test byte [ebp - 8], 1
jne 0x44e617
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x44e647
mov eax, dword [0x4a74b4]
cmp eax, esi
je 0x44e644
push eax
call ebx
test eax, eax
je 0x44e644
call eax
mov edi, eax
test edi, edi
je 0x44e644
mov eax, dword [0x4a74b8]
cmp eax, esi
je 0x44e644
push eax
call ebx
test eax, eax
je 0x44e644
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x4a74b0]
call ebx
test eax, eax
je 0x44e65f
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x44e661
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004425f3
leave
ret
Function at 0x4555b5
Capabilities:
Read file on windows

Disassembly:
push 0x10c
mov eax, 0x4709a4
call fcn.00443652
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 0x45563a
lea edi, [ebp - 0x118]
push edi
push eax
push edx
call fcn.0045e9e7
test al, al
jne 0x45568c
push ebx
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x70], 0x47d5a4
mov dword [ebp - 0x48], 0x47d834
call fcn.0040c87a
push 1
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x114]
mov dword [ebp - 4], ebx
call fcn.00434634
push 0x497534
lea eax, [ebp - 0x114]
push eax
call fcn.00443592
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 0x45568c
push ebx
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x47d5a4
mov dword [ebp - 0x18], 0x47d834
call fcn.0040c87a
push edi
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], edi
call fcn.00434488
push 0x4974c0
lea eax, [ebp - 0xc0]
jmp 0x455634
mov eax, dword [ebp - 0x118]
call fcn.00443601
ret 8
Function at 0x45569a
Capabilities:
Get common file path

Disassembly:
push 0x78
mov eax, 0x4709fc
call fcn.00443652
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], 0x47d5a4
mov dword [ebp - 0x48], 0x47d834
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.0045732d
cmp dword [ebp + 0xc], 1
jne 0x455752
mov ecx, dword [eax]
mov byte [ebp - 4], 1
mov byte [eax + 4], 1
call fcn.0040f94d
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.0040cef5
inc bl
je 0x45572b
lea ecx, [ebp - 0x2c]
call fcn.00434773
push 0x49a0a0
lea eax, [ebp - 0x2c]
push eax
call fcn.00443592
push 0
lea eax, [ebp - 0x71]
push eax
push str.sysnative
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x47d5a4
mov dword [ebp - 0x18], 0x47d834
call fcn.0040c97d
mov byte [ebp - 4], 2
jmp 0x4557ab
cmp dword [ebp + 0xc], 2
jne 0x4557c5
mov ecx, dword [eax]
mov byte [ebp - 4], 3
mov byte [eax + 4], 1
call fcn.0040f94d
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.0040cef5
inc bl
jne 0x455715
push 0
lea eax, [ebp - 0x71]
push eax
push str.syswow64
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x47d5a4
mov dword [ebp - 0x18], 0x47d834
call fcn.0040c97d
mov byte [ebp - 4], 4
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x70]
call fcn.004203f2
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.00401580
jmp 0x4557f7
mov ecx, dword [eax]
mov byte [ebp - 4], 5
mov byte [eax + 4], 1
call fcn.0040f94d
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.0040cef5
inc bl
jne 0x455715
push 0x478f18
lea ecx, [ebp - 0x70]
call fcn.00455bf9
push 0
push eax
mov ecx, esi
mov dword [esi], 0x47d5a4
mov dword [esi + 0x28], 0x47d834
call fcn.0040c87a
lea ecx, [ebp - 0x70]
call fcn.00401580
mov eax, esi
call fcn.00443601
ret

Function at 0x4558dd
Capabilities:
Write file on windows

Disassembly:
push 0x88
mov eax, 0x470a5f
call fcn.00443652
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 0x455955
push eax
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x47d5a4
mov dword [ebp - 0x18], 0x47d834
call fcn.0040c87a
and dword [ebp - 4], 0
push ebx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x90]
call fcn.00434488
push 0x4974c0
lea eax, [ebp - 0x90]
push eax
call fcn.00443592
mov eax, dword [ebp - 0x94]
call fcn.00443601
ret 8
Function at 0x455c50
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 0x455cd5
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 0x455cce
mov ecx, dword [edi]
test ecx, ecx
je 0x455cc9
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x455cbf
cmp edx, 2
jbe 0x455cb1
cmp edx, 7
jne 0x455cbf
test cl, 1
jne 0x455cbf
shr ecx, 1
cmp ecx, 1
jb 0x455cbf
cmp word [esi + ecx*2 - 2], bx
jne 0x455cbf
cmp ecx, 1
jbe 0x455cce
cmp word [esi + ecx*2 - 4], bx
jmp 0x455cbd
test cl, 1
jne 0x455cbf
shr ecx, 1
cmp word [esi + ecx*2 - 2], bx
je 0x455cce
xor eax, eax
push 0xd
mov word [esi], ax
pop eax
jmp 0x455cce
xor ecx, ecx
mov word [esi], cx
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
push 0x80004005
call fcn.00411cfd
int3

Function at 0x4564e4
Capabilities:
Get file attributes

Disassembly:
push 0
mov eax, 0x4717b9
call fcn.0044361f
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp byte [ebp + 0x38], bl
je 0x456510
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 0x456557
push 0x80
sub esp, 0x30
mov ecx, esp
push ebx
lea eax, [ebp + 8]
mov edi, 0x47d5a4
mov esi, 0x47d834
push eax
mov dword [ecx], edi
mov dword [ecx + 0x28], esi
call fcn.0040c87a
call fcn.00459f9b
pop ecx
mov ecx, esp
push ebx
lea eax, [ebp + 8]
push eax
mov dword [ecx], edi
mov dword [ecx + 0x28], esi
call fcn.0040c87a
call fcn.00456466
add esp, 0x30
test eax, eax
setne bl
lea ecx, [ebp + 8]
call fcn.00401580
mov al, bl
call fcn.004435ed
ret
Function at 0x456567
Capabilities:
Check if file exists

Disassembly:
push 0xc8
mov eax, 0x470b3a
call fcn.00443652
xor ebx, ebx
test byte [ebp + 0x38], 0x10
mov dword [ebp - 4], ebx
je 0x4565c5
lea ecx, [ebp + 8]
call fcn.0043b513
test al, al
je 0x4565c5
push dword [ebp + 0x38]
lea eax, [ebp + 8]
sub esp, 0x30
mov ecx, esp
push ebx
push eax
mov dword [ecx], 0x47d5a4
mov dword [ecx + 0x28], 0x47d834
call fcn.0040c87a
call fcn.0045674a
add esp, 0x34
mov bl, al
lea ecx, [ebp + 8]
call fcn.00401580
mov al, bl
jmp 0x456744
sub esp, 0x30
mov ecx, esp
push ebx
lea eax, [ebp + 8]
push eax
mov dword [ecx], 0x47d5a4
mov dword [ecx + 0x28], 0x47d834
call fcn.0040c87a
call fcn.00457348
add esp, 0x30
cmp eax, 0xffffffff
je 0x456606
test byte [ebp + 0x38], 4
je 0x4565f8
test al, 0x10
je 0x456602
test byte [ebp + 0x38], 8
je 0x4565b6
test al, 0x10
je 0x4565b6
mov bl, 1
jmp 0x4565b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
je 0x45673a
cmp esi, 3
je 0x45673a
cmp esi, 5
jne 0x4566ee
lea ecx, [ebp - 0xcc]
call fcn.004559be
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], 0x47d5a4
mov dword [ecx + 0x28], 0x47d834
call fcn.0040c87a
call fcn.00457000
mov esi, eax
add esp, 0x34
cmp esi, 0xffffffff
je 0x4566c5
lea ecx, [ebp - 0xd0]
call fcn.0042c814
test byte [ebp + 0x38], 4
mov dword [ebp - 0xd0], esi
je 0x456691
test byte [ebp - 0xcc], 0x10
je 0x4566a0
test byte [ebp + 0x38], 8
je 0x4566a2
test byte [ebp - 0xcc], 0x10
je 0x4566a2
mov bl, 1
lea ecx, [ebp - 0xd0]
call fcn.0042c814
lea ecx, [ebp - 0x70]
call fcn.00401580
lea ecx, [ebp - 0xa0]
call fcn.00401580
jmp 0x4565b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0xd0]
mov esi, eax
call fcn.0042c814
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 0x4565b6
push ebx
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x47d5a4
mov dword [ebp - 0x18], 0x47d834
call fcn.0040c87a
push 1
push esi
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 3
call fcn.004344e3
push 0x4974c0
lea eax, [ebp - 0x90]
push eax
call fcn.00443592
lea ecx, [ebp + 8]
call fcn.00401580
xor al, al
call fcn.00443601
ret
Function at 0x458119
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 0x45814f
push str.GetSystemDefaultUILanguage
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x45814f
call eax
jmp 0x458204
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 0x458199
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push 0x484ef8
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4581e5
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 0x4581d2
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.00456336
test esi, esi
je 0x4581e5
mov esi, 0x409
jmp 0x4581f7
push 0x10
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.0044401e
add esp, 0xc
movzx esi, ax
lea ecx, [ebp - 0x14]
call fcn.00456336
mov ax, si
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004425f3
leave
ret
Function at 0x458c2e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x38
mov eax, 0x47119e
call fcn.00443652
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 0x458c5a
mov al, 1
jmp 0x458c76
xor ecx, ecx
movzx edx, word [eax]
add eax, 2
test dx, dx
je 0x458c6e
cmp ecx, esi
je 0x458c7c
lea eax, [eax + edx*2]
inc ecx
cmp ecx, 0x10
jl 0x458c5c
xor al, al
call fcn.00443601
ret
push 1
lea ecx, [ebp - 0x41]
push ecx
push edx
push eax
lea ecx, [ebp - 0x40]
call fcn.0040cc21
and dword [ebp - 4], 0
push eax
mov ecx, edi
call fcn.0040cf65
lea ecx, [ebp - 0x40]
call fcn.00401580
jmp 0x458c56

Function at 0x4593d2
Capabilities:
Enumerate process modules

Disassembly:
push 0x4a0
mov eax, 0x4712c0
call fcn.00443652
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 0x45952a
xor edi, edi
cmp dword [ebp - 0x484], edi
jbe 0x45952a
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 0x45950e
push 0x18
lea eax, [ebp - 0x4a4]
push 0
push eax
call fcn.00442610
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 0x45950e
cmp dword [ebp - 0x494], 0
je 0x45950e
lea ecx, [ebp - 0x444]
call fcn.004559fe
mov eax, dword [ebp - 0x490]
push 0x484ef8
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.00455963
mov ecx, dword [ebp - 0x488]
lea eax, [ebp - 0x47c]
push eax
lea eax, [ebp - 0x4ac]
push eax
mov byte [ebp - 4], 2
call fcn.004587c5
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 0x459431
call fcn.00443601
ret