joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000db08
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
xor r14d, r14d
mov rbx, rdx
mov qword [rdx + 0x10], r14
mov rdi, rcx
cmp qword [rdx + 0x18], 8
mov rax, rdx
jb 0x14000db3b
mov rax, qword [rdx]
xor r8d, r8d
mov word [rax], r14w
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebp, eax
test eax, eax
jne 0x14000db87
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
je 0x14000db83
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx r8d, ax
mov rdx, rdi
or r8d, 0x80070000
lea rcx, str.Failed_to_read_environment_variable___s___HRESULT:_0x_X
test eax, eax
cmovle r8d, eax
call fcn.140005b90
xor al, al
jmp 0x14000dbcd
mov rcx, 0xffffffffffffffff
mov eax, 2
mul rbp
cmovo rax, rcx
mov rcx, rax
call fcn.140041efc
mov r8d, ebp
mov rdx, rax
mov rcx, rdi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x14000db5d
mov rdx, rsi
mov rcx, rbx
call fcn.140004870
mov rcx, rsi
call fcn.140041c70
mov al, 1
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x14000dbe8
Capabilities:
Create directory
Get common file path

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x140090010]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rcx
lea rdx, [rsp + 0x20]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x14000dc88
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140004870
xor edx, edx
mov rcx, rbx
call fcn.14000de80
test al, al
je 0x14000dc88
lea rdx, str..net
mov rcx, rbx
call fcn.140006344
xor edx, edx
mov rcx, rbx
call fcn.14000de80
test al, al
je 0x14000dc56
mov al, 1
jmp 0x14000dc8a
cmp qword [rbx + 0x18], 8
mov rcx, rbx
jb 0x14000dc63
mov rcx, qword [rbx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14000dc7c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000dc88
xor edx, edx
mov rcx, rbx
call fcn.14000de80
jmp 0x14000dc8a
xor al, al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140041c10
add rsp, 0x240
pop rbx
ret
Function at 0x140023d0c
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x60
mov rbx, rdx
mov rsi, rcx
lea rcx, str.____Begin_breadcrumb_write
call fcn.140005a98
mov ecx, 0x90
call fcn.140041c34
mov qword [rbp + 0x30], rax
mov rdx, rbx
mov rcx, rax
call fcn.14002420c
mov rbx, rax
lea rdi, [rax + 0x10]
mov qword [rbp - 0x20], rdi
mov qword [rbp - 0x18], rax
cmp qword [rdi + 0x20], 0
jne 0x140023dcc
lea rcx, str.Breadcrumb_store_was_not_obtained..._skipping_write.
call fcn.140005a98
and qword [rsi], 0
and qword [rsi + 8], 0
test rbx, rbx
je 0x140023db4
or edi, 0xffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
add eax, edi
jne 0x140023db4
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax]
call qword [case.0x140052136.0]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
add eax, edi
jne 0x140023db4
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 8]
call qword [case.0x140052136.0]
mov rax, rsi
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
test rbx, rbx
je 0x140023dd9
lock inc dword [rax + 8]
mov rdi, qword [rbp - 0x20]
mov qword [rdi], rdi
mov r14, qword [rdi + 8]
mov qword [rbp - 8], r14
mov qword [rdi + 8], rbx
test r14, r14
je 0x140023e2d
or edi, 0xffffffff
mov eax, edi
lock xadd dword [r14 + 8], eax
add eax, edi
jne 0x140023e29
mov rcx, qword [rbp - 8]
mov rax, qword [rcx]
mov rax, qword [rax]
call qword [case.0x140052136.0]
mov eax, edi
lock xadd dword [r14 + 0xc], eax
add eax, edi
jne 0x140023e29
mov rcx, qword [rbp - 8]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140052136.0]
mov rdi, qword [rbp - 0x20]
mov ecx, 0x10
call fcn.140041c34
mov qword [rax], rdi
lea rcx, [0x1400240b0]
mov qword [rax + 8], rcx
mov qword [rbp + 0x30], rax
lea rcx, [rbp - 0x28]
mov qword [rsp + 0x28], rcx
and dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x140024330]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x30], rax
test rax, rax
je 0x140023eb0
cmp dword [rdi + 0x38], 0
jne 0x140023ea9
xorps xmm0, xmm0
movaps xmm1, xmmword [rbp - 0x30]
movdqa xmmword [rbp - 0x30], xmm0
movdqu xmmword [rdi + 0x30], xmm1
cmp dword [rbp - 0x28], 0
jne 0x140023ea9
lea rcx, str.Breadcrumbs_will_be_written_using_a_background_thread
call fcn.140005a98
mov qword [rsi], rdi
mov qword [rsi + 8], rbx
jmp 0x140023db4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
and dword [rbp - 0x28], 0
mov ecx, 6
call fcn.140047914
int3

Function at 0x14002b3ec
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x28
mov rdx, rcx
lea rcx, str.Duplicate_runtime_property_found:__s
call fcn.140005b90
lea rcx, str.It_is_invalid_to_specify_values_for_properties_populated_by_the_hosting_layer_in_the_the_applications_.runtimeconfig.json
add rsp, 0x28
jmp fcn.140005b90
Function at 0x1400311a4
Capabilities:
Create directory

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x140090010]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, rcx
cmp qword [rcx + 0x10], 0
je 0x140031231
call fcn.14000e41c
test al, al
jne 0x140031231
mov rcx, rbx
call fcn.140031154
test al, al
je 0x14003120c
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.14000682c
nop
mov rcx, rax
call fcn.1400311a4
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x14003120c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
call fcn.140001ad4
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140031219
mov rcx, qword [rbx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140031231
mov rcx, rbx
call fcn.14000e41c
test al, al
je 0x140031244
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140041c10
add rsp, 0x50
pop rbx
ret
lea rcx, str.Failure_processing_application_bundle.
call fcn.140005b90
mov rcx, rbx
call fcn.1400043cc
mov rdx, rax
lea rcx, str.Failed_to_create_directory___s__for_extracting_bundled_files.
call fcn.140005b90
mov dword [rsp + 0x20], 0x800080a0
lea rdx, [0x14008dcc8]
lea rcx, [rsp + 0x20]
call fcn.1400438ec
int3
Function at 0x140031528
Capabilities:
Move file

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov r14, r8
mov rbx, rdx
mov rdi, rcx
xor ebp, ebp
cmp qword [rbx + 0x18], 8
mov rdx, rbx
jb 0x140031559
mov rdx, qword [rbx]
cmp qword [rdi + 0x18], 8
mov rcx, rdi
jb 0x140031566
mov rcx, qword [rdi]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wrename]
test eax, eax
je 0x1400315ce
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rcx, rbx
mov esi, dword [rax]
call fcn.14000e41c
test al, al
jne 0x1400315c6
cmp esi, 0xd
jne 0x1400315ca
cmp qword [rbx + 0x18], 8
mov r8, rbx
jb 0x140031596
mov r8, qword [rbx]
cmp qword [rdi + 0x18], 8
mov rdx, rdi
jb 0x1400315a3
mov rdx, qword [rdi]
lea rcx, str.Retrying_Rename___s__to___s__due_to_EACCES_error
call fcn.140005b14
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebp
cmp ebp, 0x1f4
jl 0x14003154c
jmp 0x1400315ca
mov byte [r14], 1
xor al, al
jmp 0x1400315d0
mov al, 1
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x140031ba0
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140090010]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbp, r8
mov rsi, rdx
mov rbx, rcx
and qword [r11 - 0x30], 0
and qword [r11 - 0x28], 0
add rdx, 0x18
lea rcx, [r11 - 0x40]
call fcn.1400080a4
nop
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.1400319e0
mov rdi, rax
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x140031c33
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140031c2e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140031c2e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140041c70
mov rdx, qword [rsi]
mov rcx, rbp
call fcn.1400418b4
mov rbx, qword [rsi + 8]
mov r9, rdi
mov r8, rbx
mov edx, 1
mov rcx, qword [rbp + 8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rax, rbx
jne 0x140031c82
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140041c10
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
lea rcx, str.Failure_extracting_contents_of_the_application_bundle.
call fcn.140005b90
lea rcx, str.I_O_failure_when_writing_extracted_files.
call fcn.140005b90
mov dword [rsp + 0x20], 0x800080a0
lea rdx, [0x14008dcc8]
lea rcx, [rsp + 0x20]
call fcn.1400438ec
int3
Function at 0x140047bf0
Capabilities:
Get thread local storage value

Disassembly:
add rcx, 8
jmp 0x14004ac30
mov qword [rsp + 0x10], rbx
push rbp
mov rbp, rsp
sub rsp, 0x50
and qword [rbp - 0x18], 0
mov rbx, rcx
test dword [0x140090074], 0x80000000
mov qword [rbp - 0x28], 0
mov dword [rbp - 0x20], 1
mov dword [rbp - 0x10], 0
mov dword [rbp - 0xc], 0
je 0x14004ac7e
mov ecx, dword [0x140093728]
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
jne 0x14004ac83
call fcn.140051cf8
mov qword [rbp - 0x30], rax
lea rcx, [rbp - 0x30]
xor eax, eax
lock cmpxchg qword [rbx + 0x30], rcx
jne 0x14004acc2
lea rcx, [rbp - 0x30]
mov rdx, rbx
mov qword [rbx + 0x28], rcx
lea rcx, [rbp - 0x30]
call fcn.14004a824
mov ecx, dword [rbp - 0x20]
lea rdx, [rbp - 0x30]
and ecx, 0xfffffffe
mov dword [rbp - 0x20], ecx
mov rcx, rbx
call fcn.14004aa9c
mov al, 1
jmp 0x14004acc4
xor al, al
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rbp
ret

Function at 0x14004b5ec
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14004b5ff
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
lea rcx, [rsp + 0x20]
or edx, 0x80070000
test eax, eax
cmovle edx, eax
call fcn.1400555a0
lea rdx, [0x14008d488]
lea rcx, [rsp + 0x20]
call fcn.1400438ec
int3

Function at 0x140055f20
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x140093728]
xor edx, edx
jmp fcn.14004b5ec

Function at 0x1400568c4
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x140093728]
jmp fcn.14004b5ec

Function at 0x140062324
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x1400623e0]
mov r9, qword [r9 + 8]
jmp fcn.1400536e8

Function at 0x1400623b8
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x1400623f0]
mov r9, qword [r9 + 8]
jmp fcn.1400536e8
Function at 0x140036d48
Capabilities:
Print debug messages

Disassembly:
jmp 0x140036d54
push rbx
sub rsp, 0x540
mov rax, qword [0x14004ffa8]
xor rax, rsp
mov qword [rsp + 0x530], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.ntdll.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x140036dd1
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlVirtualUnwind]
jmp 0x140036df1
mov rax, qword [rsp + 0x548]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x548]
mov qword [rsp + 0xf8], rax
lea rcx, str.Invalid_parameter_passed_to_C_runtime_function._n
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.1400363b0
add rsp, 0x540
pop rbx
ret

Function at 0x14003961c
Capabilities:
Encode data using xor

Disassembly:
push 0x6950
clc
pop rdx
jmp 0x1400396a8
sub cl, 0x93
not cl
not ah
jmp 0x1400396d0
xchg ah, cl
cld
jge 0x1400396a8
sub al, 0
add edx, eax
not edx
xchg al, cl
mov al, r9b
lea ecx, [rax]
not edx
sub dl, 0xa5
mov rcx, r10
jmp loc.140065fd4
sbb word [rdx + 0x5f801], 0x242a
adc ch, bl
xor al, ah
and eax, 0xffffff87
xor ah, al
jmp 0x140039641
sub edx, 2
jmp 0x14003965c
Function at 0x1400010a0
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x450
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x440], rax
xor ebx, ebx
lea rcx, str.WinHTTP_Example
mov rbp, rdx
mov dword [rsp + 0x30], ebx
xor r9d, r9d
mov dword [rsp + 0x20], ebx
xor r8d, r8d
mov r14d, ebx
lea edx, [rbx + 1]
mov r15d, 0x400
call qword [sym.imp.WININET.dll_InternetOpenA]
mov rdi, rax
test rax, rax
jne 0x140001120
lea ecx, [rbx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Error_initializing_WinINet_n
call fcn.140001008
xor eax, eax
jmp 0x14000123f
mov qword [rsp + 0x28], rbx
lea rdx, str.http:__192.168.138.128_index.html
xor r9d, r9d
mov dword [rsp + 0x20], 0x80000000
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov rsi, rax
test rax, rax
jne 0x14000116e
lea ecx, [rax + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Error_opening_URL_n
call fcn.140001008
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x140001119
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbp], rax
test rax, rax
jne 0x1400011a3
lea ecx, [rax + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Error_allocating_memory_n
call fcn.140001008
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x140001163
mov r8d, r15d
lea r9, [rsp + 0x30]
mov rcx, rsi
lea rdx, [rsp + 0x40]
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x140001228
mov ecx, dword [rsp + 0x30]
test ecx, ecx
je 0x140001228
lea eax, [r14 + rcx]
cmp eax, r15d
jbe 0x1400011eb
mov rcx, qword [rbp]
add r15d, r15d
mov edx, r15d
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov qword [rbp], rax
test rax, rax
je 0x14000120c
mov ecx, dword [rsp + 0x30]
mov r8d, ecx
lea rdx, [rsp + 0x40]
mov ecx, r14d
add rcx, qword [rbp]
call sub.VCRUNTIME140.dll_memcpy
add r14d, dword [rsp + 0x30]
mov r8d, 0x400
jmp 0x1400011a6
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Error_reallocating_memory_n
call fcn.140001008
jmp 0x14000122b
mov ebx, r14d
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, ebx
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.1400012c0
lea r11, [rsp + 0x450]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x401d28
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rbp + 0x10], rcx
mov eax, 0
mov byte [rbp - 1], al
movzx eax, byte [rbp - 1]
cmp eax, 4
jge 0x401dcc
jmp 0x401d52
movzx eax, byte [rbp - 1]
add eax, 1
mov byte [rbp - 1], al
jmp 0x401d34
mov eax, 0
mov byte [rbp - 2], al
movzx eax, byte [rbp - 2]
cmp eax, 4
jge 0x401dc7
jmp 0x401d78
movzx eax, byte [rbp - 2]
add eax, 1
mov byte [rbp - 2], al
jmp 0x401d5a
mov rax, qword [rbp + 0x10]
movzx ecx, byte [rbp - 2]
movsxd rcx, ecx
shl rcx, 2
add rax, rcx
movzx ecx, byte [rbp - 1]
movsxd rcx, ecx
add rax, rcx
mov rcx, qword [rbp + 0x10]
movzx edx, byte [rbp - 2]
movsxd rdx, edx
shl rdx, 2
add rcx, rdx
movzx edx, byte [rbp - 1]
movsxd rdx, edx
add rcx, rdx
movzx edx, byte [rcx]
movsxd rdx, edx
lea rcx, str.cw
add rcx, rdx
movzx edx, byte [rcx]
mov byte [rax], dl
jmp 0x401d6c
jmp 0x401d46
leave
ret

Function at 0x40309b
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rbp + 0x10], rcx
mov eax, 0
mov byte [rbp - 1], al
movzx eax, byte [rbp - 1]
cmp eax, 4
jge 0x40314a
jmp 0x4030d0
movzx eax, byte [rbp - 1]
add eax, 1
mov byte [rbp - 1], al
jmp 0x4030b2
mov eax, 0
mov byte [rbp - 2], al
movzx eax, byte [rbp - 2]
cmp eax, 4
jge 0x403145
jmp 0x4030f6
movzx eax, byte [rbp - 2]
add eax, 1
mov byte [rbp - 2], al
jmp 0x4030d8
mov rax, qword [rbp + 0x10]
movzx ecx, byte [rbp - 2]
movsxd rcx, ecx
shl rcx, 2
add rax, rcx
movzx ecx, byte [rbp - 1]
movsxd rcx, ecx
add rax, rcx
mov rcx, qword [rbp + 0x10]
movzx edx, byte [rbp - 2]
movsxd rdx, edx
shl rdx, 2
add rcx, rdx
movzx edx, byte [rbp - 1]
movsxd rdx, edx
add rcx, rdx
movzx edx, byte [rcx]
movsxd rdx, edx
lea rcx, [0x007a9423]
add rcx, rdx
movzx edx, byte [rcx]
mov byte [rax], dl
jmp 0x4030ea
jmp 0x4030c4
leave
ret

Function at 0x4030a6
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rbp + 0x10], rcx
mov eax, 0
mov byte [rbp - 1], al
movzx eax, byte [rbp - 1]
cmp eax, 4
jge 0x40314a
jmp 0x4030d0
movzx eax, byte [rbp - 1]
add eax, 1
mov byte [rbp - 1], al
jmp 0x4030b2
mov eax, 0
mov byte [rbp - 2], al
movzx eax, byte [rbp - 2]
cmp eax, 4
jge 0x403145
jmp 0x4030f6
movzx eax, byte [rbp - 2]
add eax, 1
mov byte [rbp - 2], al
jmp 0x4030d8
mov rax, qword [rbp + 0x10]
movzx ecx, byte [rbp - 2]
movsxd rcx, ecx
shl rcx, 2
add rax, rcx
movzx ecx, byte [rbp - 1]
movsxd rcx, ecx
add rax, rcx
mov rcx, qword [rbp + 0x10]
movzx edx, byte [rbp - 2]
movsxd rdx, edx
shl rdx, 2
add rcx, rdx
movzx edx, byte [rbp - 1]
movsxd rdx, edx
add rcx, rdx
movzx edx, byte [rcx]
movsxd rdx, edx
lea rcx, [0x007a9423]
add rcx, rdx
movzx edx, byte [rcx]
mov byte [rax], dl
jmp 0x4030ea
jmp 0x4030c4
leave
ret
Function at 0x1401805d0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1401805dd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1401805ed
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1401805d5
lea eax, [rcx + 1]
jmp 0x1401805fb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14018060e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1401805f4
sub eax, 3
jb 0x14018062e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14018067d
sar eax, 1
movsxd rbp, eax
jb 0x140180664
jmp 0x14018063c
add ebx, ebx
jne 0x14018063a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140180664
inc ecx
add ebx, ebx
jne 0x14018064a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140180664
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14018065d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14018064c
add ecx, 2
jmp 0x140180669
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140180592
jmp 0x1401805dd
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x2d000
mov dl, 0xe
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1401806cd
cmp rsi, rcx
jae 0x1401806d5
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1401806b4
cmp al, 0x8f
ja 0x1401806b4
cmp byte [rsi - 2], 0xf
je 0x1401806ba
sub al, 0xe8
cmp al, 1
ja 0x14018069e
cmp rsi, rcx
jae 0x1401806d5
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1401806a4
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1401806d5
lodsb al, byte [rsi]
jmp 0x1401806b4
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x160000]
mov eax, dword [rdi]
or eax, eax
je 0x140180732
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x180b30]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1401806e2
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14018072c
mov qword [rbx], rax
add rbx, 8
jmp 0x140180702
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14018076c
cmp al, 0xef
ja 0x14018075e
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14018073e
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14018074d
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x227]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1401807c0
sub rsp, 0xffffffffffffff80
jmp 0x140013ff0
Function at 0x14000da84
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140017850], eax
call fcn.14000d7d0
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_UnhandledExceptionFilter]
cmp dword [0x140017850], 0
jne case.default.0x14000dada
mov ecx, 1
call fcn.14000d7d0
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
or ah, byte [rdi + rsi*8]
push rbx
push rsi
add al, 0x6d
xor dword [rax + rsi*8 + 0x32e10d13], esi
stosd dword [rdi], eax
invalid