joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44e6ac
Capabilities:
Delete file
Move file

Disassembly:
mov eax, 0x46b1b0
call fcn.0045c1cc
sub esp, 0x10
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esp
lea eax, [ebp + 0x30]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp + 8]
push eax
call fcn.0044ef25
pop ecx
test al, al
pop ecx
je 0x44e6e4
and byte [ebp - 4], 0
jmp 0x44e7c6
lea eax, [ebp - 0x1c]
lea ecx, [ebp + 0x30]
push eax
mov byte [ebp - 4], 2
call fcn.00417939
push dword [eax + 8]
mov ecx, ebx
mov byte [ebp - 4], 3
call fcn.0044e817
cmp byte [ebp - 0x18], 0
mov byte [ebp - 4], 2
je 0x44e717
mov ecx, dword [ebp - 0x1c]
push dword [ecx + 0x1c]
call fcn.0041702f
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp + 0x30]
call fcn.0041734a
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x44e770
call edi
mov esi, eax
cmp esi, 3
je 0x44e770
cmp esi, 2
je 0x44e770
lea eax, [ebp - 0x1c]
lea ecx, [ebp + 0x30]
push eax
call fcn.00417939
push dword [eax + 8]
mov ecx, ebx
mov byte [ebp - 4], 4
push esi
call fcn.0044e87d
cmp byte [ebp - 0x18], 0
mov byte [ebp - 4], 2
je 0x44e71d
mov ecx, dword [ebp - 0x1c]
push dword [ecx + 0x1c]
call fcn.0041702f
jmp 0x44e71d
lea ecx, [ebp + 8]
call fcn.0041734a
lea ecx, [ebp + 0x30]
mov esi, eax
call fcn.0041734a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x44e7c2
lea eax, [ebp - 0x1c]
lea ecx, [ebp + 0x30]
push eax
call fcn.00417939
push dword [eax + 8]
mov byte [ebp - 4], 5
call edi
push eax
mov ecx, ebx
call fcn.0044e87d
cmp byte [ebp - 0x18], 0
mov byte [ebp - 4], 2
je 0x44e770
mov ecx, dword [ebp - 0x1c]
push dword [ecx + 0x1c]
call fcn.0041702f
jmp 0x44e770
and dword [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.0040be02
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x30]
call fcn.0040be02
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x50

Function at 0x44e817
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebx
push ebp
mov ebp, ecx
push esi
mov esi, dword [esp + 0x10]
push edi
mov eax, dword [ebp + 0x114]
push esi
push eax
call fcn.0042aad7
pop ecx
test al, al
pop ecx
je 0x44e876
mov ecx, esi
call fcn.0041734a
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
mov ecx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0041734a
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push eax
call edi
test eax, eax
jne 0x44e876
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, ebp
call fcn.0044e87d
push ebx
mov ecx, esi
call fcn.0041734a
push eax
jmp 0x44e856
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x45256e
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, 0x46b9a4
call fcn.0045c1cc
sub esp, 0x168
push ebx
push esi
push 0x4832c0
lea eax, [ebp - 0x34]
push dword [ebp + 8]
push eax
call fcn.0042a733
add esp, 0xc
lea ecx, [ebp - 0x174]
xor ebx, ebx
push ecx
mov ecx, eax
mov dword [ebp - 4], ebx
call fcn.0041734a
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
mov dword [ebp + 8], esi
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.0040be02
cmp esi, 0xffffffff
jne 0x4525c8
mov al, 1
jmp 0x4525f7
lea eax, [ebp - 0x174]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
push eax
push esi
call edi
test eax, eax
je 0x4525eb
lea eax, [ebp - 0x174]
push eax
push esi
call edi
test eax, eax
jne 0x4525ed
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, bl
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x452f31
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
push dword [esp + 0x1c]
mov ebp, ecx
call fcn.0042aad7
pop ecx
test al, al
pop ecx
je 0x452f93
mov ecx, esi
call fcn.0041734a
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
mov ecx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0041734a
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push eax
call edi
test eax, eax
jne 0x452f93
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push esi
mov ecx, ebp
call fcn.00452e5a
push ebx
mov ecx, esi
call fcn.0041734a
push eax
jmp 0x452f6d
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x452f9a
Capabilities:
Delete file

Disassembly:
mov eax, 0x46bac4
call fcn.0045c1cc
push esi
push edi
mov edi, ecx
push dword [ebp + 0x34]
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
call fcn.00452f31
lea ecx, [ebp + 8]
call fcn.0041734a
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push eax
call esi
test eax, eax
jne 0x452ffa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x452ffa
cmp eax, 2
je 0x452ffa
push dword [ebp + 0x34]
mov ecx, edi
push eax
lea eax, [ebp + 8]
push dword [ebp + 0x30]
push eax
call fcn.00452e5a
lea ecx, [ebp + 8]
call fcn.0041734a
push eax
jmp 0x452fc7
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0040be02
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 0x30
Function at 0x453016
Capabilities:
Delete directory

Disassembly:
mov eax, 0x46bae8
call fcn.0045c1cc
sub esp, 0xc
push ebx
push esi
push edi
mov esi, ecx
push dword [ebp + 0x34]
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
call fcn.00452f31
lea ecx, [ebp + 8]
call fcn.0041734a
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push eax
call edi
test eax, eax
jne 0x45313f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 3
je 0x45313f
cmp ebx, 2
je 0x45313f
cmp ebx, 5
jne 0x453083
lea eax, [ebp + 8]
push eax
call fcn.0045256e
test al, al
pop ecx
jne 0x45308b
mov ebx, 0x91
cmp ebx, 0x91
je 0x4530a8
push dword [ebp + 0x34]
lea eax, [ebp + 8]
mov ecx, esi
push ebx
push dword [ebp + 0x30]
push eax
call fcn.00452e5a
lea ecx, [ebp + 8]
call fcn.0041734a
push eax
jmp 0x453047
xor edi, edi
mov dword [ebp + 0x30], edi
mov eax, dword [esi]
mov dword [ebp - 0x10], edi
lea edx, [ebp + 0x30]
mov byte [ebp - 4], 1
mov eax, dword [eax + 4]
push edx
push 0x4834b0
push 0x46e458
mov eax, dword [eax + esi]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
cmp eax, edi
jl 0x4530e1
mov eax, dword [ebp + 0x30]
lea edx, [ebp - 0x10]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
cmp word [ebp - 0x10], di
je 0x45312e
sub esp, 0x28
lea eax, [ebp + 0x37]
mov dword [ebp - 0x14], esp
mov ecx, esp
push edi
push eax
push 0x486070
mov dword [ecx], 0x46cb98
mov dword [ecx + 0x20], 0x46cb90
call fcn.00416f93
sub esp, 0x28
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x18], esp
push 1
push eax
mov byte [ebp - 4], 2
call fcn.0042a4a7
mov byte [ebp - 4], 1
call fcn.0045ab94
add esp, 0x50
mov eax, dword [ebp + 0x30]
and byte [ebp - 4], 0
cmp eax, edi
je 0x45313f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0040be02
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x30

Function at 0x45797d
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x458aad
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x838
push ebx
push edi
mov edi, ecx
mov dword [ebp - 0x10], 1
call fcn.00458c49
xor ebx, ebx
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x458b61
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x458b53
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push ebx
push ebx
push str.ProxyEnable
mov dword [ebp - 8], 4
push dword [ebp - 4]
call esi
test eax, eax
je 0x458b17
mov dword [ebp - 0xc], ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x824
push eax
lea eax, [ebp - 0x838]
push eax
push ebx
push ebx
push str.AutoConfigURL
push dword [ebp - 4]
call esi
test eax, eax
pop esi
je 0x458b40
mov byte [ebp - 0x838], bl
cmp dword [ebp - 0xc], ebx
jne 0x458b4d
cmp byte [ebp - 0x838], bl
je 0x458b53
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 4], ebx
je 0x458b61
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.00458759
add esp, 0x14
cmp dword [ebp + 0xc], ebx
mov dword [edi + 4], eax
je 0x458b86
cmp dword [ebp + 0xc], 4
jne 0x458bb2
cmp dword [ebp - 0x14], ebx
jne 0x458bb2
mov ax, word [edi + 0x14]
cmp ax, 3
jne 0x458b9e
mov ecx, edi
call fcn.004590c6
jmp 0x458bb2
cmp ax, 4
mov ecx, edi
jne 0x458bad
call fcn.004592a7
jmp 0x458bb2
call fcn.0045967b
xor eax, eax
cmp dword [edi + 4], ebx
pop edi
pop ebx
setne al
leave
ret 0x14
Function at 0x4590c6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1190
call fcn.0045c360
and byte [ebp - 0x96c], 0
push ebx
push esi
mov dword [ebp - 0x10], ecx
mov edx, 0x208
push edi
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x96b]
and byte [ebp - 0x1190], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x118f]
xor esi, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push str.SOFTWARENetscapeNetscape_NavigatorProxy_Information
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x459294
lea eax, [ebp - 8]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push str.Proxy_Type
push dword [ebp - 4]
mov dword [ebp - 0x48], str.http
mov dword [ebp - 0x44], str.HTTP_Proxy
mov dword [ebp - 0x40], str.HTTP_ProxyPort
mov dword [ebp - 0x3c], str.https
mov dword [ebp - 0x38], str.HTTPS_Proxy
mov dword [ebp - 0x34], str.HTTPS_ProxyPort
mov dword [ebp - 0x30], str.ftp
mov dword [ebp - 0x2c], str.FTP_Proxy
mov dword [ebp - 0x28], str.FTP_ProxyPort
mov dword [ebp - 8], 4
call ebx
test eax, eax
jne 0x459294
cmp dword [ebp - 0x14], 1
jne 0x459294
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edi, [ebp - 0x48]
mov dword [ebp - 0xc], 3
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x100
push eax
lea eax, [ebp - 0x148]
push eax
push 0
push 0
push dword [edi + 4]
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x459257
cmp byte [ebp - 0x148], al
je 0x459257
push dword [edi]
lea eax, [ebp - 0x96c]
push eax
call esi
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x96c]
push eax
call esi
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push dword [edi + 8]
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x459249
lea eax, [ebp - 0x96c]
push 0x484da8
push eax
call esi
push dword [ebp - 0x18]
lea eax, [ebp - 0x96c]
push 0x484da4
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + eax - 0x96c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x96c]
push 0x484da0
push eax
call esi
add edi, 0xc
dec dword [ebp - 0xc]
jne 0x4591ad
lea eax, [ebp - 0x96c]
push 0xc
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x1190]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x10]
push 0x26
mov dword [ebp - 0x24], 3
push dword [eax + 4]
call fcn.00458932
add esp, 0x10
xor esi, esi
cmp dword [ebp - 4], esi
je 0x4592a2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45a1b4
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, ecx
call edi
sub eax, dword [esi + 0x74]
cmp eax, 0x7530
jbe 0x45a1ec
mov eax, dword [esi + 0x68]
mov ecx, dword [esi + 0x70]
mov dword [esi + 0x5c], eax
mov dword [esi + 0x64], ecx
mov ecx, dword [esi + 0x6c]
xor eax, eax
mov dword [esi + 0x68], eax
mov dword [esi + 0x70], eax
mov dword [esi + 0x60], ecx
mov dword [esi + 0x6c], eax
call edi
mov dword [esi + 0x74], eax
mov edi, dword [esi + 0x64]
test edi, edi
jne 0x45a1f8
mov eax, dword [esi + 0x5c]
jmp 0x45a241
push ebx
push ebp
push 0xa
xor eax, eax
pop ecx
xor ebp, ebp
test eax, eax
jne 0x45a23f
or eax, 0xffffffff
xor edx, edx
div ecx
mov ebx, dword [esi + 0x5c]
cmp ebx, eax
jbe 0x45a21d
shr ebx, 1
shr edi, 1
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x64], edi
mov eax, dword [esi + 0x5c]
mov edi, dword [esi + 0x64]
imul eax, ecx
xor edx, edx
div edi
xor edx, edx
imul eax, eax, 0x3e8
div ecx
lea ecx, [ecx + ecx*4]
inc ebp
shl ecx, 1
cmp ebp, 3
jb 0x45a201
pop ebp
pop ebx
pop edi
pop esi
ret

Function at 0x45a887
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
push ebx
push eax
mov ebx, ecx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [ebp - 4], eax
je 0x45a8d9
push eax
call fcn.0045c34f
pop ecx
mov dword [ebx + 0x40], eax
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x45a8d9
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x4821c8
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x45a8dd
xor al, al
jmp 0x45a93e
push esi
push edi
mov edi, ebx
lea eax, [ebx + 4]
neg edi
sbb edi, edi
mov esi, dword [ebp - 0xc]
push 0xd
and edi, eax
pop ecx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push str.VarFileInfoTranslation
rep movsd dword es:[edi], dword [esi]
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueA
pop edi
pop esi
test eax, eax
je 0x45a93c
mov eax, dword [ebp - 4]
shr eax, 2
mov dword [ebx + 0x3c], eax
shl eax, 2
push eax
call fcn.0045c34f
mov dword [ebx + 0x38], eax
xor eax, eax
cmp dword [ebx + 0x3c], eax
pop ecx
jbe 0x45a93c
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x38]
mov edx, dword [edx + eax*4]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [ebx + 0x3c]
jb 0x45a92a
mov al, 1
pop ebx
leave
ret 4
Function at 0x45a9e4
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Move file
Read .ini file

Disassembly:
mov eax, 0x46be87
call fcn.0045c1cc
sub esp, 0x1dc
and dword [ebp - 0x10], 0
push ebx
push esi
push edi
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
call fcn.00449b04
test al, 0x10
pop ecx
je 0x45ab5f
push 1
lea eax, [ebp + 8]
pop edi
push 0x4832c0
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.0042a733
add esp, 0xc
lea ecx, [ebp - 0x1e8]
mov byte [ebp - 4], 1
push ecx
mov ecx, eax
call fcn.0041734a
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
mov dword [ebp - 0x10], esi
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 3
call fcn.0040be02
mov ebx, dword [sym.imp.KERNEL32.dll_FindClose]
cmp esi, 0xffffffff
je 0x45ab0a
test edi, edi
je 0x45ab03
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
lea eax, [ebp - 0x1bc]
push 0x4832bc
push eax
call edi
test eax, eax
je 0x45aaee
lea eax, [ebp - 0x1bc]
push 0x4832b8
push eax
call edi
test eax, eax
je 0x45aaee
lea eax, [ebp - 0x11]
push 0
push eax
lea eax, [ebp - 0x1bc]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x46cb98
mov dword [ebp - 0x20], 0x46cb90
call fcn.004170f0
sub esp, 0x28
lea ecx, [ebp - 0x40]
mov eax, esp
mov dword [ebp - 0x18], esp
push ecx
lea ecx, [ebp + 8]
push ecx
push eax
mov byte [ebp - 4], 4
call fcn.0042a6c9
add esp, 0xc
call fcn.0045a9e4
add esp, 0x28
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.0040be02
lea eax, [ebp - 0x1e8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov edi, eax
jmp 0x45aa68
push esi
call ebx
or dword [ebp - 0x10], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0041734a
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x45ab39
lea eax, [ebp + 8]
push 1
push eax
lea ecx, [ebp - 0x60]
call fcn.00419298
lea eax, [ebp - 0x60]
push 0x473fc8
push eax
call fcn.0045c315
cmp dword [ebp - 0x10], 0xffffffff
je 0x45ab44
push dword [ebp - 0x10]
call ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0040be02
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
lea ecx, [ebp + 8]
call fcn.0041734a
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x45ab44
lea eax, [ebp + 8]
push 1
push eax
lea ecx, [ebp - 0xa8]
call fcn.00419298
lea eax, [ebp - 0xa8]
push 0x473fc8
push eax
call fcn.0045c315
Function at 0x45b905
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
lea eax, [ebp - 0xc]
push edi
xor ebx, ebx
push eax
push ebx
push 8
mov byte [ebp - 0x1c], bl
mov byte [ebp - 0x1b], bl
mov byte [ebp - 0x1a], bl
mov byte [ebp - 0x19], bl
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x17], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x45b96f
call esi
cmp eax, 0x3f0
jne 0x45b95f
lea eax, [ebp - 0xc]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call esi
cmp eax, 0x78
jne 0x45b96b
mov al, 1
jmp 0x45ba2a
cmp eax, ebx
je 0x45b9de
lea eax, [ebp - 8]
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push eax
push ebx
push ebx
push 2
push dword [ebp - 0xc]
call edi
test eax, eax
jne 0x45b9de
call esi
cmp eax, 0x7a
jne 0x45b9de
push dword [ebp - 8]
call fcn.0045c34f
mov esi, eax
pop ecx
lea eax, [ebp - 8]
cmp esi, ebx
push eax
push dword [ebp - 8]
setne byte [ebp - 0x24]
push esi
push 2
push dword [ebp - 0xc]
call edi
test eax, eax
je 0x45b9d2
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
lea eax, [ebp - 0x1c]
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x45b9e2
cmp byte [ebp - 0x24], bl
je 0x45b9de
push esi
call fcn.0045bbb5
pop ecx
xor al, al
jmp 0x45ba2a
xor edi, edi
cmp dword [esi], ebx
mov byte [ebp - 1], bl
jbe 0x45ba12
lea eax, [esi + 4]
mov dword [ebp - 0x10], eax
push dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x45ba0e
add dword [ebp - 0x10], 8
inc edi
cmp edi, dword [esi]
jb 0x45b9f1
jmp 0x45ba12
mov byte [ebp - 1], 1
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp byte [ebp - 0x24], bl
je 0x45ba27
push esi
call fcn.0045bbb5
pop ecx
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x460a46
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x485ab8
cmp edx, dword [eax]
je 0x460a68
add eax, 8
inc ecx
cmp eax, 0x485b48
jl 0x460a59
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x485ab8]
jne 0x460b96
mov eax, dword [0x49c184]
cmp eax, 1
je 0x460b70
test eax, eax
jne 0x460a99
cmp dword [0x485374], 1
je 0x460b70
cmp edx, 0xfc
je 0x460b96
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x460ad0
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0045e9f0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0045c9d0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x460b13
lea eax, [ebp - 0x1a4]
push eax
call fcn.0045c9d0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x46e9f0
push edi
call fcn.004612c0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0045e9f0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0045ea00
lea eax, [ebp - 0xa0]
push 0x46e9d0
push eax
call fcn.0045ea00
push dword [esi + 0x485abc]
lea eax, [ebp - 0xa0]
push eax
call fcn.0045ea00
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004618a7
add esp, 0x2c
pop edi
jmp 0x460b96
lea eax, [ebp + 8]
lea esi, [esi + 0x485abc]
push 0
push eax
push dword [esi]
call fcn.0045c9d0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x40d6b0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46b44b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0046004e
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40d732
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045ddcd
mov eax, dword [eax]
push 0x5491c0
push eax
call fcn.00450c54
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004602d9
test bl, bl
je 0x40d732
push 0x5491c0
lea ecx, [esp + 0xc]
call fcn.00460669
push 0x54cd24
lea ecx, [esp + 0xc]
call fcn.00460669
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40d76e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004602d9
jmp 0x40d839
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x40d7f2
lea edx, [esp + 0x7c]
push 0x54cd20
push edx
call fcn.00450c54
add esp, 8
test eax, eax
je 0x40d7f2
lea eax, [esp + 0x7c]
push 0x54cd1c
push eax
call fcn.00450c54
add esp, 8
test eax, eax
je 0x40d7f2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40d782
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.004602d9
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x40e030
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40e092
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc