joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001ae14
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x14004ca50]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x14001ae72
cmp word [rdx], r12w
jne 0x14001ae72
or byte [rax + r8*8 + 0x38], cl
jmp 0x14001ae78
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14001afd3
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14001afae
lea r9, [rcx + 2]
cmp ax, r13w
je 0x14001aeb1
mov rcx, r9
jmp 0x14001aed4
cmp r9, rdx
jae 0x14001aeeb
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x14001ae95
jmp 0x14001afd3
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x14001afa8
cmp dword [rsp + 0x80], edi
je 0x14001afa8
mov rdx, r14
lea r11, [0x14004ca50]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x14001af81
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x14001af54
mov word [rbx], r12w
jmp 0x14001afcf
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x14001af5d
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14001afcf
cmp word [rsp + 0x70], r12w
jne 0x14001af8e
cmp rbx, rsi
je 0x14001af4e
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14001bc0c
cmp word [rsp + 0x70], r12w
je 0x14001afd3
mov word [rbx], r13w
jmp 0x14001afcf
lea r11, [0x14004ca50]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14001afcb
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14001afd3
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140021e1c
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 0x140021e4c
xor eax, eax
jmp 0x140021f0f
mov rbp, rbx
cmp word [rax], si
je 0x140021e71
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140021e58
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140021e54
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.14001f4a4
movsxd r14, eax
test eax, eax
jne 0x140021eaf
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
jmp 0x140021e45
mov rcx, r14
call fcn.14001cfa0
mov rdi, rax
test rax, rax
jne 0x140021ec8
xor ecx, ecx
call fcn.14001a2b8
jmp 0x140021ea4
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.14001f4a4
test eax, eax
jne 0x140021ef9
mov rcx, rdi
call fcn.14001a2b8
jmp 0x140021f03
xor ecx, ecx
call fcn.14001a2b8
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 0x140021f2c
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 0x140021fb3
mov rsi, rbx
cmp word [rax], bp
je 0x140021f72
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140021f5c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140021f58
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14001cfa0
mov rdi, rax
test rax, rax
je 0x140021fa0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14000adf0
mov rbp, rdi
xor ecx, ecx
call fcn.14001a2b8
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 0x140026560
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.140014824
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400265ea
cmp byte [rbp - 0x21], r15b
je 0x1400265e5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140026620
call fcn.14001e4d8
test eax, eax
jne 0x14002660c
cmp byte [rbp - 0x21], r15b
je 0x140026604
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140026620
cmp byte [rbp - 0x21], r15b
je 0x14002661d
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.14001430c
test eax, eax
jne 0x1400266c0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140014824
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14002665f
cmp byte [rbp - 0x21], r15b
je 0x140026694
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140026694
call fcn.14001e4d8
test eax, eax
jne 0x140026680
cmp byte [rbp - 0x21], r15b
je 0x140026679
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140026694
cmp byte [rbp - 0x21], r15b
je 0x140026691
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.14001430c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400266c0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400266c3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400266d1
mov rcx, rdi
call fcn.14001a2b8
cmp byte [rbp + 0x3f], r15b
je 0x1400266e0
mov rcx, qword [rbp + 0x27]
call fcn.14001a2b8
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 0x140027d34
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001bc0c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001bc0c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140027e84
cmp rax, 0xffffffffffffffff
je 0x140027e84
xor edi, edi
test rbp, rbp
jle 0x140027e2f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001e248
mov rbx, rax
test rax, rax
jne 0x140027dbc
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140027e25
mov edx, 0x8000
mov ecx, r14d
call fcn.1400156f0
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001c90c
cmp eax, 0xffffffff
je 0x140027e05
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140027dcc
mov edx, r15d
mov ecx, r14d
call fcn.1400156f0
jmp 0x140027e25
cmp byte [rsi + 0x38], dil
je 0x140027e1c
cmp dword [rsi + 0x34], 5
jne 0x140027e1c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140027e25
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001a2b8
jmp 0x140027e98
jns 0x140027e98
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001bc0c
cmp rax, 0xffffffffffffffff
jne 0x140027e50
cmp byte [rsi + 0x30], dil
je 0x140027e98
mov edi, dword [rsi + 0x2c]
jmp 0x140027e98
mov ecx, r14d
call fcn.140016ddc
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_SetEndOfFile]
test eax, eax
jne 0x140027e98
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140027e98
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140027e91
mov eax, dword [rsi + 0x2c]
jmp 0x140027e96
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001bc0c
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x180028800
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, qword [0x1800b4f08]
mov edi, edx
cmp byte [rbx + 0x1f75], 0
jne 0x180028851
cmp byte [rbx + 0x1f76], 0
jne 0x180028851
mov r9d, dword [rbx + 0x3054]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.18001b640
test dil, 1
je 0x180028976
jmp 0x1800288d9
movss xmm1, dword [rbx + 0x1610]
lea r8, str.Tooltip__02d
mov r9d, dword [rbx + 0x3054]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x1800a1b50]
mulss xmm1, dword [0x1800a1b44]
lea edx, [rax + 0x10]
addss xmm0, dword [rbx + 0x128]
addss xmm1, dword [rbx + 0x12c]
mov qword [rbx + 0x1d08], rax
mov dword [rbx + 0x1cf4], 1
movss dword [rbx + 0x1d00], xmm0
movss dword [rbx + 0x1d04], xmm1
movss xmm0, dword [rbx + 0x166c]
mulss xmm0, dword [0x1800a1ac8]
or dword [rbx + 0x1cf0], 0x41
movss dword [rbx + 0x1d50], xmm0
call fcn.18001b640
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x180028930
lea r11, [0x18009ab20]
nop dword [rax]
cmp r9b, 0x23
jne 0x180028913
cmp byte [r8], r9b
jne 0x180028913
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x180028900
not ecx
call fcn.1800224b0
test rax, rax
je 0x180028976
cmp byte [rax + 0x8e], 0
je 0x180028976
mov byte [rax + 0x95], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xb0], 1
lea rcx, [rsp + 0x20]
inc dword [rbx + 0x3054]
mov edx, 0x10
mov r9d, dword [rbx + 0x3054]
call fcn.18001b640
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.1800249f0
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x88acb0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x88acbd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x88accd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x88acb5
lea eax, [rcx + 1]
jmp 0x88acdb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x88acee
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x88acd4
sub eax, 3
jb 0x88ad0e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x88ad5d
sar eax, 1
movsxd rbp, eax
jb 0x88ad44
jmp 0x88ad1c
add ebx, ebx
jne 0x88ad1a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x88ad44
inc ecx
add ebx, ebx
jne 0x88ad2a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x88ad44
call r11
adc ecx, ecx
add ebx, ebx
jne 0x88ad3d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x88ad2c
add ecx, 2
jmp 0x88ad49
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.0088ac72
jmp 0x88acbd
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x142200
mov dl, 0x1a
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x88ada9
cmp rsi, rcx
jae 0x88adb1
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x88ad90
cmp al, 0x8f
ja 0x88ad90
cmp byte [rsi - 2], 0xf
je 0x88ad96
sub al, 0xe8
cmp al, 1
ja 0x88ad7a
cmp rsi, rcx
jae 0x88adb1
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x88ad80
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x88adb1
lodsb al, byte [rsi]
jmp 0x88ad90
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x482000]
mov eax, dword [rdi]
or eax, eax
je 0x88ae0e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x48a000]
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 0x88adbe
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 0x88ae08
mov qword [rbx], rax
add rbx, 8
jmp 0x88adde
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 0x88ae52
cmp al, 0xef
ja 0x88ae3a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x88ae1a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x88ae29
mov eax, dword [rdi]
add rdi, 4
jmp 0x88ae29
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 + 0x1af]
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 0x88aea6
sub rsp, 0xffffffffffffff80
jmp 0x463740
Function at 0x140042b40
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x140042b4d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x140042b5d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140042b45
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x140042b75
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140042b62
sub eax, 3
jb 0x140042b8f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140042bc6
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x140042bb6
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140042bb4
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140042ba3
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.140042b02
jmp 0x140042b4d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xb600
mov dl, 7
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140042c12
cmp rsi, rcx
jae 0x140042c1a
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140042bf9
cmp al, 0x8f
ja 0x140042bf9
cmp byte [rsi - 2], 0xf
je 0x140042bff
sub al, 0xe8
cmp al, 1
ja 0x140042be3
cmp rsi, rcx
jae 0x140042c1a
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140042be9
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140042c1a
lodsb al, byte [rsi]
jmp 0x140042bf9
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x40000]
mov eax, dword [rdi]
or eax, eax
je 0x140042c77
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x6a9b8]
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 0x140042c27
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 0x140042c71
mov qword [rbx], rax
add rbx, 8
jmp 0x140042c47
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 0x140042cb1
cmp al, 0xef
ja 0x140042ca3
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140042c83
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x140042c92
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 + 0x217]
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 0x140042d05
sub rsp, 0xffffffffffffff80
jmp 0x1400045b4
Function at 0x14000d5f0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test rdx, rdx
je 0x14000d62c
mov rsi, rdx
mov rdi, rcx
mov r14d, 0xffffffff
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x14000d636
add rdi, rbx
sub rsi, rbx
jne 0x14000d60a
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
int3
Function at 0x14000ff30
Capabilities:
Create thread

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x50
mov edi, r9d
mov r14, r8
mov r15, rdx
mov rbx, rcx
xor ebp, ebp
test rcx, rcx
setne bpl
mov r12d, dword [rsp + 0xb0]
mov rax, qword [0x140113040]
xor rax, rsp
mov qword [rsp + 0x48], rax
shl ebp, 0x10
mov ecx, 0x18
call fcn.1400914ac
mov rsi, rax
mov rax, qword [0x1401155a0]
and rax, r15
cmp rax, qword [0x140115588]
jne 0x14000ff95
mov rcx, r15
call fcn.140056850
mov qword [rsi], r15
test r14, r14
setne byte [rsi + 8]
mov dword [rsi + 0xc], edi
mov dword [rsi + 0x10], r12d
mov dword [rsp + 0x20], ebp
mov qword [rsp + 0x28], 0
lea r8, [0x1400038f0]
xor ecx, ecx
mov rdx, rbx
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
je 0x140010007
test r14, r14
je 0x14000fffc
mov qword [r14], rdi
test rdi, rdi
setne bl
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400935c0
mov eax, ebx
add rsp, 0x50
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000ffd8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp eax, 0x27a
jle 0x14001002c
cmp ebp, 0x5af
je 0x1400100a7
cmp ebp, 0x27b
jne 0x140010036
jmp 0x1400100a7
cmp ebp, 8
je 0x1400100a7
cmp ebp, 0xe
je 0x1400100a7
mov eax, dword [0x140124784]
mov ecx, dword [0x140121718]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400100af
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov edx, ebp
call fcn.14004be00
cmp byte [rbx + 0x17], 0
jns 0x140010076
mov rcx, qword [rsp + 0x30]
call fcn.1400914a4
test rsi, rsi
je 0x14000ffd8
mov rcx, qword [rsi]
mov rax, qword [0x1401155a0]
and rax, rcx
cmp rax, qword [0x140115588]
jne 0x14001009a
call fcn.140056da0
mov rcx, rsi
call fcn.1400914a4
jmp 0x14000ffd8
mov rcx, rbx
call fcn.1400e12d0
lea rcx, [0x140124784]
call fcn.140091554
cmp dword [0x140124784], 0xffffffff
jne 0x140010057
lea rcx, [0x140124784]
call fcn.1400914e8
jmp 0x140010057
Function at 0x140010ba0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rdi, r8
mov rsi, rdx
mov rax, qword [0x140113040]
xor rax, rsp
mov qword [rsp + 0x48], rax
movabs rbx, 0xaaaaaaaaaaaaaaaa
mov qword [rdx], rcx
mov qword [rdx + 8], r8
mov byte [rdx + 0x10], r9b
mov qword [rdx + 0x18], 0
lea rcx, [rsp + 0x20]
mov qword [rcx], rbx
mov edx, 8
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x140010ce6
lea rcx, [rsp + 0x20]
mov rax, qword [rcx]
mov qword [rsi + 0x20], rax
mov qword [rcx], rbx
mov edx, 8
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x140010ce9
mov rax, qword [rsp + 0x20]
mov qword [rsi + 0x28], rax
mov eax, dword [0x14012ac00]
mov ecx, dword [0x140121718]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140010c80
mov rdx, rdi
shl rdx, 4
lea rcx, [0x140129200]
xor r8d, r8d
call fcn.140010cf0
mov qword [rsi + 0x30], rax
xorps xmm0, xmm0
movups xmmword [rsi + 0x38], xmm0
test rdi, rdi
je 0x140010cec
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400935c0
mov rax, rsi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x14012ac00]
call fcn.140091554
cmp dword [0x14012ac00], 0xffffffff
jne 0x140010c3e
mov al, 0xaa
lea rdx, [rsp + 0x20]
mov byte [rdx + 7], al
mov cx, 0xaaaa
mov word [rdx + 5], cx
mov word [rdx + 0x19], cx
mov dword [rdx + 0x1b], 0xaaaa00aa
mov byte [rdx + 0x1f], al
xor eax, eax
mov dword [rdx], eax
mov byte [rdx + 4], al
xorps xmm0, xmm0
movups xmmword [rdx + 8], xmm0
mov byte [rdx + 0x18], al
mov dword [rdx + 0x20], eax
lea rcx, [0x140129200]
call fcn.14001c090
lea rcx, [0x14012ac00]
call fcn.1400914e8
jmp 0x140010c3e
int3
int3
int3

Function at 0x140012f30
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov eax, dword [0x140121718]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
cmp byte [rax + 0x120], 0
je 0x140012fed
mov eax, dword [0x140121718]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
cmp qword [rax + 0x160], 1
je 0x140012fe9
mov ecx, dword [rsi + 0x1928]
test ecx, ecx
jne 0x140012fe9
mov ecx, 1
lock xadd dword [rsi + 0x1928], ecx
cmp ecx, 0x7fffffff
je 0x140012ff7
test rsi, rsi
je 0x140012ffa
lea rbx, [rax + 0x160]
call fcn.140084290
mov edx, 0x568
mov rcx, rax
xor r8d, r8d
call fcn.140010cf0
mov rdi, rax
mov rcx, rax
mov rdx, rsi
call fcn.140013000
mov ecx, dword [0x1401251e8]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov qword [rbx], rdi
lock dec dword [rsi + 0x1928]
mov rax, rdi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
xor edi, edi
jmp 0x140012fde
call fcn.140092878
jmp 0x140012f5a
int3
int3
Function at 0x1400165f0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rsi
sub rsp, 0x30
mov rax, qword [0x140113040]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rcx, [0x14012ac78]
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1400166e7
cmp byte [0x14012ac80], 0
je 0x140016685
lea rcx, [0x14012ac78]
mov rax, qword [0x14012ac88]
mov rdx, qword [0x14012ac90]
mov qword [0x14012ac88], rdx
mov rsi, rax
shl rsi, 0x17
xor rsi, rax
mov rax, rdx
shr rax, 0x1a
xor rax, rdx
xor rax, rsi
shr rsi, 0x11
xor rsi, rax
mov qword [0x14012ac90], rsi
add rsi, rdx
shr rsi, 0x20
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400935c0
mov eax, esi
add rsp, 0x30
pop rsi
ret
movabs rsi, 0xaaaaaaaaaaaaaaaa
xorps xmm0, xmm0
movups xmmword [0x14012ac88], xmm0
lea rcx, [rsp + 0x20]
mov qword [rcx], rsi
mov edx, 8
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x1400166f8
lea rcx, [rsp + 0x20]
mov rax, qword [rcx]
mov qword [0x14012ac88], rax
mov qword [rcx], rsi
mov edx, 8
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x1400166fb
mov rax, qword [rsp + 0x20]
mov qword [0x14012ac90], rax
mov byte [0x14012ac80], 1
jmp 0x140016622
lea rcx, [0x14012ac78]
call fcn.1400759b0
jmp 0x140016619
int3
int3