joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40323c
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 0x10], bl
mov byte [ebp - 0xf], bl
mov byte [ebp - 0xe], bl
mov byte [ebp - 0xd], bl
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x403299
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 8]
pop ebx
leave
ret

Function at 0x40341a
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set current directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
push esi
push edi
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.00414502
push 0x41d85c
lea ecx, [ebp - 0xc]
call fcn.00414589
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov esi, dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4034f6
mov edi, dword [sym.imp.KERNEL32.DLL_lstrcmpW]
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.00414531
push 0x5c
lea ecx, [ebp - 0xc]
call fcn.0040119e
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0xc]
call fcn.00414589
test byte [ebp - 0x25c], 0x10
je 0x4034c1
push 0x41d858
lea eax, [ebp - 0x230]
push eax
call edi
test eax, eax
je 0x4034d9
push 0x41d850
lea eax, [ebp - 0x230]
push eax
call edi
test eax, eax
je 0x4034d9
push dword [ebp - 0xc]
call fcn.0040341a
pop ecx
jmp 0x4034d5
push 0
push dword [ebp - 0xc]
call esi
test eax, eax
je 0x403527
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
je 0x403527
lea eax, [ebp - 0x25c]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x403465
push ebx
call dword [sym.imp.KERNEL32.DLL_FindClose]
push dword [0x4227e0]
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
push 0
push dword [ebp + 8]
call esi
test eax, eax
je 0x403527
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
test eax, eax
je 0x403527
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
inc eax
jmp 0x403531
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403537
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
cmp dword [0x42288c], 0
je 0x40354e
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 0x40356a
xor eax, eax
inc eax
jmp 0x40359b
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
test byte [ebp - 0x250], 0x10
jne 0x403594
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
test eax, eax
je 0x403590
push esi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
jmp 0x40359b
xor eax, eax
jmp 0x40359b
push esi
call fcn.0040341a
pop ecx
pop esi
leave
ret

Function at 0x403a9c
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.00414115
push 2
mov ecx, esi
call fcn.004039f5
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 0x403aef
lea ebx, [eax + 1]
push ebx
mov ecx, esi
call fcn.004039f5
push eax
push ebx
call edi
mov edi, dword [esi]
push edi
call fcn.00402611
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.004039f5
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.00402611
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 0x403b44
inc dword [ebp + 8]
cmp dword [ebp + 8], 0xfff
jl 0x403aff
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x403f17
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.00414502
push 0
lea ecx, [ebp - 0x18]
call fcn.004039f5
mov esi, eax
movzx eax, word [ebx + edi*2 - 2]
cmp ax, 0x5c
je 0x403f55
cmp ax, 0x2f
jne 0x403f83
and word [esi + edi*2 - 2], 0
dec edi
mov dword [ebp - 4], edi
jmp 0x403f83
movzx eax, word [esi + edi*2]
cmp ax, 0x2f
je 0x403f76
cmp ax, 0x5c
je 0x403f76
dec edi
test edi, edi
jg 0x403f61
test edi, edi
je 0x404027
and word [esi + edi*2], 0
push esi
call fcn.0040274d
test eax, eax
pop ecx
je 0x403f72
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 0x403fba
lea eax, [ebp - 0xc]
push eax
push esi
call fcn.00403c16
test eax, eax
pop ecx
pop ecx
je 0x403fba
xor esi, esi
jmp 0x40404a
push esi
call fcn.0040274d
test eax, eax
pop ecx
jne 0x404014
push esi
push 0xc
push 1
call fcn.00408ff6
add esp, 0xc
jmp 0x403fb3
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 0x404008
jmp 0x404007
movzx eax, word [esi + edi*2]
cmp ax, 0x5c
je 0x40400e
cmp ax, 0x2f
je 0x40400e
inc edi
cmp word [esi + edi*2], cx
jne 0x403ff7
mov word [esi + edi*2], cx
jmp 0x403fba
cmp edi, dword [ebp - 4]
jl 0x403fd4
push dword [ebp - 0x18]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
pop ecx
inc eax
jmp 0x40406e
cmp dword [ebp - 4], 2
jne 0x404057
mov ax, word [ebx]
or ax, 0x20
cmp ax, 0x61
jb 0x404057
cmp ax, 0x7a
ja 0x404057
cmp word [ebx + 2], 0x3a
jne 0x404057
xor esi, esi
inc esi
push dword [ebp - 0x18]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, esi
jmp 0x40406e
push ebx
push 0xc
push 1
call fcn.00408ff6
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 0x40437f
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov ecx, edi
call fcn.00414115
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
test esi, esi
jle 0x4043bd
lea eax, [esi + 1]
push eax
push eax
mov ecx, edi
call fcn.004039f5
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 0x404589
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.00414115
lea eax, [ebx + 2]
push eax
mov ecx, esi
mov dword [ebp + 8], eax
call fcn.004039f5
inc ebx
push ebx
push dword [ebp + 8]
mov ecx, esi
call fcn.004039f5
push eax
push dword [ebp + 0xc]
call edi
mov edi, dword [esi]
push edi
call fcn.00402611
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 0x404a05
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 [0x422778], eax
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
call fcn.0041b610
call fcn.00402f31
push 3
call fcn.00402f87
push 0x28
mov dword [0x4227a0], eax
call fcn.00402f87
push 2
mov dword [0x42279c], eax
call fcn.00402f87
push 5
mov dword [0x422798], eax
call fcn.00402f87
push 0x15
mov dword [0x422794], eax
call fcn.00402f87
push 0x16
mov dword [0x422790], eax
call fcn.00402f87
push 0x17
mov dword [0x42278c], eax
call fcn.00402f87
xor ebx, ebx
add esp, 0x1c
mov dword [0x422788], eax
mov dword [0x422780], ebx
mov dword [0x422784], 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 0x404af9
push edi
lea eax, [ebp - 0x5c]
push str.SfxFolder_02d
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.0040463d
add esp, 0x18
xor esi, esi
cmp dword [esi + 0x4223bc], edi
jne 0x404af1
push ebx
lea eax, [ebp - 0x268]
push eax
push dword [esi + 0x4223c0]
call fcn.0040463d
add esp, 0xc
add esi, 8
cmp esi, 0x28
jb 0x404ad3
inc edi
cmp edi, 0x40
jl 0x404a98
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4053e7
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 0x40559d
movzx ecx, word [eax + 4]
cmp cx, 0x5c
je 0x405410
cmp cx, 0x2f
jne 0x40559d
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 0x405440
push dword [ebp + 8]
jmp 0x40559e
lea eax, [ebp - 0x28]
push str.7ZSfx_03x.cmd
push eax
call fcn.00403a9c
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 0x405565
push esi
push edi
lea ecx, [ebp - 0x1c]
call fcn.00414115
push str.:Repeat_r_n
lea ecx, [ebp - 0x1c]
call fcn.00414531
mov edi, str.del__
push edi
lea ecx, [ebp - 0x1c]
call fcn.00414589
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004141b8
mov esi, 0x41ea70
push esi
lea ecx, [ebp - 0x1c]
call fcn.00414589
push str.if_exist__
lea ecx, [ebp - 0x1c]
call fcn.00414589
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004141b8
push str.__goto_Repeat_r_n
lea ecx, [ebp - 0x1c]
call fcn.00414589
push edi
lea ecx, [ebp - 0x1c]
call fcn.00414589
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004141b8
push esi
lea ecx, [ebp - 0x1c]
call fcn.00414589
mov esi, dword [ebp - 0x18]
push 1
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00403b93
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 0x405578
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x18]
jne 0x405578
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 0x4055a3
push dword [ebp - 0x28]
call fcn.00403537
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 0x4055a4
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop ebx
leave
ret
Function at 0x4055ca
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
cmp dword [0x422854], esi
jle 0x40561e
mov eax, dword [0x422850]
mov eax, dword [eax + esi*4]
add eax, 0xc
push eax
lea ecx, [ebp - 0xc]
call fcn.00414138
lea eax, [ebp - 0xc]
push eax
call fcn.00404b38
mov eax, dword [0x422850]
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 [0x422854]
pop ecx
jl 0x4055db
pop esi
leave
ret
Function at 0x406eae
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.00406e61
add esp, 0x1c
leave
ret
Function at 0x4088db
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.004072f9
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.00407316
push 1
inc edi
push edi
mov ecx, esi
call fcn.00407316
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 0x40795f
push 0xfffffffffffffffc
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, esi
mov dword [esi + 0x54], eax
call fcn.004085aa
mov ecx, esi
mov edi, eax
call fcn.00407f7a
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x40a8e0
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 0x40ac00
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 0x40ac3a
lea esp, [esp]
and edi, 0x3f
jne 0x40ac2e
push esi
call fcn.0040a930
add esp, 4
mov byte [esi + edi + 0x28], bl
add edi, 1
cmp edi, 0x38
jne 0x40ac20
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.0040a930
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 0x40ac63
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 0x40ae40
Capabilities:
Hash data using sha256

Disassembly:
sub esp, 0x74
push esi
mov esi, ecx
cmp dword [esi], 0x3f
jne 0x40aeb3
xor eax, eax
cmp dword [esi + 4], eax
jbe 0x40ae62
mov cl, byte [esi + eax + 8]
mov byte [esi + eax + 0x20], cl
add eax, 1
cmp eax, dword [esi + 4]
jb 0x40ae52
xor ecx, ecx
cmp dword [esi + 0x1c], ecx
jbe 0x40ae8e
lea esp, [esp]
cmp eax, 0x20
jae 0x40afbc
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 0x40ae70
cmp eax, 0x20
jae 0x40afbc
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 0x40aed7
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.0041bbd0
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.0040ab40
add esp, 0xc
xor eax, eax
jmp 0x40af80
add byte [eax + edi], 1
jne 0x40af8e
add eax, 1
cmp eax, 8
jb 0x40af80
mov eax, dword [esp + 0x18]
add ebp, 0xffffffff
adc eax, 0xffffffff
mov ecx, ebp
or ecx, eax
mov dword [esp + 0x18], eax
jne 0x40af66
add esi, 0x20
lea edx, [esp + 0x1c]
push esi
push edx
call fcn.0040ac00
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 0x4139da
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 0x413a00
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
je 0x413a00
xor al, al
jmp 0x413a20
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.0041bb90
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 0x41b610
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 + 0x424c40], ecx
add edx, 1
cmp edx, 0x100
jb 0x41b612
cmp edx, 0x800
jae 0x41b6fb
mov edi, edi
mov eax, dword [edx*4 + 0x424840]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x424c40]
add edx, 1
cmp edx, 0x800
mov dword [edx*4 + 0x424c3c], eax
jb 0x41b6d0
mov eax, 0x41bec0
mov dword [0x424c34], eax
mov dword [0x426c40], eax
mov dword [0x424c30], 0x41bde0
call fcn.0041b930
test eax, eax
jne 0x41b727
mov dword [0x426c40], 0x41bde0
ret
Function at 0x401040
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
push eax
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
push str.Please_input_letters:
call fcn.00401010
push 0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
push eax
lea eax, [ebp - 0x68]
push 0x64
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
lea eax, [ebp - 0x68]
push 0x402140
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcspn]
add esp, 0x24
cmp eax, 0x64
jae 0x401138
push ebx
mov byte [ebp + eax - 0x68], 0
lea eax, [ebp - 0x68]
push esi
push eax
push str.inputted_text:__s_n
call fcn.00401010
lea esi, [ebp - 0x68]
add esp, 8
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4010b7
sub esi, ecx
xor ebx, ebx
lea eax, [esi - 1]
test eax, eax
je 0x40110a
push edi
nop word [eax + eax]
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov edi, eax
xor edx, edx
mov ecx, esi
mov eax, 0x7fff
sub ecx, ebx
div ecx
xor edx, edx
lea ecx, [eax + 1]
mov eax, edi
div ecx
mov cl, byte [ebp + ebx - 0x68]
lea edx, [ebx + eax]
mov al, byte [ebp + edx - 0x68]
mov byte [ebp + ebx - 0x68], al
inc ebx
lea eax, [esi - 1]
mov byte [ebp + edx - 0x68], cl
cmp ebx, eax
jb 0x4010d0
pop edi
lea eax, [ebp - 0x68]
push eax
push str.shuffled_text:__s_n
call fcn.00401010
push str.pause
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
xor eax, eax
pop esi
pop ebx
call fcn.0040113e
mov esp, ebp
pop ebp
ret
call fcn.0040126f
int3

Function at 0x401a1b
Capabilities:
Parse pe header

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x100080f8], eax
je 0x1000208e
mov eax, 0x10dd
jmp 0x1000216f
mov eax, dword [0x10008108]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1000210c
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x100020ea
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x100020ea
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.10001710
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.10003ee7
add esp, 4
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x10002096
mov dword [0x10008108], 0
call fcn.10001a30
mov ecx, dword [0x10008104]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x10002159
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.10003ee7
add esp, 4
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x10002124
mov dword [0x10008104], 0
mov dword [0x100080f8], 0
xor eax, eax
mov esp, ebp
pop ebp
ret