joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415910
Capabilities:
Check if file exists
Delete file
Print debug messages

Disassembly:
sub esp, 0x140
push esi
mov esi, dword [esp + 0x148]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x415981
lea eax, [esp + 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x415981
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [esp + 4], 0x10
jne 0x415981
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x415981
cmp dword [esp + 0x24], 0x13
jne 0x415981
push 0x45f03c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esp + 0x14c]
test eax, eax
je 0x415974
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, 1
pop esi
add esp, 0x140
ret
xor eax, eax
pop esi
add esp, 0x140
ret
Function at 0x415990
Capabilities:
Delete directory
Delete file
Enumerate files on windows

Disassembly:
sub esp, 0x34c
push ebp
push esi
mov esi, dword [esp + 0x358]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x115]
mov byte [esp + 0x114], 0
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov edx, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea ecx, [esp + 0x114]
mov edi, 0x104
lea eax, [esp + 0x114]
sub edx, ecx
mov cl, byte [edx + eax]
test cl, cl
je 0x4159ff
mov byte [eax], cl
inc eax
dec edi
jne 0x4159f0
jmp 0x415a03
test edi, edi
jne 0x415a04
dec eax
mov byte [eax], 0
mov al, byte [esp + ebp + 0x113]
cmp al, 0x5c
je 0x415a4b
lea edx, [esp + 0xc]
lea eax, [esp + 0x114]
push edx
push 0x104
push eax
call fcn.004054f0
test eax, eax
jl 0x415a4b
mov eax, dword [esp + 0xc]
mov ecx, 0x104
sub ecx, eax
push 0x44a228
lea edx, [esp + eax + 0x118]
push ecx
push edx
call fcn.004054a0
lea ebp, [esp + 0x114]
lea ecx, [esp + 0x10]
mov edx, 0x104
lea eax, [esp + 0x10]
sub ebp, ecx
mov cl, byte [eax + ebp]
test cl, cl
je 0x415a70
mov byte [eax], cl
inc eax
dec edx
jne 0x415a61
jmp 0x415a74
test edx, edx
jne 0x415a75
dec eax
lea edx, [esp + 0xc]
mov byte [eax], 0
push edx
lea eax, [esp + 0x14]
push 0x104
push eax
call fcn.004054f0
test eax, eax
jl 0x415aab
mov eax, dword [esp + 0xc]
mov ecx, 0x104
sub ecx, eax
push 0x44a284
lea edx, [esp + eax + 0x14]
push ecx
push edx
call fcn.004054a0
lea eax, [esp + 0x218]
lea ecx, [esp + 0x10]
push eax
push ecx
mov esi, 1
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
je 0x415b77
mov edi, dword [esp + 0xc]
test esi, esi
je 0x415b6c
test byte [esp + 0x218], 0x10
jne 0x415b52
mov edx, 0x104
lea eax, [esp + 0x10]
mov cl, byte [eax + ebp]
test cl, cl
je 0x415afe
mov byte [eax], cl
inc eax
dec edx
jne 0x415aef
jmp 0x415b02
test edx, edx
jne 0x415b03
dec eax
mov byte [eax], 0
mov ecx, 0x104
lea eax, [esp + 0x10]
cmp byte [eax], 0
je 0x415b1a
inc eax
dec ecx
jne 0x415b0f
jmp 0x415b47
test ecx, ecx
je 0x415b47
lea edx, [esp + 0xc]
test edx, edx
je 0x415b2d
mov edi, 0x104
sub edi, ecx
mov ecx, 0x104
lea eax, [esp + 0x244]
sub ecx, edi
push eax
lea edx, [esp + edi + 0x14]
push ecx
push edx
call fcn.004054a0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x218]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov esi, eax
jmp 0x415ad4
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x114]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
pop ebp
add esp, 0x34c
ret
Function at 0x415b90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x140
push esi
mov esi, dword [esp + 0x148]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x415bb1
pop esi
add esp, 0x140
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x415be3
lea eax, [esp + 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x415bd8
xor eax, eax
pop esi
add esp, 0x140
ret
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 4]
and eax, 0xff
pop esi
shr eax, 4
and eax, 1
add esp, 0x140
ret

Function at 0x415c00
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
lea eax, [esp]
push esi
push eax
xor esi, esi
mov dword [esp + 8], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x415c2e
mov eax, dword [esp + 8]
cmp eax, 6
mov eax, 1
je 0x415c30
mov eax, esi
pop esi
add esp, 0x94
ret
Function at 0x415d00
Capabilities:
Check if file exists
Delete file
Get common file path
Get file attributes
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x4f8
push ebx
push ebp
push esi
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
push eax
mov eax, dword [esp + 0x510]
lea ecx, [esp + 0x1c]
push eax
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x415d41
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4f8
ret
mov ecx, 0x104
lea eax, [esp + 0x18]
cmp byte [eax], 0
je 0x415d55
inc eax
dec ecx
jne 0x415d4a
jmp 0x415d9b
test ecx, ecx
je 0x415d9b
lea edx, [esp + 0x10]
test edx, edx
je 0x415d6a
mov eax, 0x104
sub eax, ecx
jmp 0x415d6e
mov eax, dword [esp + 0x10]
mov edx, 0x104
sub edx, eax
lea eax, [esp + eax + 0x18]
je 0x415d9b
mov esi, dword [esp + 0x510]
sub esi, eax
mov cl, byte [esi + eax]
test cl, cl
je 0x415d93
mov byte [eax], cl
inc eax
dec edx
jne 0x415d84
jmp 0x415d97
test edx, edx
jne 0x415d98
dec eax
mov byte [eax], 0
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x415ee0
mov ecx, 0xf9
xor eax, eax
lea edi, [esp + 0x121]
mov byte [esp + 0x120], 0
rep stosd dword es:[edi], eax
push 0
push 0
push 3
push 0
stosw word es:[edi], ax
push 3
lea ecx, [esp + 0x2c]
push 0x12019f
push ecx
stosb byte es:[edi], al
call dword [0x47d648]
mov esi, eax
cmp esi, 0xffffffff
jne 0x415df8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x4f8
ret
lea edx, [esp + 0x14]
push 0
push edx
lea eax, [esp + 0x128]
push 0x3e8
push eax
push esi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x415eb4
mov ebp, dword [esp + 0x518]
mov ecx, dword [esp + 0x514]
mov edx, dword [esp + 0x14]
push ebp
push ecx
lea eax, [esp + 0x128]
push edx
push eax
call fcn.00415c80
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x415e6c
push esi
mov dword [esp + 0x14], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4f8
ret
mov ebx, dword [esp + 0x51c]
test ebx, ebx
je 0x415eca
shr ebp, 1
mov ecx, ebp
je 0x415e88
xor eax, eax
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x14]
push 0
push ecx
lea eax, [esp + 0x128]
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x415eca
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4f8
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x415ee0
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x4f8
ret
Function at 0x415f80
Capabilities:
Set registry value

Disassembly:
sub esp, 0xc
mov eax, dword [0x45f058]
mov ecx, dword [0x45f05c]
mov edx, dword [0x45f060]
mov dword [esp], eax
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_SHSetValueA]
lea eax, [esp + 4]
push 0xc
push eax
push 1
push str.Start_Page
push str.SoftwareMicrosoftInternet_ExplorerMain
push connect
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
call esi
test eax, eax
je 0x415fcc
xor eax, eax
pop esi
add esp, 0xc
ret
lea ecx, [esp + 4]
push 0xc
push ecx
push 1
push str.Start_Page
push str.SoftwareMicrosoftInternet_ExplorerMain
push connect
call esi
neg eax
sbb eax, eax
pop esi
inc eax
add esp, 0xc
ret
Function at 0x416350
Capabilities:
Get file version info

Disassembly:
sub esp, 8
lea eax, [esp + 4]
push ebx
mov ebx, dword [esp + 0x10]
push esi
push edi
push eax
mov edi, ecx
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x416403
mov eax, dword [edi + 0x108]
test eax, eax
je 0x416385
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
push esi
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov dword [edi + 0x108], eax
test eax, eax
je 0x416403
push eax
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x416403
mov eax, dword [edi + 0x108]
lea ecx, [esp + 0x18]
lea edx, [esp + 0xc]
push ecx
push edx
push 0x45f260
push eax
mov dword [esp + 0x28], 0
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x416403
mov eax, dword [esp + 0xc]
xor edx, edx
add edi, 4
mov ecx, dword [eax]
mov dx, word [eax]
shr ecx, 0x10
push ecx
push edx
push 0x45f244
push 0x104
push edi
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x14
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 8
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 4
Function at 0x4164f0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
sub esp, 0x310
push ebx
push ebp
mov eax, 0x441d00
push esi
push edi
mov dword [esp + 0x10], eax
mov edx, dword [eax]
lea ecx, [esp + 0x21c]
push 0x104
push ecx
push edx
call fcn.00414290
add esp, 0xc
test eax, eax
je 0x4166ab
lea edx, [esp + 0x21c]
lea ecx, [esp + 0x14]
mov esi, 0x104
lea eax, [esp + 0x14]
sub edx, ecx
mov cl, byte [edx + eax]
test cl, cl
je 0x416548
mov byte [eax], cl
inc eax
dec esi
jne 0x416539
jmp 0x41654c
test esi, esi
jne 0x41654d
dec eax
lea edx, [esp + 0x14]
mov byte [eax], 0
push edx
lea eax, [esp + 0x11c]
push 0x104
push eax
call fcn.004054a0
lea ecx, [esp + 0x118]
push ecx
call dword [sym.imp.ntdll.dll__strupr]
lea edi, [esp + 0x11c]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea esi, [esp + 0x118]
mov edx, 0x811c9dc5
je 0x4165a6
movsx eax, byte [esi]
imul edx, edx, 0x1000193
xor edx, eax
inc esi
dec ecx
jne 0x416597
mov eax, edx
xor edx, edx
div dword [0x47d658]
push 0x47d664
mov ebx, edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x47d654]
mov ebp, dword [ecx + ebx*4]
test ebp, ebp
mov esi, ebp
je 0x4165e9
lea edx, [esp + 0x14]
lea eax, [esi + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4166a0
mov esi, dword [esi]
test esi, esi
jne 0x4165cc
mov eax, dword [0x47d6a0]
test eax, eax
je 0x4165fc
mov ecx, dword [eax]
mov dword [0x47d6a0], ecx
jmp 0x41666a
mov eax, dword [0x47d690]
test eax, eax
jge 0x416618
mov ecx, 0x47d684
call fcn.00417170
test al, al
je 0x416668
mov eax, dword [0x47d690]
mov esi, dword [0x47d684]
lea edx, [eax + eax*2]
mov ecx, dword [edx*4 + 0x47d6a8]
lea eax, [edx*4 + 0x47d6a4]
add ecx, esi
cmp ecx, dword [eax]
jbe 0x416645
mov ecx, 0x47d684
call fcn.00417170
test al, al
je 0x416668
jmp 0x416613
mov edx, dword [eax + 4]
mov ecx, dword [eax + 8]
add ecx, edx
add edx, esi
mov dword [eax + 4], edx
mov edx, dword [0x47d684]
mov eax, dword [0x47d69c]
add eax, edx
mov dword [0x47d69c], eax
mov eax, ecx
jmp 0x41666a
xor eax, eax
lea edi, [eax + 4]
mov ecx, 0x41
lea esi, [esp + 0x14]
mov dword [eax], 0
rep movsd dword es:[edi], dword [esi]
mov dword [eax + 0x108], 0
mov dword [eax], ebp
mov ecx, dword [0x47d654]
mov dword [ecx + ebx*4], eax
mov ecx, dword [0x47d65c]
inc ecx
mov dword [0x47d65c], ecx
push 0x47d664
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x10]
add eax, 4
cmp eax, 0x441ed4
mov dword [esp + 0x10], eax
jb 0x416503
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x310
ret
Function at 0x416b30
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ecx
mov ecx, dword [esp + 8]
push ebx
mov eax, 1
mov ecx, dword [ecx + 4]
mov dword [esp + 4], eax
mov ebx, dword [ecx]
cmp ebx, ecx
je 0x416bc0
push ebp
push esi
push edi
mov ecx, dword [ebx + 0xd84]
xor ebp, ebp
test ecx, ecx
jbe 0x416bb2
lea esi, [ebx + 0x10c]
lea edi, [ebx + 0x124]
mov eax, dword [esi + 0xc60]
test eax, eax
jne 0x416b7d
mov edx, dword [esi]
push edi
push edx
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
test eax, eax
je 0x416b9a
jmp 0x416b92
mov ecx, dword [esi]
lea eax, [edi + 0x618]
push eax
push edi
push ecx
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueA]
test eax, eax
je 0x416b9a
mov dword [esp + 0x10], 0
mov eax, dword [ebx + 0xd84]
inc ebp
add esi, 4
add edi, 0x104
cmp ebp, eax
jb 0x416b63
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov ebx, dword [ebx]
cmp ebx, dword [edx + 4]
jne 0x416b4b
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x416c90
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x214
mov ecx, dword [esp + 0x21c]
mov edx, dword [esp + 0x218]
lea eax, [esp + 4]
push esi
xor esi, esi
push eax
push 0xf003f
push esi
push ecx
push edx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], 0x104
mov dword [esp + 0x18], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x416e43
mov edx, dword [esp + 8]
push esi
push esi
push esi
lea eax, [esp + 0x18]
push esi
lea ecx, [esp + 0x124]
push eax
push ecx
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x416e23
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0xc]
mov edx, dword [esp + 0x228]
lea ecx, [esp + 0x18]
mov esi, 0x104
lea eax, [esp + 0x18]
sub edx, ecx
mov cl, byte [edx + eax]
test cl, cl
je 0x416d2a
mov byte [eax], cl
inc eax
dec esi
jne 0x416d1b
jmp 0x416d2e
test esi, esi
jne 0x416d2f
dec eax
mov byte [eax], 0
mov ecx, 0x104
lea eax, [esp + 0x18]
cmp byte [eax], 0
je 0x416d46
inc eax
dec ecx
jne 0x416d3b
jmp 0x416d84
test ecx, ecx
je 0x416d84
lea edx, [esp + 0xc]
test edx, edx
je 0x416d59
mov ebx, 0x104
sub ebx, ecx
mov edx, 0x104
lea eax, [esp + ebx + 0x18]
sub edx, ebx
je 0x416d84
mov esi, 0x44a228
sub esi, eax
mov cl, byte [esi + eax]
test cl, cl
je 0x416d7c
mov byte [eax], cl
inc eax
dec edx
jne 0x416d6d
jmp 0x416d80
test edx, edx
jne 0x416d81
dec eax
mov byte [eax], 0
mov ecx, 0x104
lea eax, [esp + 0x18]
cmp byte [eax], 0
je 0x416d98
inc eax
dec ecx
jne 0x416d8d
jmp 0x416dd8
test ecx, ecx
je 0x416dd8
lea eax, [esp + 0xc]
test eax, eax
je 0x416dab
mov edi, 0x104
sub edi, ecx
mov edx, 0x104
lea eax, [esp + edi + 0x18]
sub edx, edi
je 0x416dd8
lea esi, [esp + 0x11c]
sub esi, eax
mov cl, byte [esi + eax]
test cl, cl
je 0x416dd0
mov byte [eax], cl
inc eax
dec edx
jne 0x416dc1
jmp 0x416dd4
test edx, edx
jne 0x416dd5
dec eax
mov byte [eax], 0
mov edx, dword [esp + 0x224]
lea ecx, [esp + 0x18]
push ecx
push edx
call fcn.00416c90
add esp, 8
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x11c]
push 0
push 0
push 0
push 0
push eax
push ecx
push 0
push edx
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x416d05
pop edi
xor esi, esi
pop ebx
mov eax, dword [esp + 0x220]
mov ecx, dword [esp + 0x21c]
push eax
push ecx
call fcn.0041c630
mov ecx, eax
call fcn.0041cfa0
test eax, eax
jne 0x416e47
mov dword [esp + 4], esi
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 4]
pop esi
add esp, 0x214
ret
Function at 0x416f80
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
mov eax, dword [esp + 0x114]
push ebx
mov dword [esp + 8], 0x104
mov eax, dword [eax + 4]
mov ebx, dword [eax]
cmp ebx, eax
je 0x417060
push ebp
push esi
push edi
mov eax, dword [ebx + 0xd84]
xor ebp, ebp
test eax, eax
jbe 0x41704b
lea esi, [ebx + 0xd54]
lea edi, [ebx + 0x73c]
mov eax, dword [esi - 0xc48]
lea ecx, [esp + 0x10]
push ecx
push 0x20019
lea edx, [edi - 0x618]
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x416fee
mov dword [esi], 1
jmp 0x417028
cmp dword [esi + 0x18], 1
jne 0x417022
lea edx, [esp + 0x14]
lea eax, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
push ecx
push 0
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x417022
mov dword [esi], 1
mov eax, dword [esp + 0x10]
push eax
jmp 0x41702d
mov dword [esi], 0
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebx + 0xd84]
inc ebp
add esi, 4
add edi, 0x104
cmp ebp, eax
jb 0x416fc2
mov edx, dword [esp + 0x124]
mov ebx, dword [ebx]
cmp ebx, dword [edx + 4]
jne 0x416fa6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret

Function at 0x417280
Capabilities:
Check if file exists
Get common file path

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp esi, 0x7fffffff
ja 0x4172e8
test esi, esi
mov ecx, esi
mov eax, edi
je 0x4172e8
cmp byte [eax], 0
je 0x4172ad
inc eax
dec ecx
jne 0x4172a2
jmp 0x4172e8
test ecx, ecx
je 0x4172e8
lea eax, [esp + 0x10]
test eax, eax
je 0x4172bf
mov eax, esi
sub eax, ecx
jmp 0x4172c3
mov eax, dword [esp + 0x10]
sub esi, eax
lea eax, [eax + edi]
je 0x4172e8
mov edx, 0x45fa0c
sub edx, eax
mov cl, byte [edx + eax]
test cl, cl
je 0x4172e0
mov byte [eax], cl
inc eax
dec esi
jne 0x4172d1
jmp 0x4172e4
test esi, esi
jne 0x4172e5
dec eax
mov byte [eax], 0
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x417312
push eax
push eax
push 4
push eax
push 1
push connect
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x417312
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret

Function at 0x4174b0
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [esp + 4]
push ebp
push edi
push 0
mov ebp, ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [ebp + 0x10]
push 0x449b8c
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
je 0x417529
mov eax, dword [ebp + 8]
push esi
mov esi, dword [eax]
cmp esi, eax
je 0x417514
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_fprintf]
mov eax, esi
mov esi, dword [esi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x417503
push eax
push 0x45fa24
push edi
call ebx
add esp, 0xc
jmp 0x41750e
push 0x45fa20
push edi
call ebx
add esp, 8
cmp esi, dword [ebp + 8]
jne 0x4174ea
pop ebx
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, 1
pop esi
pop edi
pop ebp
ret 4
pop edi
xor eax, eax
pop ebp
ret 4
Function at 0x418f00
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440540
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1010
call sub.ntdll.dll__chkstk
mov al, byte [0x47c558]
push ebx
push esi
push edi
mov byte [ebp - 0x1020], al
mov ecx, 0x3ff
xor eax, eax
lea edi, [ebp - 0x101f]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], esp
xor ebx, ebx
push ecx
lea edx, [ebp - 0x18]
push ebx
stosw word es:[edi], ax
push edx
push 0x45fb68
push 0x45fb30
push connect
stosb byte es:[edi], al
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], 4
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
je 0x41907a
lea eax, [ebp - 0x1c]
push 4
push eax
push 4
push 0x45fb68
push 0x45fb30
push connect
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push ecx
push 0xf003f
push ebx
push 0x45fb30
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x418fd1
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x418fd1
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x1020]
push 0x1000
push eax
mov dword [ebp - 4], ebx
call fcn.00418df0
add esp, 8
call fcn.00418c40
cmp eax, ebx
je 0x41901e
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x1020]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00418c80
cmp eax, ebx
je 0x41905e
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x1020]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x41905e
push 0x45fb68
push 0x45fb30
push connect
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueA]
cmp byte [ebp - 0x1020], bl
jne 0x4190aa
mov edi, 0x45fb5c
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x1020]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ecx
lea eax, [ebp - 0x1020]
push edx
push eax
call fcn.00418ea0
mov ecx, dword [ebp - 0xc]
add esp, 0xc
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x419170
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esp]
push ecx
push 0x28
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4191d4
lea edx, [esp + 8]
push edx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x4191c9
mov ecx, dword [esp]
push 0
push 0
lea eax, [esp + 0xc]
push 0
push eax
push 0
push ecx
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov edx, dword [esp]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x14
ret

Function at 0x4194a0
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
push esi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esp + 4]
push ecx
push 0x28
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x419511
lea edx, [esp + 0xc]
push edx
push 0x45ff44
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x419506
mov ecx, dword [esp + 4]
push esi
push esi
lea eax, [esp + 0x10]
push esi
push eax
push esi
push ecx
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x419506
push esi
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov esi, eax
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
add esp, 0x14
ret

Function at 0x419b40
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x419b6b
xor eax, eax
pop esi
ret 4
lea ecx, [esp + 8]
push 0
push ecx
push 0x3800
push 0x46006c
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push esi
jne 0x419b94
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
ret 4
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
ret 4