joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6105b0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbp, rsp
mov rbx, rcx
mov esi, r8d
xor rdi, rdi
cmp qword [rbx + 0x30], 0xffffffffffffffff
je 0x610663
mov rcx, qword [rbx + 0x30]
mov r8d, 0x1010
lea r9, [rbp + 0x3c]
lea rax, [rbx + 0x38]
mov qword [rsp + 0x20], rax
call sub.kernel32.dll_WriteFile_1
test eax, eax
setne al
test al, al
jne 0x610660
call sub.kernel32.dll_GetLastError_2
cmp eax, 0x3e5
jne 0x610663
test sil, sil
je 0x610633
xor rsi, rsi
mov rcx, qword [rbx + 0x50]
mov edx, 0xc8
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0x102
jne 0x610629
add esi, 1
cmp esi, 0xf
jne 0x61060a
nop
test eax, eax
jne 0x610663
mov dil, 1
jmp 0x610663
mov rcx, qword [rbx + 0x50]
mov edx, 0xc8
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0x102
je 0x610633
test eax, eax
jne 0x610651
mov dil, 1
test dil, dil
jne 0x610663
mov rcx, rbx
call fcn.00610410
jmp 0x610663
mov dil, 1
mov eax, edi
lea rsp, [rbp + 0x48]
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x1805e5058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1805e51df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1805e5089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1805e506f
add dl, dl
jne 0x1805e5096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1805e50f6
xor eax, eax
add dl, dl
jne 0x1805e50a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1805e51ad
add dl, dl
jne 0x1805e50b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1805e50c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1805e50d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1805e50dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1805e50ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1805e507e
mov eax, 1
add dl, dl
jne 0x1805e5106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1805e5113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1805e50fb
sub eax, ebx
mov ebx, 1
jne 0x1805e514c
mov ecx, 1
add dl, dl
jne 0x1805e512e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1805e513b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1805e5123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1805e507e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1805e5168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1805e5175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1805e515d
cmp eax, 0x7d00
jae 0x1805e519b
cmp eax, 0x500
jb 0x1805e5196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1805e507e
cmp eax, 0x7f
ja 0x1805e519e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1805e507e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1805e51d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1805e507e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140004170
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rax, rdx
mov rsi, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x140004200
cmp r11, r10
ja 0x140004276
cmp r10, rdx
ja 0x140004288
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x140004202
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x1400041e0
jmp 0x140004264
ja 0x14000420a
mov r11, r10
cmp rax, r8
jne 0x1400041a4
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x140004240
mov rdi, r8
sub ecx, edx
jns 0x14000425b
jmp 0x140004266
cmp r8, rsi
je 0x140004297
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x140004266
xor al, 1
cmp rdi, rsi
jne 0x140004220
jmp 0x140004266
xor eax, eax
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.1400236e0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.1400234e0
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.1400237f0
int3

Function at 0x140008490
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae fcn.140001a10
cmp rax, rcx
je 0x1400084b5
cmp rdx, 4
jae 0x1400084b8
xor eax, eax
xor r8d, r8d
jmp 0x140008550
xor eax, eax
ret
mov r8d, edx
and r8d, 0x1c
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x1400253d0]
movdqa xmm3, xmmword [0x1400253e0]
pxor xmm1, xmm1
nop dword [rax]
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x1400084e0
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x140008567
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x140008550
ret
Function at 0x14000f960
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
movzx r9d, byte [rdx + 0x38]
cmp byte [rcx - 0x80], al
stc
add dword [rdi + 0x6a], esi
xor r8d, r8d
xor eax, eax

Function at 0x1400145e0
Capabilities:
Parse pe header

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

Function at 0x140018d5c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140018b58
Function at 0x14001be1c
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 0x14001be4c
xor eax, eax
jmp 0x14001bf0f
mov rbp, rbx
cmp word [rax], si
je 0x14001be71
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14001be58
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14001be54
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.14001bd3c
movsxd r14, eax
test eax, eax
jne 0x14001beaf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14001be45
mov rcx, r14
call fcn.14001ccf8
mov rdi, rax
test rax, rax
jne 0x14001bec8
xor ecx, ecx
call fcn.14001a39c
jmp 0x14001bea4
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.14001bd3c
test eax, eax
jne 0x14001bef9
mov rcx, rdi
call fcn.14001a39c
jmp 0x14001bf03
xor ecx, ecx
call fcn.14001a39c
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 0x14001f400
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.14001ae0c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001f48a
cmp byte [rbp - 0x21], r15b
je 0x14001f485
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14001f4c0
call fcn.14001d508
test eax, eax
jne 0x14001f4ac
cmp byte [rbp - 0x21], r15b
je 0x14001f4a4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14001f4c0
cmp byte [rbp - 0x21], r15b
je 0x14001f4bd
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.14001a3ec
test eax, eax
jne 0x14001f560
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14001ae0c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14001f4ff
cmp byte [rbp - 0x21], r15b
je 0x14001f534
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14001f534
call fcn.14001d508
test eax, eax
jne 0x14001f520
cmp byte [rbp - 0x21], r15b
je 0x14001f519
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14001f534
cmp byte [rbp - 0x21], r15b
je 0x14001f531
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.14001a3ec
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14001f560
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14001f563
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14001f571
mov rcx, rdi
call fcn.14001a39c
cmp byte [rbp + 0x3f], r15b
je 0x14001f580
mov rcx, qword [rbp + 0x27]
call fcn.14001a39c
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 0x140022460
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140022488
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140022488
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14000d1b0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je case.default.0x14000d1d1
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x14000d1fe
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14000d200
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14000d259
test ecx, ecx
jle 0x14000d239
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x14000d259
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14000d259
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
insb byte [rdi], dx
cmp eax, 0x189e48e7
and edi, dword [rcx]
insd dword [rdi], dx
fisub word [rsi + 0x59ccad42]
imul esi, dword [rbx + 0xdd5ad9b], 0x2b
invalid
Function at 0x14000d280
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x14000d2a2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x14000d2b1
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14000d2d4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000d2d6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000d312
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14000d3ae
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000d34d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14000d38e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14000d3ae
cmp rbx, rax
ja 0x14000d360
test rbx, rbx
je 0x14000d3ae
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
out dx, al
hlt
Function at 0x1406c3dd0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1406c3f57
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1406c3e01
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406c3de7
add dl, dl
jne 0x1406c3e0e
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406c3e6e
xor eax, eax
add dl, dl
jne 0x1406c3e1d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406c3f25
add dl, dl
jne 0x1406c3e2e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406c3e3b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406c3e48
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406c3e55
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1406c3e62
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1406c3df6
mov eax, 1
add dl, dl
jne 0x1406c3e7e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406c3e8b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406c3e73
sub eax, ebx
mov ebx, 1
jne 0x1406c3ec4
mov ecx, 1
add dl, dl
jne 0x1406c3ea6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406c3eb3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406c3e9b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406c3df6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1406c3ee0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406c3eed
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406c3ed5
cmp eax, 0x7d00
jae 0x1406c3f13
cmp eax, 0x500
jb 0x1406c3f0e
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406c3df6
cmp eax, 0x7f
ja 0x1406c3f16
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406c3df6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1406c3f4a
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1406c3df6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x11e9980
Capabilities:
Terminate process

Disassembly:
jmp 0xffffffffe58dd2f0
cmp cl, ch
adc eax, 0x90af0235
jo 0xff8a2e
js 0xff8a02
lodsb al, byte [rsi]
sbb eax, 0x15231562
invalid
invalid
cld
pop r11
jmp 0x11e998d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x11e999d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x11e9985
lea eax, [rcx + 1]
jmp 0x11e99ab
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x11e99be
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x11e99a4
sub eax, 3
jb 0x11e99de
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x11e9a2d
sar eax, 1
movsxd rbp, eax
jb 0x11e9a14
jmp 0x11e99ec
add ebx, ebx
jne 0x11e99ea
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x11e9a14
inc ecx
add ebx, ebx
jne 0x11e99fa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x11e9a14
call r11
adc ecx, ecx
add ebx, ebx
jne 0x11e9a0d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x11e99fc
add ecx, 2
jmp 0x11e9a19
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.011e9942
jmp 0x11e998d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
sub rsp, 0x28
lea rdi, [rsi + 0xdb7000]
mov eax, dword [rdi]
or eax, eax
je 0x11e9a8d
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xde9ed8]
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 0x11e9a3d
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 0x11e9a87
mov qword [rbx], rax
add rbx, 8
jmp 0x11e9a5d
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 0x11e9ad1
cmp al, 0xef
ja 0x11e9ab9
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x11e9a99
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x11e9aa8
mov eax, dword [rdi]
add rdi, 4
jmp 0x11e9aa8
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 0x11e9b25
sub rsp, 0xffffffffffffff80
jmp 0xff8a10
Function at 0x2fc4d96f0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4da0f2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fe108]
test eax, eax
je 0x2fc4da18a
lea rax, [0x2fc4fe0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fe110]
mov qword [rbp - 8], rax
jmp 0x2fc4da16e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4da162
cmp qword [rbp - 0x10], 0
je 0x2fc4da162
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4da128
lea rax, [0x2fc4fe0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4da18b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4da290
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4da2b8
mov eax, 0
jmp 0x2fc4da306
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4da2e1
mov eax, 0
jmp 0x2fc4da306
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4da301
mov eax, 0
jmp 0x2fc4da306
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x140002b70
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x30
mov r14, rdx
mov r13, rcx
mov rax, qword [0x14028f028]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov byte [rcx], 1
mov qword [rcx + 8], 0
mov byte [rcx + 0x10], 0
mov eax, dword [0x140297f88]
mov ecx, dword [0x140293330]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140002d21
mov ecx, dword [0x1402910c8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140002ca4
movsxd rcx, dword [0x140297f80]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x140297f84]
jne 0x140002ca4
mov rdi, qword [rax + rcx]
test rdi, rdi
je 0x140002ca4
movabs r12, 0x6000000000000000
movabs r15, 0xffffffffffffff
mov rax, qword [rdi]
mov rbx, rax
and rbx, r15
and rax, r12
movabs rcx, 0x4000000000000000
cmp rax, rcx
jne 0x140002c6a
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x140002c57
mov rsi, qword [rdi]
call qword [rcx + 8]
movabs rcx, 0xff00000000000000
and rcx, rsi
or rcx, rax
mov qword [rdi], rcx
movabs rax, 0xbfffffffffffffff
lock and qword [rdi], rax
mov byte [r13 + 0x10], 1
movabs rsi, 0x8000000000000001
mov qword [r13 + 8], rbx
lea rbx, [rsp + 0x20]
mov rcx, rbx
call qword [fcn.14007b660]
mov rax, qword [rbx]
lea rcx, [r14 + rsi]
cmp rcx, 2
jae 0x140002cab
add rsi, rax
cmp rsi, 1
ja 0x140002ccd
cmp rax, r14
je 0x140002ccd
int3
mov byte [r13], 0
jmp 0x140002d01
xor ecx, ecx
mov rdx, rax
add rdx, r14
setns cl
movabs rdx, 0x7fffffffffffffff
add rdx, rcx
add rax, r14
cmovo rax, rdx
mov r14, rax
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x140002cef
mov rsi, qword [rdi]
call qword [rcx + 8]
movabs rcx, 0xff00000000000000
and rcx, rsi
or rcx, rax
mov qword [rdi], rcx
mov rax, qword [rdi]
and rax, r12
and r14, r15
or r14, rax
mov qword [rdi], r14
inc dword [rdi + 0x14]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400ccfe0
mov rax, r13
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x140297f88]
int3

Function at 0x140005520
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, qword [0x140297820]
cmp rsi, 1
jbe 0x140005565
mov ecx, dword [0x1402910c8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400055b7
movsxd rcx, dword [rsi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 4]
jne 0x1400055b7
mov rax, qword [rax + rcx]
test rax, rax
je 0x1400055b7
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x140297820]
int3
int3