joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403774
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x9c
mov ecx, dword [esp + 0xa0]
mov eax, 0x7b0d80
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0xb8]
mov ebx, 0x8000
test edi, edi
cmovne ebx, dword [esp + 0xbc]
xor esi, esi
test edi, edi
cmovne eax, edi
mov dword [esp + 0x1c], eax
test ecx, ecx
js 0x4037bc
mov eax, dword [0x7c21d8]
add eax, ecx
push eax
call fcn.0040375d
push 4
lea eax, [esp + 0x14]
push eax
push dword [0x423010]
call fcn.00406df9
test eax, eax
je 0x403983
mov eax, dword [esp + 0x10]
test eax, eax
jns 0x403925
call dword [sym.imp.KERNEL32.dll_GetTickCount]
and dword [0x4264e0], esi
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
and eax, 0x7fffffff
mov byte [0x4264c8], 0xb
mov ecx, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], ecx
jbe 0x40391d
mov ebp, 0x4000
cmp ecx, ebp
cmovl ebp, ecx
push ebp
push 0x7acd80
call fcn.00403747
test eax, eax
je 0x403983
sub dword [esp + 0x10], ebp
mov dword [0x4264bc], ebp
mov ebp, dword [esp + 0x1c]
mov dword [0x4264b8], 0x7acd80
push 0x4264b8
mov dword [0x4264c0], ebp
mov dword [0x4264c4], ebx
call fcn.00408592
mov dword [esp + 0x28], eax
test eax, eax
js 0x403921
mov eax, dword [0x4264c0]
sub eax, ebp
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x7c2274], 1
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x24], eax
je 0x4038d6
sub eax, dword [esp + 0x14]
cmp eax, 0xc8
ja 0x40389a
test ecx, ecx
jne 0x4038d6
mov eax, dword [esp + 0x20]
push eax
push 0x64
sub eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [esp + 0x30]
push 0x41a5f0
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x2c]
push eax
push 0
call fcn.004061fe
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x403915
test edi, edi
jne 0x4038fa
push eax
push ebp
push dword [esp + 0xbc]
call fcn.00406ebc
test eax, eax
je 0x403968
mov eax, dword [esp + 0x18]
jmp 0x403906
mov ebp, dword [0x4264c0]
sub ebx, eax
mov dword [esp + 0x1c], ebp
add esi, eax
cmp dword [esp + 0x28], 4
jne 0x403847
jmp 0x40391d
test ecx, ecx
jg 0x403812
mov eax, esi
jmp 0x403986
push 0xfffffffffffffffc
jmp 0x403985
test edi, edi
jne 0x40396c
test eax, eax
jle 0x40391d
mov ebp, 0x7acd80
cmp eax, ebx
mov edi, ebx
cmovl edi, eax
push edi
push ebp
call fcn.00403747
test eax, eax
je 0x403983
push edi
push ebp
push dword [esp + 0xbc]
call fcn.00406ebc
test eax, eax
je 0x403968
mov eax, dword [esp + 0x10]
add esi, edi
sub eax, edi
mov dword [esp + 0x10], eax
test eax, eax
jg 0x403932
jmp 0x40391d
push 0xfffffffffffffffe
jmp 0x403985
mov esi, dword [esp + 0xbc]
cmp eax, esi
cmovl esi, eax
push esi
push edi
call fcn.00403747
test eax, eax
jne 0x40391d
push 0xfffffffffffffffd
pop eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9c
ret 0x10
Function at 0x403993
Capabilities:
Hide graphical window

Disassembly:
cmp dword [esp + 4], 0
je 0x4039b2
mov eax, dword [0x4264b0]
test eax, eax
je 0x4039aa
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
and dword [0x4264b0], 0
ret
cmp dword [0x4264b0], 0
je 0x4039c3
push 0
call fcn.004066be
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x7c2180]
jbe 0x4039f6
push 0
push 0x4040c5
push 0
push 0x6f
push dword [0x7c1174]
call dword [sym.imp.USER32.dll_CreateDialogParamW]
push 5
push eax
mov dword [0x4264b0], eax
call dword [sym.imp.USER32.dll_ShowWindow]
ret
Function at 0x4062e2
Capabilities:
Create directory

Disassembly:
push esi
xor esi, esi
push esi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4062fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, esi
pop esi
ret 4
Function at 0x406653
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
lea eax, [ebp - 0x23c]
push esi
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor ecx, ecx
cmp eax, esi
pop esi
cmovbe ecx, eax
lea eax, [ebp - 0x23c]
lea eax, [eax + ecx*2]
test ecx, ecx
je 0x406691
cmp word [eax - 2], 0x5c
mov ecx, 0x41a3d0
jne 0x406696
mov ecx, 0x41a3d2
push dword [ebp + 8]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x4066ec
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x40670f
push dword [esp + 8]
push dword [esp + 8]
call fcn.004067b5
pop ecx
pop ecx
inc dword [0x7c2250]
ret 8

Function at 0x4067b5
Capabilities:
Get file size

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
mov ebx, 0x400
mov dword [0x7bea08], 0x55004e
mov ebp, 0x7bea08
mov dword [0x7bea0c], 0x4c
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test esi, esi
je 0x40680b
push 1
push 0
push esi
call fcn.00406dcc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push ebp
push esi
call edi
test eax, eax
je 0x4068eb
cmp eax, ebx
jg 0x4068eb
push ebx
mov esi, 0x7be208
push esi
push dword [esp + 0x1c]
call edi
test eax, eax
je 0x4068eb
cmp eax, ebx
jg 0x4068eb
push esi
push ebp
push str._ls_ls_r_n
push 0x7bde08
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [0x7c2190]
add esp, 0x10
mov ebp, eax
push dword [ecx + 0x128]
push esi
call fcn.0040635d
push 4
push 0xc0000000
push esi
call fcn.00406dcc
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4068eb
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea ecx, [esi + 0xa]
add ecx, ebp
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x4068e4
push esi
push edi
push ebx
call fcn.00406df9
test eax, eax
je 0x4068e4
push str._Rename__r_n
push edi
call fcn.00406fe7
test eax, eax
jne 0x4068f0
push str._Rename__r_n
lea eax, [edi + esi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esi, 0xa
mov ecx, esi
push ebp
push 0x7bde08
lea eax, [ecx + edi]
push eax
call fcn.00406b65
xor eax, eax
push eax
push eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esi + ebp]
push eax
push edi
push ebx
call fcn.00406ebc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret
push 0x41aab4
add eax, 0xa
push eax
call fcn.00406fe7
mov ecx, eax
test ecx, ecx
je 0x4068b5
lea edx, [edi + esi]
jmp 0x40690f
mov al, byte [edx]
mov byte [edx + ebp], al
dec edx
cmp edx, ecx
ja 0x406909
sub ecx, edi
inc ecx
jmp 0x4068b7
Function at 0x406a34
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 8]
call fcn.0040704d
mov edi, eax
cmp edi, 0xffffffff
je 0x406a6a
test byte [ebp + 0xc], 1
push dword [ebp + 8]
je 0x406a71
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x406a79
test byte [ebp + 0xc], 4
jne 0x406a6a
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x406a56
xor eax, eax
inc eax
jmp 0x406a6c

Function at 0x406ae7
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push dword [esp + 0xc]
mov ebx, 0x7bd608
push ebx
call fcn.00406fcb
push ebx
call fcn.00407075
mov esi, eax
test esi, esi
je 0x406b5e
push esi
call fcn.004071ed
test byte [0x7c218c], 0x80
je 0x406b20
movzx eax, word [esi]
test ax, ax
je 0x406b5e
cmp eax, 0x5c
je 0x406b5e
sub esi, ebx
sar esi, 1
jmp 0x406b3a
call fcn.00406a7e
test eax, eax
je 0x406b34
test byte [eax], 0x10
je 0x406b5e
push ebx
call fcn.004071c0
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
cmp eax, esi
jg 0x406b26
call fcn.00406a05
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
jmp 0x406b60
xor eax, eax
pop esi
pop ebx
ret 4

Function at 0x406b87
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x7bcdc0], 0x44
lea eax, [ebp - 0x10]
push eax
push 0x7bcdc0
xor eax, eax
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x406bc6
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4
Function at 0x406bca
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x25c
push ebx
mov ebx, dword [esp + 0x268]
push esi
mov esi, dword [esp + 0x268]
push edi
mov edi, ebx
push esi
and edi, 4
call fcn.00406ae7
mov dword [esp + 0x14], eax
test bl, 8
je 0x406c0c
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x7c2248], eax
jmp 0x406d8b
push ebp
mov ebp, ebx
and ebp, 1
mov dword [esp + 0x14], ebp
je 0x406c29
test eax, eax
je 0x406d7a
test bl, 2
je 0x406d43
push esi
push 0x7bce08
call fcn.00406fcb
test ebp, ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x406c4c
push str..
push 0x7bce08
call ebp
jmp 0x406c52
push esi
call fcn.004071c0
xor eax, eax
cmp word [esi], ax
jne 0x406c63
cmp word [0x7bce08], 0x5c
jne 0x406c6b
push 0x41a3d0
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [esi + eax*2]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x1c]
push eax
push 0x7bce08
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x406d2c
push 0x2e
pop eax
cmp word [esp + 0x48], ax
jne 0x406cb5
cmp word [esp + 0x4a], 0
je 0x406d0e
cmp word [esp + 0x4a], ax
jne 0x406cb5
cmp word [esp + 0x4c], 0
je 0x406d0e
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x14]
call fcn.00406fcb
test byte [esp + 0x1c], 0x10
je 0x406cdc
mov eax, ebx
and eax, 3
cmp al, 3
jne 0x406d0e
push ebx
push esi
call fcn.00406bca
jmp 0x406d0e
push edi
push esi
call fcn.00406a34
test eax, eax
jne 0x406d06
test edi, edi
je 0x406cfe
push esi
push 0xfffffffffffffff1
call fcn.004061fe
xor eax, eax
push eax
push esi
call fcn.004066ec
jmp 0x406d0e
inc dword [0x7c2248]
jmp 0x406d0e
push esi
push 0xfffffffffffffff2
call fcn.004061fe
lea eax, [esp + 0x1c]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x406c97
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x14], 0
je 0x406d8a
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov word [eax - 2], cx
cmp dword [esp + 0x18], ecx
je 0x406d7a
push esi
call fcn.00406a7e
test eax, eax
je 0x406d8a
push esi
call fcn.00406a05
mov eax, edi
or eax, 1
push eax
push esi
call fcn.00406a34
test eax, eax
jne 0x406d82
test edi, edi
je 0x406d7a
push esi
push 0xfffffffffffffff1
call fcn.004061fe
xor eax, eax
push eax
push esi
call fcn.004066ec
jmp 0x406d8a
inc dword [0x7c2248]
jmp 0x406d8a
push esi
push 0xffffffffffffffe5
call fcn.004061fe
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x25c
ret 8

Function at 0x406dcc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
push 0
cmove eax, ecx
push eax
push dword [esp + 0x14]
push ecx
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc
Function at 0x406e28
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
lea eax, [ebp - 4]
mov dword [ebp - 8], 0x800
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00406787
mov edi, dword [ebp + 0x14]
test eax, eax
jne 0x406e9a
push esi
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp + 0x18]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
mov word [edi + 0x7fe], ax
pop esi
jne 0x406e9a
cmp dword [ebp + 0x18], 1
je 0x406e9f
cmp dword [ebp + 0x18], 2
je 0x406e9f
xor eax, eax
mov word [edi], ax
pop edi
leave
ret 0x14

Function at 0x406ea4
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
ret 4

Function at 0x406f07
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp - 8], 0x73006e
mov dword [ebp - 4], 0x61
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
add word [ebp - 4], dx
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x406f51
test edi, edi
jne 0x406f14
mov word [esi], ax
jmp 0x406f53
mov eax, esi
pop edi
pop esi
leave
ret 8

Function at 0x40704d
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40706f
mov ecx, esi
and ecx, 0xfffffffe
push ecx
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4
Function at 0x4075cb
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x28
push ebx
push ebp
mov ebp, dword [esp + 0x34]
push esi
push edi
mov edx, dword [ebp]
movzx eax, word [edx + 0x14]
lea ebx, [edx + 0x18]
add ebx, eax
mov eax, dword [ebp + 0x38]
neg eax
push ebx
push ebp
mov ecx, dword [ebx + 8]
and eax, ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x30], eax
call fcn.004076fc
mov edi, dword [ebx + 0x24]
mov esi, eax
and dword [esp + 0x3c], 0
xor eax, eax
inc eax
mov dword [esp + 0x34], esi
pop ecx
add ebx, 0x28
mov dword [esp + 0x34], edi
pop ecx
mov dword [esp + 0x20], eax
cmp ax, word [edx + 6]
jae 0x4076d9
mov ebp, dword [ebp + 0x38]
mov eax, dword [ebx + 8]
neg ebp
mov edx, dword [esp + 0x3c]
and ebp, eax
push ebx
push edx
mov dword [esp + 0x24], eax
call fcn.004076fc
pop ecx
pop ecx
mov dword [esp + 0x18], eax
cmp dword [esp + 0x14], ebp
je 0x40768e
mov ecx, dword [esp + 0x10]
add ecx, esi
cmp ecx, ebp
ja 0x40768e
lea eax, [esp + 0x24]
push eax
push edx
call fcn.0040752c
pop ecx
pop ecx
test eax, eax
je 0x4076f8
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov edi, dword [ebx + 0x24]
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], eax
mov eax, ebp
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], eax
jmp 0x4076af
mov ecx, dword [ebx + 0x24]
mov eax, ecx
and eax, edi
or edi, ecx
bt eax, 0x19
jb 0x4076a3
and edi, 0xfdffffff
mov esi, dword [esp + 0x18]
sub esi, dword [esp + 0x10]
add esi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x3c]
add ebx, 0x28
mov ecx, dword [esp + 0x20]
inc ecx
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], esi
mov eax, dword [ebp]
mov dword [esp + 0x20], ecx
movzx eax, word [eax + 6]
cmp ecx, eax
jl 0x40762b
xor eax, eax
inc eax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x24]
push eax
push ebp
call fcn.0040752c
neg eax
pop ecx
sbb eax, eax
pop ecx
neg eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
xor eax, eax
jmp 0x4076f0
Function at 0x407bd8
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x2c
mov edx, dword [esp + 0x34]
push ebx
mov ebx, dword [esp + 0x34]
push ebp
push esi
push edi
lea eax, [ebx + 0x3c]
mov dword [esp + 0x1c], 0xc840
mov dword [esp + 0x20], 0xd951
lea ecx, [edx + 0x3c]
mov dword [esp + 0x24], 0xea62
mov dword [esp + 0x28], 0xfb73
mov dword [esp + 0x2c], 0xfa50
mov dword [esp + 0x30], 0xcb61
mov dword [esp + 0x34], 0xd872
mov dword [esp + 0x38], 0xe943
cmp edx, eax
ja 0x407c53
cmp ecx, ebx
jb 0x407c53
push 0x10
pop ebp
mov esi, ebx
mov dword [esp + 0x14], ebp
mov ecx, edx
sub esi, edx
mov edi, ebp
mov eax, dword [esi + ecx]
mov dword [ecx], eax
lea ecx, [ecx + 4]
sub edi, 1
jne 0x407c44
jmp 0x407c62
push 0x10
pop ebp
mov ecx, ebp
mov dword [esp + 0x14], ebp
mov esi, ebx
mov edi, edx
rep movsd dword es:[edi], dword [esi]
xor esi, esi
mov dword [esp + 0x10], esi
and esi, 7
mov ecx, 0x19181410
mov dword [esp + 0x44], ecx
mov edi, dword [esp + esi*4 + 0x1c]
mov eax, edi
mov ebx, edi
shr eax, 8
mov esi, edi
shr ebx, 4
and eax, 0xf
and esi, 0xf
and ebx, 0xf
mov dword [esp + 0x18], eax
shr edi, 0xc
mov ebp, eax
mov eax, dword [edx + ebx*4]
add dword [edx + esi*4], eax
mov eax, dword [edx + edi*4]
xor eax, dword [edx + esi*4]
ror eax, cl
mov ecx, dword [esp + 0x44]
mov dword [edx + edi*4], eax
mov eax, esi
mov esi, ebp
shr ecx, 8
mov dword [esp + 0x44], ecx
mov ebp, eax
mov eax, ebx
mov ebx, edi
mov edi, eax
test ecx, ecx
jne 0x407c96
mov esi, dword [esp + 0x10]
inc esi
mov dword [esp + 0x10], esi
cmp esi, 0x50
jb 0x407c68
mov ebx, dword [esp + 0x40]
mov ebp, dword [esp + 0x14]
sub ebx, edx
mov eax, dword [edx + ebx]
add dword [edx], eax
lea edx, [edx + 4]
sub ebp, 1
jne 0x407cda
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret

Function at 0x407cef
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x40
push esi
mov esi, dword [esp + 0x50]
push edi
mov edi, dword [esp + 0x50]
test esi, esi
je 0x407d4d
push ebx
mov ebx, dword [esp + 0x50]
push ebp
push 0x40
pop ebp
lea eax, [esp + 0x10]
push eax
push ebx
call fcn.00407bd8
add dword [ebx + 0x30], 1
pop ecx
adc dword [ebx + 0x34], 0
cmp esi, ebp
pop ecx
mov ecx, esi
cmova ecx, ebp
test ecx, ecx
je 0x407d45
lea ebp, [esp + 0x10]
mov edx, edi
sub ebp, edi
mov ebx, ecx
mov al, byte [edx + ebp]
xor byte [edx], al
inc edx
sub ebx, 1
jne 0x407d33
mov ebx, dword [esp + 0x54]
push 0x40
pop ebp
add edi, ecx
sub esi, ecx
jne 0x407d09
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x40
ret

Function at 0x407d53
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov edx, dword [esp + 4]
xor ecx, ecx
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
mov dword [edx], 0x61707865
lea edi, [edx + 0x10]
mov dword [edx + 4], 0x3320646e
mov esi, ecx
mov dword [edx + 8], 0x79622d32
mov dword [edx + 0xc], 0x6b206574
mov eax, dword [ebp + esi*4]
inc esi
mov dword [edi], eax
lea edi, [edi + 4]
cmp esi, 8
jl 0x407d85
mov dword [edx + 0x30], ecx
mov dword [edx + 0x34], ecx
add edx, 0x38
mov eax, dword [ebx + ecx*4]
inc ecx
mov dword [edx], eax
lea edx, [edx + 4]
cmp ecx, 2
jl 0x407d9d
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x408330
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
sub esp, 0x120
push ebx
push ebp
push esi
xor ebp, ebp
add edx, 2
push edi
mov esi, ebp
movzx ecx, byte [edx - 2]
movzx eax, byte [edx - 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx]
shl ecx, 8
lea edx, [edx + 4]
or ecx, eax
movzx eax, byte [edx - 3]
shl ecx, 8
or ecx, eax
mov dword [esp + esi*4 + 0x30], ecx
inc esi
cmp esi, 0x10
jb 0x408345
push 0x30
lea edi, [esp + 0x6c]
pop ebx
mov ecx, dword [edi]
mov esi, ecx
mov edx, dword [edi - 0x34]
lea edi, [edi + 4]
mov eax, ecx
ror esi, 0x13
ror eax, 0x11
xor esi, eax
shr ecx, 0xa
xor esi, ecx
mov eax, edx
mov ecx, edx
ror eax, 7
ror ecx, 0x12
xor ecx, eax
shr edx, 3
xor ecx, edx
add esi, ecx
add esi, dword [edi - 0x3c]
add esi, dword [edi - 0x18]
mov dword [edi + 4], esi
sub ebx, 1
jne 0x408377
mov edi, dword [esp + 0x134]
mov eax, dword [edi + 0x50]
mov ebx, eax
mov edx, dword [edi + 0x64]
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 0x54]
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x58]
mov dword [esp + 0x10], eax
mov eax, dword [edi + 0x5c]
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0x60]
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0x68]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x6c]
mov edi, dword [esp + 0x24]
mov dword [esp + 0x14], edx
mov dword [esp + 0x28], eax
jmp 0x4083fc
mov edx, dword [esp + 0x14]
mov esi, edi
mov eax, edi
ror eax, 0xb
and edx, edi
ror esi, 0x19
mov ecx, edi
xor esi, eax
not ecx
and ecx, dword [esp + 0x18]
mov eax, edi
ror eax, 6
xor ecx, edx
xor esi, eax
mov edx, ebx
ror edx, 0x16
mov eax, ebx
ror eax, 0xd
add esi, ecx
add esi, dword [ebp + 0x41ab00]
xor edx, eax
add esi, dword [esp + ebp + 0x30]
mov eax, ebx
add esi, dword [esp + 0x28]
add ebp, 4
ror eax, 2
xor edx, eax
mov eax, dword [esp + 0x1c]
mov ecx, eax
and eax, ebx
xor ecx, ebx
and ecx, dword [esp + 0x10]
xor ecx, eax
mov eax, dword [esp + 0x18]
add edx, ecx
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x20]
mov dword [esp + 0x18], ecx
add edi, esi
mov dword [esp + 0x20], eax
mov ecx, ebx
mov eax, dword [esp + 0x1c]
lea ebx, [edx + esi]
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], ecx
cmp ebp, 0x100
jb 0x4083f8
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x24], edi
add eax, ebx
mov edi, dword [esp + 0x134]
add dword [edi + 0x54], ecx
mov ecx, dword [esp + 0x10]
add dword [edi + 0x58], ecx
mov ecx, dword [esp + 0x20]
add dword [edi + 0x5c], ecx
mov ecx, dword [esp + 0x14]
add dword [edi + 0x64], ecx
mov ecx, dword [esp + 0x18]
add dword [edi + 0x68], ecx
mov ecx, dword [esp + 0x28]
mov dword [edi + 0x50], eax
mov eax, dword [esp + 0x24]
add dword [edi + 0x60], eax
add dword [edi + 0x6c], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x120
ret
Function at 0x408526
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x7bf45c], 0
push esi
jne 0x408560
xor ecx, ecx
push 8
mov edx, ecx
pop esi
mov eax, edx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
sub esi, 1
jne 0x408537
mov dword [ecx*4 + 0x7bf458], edx
inc ecx
cmp ecx, 0x100
jl 0x408532
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x10]
not ecx
test edx, edx
je 0x40858a
mov esi, dword [esp + 0xc]
movzx eax, byte [esi]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x7bf458]
inc esi
sub edx, 1
jne 0x408572
not ecx
mov eax, ecx
pop esi
ret 0xc
Function at 0x40e12d
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40e16c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40e16c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40e16c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40e16c
cmp dword [ecx + 0x74], 0xe
jbe 0x40e16c
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x40eb13
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41bebc
push 0x41beb4
push str.FlsGetValue
push 0x21
call fcn.0040ea4e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40eb4a
push dword [ebp + 8]
mov ecx, esi
call dword [0x41a388]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40eb52
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41bec4
push 0x41bebc
push str.FlsSetValue
push 0x22
call fcn.0040ea4e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40eb8c
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41a388]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]