joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e084
Capabilities:
Delete registry key

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [esp + 0x10]
mov edi, 0xf003f
push eax
push edi
mov ebp, str.SOFTWAREGoogleChromeNativeMessagingHosts
push 0
mov ebx, 0x80000002
push ebp
push ebx
call esi
test eax, eax
jne 0x40e0c7
push str.com.tonec.idm
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.00403110
test eax, eax
je 0x40e101
lea eax, [esp + 0x10]
push eax
push 0xf013f
push 0
push ebp
push ebx
call esi
test eax, eax
jne 0x40e101
mov ebp, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push str.com.tonec.idm
push dword [esp + 0x14]
call ebp
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40e107
mov ebp, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea eax, [esp + 0x10]
mov ebx, 0x80000001
push eax
push edi
push 0
push str.SOFTWAREMozillaNativeMessagingHosts
push ebx
call esi
test eax, eax
jne 0x40e135
push str.com.tonec.idm
push dword [esp + 0x14]
call ebp
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x10]
push eax
push edi
push 0
push str.SOFTWAREMicrosoftEdgeNativeMessagingHosts
push ebx
call esi
test eax, eax
jne 0x40e15e
push str.com.tonec.idm
push dword [esp + 0x14]
call ebp
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x10]
push eax
push edi
push 0
push str.SOFTWARECocCocBrowserNativeMessagingHosts
push ebx
call esi
test eax, eax
jne 0x40e187
push str.com.tonec.idm
push dword [esp + 0x14]
call ebp
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x40e18d
Capabilities:
Delete registry key
Delete registry value
Persist via run registry key

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
call fcn.0040de73
call fcn.0040dac7
xor ebx, ebx
lea eax, [esp + 0x10]
push ebx
push eax
push ebx
mov edi, 0x80000001
push dword [esp + 0x24]
push ebx
push ebx
push ebx
push str.SoftwareMozillaFirefoxExtensions
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40e1f4
push str.mozilla_cc_internetdownloadmanager.com
push dword [esp + 0x14]
call esi
push str.mozilla_cc2_internetdownloadmanager.com
push dword [esp + 0x14]
call esi
push str.mozilla_cc3_internetdownloadmanager.com
push dword [esp + 0x14]
call esi
push dword [esp + 0x10]
call ebp
lea eax, [esp + 0x10]
push ebx
push eax
push ebx
push dword [esp + 0x24]
push ebx
push ebx
push ebx
push str.SoftwareMozillaSeaMonkeyExtensions
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40e239
push str.mozilla_cc_internetdownloadmanager.com
push dword [esp + 0x14]
call esi
push str.mozilla_cc2_internetdownloadmanager.com
push dword [esp + 0x14]
call esi
push str.mozilla_cc3_internetdownloadmanager.com
push dword [esp + 0x14]
call esi
push dword [esp + 0x10]
call ebp
lea eax, [esp + 0x10]
push ebx
push eax
push ebx
push dword [esp + 0x24]
push ebx
push ebx
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40e273
push str.IDMan
push dword [esp + 0x14]
call esi
push 0x415bdc
push dword [esp + 0x14]
call esi
push dword [esp + 0x10]
call ebp
lea eax, [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push dword [esp + 0x1c]
push ebx
push str.SOFTWAREGoogleChromeExtensions
push 0x80000002
call esi
test eax, eax
jne 0x40e2a8
push str.ngpampappnmepgilojfohadhhmbhlaek
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [esp + 0x10]
call ebp
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x1c]
push ebx
push str.SOFTWAREGoogleChromeExtensions
push edi
call esi
test eax, eax
jne 0x40e2d3
push str.ngpampappnmepgilojfohadhhmbhlaek
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [esp + 0x10]
call ebp
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x1c]
push ebx
push str.SOFTWAREMicrosoftEdgeExtensions
push edi
call esi
test eax, eax
jne 0x40e30d
push str.ngpampappnmepgilojfohadhhmbhlaek
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push str.llbjbkhnmlidjebalopleeepgdfgcpec
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [esp + 0x10]
call ebp
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x1c]
push ebx
push str.SOFTWARECocCocBrowserExtensions
push edi
call esi
test eax, eax
jne 0x40e338
push str.ngpampappnmepgilojfohadhhmbhlaek
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [esp + 0x10]
call ebp
push dword [esp + 0x18]
call fcn.0040df70
pop ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x40e348
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor esi, esi
push str.shell32.dll
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, esi
je 0x40e3a8
push ebx
push str.SHGetFolderPathW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
cmp ebx, esi
je 0x40e39b
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
push dword [ebp + 8]
push esi
push esi
push 0x1a
push esi
call ebx
test eax, eax
jne 0x40e395
mov dword [ebp - 4], 1
call dword [sym.imp.ole32.dll_CoUninitialize]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 4], esi
pop ebx
jne 0x40e3f3
lea eax, [ebp - 8]
push eax
push 1
pop edi
push edi
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40e3f3
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 4
push eax
push dword [ebp + 8]
push esi
push esi
push str.AppData
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40e3ea
mov dword [ebp - 4], edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret
Function at 0x41051c
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
lea eax, [ebp - 4]
push eax
push 1
push 0
push str.SoftwareDownloadManager
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4105ba
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x208
push eax
lea eax, [ebp - 0x210]
push eax
push 0
push 0
push str.CommonAppDataIDMFolder
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4105b1
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4105b1
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x418]
push str._sproxy.pac
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret

Function at 0x4105bc
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push 0x104
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x410633
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x410633
lea eax, [ebp - 0x20c]
push 0x4150b8
push eax
call sub.MSVCRT.dll_wcscat
lea eax, [ebp - 0x20c]
push str.Internet_Download_Manager.lnk
push eax
call sub.MSVCRT.dll_wcscat
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
leave
ret
Function at 0x410965
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
push edi
xor edi, edi
push edi
mov esi, dword [sym.imp.USER32.dll_SendDlgItemMessageW]
push edi
push 0x18b
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
mov ebx, eax
cmp ebx, edi
jbe 0x4109d4
lea eax, [ebp - 0x208]
push eax
push edi
push 0x189
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
lea eax, [ebp - 0x208]
push 0x419058
push eax
call sub.MSVCRT.dll_wcsstr
pop ecx
test eax, eax
pop ecx
lea eax, [ebp - 0x208]
push eax
je 0x4109c9
call fcn.004109db
pop ecx
jmp 0x4109cf
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
inc edi
cmp edi, ebx
jb 0x41098e
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret

Function at 0x4109db
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x664
push ebx
push edi
push dword [ebp + 8]
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x664]
push 0x417374
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x664]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
or eax, 0xffffffff
cmp ebx, eax
je 0x410ad4
lea eax, [ebp - 0x254]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
push eax
push ebx
call esi
and dword [ebp - 4], 0
lea eax, [ebp - 0x254]
push eax
push ebx
call esi
test eax, eax
je 0x410aab
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x45c]
push dword [ebp + 8]
push 0x4156e4
push eax
call edi
mov eax, dword [ebp - 0x254]
add esp, 0x10
and eax, 0x10
cmp al, 0x10
je 0x410a85
lea eax, [ebp - 4]
push 0
push eax
lea eax, [ebp - 0x45c]
push 0x41cd38
push eax
call fcn.00405ef6
jmp 0x410a36
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x45c]
push 0x41c228
push eax
call edi
lea eax, [ebp - 0x45c]
push eax
call fcn.004109db
add esp, 0x10
jmp 0x410a36
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
pop esi
jne 0x410ad2
push eax
lea eax, [ebp - 4]
push eax
push 0x41cd38
push dword [ebp + 8]
call fcn.00405ef6
xor eax, eax
pop edi
pop ebx
leave
ret
Function at 0x506092
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1cc
push edi
push esi
and dword [ebp - 0x28], 0
push ebx
and dword [ebp - 0x18], 0
push ebp
lea edi, [ebp - 0x18]
push 0
push 0
push 0
call dword [sym.imp.COMDLG32.dll_LoadAlterBitmap]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x716
je 0x5060ce
cmp eax, 0x715
jne 0x5061d9
sub edi, edi
mov dword [ebp - 4], edi
clc
adc edi, 0x402498
add edi, dword [ebp - 0x18]
mov dword [ebp - 0xc], edi
mov edi, ebp
sub edi, 0x1a8
mov dword [ebp - 0x10], edi
mov esi, 0x402497
mov dword [ebp - 0x28], esi
mov edi, dword [ebp - 0x10]
sub edi, 0xfffffff0
mov dword [ebp - 0x1c], edi
sub dword [ebp - 4], 0x28
not dword [ebp - 4]
add dword [ebp - 4], 1
push dword [ebp - 0x28]
push dword [ebp - 4]
push dword [ebp - 0xc]
lea edx, [ebp - 0x1a8]
push edx
call section..text
mov edi, dword [ebp - 0x10]
mov edi, dword [edi + 4]
mov ecx, dword [ebp - 0x10]
add edi, dword [ecx]
mov dword [ebp - 0x24], edi
mov edi, 0x40
push edi
push 0x3000
push dword [ebp - 0x24]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
mov dword [ebp - 0x20], 0x400000
and dword [ebp - 0x18], 0
and dword [ebp - 0x1ac], 0
jmp 0x506170
mov edi, dword [ebp - 0x1ac]
inc edi
mov dword [ebp - 0x1ac], edi
mov ebx, dword [ebp - 0x1c]
add ebx, 8
mov dword [ebp - 0x1c], ebx
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1ac]
mov esi, dword [edx + 8]
cmp ecx, esi
jae 0x5061ac
push dword [ebp - 0x28]
mov edi, dword [ebp - 0x1c]
push dword [edi + 4]
mov ebx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebx]
push ecx
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x18]
push eax
call section..text
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
add eax, dword [ebx + 4]
mov dword [ebp - 0x18], eax
jmp 0x50615a
mov ebx, dword [ebp - 0x20]
push ebx
mov ecx, dword [ebp - 8]
mov eax, 0x1690
add ecx, eax
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x19c]
push ecx
mov ebx, dword [ebp - 0x10]
mov edi, dword [ebp - 8]
add edi, dword [ebx + 4]
push edi
mov edi, dword [ebp - 0x14]
sub esp, 4
push dword [ebp - 0x14]
ret
call section..text
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
jmp 0x4401ee
call fcn.00442e6b
jmp 0x4401f8
push 0x14
push 0x454308
call fcn.00441ff0
call fcn.00441d0e
movzx esi, ax
push 2
call fcn.00442e1e
pop ecx
mov eax, 0x5a4d
cmp word [0x400000], ax
je 0x440226
xor ebx, ebx
jmp 0x440259
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x440222
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x440222
xor ebx, ebx
cmp dword [eax + 0x400074], 0xe
jbe 0x440259
cmp dword [eax + 0x4000e8], ebx
setne bl
mov dword [ebp - 0x1c], ebx
call fcn.00441455
test eax, eax
jne 0x44026d
push 0x1c
call fcn.00440348
pop ecx
call fcn.004412e8
test eax, eax
jne 0x44027e
push 0x10
call fcn.00440348
pop ecx
call fcn.00442f05
and dword [ebp - 4], 0
call fcn.00442862
test eax, eax
jns 0x440298
push 0x1b
call fcn.00440348
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x45d608], eax
call fcn.00442f45
mov dword [0x4596b0], eax
call fcn.00442b10
test eax, eax
jns 0x4402be
push 8
call fcn.004414e5
pop ecx
call fcn.00442d3d
test eax, eax
jns 0x4402cf
push 9
call fcn.004414e5
pop ecx
push 1
call fcn.0044151f
pop ecx
test eax, eax
je 0x4402e2
push eax
call fcn.004414e5
pop ecx
call fcn.00442fd0
push esi
push eax
push 0
push 0x400000
call main
mov esi, eax
mov dword [ebp - 0x24], esi
test ebx, ebx
jne 0x440304
push esi
call fcn.0044177b
call fcn.00441510
jmp 0x440339
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
call fcn.00442035
ret
Function at 0x401c80
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
shr ebx, 2
push esi
mov eax, ebx
mov esi, ecx
shr eax, 1
add eax, 3
mov dword [esi], eax
add esi, 0x10
xor ecx, ecx
push edi
mov dword [ebp - 4], 1
test ebx, ebx
je 0x401cb5
mov eax, dword [edx]
mov dword [esi + ecx*4], eax
inc ecx
lea edx, [edx + 4]
cmp ecx, ebx
jb 0x401ca8
mov eax, dword [esi + ebx*4 - 4]
lea ecx, [ebx + 0xe]
lea ecx, [ebx + ecx*2]
lea edi, [esi + ecx*4]
mov dword [ebp + 8], edi
mov ecx, dword [ebp + 8]
xor edi, edi
lea ebx, [ebx]
test edi, edi
jne 0x401d36
movzx ecx, al
mov edi, ebx
movzx edx, byte [ecx + str.cw]
mov ecx, eax
shr ecx, 0x18
shl edx, 8
movzx ecx, byte [ecx + str.cw]
or edx, ecx
mov ecx, eax
shr ecx, 0x10
and ecx, 0xff
shr eax, 8
movzx ecx, byte [ecx + str.cw]
and eax, 0xff
shl edx, 8
movzx eax, byte [eax + str.cw]
or edx, ecx
mov ecx, dword [ebp - 4]
xor eax, ecx
shl edx, 8
add ecx, ecx
or eax, edx
test ecx, 0x100
mov edx, 0x1b
cmovne ecx, edx
mov dword [ebp - 4], ecx
jmp 0x401d89
cmp edi, 4
jne 0x401d8c
cmp ebx, 6
jbe 0x401d8c
mov ecx, eax
shr ecx, 0x10
and ecx, 0xff
movzx edx, byte [ecx + str.cw]
mov ecx, eax
shr ecx, 0x18
movzx ecx, byte [ecx + str.cw]
shl ecx, 8
or edx, ecx
mov ecx, eax
shr ecx, 8
and ecx, 0xff
movzx eax, al
movzx ecx, byte [ecx + str.cw]
movzx eax, byte [eax + str.cw]
shl edx, 8
or edx, ecx
shl edx, 8
or eax, edx
mov ecx, dword [ebp + 8]
xor eax, dword [esi]
add esi, 4
mov dword [esi + ebx*4 - 4], eax
dec edi
cmp esi, ecx
jne 0x401cd0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x401db0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
mov edi, ecx
call fcn.00401c80
lea ebx, [esi + 0x14]
xor esi, esi
test ebx, ebx
je 0x401e31
lea ebx, [ebx]
mov edx, dword [edi + esi*4 + 0x20]
mov eax, edx
shr eax, 0x10
and eax, 0xff
inc esi
movzx ecx, byte [eax + str.cw]
mov eax, edx
mov ecx, dword [ecx*4 + 0x45ac00]
shr eax, 8
and eax, 0xff
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*4 + 0x45a800]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*4 + 0x45b000]
movzx eax, dl
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*4 + 0x45a400]
mov dword [edi + esi*4 + 0x1c], ecx
cmp esi, ebx
jb 0x401dd0
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x402d40
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0x458050]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x402d89
push str.SetDefaultDllDirectories
push 0x452b38
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x402d89
push 0xc00
call eax
test eax, eax
jne 0x402e27
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x402e27
cmp eax, 0x104
ja 0x402e27
cmp word [ebp + eax*2 - 0x2d6], 0x5c
je 0x402dc7
mov ecx, 0x5c
mov word [ebp + eax*2 - 0x2d4], cx
inc eax
cmp byte [str.userenv], 0
push esi
mov esi, str.userenv
je 0x402e26
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push edi
lea edi, [ebp - 0x2d4]
lea edi, [edi + eax*2]
mov al, byte [esi]
inc esi
mov ecx, edi
test al, al
je 0x402e00
movzx eax, al
mov word [ecx], ax
mov al, byte [esi]
add ecx, 2
inc esi
test al, al
jne 0x402df0
xor eax, eax
push 8
push eax
mov word [ecx + 8], ax
lea eax, [ebp - 0x2d4]
push eax
mov dword [ecx], 0x64002e
mov dword [ecx + 4], 0x6c006c
call ebx
cmp byte [esi], 0
jne 0x402de7
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043e8e6
mov esp, ebp
pop ebp
ret
Function at 0x407ff0
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [0x458f30]
mov dword [ecx], eax
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x20], 0x6a09e667
mov dword [ecx + 0x24], 0xbb67ae85
mov dword [ecx + 0x28], 0x3c6ef372
mov dword [ecx + 0x2c], 0xa54ff53a
mov dword [ecx + 0x30], 0x510e527f
mov dword [ecx + 0x34], 0x9b05688c
mov dword [ecx + 0x38], 0x1f83d9ab
mov dword [ecx + 0x3c], 0x5be0cd19
ret

Function at 0x4084d0
Capabilities:
Hash data using sha256

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, edx
mov edx, dword [esi + 8]
and edx, 0x3f
inc edx
mov byte [edx + esi + 0x3f], 0x80
push edi
cmp edx, 0x38
jbe 0x408517
cmp edx, 0x40
je 0x408509
mov ecx, 0x40
sub ecx, edx
lea edi, [esi + 0x40]
add edi, edx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi]
push 1
lea edx, [esi + 0x40]
lea ecx, [esi + 0x20]
call eax
xor edx, edx
mov eax, 0x38
sub eax, edx
push eax
lea eax, [esi + 0x40]
add eax, edx
push 0
push eax
call fcn.00443090
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0xc]
shld eax, ecx, 3
shl ecx, 3
bswap eax
add esp, 0xc
mov dword [esi + 0x78], eax
bswap ecx
mov eax, dword [esi]
mov dword [esi + 0x7c], ecx
push 1
lea edx, [esi + 0x40]
lea ecx, [esi + 0x20]
call eax
lea edx, [esi + 0x20]
mov edi, 4
lea ebx, [ebx]
mov ecx, dword [edx + 4]
bswap ecx
mov eax, dword [edx]
mov dword [ebx + 4], ecx
bswap eax
mov dword [ebx], eax
lea ebx, [ebx + 8]
lea edx, [edx + 8]
dec edi
jne 0x408560
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
pop edi
mov dword [esi + 0x20], 0x6a09e667
mov dword [esi + 0x24], 0xbb67ae85
mov dword [esi + 0x28], 0x3c6ef372
mov dword [esi + 0x2c], 0xa54ff53a
mov dword [esi + 0x30], 0x510e527f
mov dword [esi + 0x34], 0x9b05688c
mov dword [esi + 0x38], 0x1f83d9ab
mov dword [esi + 0x3c], 0x5be0cd19
pop esi
pop ebx
ret

Function at 0x40b8d0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x45a151], 0
push esi
mov esi, edx
jne 0x40b90d
mov edx, ecx
lea ecx, [ebp - 0xc]
call fcn.004096f0
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0043f238
add esp, 4
test esi, esi
je 0x40b920
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x40b920
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
xor al, al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40b930
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x45a151], 0
jne 0x40b96a
mov edx, ecx
push esi
lea ecx, [ebp - 0xc]
call fcn.004096f0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0043f238
add esp, 4
test esi, esi
pop esi
je 0x40b97b
mov al, 1
mov esp, ebp
pop ebp
ret
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x40b97b
mov al, 1
mov esp, ebp
pop ebp
ret
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x40b990
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44b098
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x458050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp byte [0x45a151], 0
jne 0x40b9fc
mov edx, edi
lea ecx, [ebp - 0x18]
call fcn.004096f0
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0x18]
mov esi, eax
call fcn.0043f238
add esp, 4
test esi, esi
je 0x40ba1d
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40ba1d
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40ba3e
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x50]
call fcn.0040ba90
push 0
push edi
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], 0
call fcn.0040d000
test al, al
jne 0x40ba60
xor bl, bl
jmp 0x40ba69
mov ebx, dword [ebp - 0x30]
shr ebx, 4
and bl, 1
push dword [ebp - 0x28]
call fcn.0043f238
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40be10
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x45a151], 0
push ebx
push esi
mov esi, ecx
jne 0x40be44
mov edx, esi
lea ecx, [ebp - 0xc]
call fcn.004096f0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push dword [ebp - 0xc]
mov ebx, eax
call fcn.0043f238
add esp, 4
jmp 0x40be52
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40be71
cmp ebx, 0xffffffff
je 0x40be71
test bl, 0x10
jne 0x40be71
test bl, 1
je 0x40be71
and ebx, 0xfffffffe
mov edx, ebx
mov ecx, esi
call fcn.0040b8d0
test al, al
je 0x40beb8
cmp byte [0x45a151], 0
jne 0x40bea5
mov edx, esi
lea ecx, [ebp - 0xc]
call fcn.004096f0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0043f238
add esp, 4
test esi, esi
je 0x40beb8
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40beb8
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40c260
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x45a151], 0
jne 0x40c29b
mov edx, ecx
push esi
lea ecx, [ebp - 0xc]
call fcn.004096f0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0043f238
add esp, 4
xor eax, eax
test esi, esi
setne al
pop esi
mov esp, ebp
pop ebp
ret
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
mov esp, ebp
pop ebp
ret