joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1402523a0
Capabilities:
Compute adler32 checksum

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov eax, dword [rcx + 0x28]
mov rbp, rdx
cmp eax, r8d
mov esi, eax
mov rdi, rcx
cmova esi, r8d
test esi, esi
jne 0x1402523d7
xor eax, eax
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
sub eax, esi
mov qword [rsp + 0x30], rbx
cmp byte [rcx + 0x18], 0
mov dword [rcx + 0x28], eax
je 0x14025253b
mov r9, qword [rcx + 0x20]
mov r11d, esi
mov r8d, dword [rcx + 0x1c]
movzx ecx, r8w
shr r8d, 0x10
test r9, r9
jne 0x140252410
lea r8d, [r9 + 1]
jmp 0x140252537
mov edx, 0x15b0
cmp r11d, edx
cmovb edx, r11d
sub r11d, edx
cmp edx, 0x10
jb 0x1402524e0
mov r10d, edx
shr r10, 4
nop
movzx eax, byte [r9]
add edx, 0xfffffff0
add ecx, eax
movzx eax, byte [r9 + 1]
add r8d, ecx
add ecx, eax
movzx eax, byte [r9 + 2]
add r8d, ecx
add ecx, eax
movzx eax, byte [r9 + 3]
add r8d, ecx
add ecx, eax
movzx eax, byte [r9 + 4]
add r8d, ecx
add ecx, eax
movzx eax, byte [r9 + 5]
add r8d, ecx
add ecx, eax
movzx eax, byte [r9 + 6]
add r8d, ecx
add ecx, eax
movzx eax, byte [r9 + 7]
add r8d, ecx
add ecx, eax
movzx eax, byte [r9 + 8]
add r8d, ecx
add ecx, eax
movzx eax, byte [r9 + 9]
add r8d, ecx
add ecx, eax
movzx eax, byte [r9 + 0xa]
add r8d, ecx
add ecx, eax
movzx eax, byte [r9 + 0xb]
add r8d, ecx
add ecx, eax
movzx eax, byte [r9 + 0xc]
add r8d, ecx
add ecx, eax
movzx eax, byte [r9 + 0xd]
add r8d, ecx
add ecx, eax
movzx eax, byte [r9 + 0xe]
add r8d, ecx
add ecx, eax
movzx eax, byte [r9 + 0xf]
add r8d, ecx
add r9, 0x10
add ecx, eax
add r8d, ecx
sub r10, 1
jne 0x140252430
test edx, edx
je 0x140252501
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [r9]
inc r9
add ecx, eax
add r8d, ecx
add edx, 0xffffffff
jne 0x1402524f0
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul eax, edx, 0xffff000f
add ecx, eax
mov eax, 0x80078071
mul r8d
shr edx, 0xf
imul eax, edx, 0xffff000f
add r8d, eax
test r11d, r11d
jne 0x140252410
shl r8d, 0x10
or r8d, ecx
mov dword [rdi + 0x1c], r8d
mov rdx, qword [rdi + 0x20]
mov rcx, rbp
mov r8d, esi
mov ebx, esi
call sub.VCRUNTIME140.dll_memcpy
add qword [rdi + 0x20], rbx
mov eax, esi
add dword [rdi + 0x2c], esi
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140253b70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r15
sub rsp, 0x20
mov edi, dword [rcx + 0x2c]
mov rbx, rcx
mov qword [rsp + 0x30], r14
mov esi, dword [rbx + 0x40]
lea r8, [rbx + 0x38]
mov edx, dword [rbx + 0x88]
sub esi, edx
mov eax, dword [rbx + 0x90]
sub esi, eax
jne 0x140253bbc
test edx, edx
jne 0x140253bcb
lea r8, [rbx + 0x38]
test eax, eax
jne 0x140253bcb
mov esi, edi
jmp 0x140253c63
cmp esi, 0xffffffff
jne 0x140253bcb
mov esi, 0xfffffffe
jmp 0x140253c63
lea ecx, [rdi - 0x106]
add ecx, dword [rbx + 0x2c]
cmp edx, ecx
jb 0x140253c63
mov rcx, qword [r8]
mov r8, rdi
lea rdx, [rdi + rcx]
call sub.VCRUNTIME140.dll_memcpy
mov r8d, dword [rbx + 0x68]
mov rax, qword [rbx + 0x58]
sub dword [rbx + 0x8c], edi
sub dword [rbx + 0x88], edi
sub dword [rbx + 0x78], edi
lea rdx, [rax + r8*2]
nop word [rax + rax]
movzx ecx, word [rdx - 2]
lea rdx, [rdx - 2]
sub cx, di
movzx eax, cx
not ax
sar ax, 0xf
and ax, cx
mov word [rdx], ax
add r8d, 0xffffffff
jne 0x140253c10
mov rax, qword [rbx + 0x48]
mov r8d, edi
lea rax, [rax + rdi*2]
nop dword [rax]
movzx edx, word [rax - 2]
lea rax, [rax - 2]
sub dx, di
movzx ecx, dx
not cx
sar cx, 0xf
and cx, dx
mov word [rax], cx
add r8d, 0xffffffff
jne 0x140253c40
add esi, edi
mov rcx, qword [rbx + 8]
call fcn.1400e6c20
test eax, eax
je 0x140253cea
mov edx, dword [rbx + 0x90]
mov r8d, esi
mov eax, dword [rbx + 0x88]
mov rcx, qword [rbx + 8]
add rdx, rax
add rdx, qword [rbx + 0x38]
call fcn.1402523a0
mov r9d, dword [rbx + 0x90]
add r9d, eax
mov dword [rbx + 0x90], r9d
cmp r9d, 3
jb 0x140253cd0
mov eax, dword [rbx + 0x88]
mov rdx, qword [rbx + 0x38]
mov ecx, dword [rbx + 0x74]
movzx r8d, byte [rax + rdx]
mov dword [rbx + 0x64], r8d
shl r8d, cl
inc eax
movzx eax, byte [rax + rdx]
xor r8d, eax
and r8d, dword [rbx + 0x70]
mov dword [rbx + 0x64], r8d
cmp r9d, 0x106
jae 0x140253cea
mov rcx, qword [rbx + 8]
call fcn.1400e6c20
test eax, eax
jne 0x140253b90
mov r14, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
Function at 0x1402566a8
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1402566e2
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1402566e7
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140256730
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1402fc940]
cmp byte [rcx + rax], 0
je 0x140256730
dec r8
sub rdx, 1
jne 0x140256716
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140006161
Capabilities:
Encode data using xor

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x2b0
mov rbx, rcx
mov rdi, rdx
mov qword [rcx], 0
mov qword [rcx + 8], 0
mov qword [rcx + 0x10], 0
mov ecx, 0x410
call fcn.1400bb900
mov rsi, rax
mov word [rsp + 0x2a0], 0x13
mov word [rsp + 0x2a2], 0x40
mov word [rsp + 0x2a4], 0x4b
mov word [rsp + 0x2a6], 0x65
mov word [rsp + 0x2a8], 0x10
mov word [rsp + 0x2aa], 0x15
mov word [rsp + 0x2ac], 0x16
mov word [rsp + 0x2ae], 0x3d
lea rcx, [rsp + 0x2a0]
mov edx, 0
movsxd rax, edx
imul rax, rax, 0xffffffff8d3dcb09
shr rax, 0x20
add eax, edx
sar eax, 5
mov r8d, edx
sar r8d, 0x1f
sub eax, r8d
imul eax, eax, 0x3a
mov r8d, edx
sub r8d, eax
lea eax, [r8 + 0x36]
xor word [rcx], ax
add edx, 1
add rcx, 2
cmp edx, 8
jne 0x1400061f9
mov r9, rdi
lea r8, [rsp + 0x2a0]
mov edx, 0x208
mov rcx, rsi
call sub.msvcrt.dll_swprintf_s
lea rdx, [rsp + 0x50]
mov rcx, rsi
mov rax, qword [0x140179f10]
call qword [rax + 0x180]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400063b5
lea r12, [rsp + 0x40]
lea r13, [rsp + 0x7c]
mov rbp, qword [0x140179f10]
jmp 0x140006366
mov qword [rsp + 0x30], r12
mov rcx, r13
call sub.msvcrt.dll_wcslen
lea rdi, [rax + rax]
mov r14, rdi
sar r14, 1
mov qword [rsp + 0x28], r14
cmp rdi, 0xe
ja 0x1400062f8
mov rcx, qword [rsp + 0x30]
cmp r14, 1
jne 0x14000631e
movzx eax, word [rsp + 0x7c]
mov word [rcx], ax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov rdx, qword [rsp + 0x30]
mov word [rdx + rax*2], 0
mov rcx, qword [rbx + 8]
cmp rcx, qword [rbx + 0x10]
je 0x140006350
lea rax, [rcx + 0x10]
mov qword [rcx], rax
mov rdx, qword [rsp + 0x30]
mov r9d, 0
mov rax, qword [rsp + 0x38]
lea r8, [rdx + rax*2]
call fcn.1400aa7c0
jmp 0x140006330
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x30]
mov r8d, 0
call fcn.1400ac5b0
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x40], rax
jmp 0x1400062a4
test r14, r14
je 0x1400062b7
mov r8, rdi
mov rdx, r13
call sub.msvcrt.dll_memcpy
jmp 0x1400062b7
add qword [rbx + 8], 0x20
mov rcx, qword [rsp + 0x30]
cmp rcx, r12
je 0x140006371
mov rax, qword [rsp + 0x40]
lea rdx, [rax + rax + 2]
call fcn.1400bb8f0
jmp 0x140006371
lea r8, [rsp + 0x30]
mov rdx, rcx
mov rcx, rbx
call fcn.1400a57b0
jmp 0x140006335
test eax, eax
je 0x140006381
test byte [rsp + 0x50], 0x10
je 0x140006282
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [rbp + 0x188]
jmp 0x140006362
mov rcx, rsi
mov rax, qword [0x140179f10]
call qword [rax + 0x190]
jmp 0x1400063b5
mov rax, rbx
add rsp, 0x2b0
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x14000c4f0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push rdi
push rsi
push rbx
mov r8, rdx
mov rax, rdx
mov rdx, rcx
add r8, 0x10
movzx r9d, byte [rax]
mov byte [rcx], r9b
movzx r9d, byte [rax + 1]
mov byte [rcx + 1], r9b
movzx r9d, byte [rax + 2]
mov byte [rcx + 2], r9b
movzx r9d, byte [rax + 3]
mov byte [rcx + 3], r9b
add rax, 4
add rcx, 4
cmp rax, r8
jne 0x14000c500
mov r11d, 4
lea rbx, [0x140174680]
lea rsi, [0x140174560]
jmp 0x14000c570
xor r9b, byte [rax]
mov byte [rax + 0x10], r9b
xor r8b, byte [rax + 1]
mov byte [rax + 0x11], r8b
xor r10b, byte [rax + 2]
mov byte [rax + 0x12], r10b
xor cl, byte [rax + 3]
mov byte [rax + 0x13], cl
add r11d, 1
add rdx, 4
cmp r11d, 0x2c
je 0x14000c5c2
mov rax, rdx
movzx r9d, byte [rdx + 0xc]
movzx r8d, byte [rdx + 0xd]
movzx r10d, byte [rdx + 0xe]
movzx ecx, byte [rdx + 0xf]
test r11b, 3
jne 0x14000c545
movzx r8d, r8b
movzx edi, byte [rbx + r8]
movzx r10d, r10b
movzx r8d, byte [rbx + r10]
movzx ecx, cl
movzx r10d, byte [rbx + rcx]
movzx r9d, r9b
movzx ecx, byte [rbx + r9]
mov r9d, r11d
shr r9d, 2
mov r9d, r9d
xor dil, byte [rsi + r9]
mov r9d, edi
jmp 0x14000c545
pop rbx
pop rsi
pop rdi
ret

Function at 0x14000c5c6
Capabilities:
Encode data using xor

Disassembly:
shl rcx, 4
and ecx, 0xff0
add r8, rcx
lea rcx, [rdx + 4]
lea r10, [rdx + 0x14]
lea rax, [rcx - 4]
mov rdx, r8
movzx r9d, byte [rdx]
xor byte [rax], r9b
add rax, 1
add rdx, 1
cmp rax, rcx
jne 0x14000c5e2
add r8, 4
add rcx, 4
cmp rcx, r10
jne 0x14000c5db
ret

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

Disassembly:
lea rdx, [rcx + 0x10]
lea r9, [rcx + 0x14]
lea r8, [0x140174680]
lea rax, [rdx - 0x10]
movzx ecx, byte [rax]
movzx ecx, byte [r8 + rcx]
mov byte [rax], cl
add rax, 4
cmp rax, rdx
jne 0x14000c617
add rdx, 1
cmp rdx, r9
jne 0x14000c613
ret

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

Disassembly:
lea rdx, [rcx + 0x10]
lea r9, [rcx + 0x14]
lea r8, [0x140174580]
lea rax, [rdx - 0x10]
movzx ecx, byte [rax]
movzx ecx, byte [r8 + rcx]
mov byte [rax], cl
add rax, 4
cmp rax, rdx
jne 0x14000c658
add rdx, 1
cmp rdx, r9
jne 0x14000c654
ret
Function at 0x1400176c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x1401a1474]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x140017870
mov rax, qword [0x1401a1478]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x14001770c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140017797
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x1400176f0
mov rcx, r12
call fcn.140018170
mov rbp, rax
test rax, rax
je 0x1400178cd
mov rax, qword [0x1401a1478]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.1400182a0
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1401a1478]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400178b2
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140017790
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140017820
add dword [0x1401a1474], 1
cmp ebx, 8
jae 0x1400177c8
test bl, 4
jne 0x140017880
test ebx, ebx
je 0x1400177b9
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x1400178a0
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x1400177b9
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x1400177fa
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rdi, qword [0x1401a1478]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140017790
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140017650
xor edi, edi
jmp 0x140017717
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x1400177b9
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x1400177b9
mov rax, qword [0x1401a1478]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.140017650
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140017650
nop
nop dword [rax]
Function at 0x140017de0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x1401a14e0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1401a14c0]
test rbx, rbx
je 0x140017e34
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x140017e2b
test r12, r12
je 0x140017e2b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140017e10
lea rcx, [0x1401a14e0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140018170
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x140179d80]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x1400181e9
mov rcx, r10
call fcn.140018040
test eax, eax
je 0x1400181e9
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x1400181e6
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x1400181dd
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x1400181e9
add r8, 0x28
cmp r8, r9
jne 0x1400181c8
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x1400184e0
Capabilities:
Allocate thread local storage

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov eax, dword [0x1401a14c8]
mov edi, ecx
mov rsi, rdx
test eax, eax
jne 0x140017e70
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov edx, 0x18
mov ecx, 1
call sub.msvcrt.dll_calloc
mov rbx, rax
test rax, rax
je 0x140017ec3
mov dword [rax], edi
lea rcx, [0x1401a14e0]
mov qword [rax + 8], rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x1401a14c0]
lea rcx, [0x1401a14e0]
mov qword [0x1401a14c0], rbx
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
or eax, 0xffffffff
jmp 0x140017e66
push r12
push rbx
sub rsp, 0x28
mov rbx, rcx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ecx, eax
cmp eax, 0xffffffff
je 0x140018510
mov rdx, r12
mov dword [rbx], eax
add rsp, 0x28
pop rbx
pop r12
jmp 0x140023bd0
add rsp, 0x28
pop rbx
pop r12
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
test rdx, rdx
jne 0x140023be0
xor eax, eax
ret
jmp 0x140017e50

Function at 0x140018550
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
sub rsp, 0x28
mov r12d, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, r12d
mov r13d, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, r13d
mov r12, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, r12
add rsp, 0x28
pop r12
pop r13
ret

Function at 0x140018590
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1400185a8
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x140001ea0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov esi, 0xffff
movzx edi, dx
mov rbx, rcx
cmp si, dx
jne 0x140001ed1
xor eax, eax
jmp 0x14000201b
mov rax, qword [rcx + 0x40]
mov r8, qword [rax]
test r8, r8
je 0x140001f0e
mov r9, qword [rcx + 0x58]
movsxd r10, dword [r9]
lea rdx, [r8 + r10*2]
cmp r8, rdx
jae 0x140001f0e
lea ecx, [r10 - 1]
movzx eax, di
mov dword [r9], ecx
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 2]
mov qword [rdx], rcx
mov word [r8], di
jmp 0x14000201b
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xb0], rbp
je 0x140002010
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x140001f55
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
mov qword [r8], rcx
sub rdx, rcx
mov rax, qword [rbx + 0x38]
sar rdx, 1
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140001f63
movzx ecx, di
jmp 0x140001fb7
lea rax, [rsp + 0x40]
mov word [rsp + 0x50], di
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x52]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_wchar_t__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__wchar_t_const____ptr64__wchar_t_const____ptr64__wchar_t_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140001fd0
sub eax, 1
je 0x140001fd0
cmp eax, 2
jne 0x140002010
movzx ecx, word [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputwc]
cmp ax, si
cmove di, si
movzx eax, di
jmp 0x140002013
mov rbp, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rbp, rax
je 0x140001ffe
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rbp
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbp, rax
jne 0x140002010
lea rax, [rsp + 0x50]
mov byte [rbx + 0x72], 1
cmp qword [rsp + 0x48], rax
cmovne si, di
movzx eax, si
mov rbp, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140002fb0
add rsp, 0x80
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400024e0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400025b5
cmp byte [rcx + 0x72], 0
je 0x1400025b5
mov rax, qword [rcx]
mov qword [rsp + 0x78], rdi
mov edi, 0xffff
mov edx, edi
call qword [rax + 0x18]
cmp di, ax
je 0x1400025b1
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_wchar_t__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140002576
sub eax, 1
je 0x14000257a
cmp eax, 2
jne 0x1400025b1
mov byte [rbx + 0x72], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140002fb0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x72], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400025a8
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x1400025b1
cmp byte [rbx + 0x72], 0
sete al
jmp 0x14000255e
xor al, al
jmp 0x14000255e
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140002fb0
add rsp, 0x60
pop rbx
ret

Function at 0x140003930
Capabilities:
Parse pe header

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

Function at 0x140f70d04
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140f70d0e
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140f70d37
pop rbp
sub rbp, 0x33
sub rbp, 0xf70d04
sub rsp, 0x20
jmp 0x140f70d56
mov rax, 0xf70d04
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xffffffffdc94258c
xor byte [rax], dl
inc rax
dec rcx
jne 0x140f70d75
jmp 0x140f70d8c
invalid
Function at 0x140009520
Capabilities:
Parse pe header

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

Function at 0x14000db64
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000d960
Function at 0x1400105c0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140010647
mov rsi, rbx
cmp word [rax], bp
je 0x140010606
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400105f0
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400105ec
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140010fe0
mov rdi, rax
test rax, rax
je 0x140010634
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140016530
mov rbp, rdi
xor ecx, ecx
call fcn.14000f288
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140015790
Capabilities:
Parse pe header

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