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

Disassembly:
cmp rcx, qword [0x140023410]
jne 0x140009e5a
rol rcx, 0x10
test cx, 0xffff
jne 0x140009e56
repz ret
ror rcx, 0x10
jmp 0x14000eac8
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140025110]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x140025208]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14000eb4d
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140025110]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x14000eb6f
mov rax, qword [rsp + 0x88]
mov qword [0x140025208], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1400251a8], rax
mov rax, qword [0x140025208]
mov qword [0x140025080], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140025190], rax
mov dword [0x140025070], 0xc0000409
mov dword [0x140025074], 1
mov rax, qword [0x140023410]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140023418]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140025108], eax
mov ecx, 1
call fcn.14001642c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14001b1b0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140025108], 0
jne 0x14000ebf6
mov ecx, 1
call fcn.14001642c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret

Function at 0x1400101fc
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.14001006c
Function at 0x1400177b0
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x140023410]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.14000f7d8
xor ebx, ebx
cmp qword [0x1400261c0], rbx
mov rdi, rax
jne 0x1400178c3
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x14001799a
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001799a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x1400261c0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x1400261c8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x1400261d0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x1400261e0], rax
test rax, rax
je 0x1400178ba
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x1400261d8], rax
jmp 0x1400178ca
mov rax, qword [0x1400261d8]
jmp 0x1400178d1
mov rax, qword [0x1400261d8]
mov r11, qword [0x1400261e0]
cmp rax, rdi
je 0x140017938
cmp r11, rdi
je 0x140017938
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x1400261e0]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x140017938
test rax, rax
je 0x140017938
call rsi
test rax, rax
je 0x140017932
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x140017932
test byte [rsp + 0x40], 1
jne 0x140017938
bts ebp, 0x15
jmp 0x140017978
mov rcx, qword [0x1400261c8]
cmp rcx, rdi
je 0x140017978
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140017978
call rax
mov rbx, rax
test rax, rax
je 0x140017978
mov rcx, qword [0x1400261d0]
cmp rcx, rdi
je 0x140017978
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140017978
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1400261c0]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14001799a
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x14001799c
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140009e40
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180004650
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x38
xor eax, eax
mov r8d, eax
add r8, 0x18
movsxd r9, r8d
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x18], 0
mov qword [rsp + 0x10], 0
mov qword [rsp + 8], 0
mov rcx, qword [rsp + 0x20]
mov qword [rsp + 0x18], rcx
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x18]
movsxd rdx, dword [rdx + 0x3c]
add rcx, rdx
mov qword [rsp + 0x10], rcx
mov rcx, qword [rsp + 0x10]
add rcx, r9
mov rdx, qword [rsp + 0x10]
movzx eax, word [rdx + 0x14]
mov edx, eax
add rcx, rdx
mov qword [rsp + 8], rcx
mov rcx, qword [rsp + 0x10]
mov r10w, word [rcx + 6]
mov word [rsp + 4], r10w
mov word [rsp + 6], 0
movzx eax, word [rsp + 6]
movzx ecx, word [rsp + 4]
cmp eax, ecx
jge 0x18000479f
mov rax, qword [rsp + 8]
movzx ecx, word [rsp + 6]
mov edx, ecx
imul rdx, rdx, 0x28
add rax, rdx
mov ecx, dword [rax + 0x24]
and ecx, 0x20
cmp ecx, 0
jne 0x180004739
mov rax, qword [rsp + 8]
movzx ecx, word [rsp + 6]
mov edx, ecx
imul rdx, rdx, 0x28
add rax, rdx
mov ecx, dword [rax + 0x24]
and ecx, 0x20000000
cmp ecx, 0
je 0x180004787
mov rax, qword [rsp + 8]
movzx ecx, word [rsp + 6]
mov edx, ecx
imul rdx, rdx, 0x28
add rax, rdx
mov ecx, dword [rax + 0x10]
mov rax, qword [rsp + 0x28]
mov dword [rax], ecx
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 8]
movzx ecx, word [rsp + 6]
mov r8d, ecx
imul r8, r8, 0x28
add rdx, r8
mov ecx, dword [rdx + 0xc]
mov edx, ecx
add rax, rdx
mov qword [rsp + 0x30], rax
jmp 0x1800047ad
jmp 0x18000478c
mov ax, word [rsp + 6]
add ax, 1
mov word [rsp + 6], ax
jmp 0x1800046da
mov qword [rsp + 0x30], 0
jmp 0x1800047ad
mov rax, qword [rsp + 0x30]
add rsp, 0x38
ret

Function at 0x1800056e0
Capabilities:
Get file size

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x2c], 0
cmp qword [0x180070da0], 0
je 0x180005715
mov dword [rsp + 0x2c], 1
jmp 0x1800057a4
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp eax, 0
jne 0x180005733
jmp 0x1800057a4
cmp dword [rsp + 0x30], 0
jne 0x180005743
jmp 0x1800057a4
mov eax, dword [rsp + 0x30]
add eax, 1
mov eax, eax
mov ecx, eax
mov edx, 1
call fcn.180003ef0
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x18000576e
jmp 0x1800057a4
mov r8d, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call fcn.180004410
cmp eax, 0
jne 0x180005790
jmp 0x1800057a4
mov eax, dword [rsp + 0x30]
mov edx, eax
mov rcx, qword [rsp + 0x38]
call fcn.180004e30
mov dword [rsp + 0x2c], eax
cmp qword [rsp + 0x38], 0
je 0x1800057ba
mov rcx, qword [rsp + 0x38]
call fcn.180003f30
mov eax, dword [rsp + 0x2c]
add rsp, 0x48
ret
Function at 0x180006d10
Capabilities:
Reference http user-agent string

Disassembly:
sub rsp, 0x888
lea rax, [rsp + 0x50]
mov qword [rsp + 0x860], rcx
mov qword [rsp + 0x858], 0
mov dword [rsp + 0x854], 0
mov dword [rsp + 0x850], 0
mov rcx, rax
mov qword [rsp + 0x880], 0x800
mov qword [rsp + 0x878], rcx
mov rcx, qword [rsp + 0x878]
mov qword [rsp + 0x870], rcx
mov rcx, qword [rsp + 0x870]
mov r8, qword [rsp + 0x880]
xor edx, edx
mov qword [rsp + 0x48], rax
call fcn.18002d7c0
mov rcx, qword [0x18006cd30]
mov r8, rsp
mov qword [r8 + 0x28], rcx
lea rcx, str._ex_tag_id835783uid1940640969823371305sub_id1sub_id2request_id147698613891999437sv1.3
mov qword [r8 + 0x20], rcx
lea r8, str._s_sev_s
lea r9, str.http:__villandopingcon.site
mov edx, 0x800
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x40], rax
call fcn.18002c7e4
lea rcx, [rsp + 0x50]
mov r8, qword [rsp + 0x860]
lea rdx, str.Mozilla_5.0__Windows_NT_10.0__Win64__x64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_83.0.4103.116_Safari_537.36
lea r9, [rsp + 0x850]
mov dword [rsp + 0x3c], eax
call fcn.1800066a0
mov qword [rsp + 0x858], rax
cmp qword [rsp + 0x858], 0
je 0x180006e15
mov rax, qword [rsp + 0x858]
mov qword [rsp + 0x868], rax
jmp 0x180006e4d
cmp dword [rsp + 0x850], 0xcc
jne 0x180006e37
mov qword [rsp + 0x868], 0
jmp 0x180006e4d
jmp 0x180006e3c
mov qword [rsp + 0x868], 0
jmp 0x180006e4d
mov rax, qword [rsp + 0x868]
add rsp, 0x888
ret
Function at 0x18002bf64
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
lea r9d, [r8 - 0x21524111]
mov r10, rdx
add r9d, edx
mov rbx, rcx
mov r11d, r9d
mov edi, r9d
cmp rdx, 0xc
jbe 0x18002c07e
lea r8, [rdx - 0xd]
movabs rax, 0xaaaaaaaaaaaaaaab
mul r8
mov rsi, rdx
shr rsi, 3
inc rsi
imul rax, rsi, 0xfffffffffffffff4
add r10, rax
movzx eax, byte [rbx + 6]
movzx ecx, byte [rbx + 7]
movzx r8d, byte [rbx + 4]
movzx edx, byte [rbx + 8]
add r8d, r11d
shl ecx, 8
add edx, r9d
add ecx, eax
movzx eax, byte [rbx + 5]
shl ecx, 8
add ecx, eax
movzx eax, byte [rbx + 0xa]
shl ecx, 8
add r8d, ecx
movzx ecx, byte [rbx + 0xb]
shl ecx, 8
add ecx, eax
movzx eax, byte [rbx + 9]
shl ecx, 8
add ecx, eax
movzx eax, byte [rbx + 2]
shl ecx, 8
add edx, ecx
movzx ecx, byte [rbx + 3]
shl ecx, 8
mov r9d, edx
add ecx, eax
rol r9d, 4
movzx eax, byte [rbx + 1]
shl ecx, 8
add ecx, eax
movzx eax, byte [rbx]
shl ecx, 8
add rbx, 0xc
add ecx, eax
sub ecx, edx
add edx, r8d
add ecx, edi
xor r9d, ecx
sub r8d, r9d
mov eax, r9d
add r9d, edx
rol eax, 6
xor eax, r8d
sub edx, eax
mov ecx, eax
add eax, r9d
rol ecx, 8
xor ecx, edx
sub r9d, ecx
mov edi, ecx
add ecx, eax
rol edi, 0x10
xor edi, r9d
sub eax, edi
mov r11d, edi
ror r11d, 0xd
add edi, ecx
xor r11d, eax
sub ecx, r11d
mov r9d, r11d
rol r9d, 4
add r11d, edi
xor r9d, ecx
sub rsi, 1
jne 0x18002bfb5
cmp r10, 6
ja 0x18002c0c2
je 0x18002c11f
test r10, r10
je 0x18002c1a4
sub r10, 1
je 0x18002c14b
sub r10, 1
je 0x18002c142
sub r10, 1
je 0x18002c139
sub r10, 1
je 0x18002c130
cmp r10, 1
je 0x18002c129
jmp 0x18002c150
sub r10, 7
je 0x18002c115
sub r10, 1
je 0x18002c10b
sub r10, 1
je 0x18002c104
sub r10, 1
je 0x18002c0fa
sub r10, 1
je 0x18002c0f0
cmp r10, 1
jne 0x18002c150
movzx eax, byte [rbx + 0xb]
shl eax, 0x18
add r9d, eax
movzx eax, byte [rbx + 0xa]
shl eax, 0x10
add r9d, eax
movzx eax, byte [rbx + 9]
shl eax, 8
add r9d, eax
movzx eax, byte [rbx + 8]
add r9d, eax
movzx eax, byte [rbx + 7]
shl eax, 0x18
add r11d, eax
movzx eax, byte [rbx + 6]
shl eax, 0x10
add r11d, eax
movzx eax, byte [rbx + 5]
shl eax, 8
add r11d, eax
movzx eax, byte [rbx + 4]
add r11d, eax
movzx eax, byte [rbx + 3]
shl eax, 0x18
add edi, eax
movzx eax, byte [rbx + 2]
shl eax, 0x10
add edi, eax
movzx eax, byte [rbx + 1]
shl eax, 8
add edi, eax
movzx eax, byte [rbx]
add edi, eax
xor r9d, r11d
mov eax, r11d
rol eax, 0xe
sub r9d, eax
mov eax, r9d
mov edx, r9d
rol eax, 0xb
xor edx, edi
sub edx, eax
xor r11d, edx
mov eax, edx
ror eax, 7
sub r11d, eax
xor r9d, r11d
mov eax, r11d
rol eax, 0x10
sub r9d, eax
mov eax, r9d
mov ecx, r9d
rol eax, 4
xor ecx, edx
sub ecx, eax
xor r11d, ecx
mov eax, ecx
rol eax, 0xe
sub r11d, eax
mov eax, r11d
xor r9d, r11d
ror eax, 8
sub r9d, eax
mov rbx, qword [rsp + 8]
mov eax, r9d
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
Function at 0x140003d00
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x13d0
call fcn.140010fa0
sub rsp, rax
mov rax, qword [0x14371e080]
xor rax, rsp
mov qword [rsp + 0x13c0], rax
mov r15, r8
movsxd rsi, edx
mov rdi, rcx
mov qword [rsp + 0x28], rcx
xor ebx, ebx
mov dword [rsp + 0x20], ebx
call fcn.14000fea8
mov r9d, eax
mov dword [rsp + 0x13b4], 0xffffffff
mov dword [rsp + 0x34], eax
mov ecx, 1
nop word [rax + rax]
mov eax, r9d
shr eax, 0x1e
xor eax, r9d
imul r9d, eax, 0x6c078965
add r9d, ecx
mov dword [rsp + rcx*4 + 0x34], r9d
inc rcx
cmp rcx, 0x270
jb 0x140003d70
mov dword [rsp + 0x30], 0x270
mov r14d, dword [r15 + 0x10]
dec r14d
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], 0xf
mov byte [rdi], bl
mov dword [rsp + 0x20], 1
mov r12, rsi
test esi, esi
je 0x140003e9c
mov r13d, 0x80000000
xor r14d, r13d
nop dword [rax]
nop word [rax + rax]
lea rcx, [rsp + 0x30]
cmp r14d, 0x7fffffff
jne 0x140003df7
call fcn.14000c470
mov ecx, eax
jmp 0x140003e3c
lea esi, [r14 - 0x7fffffff]
call fcn.14000c470
mov ebp, esi
mov ecx, eax
imul rcx, rbp
cmp ecx, esi
jae 0x140003e38
mov eax, esi
neg eax
xor edx, edx
div esi
mov esi, edx
cmp ecx, edx
jae 0x140003e38
nop dword [rax]
lea rcx, [rsp + 0x30]
call fcn.14000c470
mov ecx, eax
imul rcx, rbp
cmp ecx, esi
jb 0x140003e20
mov rbx, qword [rdi + 0x10]
shr rcx, 0x20
lea eax, [rcx + r13]
xor eax, r13d
mov rcx, r15
cmp qword [r15 + 0x18], 0xf
jbe 0x140003e50
mov rcx, qword [r15]
cdqe
movzx r9d, byte [rax + rcx]
mov rcx, qword [rdi + 0x18]
cmp rbx, rcx
jae 0x140003e7f
lea rax, [rbx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rcx, 0xf
jbe 0x140003e74
mov rax, qword [rdi]
mov byte [rax + rbx], r9b
mov byte [rax + rbx + 1], 0
jmp 0x140003e8f
xor r8d, r8d
mov edx, 1
mov rcx, rdi
call fcn.14000ae00
mov rbx, qword [rdi + 0x10]
cmp r12, rbx
ja 0x140003de0
mov rax, rdi
mov rcx, qword [rsp + 0x13c0]
xor rcx, rsp
call fcn.1400106b0
lea r11, [rsp + 0x13d0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140024984
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140010fa0
sub rsp, rax
mov rax, qword [0x14371e080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001f960
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400249d3
mov rax, rbp
jmp 0x140024adb
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x3720390]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400263a4
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x3720390]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140024ad7
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140024ad7
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400263a4
test rax, rax
js 0x140024ad7
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140024ad7
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140024ac9
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140024ac9
cmp byte [rcx], 0xd
jne 0x140024aaf
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140024abe
cmp byte [rcx + 1], 0xa
jne 0x140024abe
inc rcx
jmp 0x140024abe
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x371e4c0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140024a91
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140024adb
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400106b0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140025744
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x143720390]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14002579b
cmp word [rdx], r13w
jne 0x14002579b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400257a0
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400258c5
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400258e6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400257d9
mov rdx, r9
mov word [rbx], cx
jmp 0x140025800
cmp r9, r8
jae 0x140025810
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1400257ba
jmp 0x1400258c5
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400258ba
cmp dword [rsp + 0x80], esi
je 0x1400258ba
lea r8, [0x143720390]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140025892
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140025862
mov word [rbx], r13w
jmp 0x1400258c2
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14002586f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400258c2
cmp word [rsp + 0x70], r13w
jne 0x14002589f
cmp rbx, r14
je 0x14002585c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400263ac
cmp word [rsp + 0x70], r13w
je 0x1400258c5
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x143720390]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400258bf
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400258c5
Function at 0x14000b2d0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140015b70
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140015b70
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x14000b340
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1401060a4]
mov rbx, rcx
test esi, esi
jle 0x14000b470
mov rax, qword [0x1401060a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000b38b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000b415
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000b370
mov rcx, rbx
call fcn.14000bdb0
mov rdi, rax
test rax, rax
je 0x14000b492
mov rax, qword [0x1401060a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14000bef0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1401060a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000b477
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14000b40e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x14000b420
add dword [0x1401060a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1401060a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000b40e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000b2d0
nop dword [rax]
xor esi, esi
jmp 0x14000b398
mov rax, qword [0x1401060a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14000b2d0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.14000b2d0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000ba20
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140106100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1401060e0]
test rbx, rbx
je 0x14000ba7c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x14000ba73
test eax, eax
jne 0x14000ba73
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000ba58
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x14000bdb0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400dcd10]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000bdd0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000bdd8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000bdd0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000be2d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000be24
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000bdd0
add rax, 0x28
cmp rax, r9
jne 0x14000be10
xor eax, eax
ret

Function at 0x14000be30
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400dcd10]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000be4f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14000be58
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000be4f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x14000bef0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400dcd10]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000bf0f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14000bf18
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret