joyce8/EMBER2024-capa huggingface dataset:
Function at 0x440704
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x440716
add esp, 0xfffffff0
call fcn.00403048
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00411fd8
mov eax, ebx
call fcn.00440a50
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x30], eax
mov dl, 1
mov eax, dword [0x40c028]
call fcn.00402d18
mov dword [ebx + 0x40], eax
mov dl, 1
mov eax, dword [0x40c028]
call fcn.00402d18
mov dword [ebx + 0x44], eax
mov dl, 1
mov eax, dword [0x40c028]
call fcn.00402d18
mov dword [ebx + 0x48], eax
mov dl, 1
mov eax, dword [0x40c028]
call fcn.00402d18
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x40c028]
call fcn.00402d18
mov dword [ebx + 0x70], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x34], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x4c]
push eax
mov eax, 0x43d1f4
push eax
push 0
push 0
mov eax, dword [0x45ace8]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x4134a0]
call fcn.004149d8
mov dword [ebx + 0x78], eax
mov dl, 1
mov eax, dword [0x4134a0]
call fcn.004149d8
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x4134a0]
call fcn.004149d8
mov dword [ebx + 0x74], eax
mov eax, ebx
call fcn.00440ec0
mov eax, dword [ebx + 0x78]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x440d94
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x440d94
mov eax, dword [ebx + 0x74]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x440d94
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x440825
call fcn.004030a0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x440b78
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x440d23
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x28], 0
jne 0x440d04
mov dl, 1
mov eax, dword [0x40c328]
call fcn.00402d18
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.004039d0
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x440cf3
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0042f23c
test al, al
je 0x440ce6
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x440d34
lea eax, [ebp - 0x254]
call fcn.00408740
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x440ce6
xor eax, eax
push ebp
push 0x440cdf
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x440d6c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x440cc8
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403c00
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x38]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x30]
jne 0x440cc8
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403c00
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x440ce6
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x440be9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.0040f06c
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x28]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x440d2a
lea eax, [ebp - 0x260]
call fcn.004039d0
ret

Function at 0x4415b8
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x45b7c8]
cmp byte [eax + 0x95], 0
jne 0x441629
cmp dword [0x45b7e4], 0
jne 0x4415ea
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x441574
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x45b7e4], eax
cmp dword [0x45b7e0], 0
jne 0x441605
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x45b7e0], eax
cmp dword [0x45b7e8], 0
jne 0x441629
push esp
push 0
push 0
push 0x441518
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x45b7e8], eax
pop edx
ret
Function at 0x441c08
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x45b7c8]
cmp dword [eax + 0x24], 0
je 0x441cab
cmp dword [ebx + 0x84], 0
jne 0x441ca5
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x441b98
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x80]
cmp dword [eax + 8], 0
je 0x441ca5
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x441c6e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x80]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x441ca5
push 0x13
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x80]
call fcn.0040d73c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x441c7d
inc dword [ebx + 0x84]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4426b8
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x94], 0
je 0x4426ed
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x24]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403ab8
jmp 0x4426f7
mov eax, esi
mov edx, dword [ebx + 0x7c]
call fcn.00403a24
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x443594
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x74]
test esi, esi
je 0x4435cc
mov eax, esi
call fcn.0042afb0
test al, al
je 0x4435cc
mov eax, dword [ebx + 0x74]
call fcn.0042acb4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4435cc
push 0
mov eax, dword [ebx + 0x74]
call fcn.0042acb4
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x405afd
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
push dword [edi + 4]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x405b41
mov ecx, dword [edi + 4]
lea eax, [ebp - 8]
push ebx
push eax
push ebx
push 2
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp + 8]
push esi
mov dword [ebp - 4], ecx
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x406c41
Capabilities:
Accept command line arguments
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa0
mov eax, dword [0x5fd098]
xor eax, esp
mov dword [esp + 0x9c], eax
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
push edi
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x406d97
sub esp, 0x18
mov ecx, esp
push str.WinAssist
call fcn.00404313
push 1
push esi
call fcn.00401822
mov ecx, eax
call fcn.00411152
push edi
push edi
call fcn.00406e8f
mov ecx, eax
call fcn.0040df61
push 1
call fcn.004144a2
pop ecx
lea eax, [esp + 0x38]
push eax
call fcn.004018a1
mov ecx, eax
call fcn.0040a836
cmp dword [esp + 0x4c], 8
lea eax, [esp + 0x38]
cmovae eax, dword [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [esp + 0x50]
call fcn.00414775
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [esp + 0x54]
call fcn.00414c96
xor eax, eax
mov dword [esp + 0x30], edi
push str._6244584173
lea ecx, [esp + 0x24]
mov dword [esp + 0x38], 7
mov word [esp + 0x24], ax
call fcn.004042ec
cmp dword [esp + 0x34], 8
lea eax, [esp + 0x20]
lea ecx, [esp + 0x50]
cmovae eax, dword [esp + 0x20]
push eax
call fcn.00414d4e
test al, al
je 0x406d76
call fcn.00406e1f
mov ecx, eax
call fcn.0040674f
call fcn.00406daf
sub esp, 0x10
lea ecx, [esp + 0x80]
call fcn.0040623c
lea eax, [esp + 0x70]
mov dword [esp + 0x10], 0x40579a
mov dword [0x60ad18], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
lea ecx, [esp + 0x70]
call fcn.004062df
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [esp + 0x20]
call fcn.00404683
lea ecx, [esp + 0x50]
call fcn.004147a3
lea ecx, [esp + 0x38]
call fcn.00404683
mov ecx, dword [esp + 0xa4]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.00423fe9
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40e1a1
Capabilities:
Check if file exists

Disassembly:
push 0x23c
mov eax, 0x581201
call fcn.0042494b
mov edi, ecx
lea eax, [ebp - 0x230]
push eax
call fcn.0040deab
and dword [ebp - 4], 0
lea esi, [edi + 4]
and dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x40e1d3
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push 0x586830
call fcn.004023fb
push 0x586834
mov ecx, esi
call fcn.004023fb
push 0x5f0c9c
mov ecx, esi
call fcn.004023fb
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push dword [ebp - 0x220]
cmovae eax, dword [ebp - 0x230]
mov ecx, esi
push eax
call fcn.0040239d
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x40e228
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40e2c0
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0043bd10
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0040dd7f
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
and dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x40e27f
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.004023fb
push 0x5f0c9c
mov ecx, esi
call fcn.004023fb
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push dword [ebp - 0x220]
cmovae eax, dword [ebp - 0x230]
mov ecx, esi
push eax
call fcn.0040239d
cmp dword [esi + 0x14], 8
jb 0x40e2c8
mov esi, dword [esi]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea esi, [edi + 0x1c]
and dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x40e2e0
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push 0x586830
call fcn.004023fb
push 0x586834
mov ecx, esi
call fcn.004023fb
push 0x5f0c9c
mov ecx, esi
call fcn.004023fb
lea eax, [ebp - 0x248]
mov ecx, edi
push eax
call fcn.0040df0a
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00409c14
lea ecx, [ebp - 0x248]
call fcn.00404683
lea ecx, [ebp - 0x230]
call fcn.00404683
call fcn.004248f5
ret
Function at 0x40f8d4
Capabilities:
Move file

Disassembly:
push 0x4c
mov eax, 0x581403
call fcn.0042494b
mov esi, ecx
cmp dword [esi + 0x1c], 0xffffffff
je 0x40f8f5
push dword [esi + 0x1c]
call fcn.0044fe09
or dword [esi + 0x1c], 0xffffffff
pop ecx
mov eax, dword [esi + 0x28]
mov ecx, esi
dec eax
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0040ecee
and dword [ebp - 4], 0
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.0044a3e1
mov edi, dword [esi + 0x28]
sub edi, 2
pop ecx
js 0x40f979
push edi
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.0040ecee
lea eax, [edi + 1]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.0040ecee
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea ecx, [ebp - 0x28]
call fcn.00404683
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.00404683
sub edi, 1
jns 0x40f923
mov ecx, esi
call fcn.0040f7b3
lea ecx, [ebp - 0x58]
mov byte [esi + 0x5c], 0
call fcn.00404683
call fcn.004248f5
ret

Function at 0x40f992
Capabilities:
Move file

Disassembly:
push 0x4c
mov eax, 0x581403
call fcn.0042494b
mov esi, ecx
cmp dword [esi + 0x1c], 0xffffffff
je 0x40f9b3
push dword [esi + 0x1c]
call fcn.0044fe09
or dword [esi + 0x1c], 0xffffffff
pop ecx
mov eax, dword [esi + 0x28]
mov ecx, esi
dec eax
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0040ecee
and dword [ebp - 4], 0
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.0044a3e1
mov edi, dword [esi + 0x28]
sub edi, 2
pop ecx
js 0x40fa37
push edi
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.0040ecee
lea eax, [edi + 1]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.0040ecee
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea ecx, [ebp - 0x28]
call fcn.00404683
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.00404683
sub edi, 1
jns 0x40f9e1
mov ecx, esi
call fcn.0040f84a
lea ecx, [ebp - 0x58]
mov byte [esi + 0x5c], 0
call fcn.00404683
call fcn.004248f5
ret
Function at 0x4102e1
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 8], 0
push ebx
push edi
je 0x410391
cmp dword [ebp + 0xc], 0
je 0x410391
push 0
push 0x80
push 3
push 0
push 3
push accept
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x410326
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x410394
lea eax, [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [ebp - 8], edi
cmp edi, 0xffffffff
je 0x41031e
jb 0x410342
push 8
pop eax
jmp 0x410394
push esi
mov esi, eax
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x41034e
mov dword [eax], edi
inc esi
push esi
call fcn.00424b78
mov ecx, dword [ebp + 0xc]
push esi
xor esi, esi
push esi
push eax
mov dword [ecx], eax
call fcn.0043bd10
add esp, 0x10
mov dword [ebp + 8], esi
lea eax, [ebp + 8]
push esi
push eax
mov eax, dword [ebp + 0xc]
push edi
push dword [eax]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
pop esi
test eax, eax
je 0x41031e
cmp dword [ebp + 8], edi
jne 0x410391
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x410394
xor eax, eax
inc eax
pop edi
pop ebx
leave
ret

Function at 0x410398
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
push ebx
xor ebx, ebx
push edi
mov edi, ebx
cmp dword [eax + 0x10], ebx
je 0x4104a9
push esi
mov esi, dword [ebp + 0xc]
cmp dword [esi + 0x10], ebx
je 0x4104a8
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x4103c7
mov eax, dword [esi]
lea ecx, [ebp - 0xc]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 8], eax
test eax, eax
je 0x4104a8
push 0x58ade2
push eax
call fcn.00424f37
mov dword [ebp - 4], eax
pop ecx
pop ecx
test eax, eax
je 0x4104a8
cmp dword [esi + 0x14], 0x10
jb 0x4103fc
mov esi, dword [esi]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push esi
call sub.VERSION.dll_GetFileVersionInfoA
mov esi, dword [ebp - 4]
test eax, eax
je 0x410496
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x410496
mov eax, dword [ebp - 0x10]
push 0x58ade2
push 0x80
movzx ecx, word [eax]
movzx eax, word [eax + 2]
shl ecx, 0x10
or ecx, eax
mov dword [ebp - 8], ecx
call fcn.00424f37
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x410496
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
jb 0x41045f
mov eax, dword [eax]
push eax
push dword [ebp - 8]
push str.StringFileInfo_08lx_s
push 0x80
push edi
call fcn.00408573
add esp, 0x14
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x410494
push dword [ebp - 0x18]
mov ecx, dword [ebp + 0x10]
call fcn.00404554
mov bl, 1
push esi
call fcn.00424a95
pop ecx
test edi, edi
je 0x4104a8
push edi
call fcn.00424a95
pop ecx
pop esi
pop edi
mov al, bl
pop ebx
leave
ret
Function at 0x4104af
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
test eax, eax
je 0x410512
xor edi, edi
cmp word [eax], di
je 0x410512
push edi
push 0x80
push 2
push edi
push edi
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4104e8
pop edi
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x410507
pop edi
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x410515
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret
Function at 0x410519
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push 0x430
mov eax, 0x581550
call fcn.0042494b
mov ebx, dword [ebp + 8]
xor ecx, ecx
mov edi, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0x430], ebx
mov esi, ecx
mov dword [ebp - 0x434], edi
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x418], ecx
mov dword [ebp - 0x414], 7
mov word [ebp - 0x428], ax
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x428]
push str.SOFTWAREWow6432NodeMicrosoftWindowsCurrentVersionUninstall_
call fcn.004023fb
push ebx
lea ecx, [ebp - 0x428]
call fcn.004023fb
cmp dword [ebp - 0x414], 8
lea ecx, [ebp - 0x42c]
push ecx
push 0x109
lea eax, [ebp - 0x428]
cmovae eax, dword [ebp - 0x428]
push esi
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x410633
push 0x400
lea eax, [ebp - 0x410]
push esi
push eax
call fcn.0043bd10
add esp, 0xc
mov dword [ebp - 0x438], 0x200
lea eax, [ebp - 0x438]
mov dword [ebp - 0x43c], 1
push eax
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x43c]
push eax
push esi
push str.UninstallString
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41061a
lea eax, [ebp - 0x410]
push eax
call ebx
test eax, eax
push 1
pop eax
cmovne esi, eax
cmp dword [ebp - 0x42c], 0
je 0x41062b
push dword [ebp - 0x42c]
call edi
test esi, esi
jne 0x41071d
and dword [ebp - 0x418], 0
lea eax, [ebp - 0x428]
cmp dword [ebp - 0x414], 8
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
cmovae eax, dword [ebp - 0x428]
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x428]
call fcn.004023fb
push dword [ebp - 0x430]
lea ecx, [ebp - 0x428]
call fcn.004023fb
cmp dword [ebp - 0x414], 8
lea ecx, [ebp - 0x42c]
push ecx
push 0x109
lea eax, [ebp - 0x428]
cmovae eax, dword [ebp - 0x428]
push 0
push eax
push dword [ebp - 0x434]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41071d
push 0x400
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.0043bd10
add esp, 0xc
mov dword [ebp - 0x434], 0x200
xor eax, eax
inc eax
mov dword [ebp - 0x430], eax
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x430]
push eax
push 0
push str.UninstallString
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41070c
lea eax, [ebp - 0x410]
push eax
call ebx
test eax, eax
push 1
pop eax
cmovne esi, eax
cmp dword [ebp - 0x42c], 0
je 0x41071d
push dword [ebp - 0x42c]
call edi
lea ecx, [ebp - 0x428]
call fcn.00404683
mov eax, esi
call fcn.004248f5
ret
Function at 0x410bb3
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x5fd098]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x410c46
push 0x228
xor esi, esi
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x22c]
push esi
push eax
call fcn.0043bd10
add esp, 0xc
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x410c46
lea eax, [ebp - 0x230]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x410c2f
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0040bf13
pop ecx
pop ecx
test al, al
jne 0x410c35
lea eax, [ebp - 0x230]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x410c0f
jmp 0x410c3b
mov esi, dword [ebp - 0x228]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x410c48
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00423fe9
leave
ret

Function at 0x410d20
Capabilities:
Check if file exists

Disassembly:
push 0x234
mov eax, 0x581627
call fcn.0042494b
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push ebx
push 0x1a
push eax
push ebx
call fcn.004111be
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x410d50
sub ecx, edx
sar ecx, 1
je 0x410deb
push 0x5f0c9c
mov ebx, 0x104
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.00450d25
push edi
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.00450d25
push 0x5f0c9c
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.00450d25
add esp, 0x24
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x410ddd
and dword [ebp - 0x21c], eax
and dword [ebp - 4], eax
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00412885
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
lea ecx, [ebp - 0x240]
call fcn.004056f3
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.004042ec
call fcn.004248f5
ret 8