joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402b93
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
cmp dword [0x41e7e4], 0
je 0x402baa
xor eax, eax
inc eax
leave
ret
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x402bc6
xor eax, eax
inc eax
jmp 0x402bf7
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [ebp - 0x250], 0x10
jne 0x402bf0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x402bec
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x402bf7
xor eax, eax
jmp 0x402bf7
push esi
call fcn.00402a76
pop ecx
pop esi
leave
ret

Function at 0x40345c
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
lea ecx, [ebp - 0x18]
mov edi, eax
mov dword [ebp - 4], eax
call fcn.00411383
push 0
lea ecx, [ebp - 0x18]
call fcn.00403051
mov esi, eax
movzx eax, word [ebx + edi*2 - 2]
cmp ax, 0x5c
je 0x40349a
cmp ax, 0x2f
jne 0x4034c8
and word [esi + edi*2 - 2], 0
dec edi
mov dword [ebp - 4], edi
jmp 0x4034c8
movzx eax, word [esi + edi*2]
cmp ax, 0x2f
je 0x4034bb
cmp ax, 0x5c
je 0x4034bb
dec edi
test edi, edi
jg 0x4034a6
test edi, edi
je 0x40356c
and word [esi + edi*2], 0
push esi
call fcn.00401dcc
test eax, eax
pop ecx
je 0x4034b7
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x4034ff
lea eax, [ebp - 0xc]
push eax
push esi
call fcn.00403159
test eax, eax
pop ecx
pop ecx
je 0x4034ff
xor esi, esi
jmp 0x40358f
push esi
call fcn.00401dcc
test eax, eax
pop ecx
jne 0x403559
push esi
push 0xc
push 1
call fcn.00408e59
add esp, 0xc
jmp 0x4034f8
mov eax, dword [ebp - 4]
sub eax, edi
inc eax
push eax
mov eax, dword [ebp + 8]
lea eax, [eax + edi*2]
push eax
lea ebx, [esi + edi*2]
push ebx
call sub.MSVCRT.dll_memcpy
xor ecx, ecx
add esp, 0xc
cmp word [ebx], cx
je 0x40354d
jmp 0x40354c
movzx eax, word [esi + edi*2]
cmp ax, 0x5c
je 0x403553
cmp ax, 0x2f
je 0x403553
inc edi
cmp word [esi + edi*2], cx
jne 0x40353c
mov word [esi + edi*2], cx
jmp 0x4034ff
cmp edi, dword [ebp - 4]
jl 0x403519
push dword [ebp - 0x18]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
pop ecx
inc eax
jmp 0x4035b3
cmp dword [ebp - 4], 2
jne 0x40359c
mov ax, word [ebx]
or ax, 0x20
cmp ax, 0x61
jb 0x40359c
cmp ax, 0x7a
ja 0x40359c
cmp word [ebx + 2], 0x3a
jne 0x40359c
xor esi, esi
inc esi
push dword [ebp - 0x18]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, esi
jmp 0x4035b3
push ebx
push 0xc
push 1
call fcn.00408e59
push dword [ebp - 0x18]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4038c4
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov ecx, edi
call fcn.00410f96
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
test esi, esi
jle 0x403902
lea eax, [esi + 1]
push eax
push eax
mov ecx, edi
call fcn.00403051
push eax
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [edi]
mov dword [edi + 4], esi
and word [eax + esi*2], 0
mov eax, edi
pop edi
pop esi
ret

Function at 0x403ace
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push 1
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call edi
mov esi, dword [ebp + 8]
mov ecx, esi
mov ebx, eax
call fcn.00410f96
lea eax, [ebx + 2]
push eax
mov ecx, esi
mov dword [ebp + 8], eax
call fcn.00403051
inc ebx
push ebx
push dword [ebp + 8]
mov ecx, esi
call fcn.00403051
push eax
push dword [ebp + 0xc]
call edi
mov edi, dword [esi]
push edi
call fcn.00401d39
pop ecx
mov dword [esi + 4], eax
and word [edi + eax*2], 0
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x403f4a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
push ebx
push esi
push edi
push str.kernel32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x41e6f8], eax
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
call fcn.00418260
call fcn.004025b0
push 3
call fcn.00402606
push 0x28
mov dword [0x41e720], eax
call fcn.00402606
push 2
mov dword [0x41e71c], eax
call fcn.00402606
push 5
mov dword [0x41e718], eax
call fcn.00402606
push 0x15
mov dword [0x41e714], eax
call fcn.00402606
push 0x16
mov dword [0x41e710], eax
call fcn.00402606
push 0x17
mov dword [0x41e70c], eax
call fcn.00402606
xor ebx, ebx
add esp, 0x1c
mov dword [0x41e708], eax
mov dword [0x41e700], ebx
mov dword [0x41e704], ebx
xor edi, edi
push ebx
push edi
lea eax, [ebp - 0x268]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40403e
push edi
lea eax, [ebp - 0x5c]
push 0x41b578
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
push 1
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00403b82
add esp, 0x18
xor esi, esi
cmp dword [esi + 0x41e3a4], edi
jne 0x404036
push ebx
lea eax, [ebp - 0x268]
push eax
push dword [esi + 0x41e3a8]
call fcn.00403b82
add esp, 0xc
add esi, 8
cmp esi, 0x28
jb 0x404018
inc edi
cmp edi, 0x40
jl 0x403fdd
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404a8b
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push edi
lea ecx, [ebp - 0xc]
call fcn.00410f96
lea ecx, [ebp - 0x18]
call fcn.00410f96
push 0x3c
xor edi, edi
lea eax, [ebp - 0x54]
push edi
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebp + 0x10]
xor ebx, ebx
inc ebx
add esp, 0xc
test byte [ebp + 0xc], bl
mov dword [ebp - 0x54], 0x3c
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x50], 0x740
mov dword [ebp - 0x38], ebx
je 0x404add
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x50], 0x8740
test byte [ebp + 0xc], 2
je 0x404aea
mov dword [ebp - 0x48], str.runas
mov eax, dword [0x41e6e0]
push 5
push eax
mov dword [ebp - 0x4c], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 0x4c]
call dword [sym.imp.USER32.dll_BringWindowToTop]
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call fcn.00404648
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.004113b2
cmp dword [ebp - 8], edi
jne 0x404b34
push dword [ebp - 0x18]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, ebx
jmp 0x404b7f
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x404b6d
test dword [ebp + 0xc], 0x10000
jne 0x404b62
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, ebx
push dword [ebp - 0x18]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, edi
pop ecx
pop ecx
pop edi
pop ebx
leave
ret
Function at 0x404e4b
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, esi
call fcn.00410f96
push 2
mov ecx, esi
call fcn.00403051
mov edi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
push eax
push 1
call edi
and dword [esi + 4], 0
mov ecx, dword [esi]
and word [ecx], 0
test eax, eax
jbe 0x404e9e
lea ebx, [eax + 1]
push ebx
mov ecx, esi
call fcn.00403051
push eax
push ebx
call edi
mov edi, dword [esi]
push edi
call fcn.00401d39
mov dword [esi + 4], eax
and word [edi + eax*2], 0
pop ecx
mov eax, dword [esi + 4]
and dword [ebp + 8], 0
lea ecx, [eax + 0xf]
mov dword [ebp - 4], ecx
lea ebx, [eax + eax]
push dword [ebp - 4]
mov ecx, esi
call fcn.00403051
push dword [ebp + 8]
add eax, ebx
push dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov edi, dword [esi]
push edi
call fcn.00401d39
add esp, 0x10
mov dword [esi + 4], eax
and word [edi + eax*2], 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x404ef3
inc dword [ebp + 8]
cmp dword [ebp + 8], 0xfff
jl 0x404eae
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x404efa
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
cmp dword [0x41e7ac], esi
jle 0x404f4e
mov eax, dword [0x41e7a8]
mov eax, dword [eax + esi*4]
add eax, 0xc
push eax
lea ecx, [ebp - 0xc]
call fcn.00410fb9
lea eax, [ebp - 0xc]
push eax
call fcn.0040407d
mov eax, dword [0x41e7a8]
mov eax, dword [eax + esi*4]
pop ecx
push dword [ebp - 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
inc esi
cmp esi, dword [0x41e7ac]
pop ecx
jl 0x404f0b
pop esi
leave
ret
Function at 0x40502e
Capabilities:
Create process on windows
Get disk information
Self delete
Set file attributes
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x34
cmp word [eax + 2], 0x3a
push ebx
jne 0x4051e4
movzx ecx, word [eax + 4]
cmp cx, 0x5c
je 0x405057
cmp cx, 0x2f
jne 0x4051e4
mov ax, word [eax]
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
mov word [ebp - 0xe], 0x3a
mov word [ebp - 0xc], 0x5c
mov word [ebp - 0xa], bx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x405087
push dword [ebp + 8]
jmp 0x4051e5
lea eax, [ebp - 0x28]
push str.7ZSfx_03x.cmd
push eax
call fcn.00404e4b
pop ecx
pop ecx
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x4051ac
push esi
push edi
lea ecx, [ebp - 0x1c]
call fcn.00410f96
push str.:Repeat_r_n
lea ecx, [ebp - 0x1c]
call fcn.004113b2
mov edi, str.del__
push edi
lea ecx, [ebp - 0x1c]
call fcn.0041140a
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00411039
mov esi, 0x41b9ac
push esi
lea ecx, [ebp - 0x1c]
call fcn.0041140a
push str.if_exist__
lea ecx, [ebp - 0x1c]
call fcn.0041140a
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00411039
push str.__goto_Repeat_r_n
lea ecx, [ebp - 0x1c]
call fcn.0041140a
push edi
lea ecx, [ebp - 0x1c]
call fcn.0041140a
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00411039
push esi
lea ecx, [ebp - 0x1c]
call fcn.0041140a
mov esi, dword [ebp - 0x18]
push 1
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.004030d6
mov eax, dword [eax]
add esp, 0xc
push ebx
lea ecx, [ebp - 8]
push ecx
push esi
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x34]
mov esi, eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
cmp esi, ebx
pop esi
je 0x4051bf
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x18]
jne 0x4051bf
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
push ebx
push ebx
push dword [ebp - 0x28]
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 0x28]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x4051ea
push dword [ebp - 0x28]
call fcn.00402b93
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x28]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
jmp 0x4051eb
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop ebx
leave
ret
Function at 0x406d88
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push eax
call dword [sym.imp.MSVCRT.dll__beginthreadex]
mov ecx, dword [ebp + 8]
push eax
mov dword [ecx], eax
call fcn.00406d3b
add esp, 0x1c
leave
ret
Function at 0x408722
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4d0
push esi
push edi
lea eax, [ebp - 0x10]
push eax
mov edi, 0x4b6
push edi
mov esi, ecx
call fcn.00407140
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
push 1
inc eax
inc eax
push edi
mov ecx, esi
mov dword [esi + 0x58], eax
call fcn.0040715d
push 1
inc edi
push edi
mov ecx, esi
call fcn.0040715d
and dword [ebp - 0x2c4], 0
push 0x2b0
lea eax, [ebp - 0x2c0]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x4d0]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x103
push 0x2b4
lea eax, [ebp - 0x2c4]
push eax
push 0
lea eax, [ebp - 0x4d0]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [ebp - 0x2c4]
push edi
push dword [esi + 4]
mov dword [esi + 0x50], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x4077a6
push 0xfffffffffffffffc
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, esi
mov dword [esi + 0x54], eax
call fcn.004083f1
mov ecx, esi
mov edi, eax
call fcn.00407dc1
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x40a790
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
ret

Function at 0x40aab0
Capabilities:
Hash data using sha256

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esi + 0x20]
and edi, 0x3f
mov byte [edi + esi + 0x28], 0x80
add edi, 1
xor ebx, ebx
cmp edi, 0x38
je 0x40aaea
lea esp, [esp]
and edi, 0x3f
jne 0x40aade
push esi
call fcn.0040a7e0
add esp, 4
mov byte [esi + edi + 0x28], bl
add edi, 1
cmp edi, 0x38
jne 0x40aad0
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
shld ecx, eax, 3
add eax, eax
add eax, eax
add eax, eax
bswap ecx
bswap eax
push esi
mov dword [esi + 0x60], ecx
mov dword [esi + 0x64], eax
call fcn.0040a7e0
mov edx, dword [esp + 0x18]
add esp, 4
xor eax, eax
mov ecx, dword [esi + eax*4 + 4]
mov edi, dword [esi + eax*4]
bswap edi
bswap ecx
mov dword [edx], edi
mov dword [edx + 4], ecx
add eax, 2
add edx, 8
cmp eax, 8
jb 0x40ab13
pop edi
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi], 0x6a09e667
mov dword [esi + 4], 0xbb67ae85
mov dword [esi + 8], 0x3c6ef372
mov dword [esi + 0xc], 0xa54ff53a
mov dword [esi + 0x10], 0x510e527f
mov dword [esi + 0x14], 0x9b05688c
mov dword [esi + 0x18], 0x1f83d9ab
mov dword [esi + 0x1c], 0x5be0cd19
pop esi
pop ebx
ret
Function at 0x40acc0
Capabilities:
Hash data using sha256

Disassembly:
sub esp, 0x74
push esi
mov esi, ecx
cmp dword [esi], 0x3f
jne 0x40ad33
xor eax, eax
cmp dword [esi + 4], eax
jbe 0x40ace2
mov cl, byte [esi + eax + 8]
mov byte [esi + eax + 0x20], cl
add eax, 1
cmp eax, dword [esi + 4]
jb 0x40acd2
xor ecx, ecx
cmp dword [esi + 0x1c], ecx
jbe 0x40ad0e
lea esp, [esp]
cmp eax, 0x20
jae 0x40ae3c
mov edx, dword [esi + 0x18]
mov dl, byte [ecx + edx]
mov byte [eax + esi + 0x20], dl
add ecx, 1
add eax, 1
cmp ecx, dword [esi + 0x1c]
jb 0x40acf0
cmp eax, 0x20
jae 0x40ae3c
mov edx, 0x20
sub edx, eax
push edx
lea ecx, [eax + esi + 0x20]
push 0
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
pop esi
add esp, 0x74
ret
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x1c]
push ebx
push ebp
lea eax, [eax + ecx + 8]
xor ebp, ebp
xor ebx, ebx
cmp eax, ebp
push edi
mov dword [esp + 0x10], eax
je 0x40ad57
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov ebx, eax
mov edx, dword [esi + 4]
push edx
lea eax, [esi + 8]
push eax
push ebx
call sub.MSVCRT.dll_memcpy
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x18]
mov eax, dword [esi + 4]
push ecx
push edx
add eax, ebx
push eax
call sub.MSVCRT.dll_memcpy
mov edi, dword [esi + 4]
add edi, ebx
add edi, dword [esi + 0x1c]
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov ecx, dword [esi]
add esp, 0x18
mov eax, 1
xor edx, edx
mov dword [esp + 0x1c], 0x6a09e667
mov dword [esp + 0x20], 0xbb67ae85
mov dword [esp + 0x24], 0x3c6ef372
mov dword [esp + 0x28], 0xa54ff53a
mov dword [esp + 0x2c], 0x510e527f
mov dword [esp + 0x30], 0x9b05688c
mov dword [esp + 0x34], 0x1f83d9ab
mov dword [esp + 0x38], 0x5be0cd19
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
call fcn.00418830
mov ebp, eax
mov dword [esp + 0x18], edx
mov ecx, dword [esp + 0x10]
push ecx
lea edx, [esp + 0x20]
push ebx
push edx
call fcn.0040a9f0
add esp, 0xc
xor eax, eax
jmp 0x40ae00
add byte [eax + edi], 1
jne 0x40ae0e
add eax, 1
cmp eax, 8
jb 0x40ae00
mov eax, dword [esp + 0x18]
add ebp, 0xffffffff
adc eax, 0xffffffff
mov ecx, ebp
or ecx, eax
mov dword [esp + 0x18], eax
jne 0x40ade6
add esi, 0x20
lea edx, [esp + 0x1c]
push esi
push edx
call fcn.0040aab0
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0xc
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x74
ret
Function at 0x41085b
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x410881
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x410881
xor al, al
jmp 0x4108a1
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.004187f0
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4
Function at 0x418260
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov eax, edx
and eax, 1
sub eax, 1
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x420aa0], ecx
add edx, 1
cmp edx, 0x100
jb 0x418262
cmp edx, 0x800
jae 0x41834b
mov edi, edi
mov eax, dword [edx*4 + 0x4206a0]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x420aa0]
add edx, 1
cmp edx, 0x800
mov dword [edx*4 + 0x420a9c], eax
jb 0x418320
mov eax, 0x418b20
mov dword [0x420a84], eax
mov dword [0x422aa0], eax
mov dword [0x420a80], 0x418a40
call fcn.00418580
test eax, eax
jne 0x418377
mov dword [0x422aa0], 0x418a40
ret
Function at 0x4015b1
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
push esi
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push 0x4131c0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4016c3
push 0x413354
push esi
call fcn.004043e6
pop ecx
pop ecx
test eax, eax
jne 0x4015f8
mov esi, 0x41300c
jmp 0x401642
push 0x41335c
push esi
call fcn.004043e6
pop ecx
pop ecx
test eax, eax
jne 0x401610
mov esi, 0x413094
jmp 0x401642
push 0x41336c
push esi
call fcn.004043e6
pop ecx
pop ecx
test eax, eax
jne 0x401628
mov esi, 0x41311c
jmp 0x401642
push 0x413384
push esi
call fcn.004043e6
pop ecx
pop ecx
test eax, eax
jne 0x4016c3
mov esi, 0x413294
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 0x30]
push eax
call dword [sym.imp.ole32.dll_StringFromIID]
push dword [ebp - 8]
lea eax, [ebp - 0xd0]
push eax
call fcn.004044a2
pop ecx
pop ecx
push dword [ebp - 8]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea eax, [ebp - 0xd0]
push 0x4103f0
push eax
call fcn.00404471
push dword [ebp + 0x40]
lea eax, [ebp - 0xd0]
push eax
call fcn.00404471
lea eax, [ebp - 0xd0]
push eax
call fcn.00404161
add esp, 0x14
add eax, eax
push eax
lea eax, [ebp - 0xd0]
push eax
push 1
push 0
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4016c3
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
jmp 0x4016c5
xor eax, eax
pop esi
leave
ret
Function at 0x402983
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 0xc], esi
jle 0x4029a8
mov eax, dword [ebp + 8]
lea ecx, [esi + eax]
mov eax, esi
cdq
idiv dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov al, byte [edx + eax]
xor byte [ecx], al
inc esi
cmp esi, dword [ebp + 0xc]
jl 0x40298e
pop esi
pop ebp
ret

Function at 0x4029e9
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push esi
push dword [ebp + 8]
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x402a09
xor eax, eax
jmp 0x402a60
push ebx
push edi
xor ebx, ebx
mov dword [ebp - 0x22c], 0x22c
xor edi, edi
test edi, edi
jne 0x402a2f
lea eax, [ebp - 0x22c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x402a55
lea eax, [ebp - 0x22c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x402a55
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x224], eax
je 0x402a4f
inc edi
jmp 0x402a19
mov ebx, dword [ebp - 0x214]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebx
pop ebx
pop esi
leave
ret