joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1402052d0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov eax, 1
test rcx, rcx
jne 0x140205454
mov rax, qword [0x1404a30d8]
cmp rax, 3
jne 0x14020545f
mov r14, rdx
cmp word [rdx], 0
mov eax, 2
mov edi, 0x17
cmove edi, eax
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
mov ecx, edi
mov edx, 2
xor r8d, r8d
xor r9d, r9d
call sub.ws2_32.dll_WSASocketW
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14020536a
cmp word [r14], 0
je 0x1402053db
movups xmm0, xmmword [r14 + 4]
mov eax, dword [r14 + 0x14]
mov edx, dword [r14 + 0x18]
movzx ecx, word [r14 + 0x1c]
mov r8d, 0x1c
mov r9w, 0x17
jmp 0x1402053f2
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x2739
je 0x140205383
mov ebx, eax
cmp eax, 0x2726
jne 0x140205444
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, edi
mov edx, 2
xor r8d, r8d
xor r9d, r9d
call sub.ws2_32.dll_WSASocketW
cmp rax, 0xffffffffffffffff
je 0x14020543d
mov rsi, rax
mov rcx, rax
mov edx, 1
xor r8d, r8d
call sub.KERNEL32.dll_SetHandleInformation
test eax, eax
jne 0x14020533d
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
mov rcx, rsi
call fcn.14021d7f4
jmp 0x140205444
mov eax, dword [r14 + 2]
movzx ecx, word [r14 + 6]
xorps xmm0, xmm0
mov r8d, 0x10
mov r9w, 2
rol cx, 8
mov word [rbp - 0x1c], r9w
mov word [rbp - 0x1a], cx
mov dword [rbp - 0x18], eax
movups xmmword [rbp - 0x14], xmm0
mov dword [rbp - 4], edx
lea rdx, [rbp - 0x1c]
mov rcx, rsi
call sub.ws2_32.dll_bind
cmp eax, 0xffffffff
je 0x140205421
xor eax, eax
mov rdx, rsi
jmp 0x140205454
call sub.ws2_32.dll_WSAGetLastError
mov edi, eax
shl rdi, 0x20
or rdi, 2
mov rcx, rsi
call fcn.14021d7f4
mov rdx, rdi
jmp 0x14020544f
call sub.ws2_32.dll_WSAGetLastError
mov ebx, eax
shl rbx, 0x20
or rbx, 2
mov rdx, rbx
mov eax, 1
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov rsi, rdx
call fcn.1402006f0
mov rdx, rsi
jmp 0x1402052fe
Function at 0x140205aa0
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
mov rax, rcx
add qword [rcx + 0x30], r8
mov r11, qword [rcx + 0x40]
test r11, r11
je 0x140205ae2
mov r10d, 8
sub r10, r11
cmp r8, r10
mov rdi, r10
cmovb rdi, r8
cmp rdi, 4
jb 0x140205aea
mov esi, dword [rdx]
mov r9d, 4
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jb 0x140205afb
jmp 0x140205b12
xor r10d, r10d
jmp 0x140205b9d
xor esi, esi
xor r9d, r9d
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jae 0x140205b12
movzx ebx, word [rdx + r9]
lea ecx, [r9*8]
shl rbx, cl
or rsi, rbx
or r9, 2
cmp r9, rdi
jae 0x140205b29
movzx edi, byte [rdx + r9]
shl r9d, 3
mov ecx, r9d
shl rdi, cl
or rsi, rdi
lea ecx, [r11*8]
shl rsi, cl
or rsi, qword [rax + 0x38]
mov qword [rax + 0x38], rsi
cmp r10, r8
jbe 0x140205b49
add r11, r8
jmp 0x140205c7b
mov r11, qword [rax + 0x18]
mov r9, qword [rax + 0x10]
mov rcx, qword [rax]
add rcx, r9
rol r9, 0xd
xor r11, rsi
xor r9, rcx
rol rcx, 0x20
mov rdi, qword [rax + 8]
add rdi, r11
rol r11, 0x10
xor r11, rdi
add rcx, r11
rol r11, 0x15
xor r11, rcx
add rdi, r9
rol r9, 0x11
mov qword [rax + 0x18], r11
xor r9, rdi
rol rdi, 0x20
mov qword [rax + 0x10], r9
mov qword [rax + 8], rdi
xor rcx, rsi
mov qword [rax], rcx
sub r8, r10
mov r11d, r8d
and r11d, 7
and r8, 0xfffffffffffffff8
cmp r10, r8
jae 0x140205c12
mov rcx, qword [rax]
mov r9, qword [rax + 8]
mov rdi, qword [rax + 0x18]
mov rsi, qword [rax + 0x10]
nop
add rcx, rsi
rol rsi, 0xd
mov rbx, qword [rdx + r10]
xor rsi, rcx
rol rcx, 0x20
xor rdi, rbx
add r9, rdi
rol rdi, 0x10
xor rdi, r9
add rcx, rdi
rol rdi, 0x15
add r9, rsi
rol rsi, 0x11
xor rsi, r9
rol r9, 0x20
xor rdi, rcx
xor rcx, rbx
add r10, 8
cmp r10, r8
jb 0x140205bc0
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], rsi
mov qword [rax + 8], r9
mov qword [rax], rcx
cmp r11d, 4
jb 0x140205c30
mov r9d, dword [rdx + r10]
mov r8d, 4
mov rcx, r8
or rcx, 1
cmp rcx, r11
jb 0x140205c42
jmp 0x140205c5d
xor r9d, r9d
xor r8d, r8d
mov rcx, r8
or rcx, 1
cmp rcx, r11
jae 0x140205c5d
lea rcx, [rdx + r8]
movzx esi, word [r10 + rcx]
lea ecx, [r8*8]
shl rsi, cl
or r9, rsi
or r8, 2
cmp r8, r11
jae 0x140205c77
add r10, r8
movzx edx, byte [rdx + r10]
shl r8d, 3
mov ecx, r8d
shl rdx, cl
or r9, rdx
mov qword [rax + 0x38], r9
mov qword [rax + 0x40], r11
pop rbx
pop rdi
pop rsi
ret
Function at 0x140206460
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
movaps xmmword [rsp + 0x30], xmm6
mov ecx, dword [0x140394158]
test ecx, ecx
je 0x14020648c
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x1402064a5
add rax, 8
jmp 0x140206540
lea rcx, [0x140394140]
call fcn.1401d8500
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x140206483
je 0x14020653e
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x20]
mov edx, 0x10
call sub.bcryptprimitives.dll_ProcessPrng
movaps xmm6, xmmword [rsp + 0x20]
movzx eax, byte [0x1404a3130]
mov edx, 0x18
xor ecx, ecx
call fcn.140201a50
test rax, rax
je 0x14020656d
mov rbx, rax
mov rsi, rax
lea rax, [0x140394140]
mov qword [rsi], rax
movups xmmword [rsi + 8], xmm6
mov ecx, dword [0x140394158]
test ecx, ecx
je 0x14020654d
dec ecx
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, dword [0x140394158]
test ecx, ecx
je 0x14020655d
dec ecx
add rbx, 8
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x140206539
mov rcx, qword [0x1404a30d0]
xor edx, edx
mov r8, rdi
call fcn.14021d5e4
mov rax, rbx
jmp 0x140206540
xor eax, eax
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x140394140]
call fcn.1401d8500
mov ecx, eax
jmp 0x140206503
lea rcx, [0x140394140]
call fcn.1401d8500
mov ecx, eax
jmp 0x140206517
mov ecx, 8
mov edx, 0x18
call fcn.140043da0
int3
Function at 0x140206580
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
jmp 0x140208d00
push rsi
push rdi
push rbx
sub rsp, 0x20
mov ecx, dword [0x1403941a8]
test ecx, ecx
je 0x140208d27
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x140208d40
add rax, 8
jmp 0x140208e10
lea rcx, [0x140394190]
call fcn.1401d8500
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x140208d1e
je 0x140208e0e
movzx eax, byte [0x1404a3130]
mov edx, 0x50
xor ecx, ecx
call fcn.140201a50
test rax, rax
je 0x140208e38
mov rbx, rax
mov rsi, rax
lea rax, [0x140394190]
mov qword [rsi], rax
movups xmm0, xmmword [0x1404405f8]
movups xmmword [rsi + 8], xmm0
movups xmm0, xmmword [0x140440608]
movups xmmword [rsi + 0x18], xmm0
movups xmm0, xmmword [0x140440618]
movups xmmword [rsi + 0x28], xmm0
movups xmm0, xmmword [0x140440628]
movups xmmword [rsi + 0x38], xmm0
movabs rax, 0x2000000000000
mov qword [rsi + 0x48], rax
mov ecx, dword [0x1403941a8]
test ecx, ecx
je 0x140208e18
dec ecx
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, dword [0x1403941a8]
test ecx, ecx
je 0x140208e28
dec ecx
add rbx, 8
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x140208e09
mov rax, qword [rdi + 0x28]
test rax, rax
je 0x140208df8
lock dec qword [rax]
jne 0x140208df8
mov rcx, rdi
add rcx, 0x28
call fcn.140205ec0
mov rcx, qword [0x1404a30d0]
xor edx, edx
mov r8, rdi
call fcn.14021d5e4
mov rax, rbx
jmp 0x140208e10
xor eax, eax
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x140394190]
call fcn.1401d8500
mov ecx, eax
jmp 0x140208db8
lea rcx, [0x140394190]
call fcn.1401d8500
mov ecx, eax
jmp 0x140208dcc
mov ecx, 8
mov edx, 0x50
call fcn.140043da0
int3
Function at 0x140206d00
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x140394180]
test ecx, ecx
je 0x140206df8
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x140206df1
je 0x140206def
movzx eax, byte [0x1404a3130]
mov edx, 0x20
xor ecx, ecx
call fcn.140201a50
test rax, rax
je 0x140206e44
mov rsi, rax
mov qword [rax], 1
mov qword [rax + 8], 1
mov qword [rax + 0x10], 0
mov dword [rax + 0x18], 0
mov word [rax + 0x1c], 0
movzx eax, byte [0x1404a3130]
mov edx, 0x10
xor ecx, ecx
call fcn.140201a50
test rax, rax
je 0x140206e53
mov qword [rax], rsi
lea rcx, [0x140394168]
mov rsi, rax
mov qword [rax + 8], rcx
mov ecx, dword [0x140394180]
test ecx, ecx
je 0x140206e17
dec ecx
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, dword [0x140394180]
test ecx, ecx
je 0x140206e27
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x140206dea
mov rax, qword [rdi]
lock dec qword [rax]
jne 0x140206dd9
mov rcx, qword [rdi]
call fcn.14014c3a0
mov rcx, qword [0x1404a30d0]
xor edx, edx
mov r8, rdi
call fcn.14021d5e4
mov rax, rsi
jmp 0x140206df1
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x140394168]
call fcn.1401d8500
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x140206d25
jmp 0x140206df1
lea rcx, [0x140394168]
call fcn.1401d8500
mov ecx, eax
jmp 0x140206da7
lea rcx, [0x140394168]
call fcn.1401d8500
mov ecx, eax
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
jne 0x140206dc8
jmp 0x140206dea
mov ecx, 8
mov edx, 0x20
call fcn.140043da0
mov ecx, 8
mov edx, 0x10
call fcn.140043da0
int3
Function at 0x140208d00
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
jmp 0x140208d00
push rsi
push rdi
push rbx
sub rsp, 0x20
mov ecx, dword [0x1403941a8]
test ecx, ecx
je 0x140208d27
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x140208d40
add rax, 8
jmp 0x140208e10
lea rcx, [0x140394190]
call fcn.1401d8500
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x140208d1e
je 0x140208e0e
movzx eax, byte [0x1404a3130]
mov edx, 0x50
xor ecx, ecx
call fcn.140201a50
test rax, rax
je 0x140208e38
mov rbx, rax
mov rsi, rax
lea rax, [0x140394190]
mov qword [rsi], rax
movups xmm0, xmmword [0x1404405f8]
movups xmmword [rsi + 8], xmm0
movups xmm0, xmmword [0x140440608]
movups xmmword [rsi + 0x18], xmm0
movups xmm0, xmmword [0x140440618]
movups xmmword [rsi + 0x28], xmm0
movups xmm0, xmmword [0x140440628]
movups xmmword [rsi + 0x38], xmm0
movabs rax, 0x2000000000000
mov qword [rsi + 0x48], rax
mov ecx, dword [0x1403941a8]
test ecx, ecx
je 0x140208e18
dec ecx
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, dword [0x1403941a8]
test ecx, ecx
je 0x140208e28
dec ecx
add rbx, 8
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x140208e09
mov rax, qword [rdi + 0x28]
test rax, rax
je 0x140208df8
lock dec qword [rax]
jne 0x140208df8
mov rcx, rdi
add rcx, 0x28
call fcn.140205ec0
mov rcx, qword [0x1404a30d0]
xor edx, edx
mov r8, rdi
call fcn.14021d5e4
mov rax, rbx
jmp 0x140208e10
xor eax, eax
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x140394190]
call fcn.1401d8500
mov ecx, eax
jmp 0x140208db8
lea rcx, [0x140394190]
call fcn.1401d8500
mov ecx, eax
jmp 0x140208dcc
mov ecx, 8
mov edx, 0x50
call fcn.140043da0
int3
Function at 0x14020db40
Capabilities:
Send data
Send data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov qword [rsp + 0x30], r8
mov rsi, rdx
mov rbx, qword [rcx + 0x10]
cmp rbx, 0xffffffffffffffff
je 0x14020dcdf
mov r14, qword [rcx + 8]
mov r12, qword [rcx + 0x18]
cmp r9, 0x7fffffff
mov r15d, 0x7fffffff
cmovb r15, r9
jmp 0x14020dbb5
mov rcx, qword [0x1404a30d0]
xor edx, edx
mov r8, rbp
call fcn.14021d5e4
dec r13
mov rcx, qword [0x1404a30d0]
xor edx, edx
mov r8, r13
call fcn.14021d5e4
lea rcx, [rsp + 0x20]
mov rdx, r14
mov r8, rsi
mov r9b, 1
call fcn.1402097e0
movzx eax, byte [rsp + 0x29]
cmp al, 3
je 0x14020dcfc
mov rbp, qword [rsp + 0x20]
cmp al, 2
je 0x14020dd16
movzx edi, byte [rsp + 0x28]
mov rcx, rbx
mov rdx, qword [rsp + 0x30]
mov r8d, r15d
xor r9d, r9d
call sub.ws2_32.dll_send
cmp eax, 0xffffffff
jne 0x14020dd20
call sub.ws2_32.dll_WSAGetLastError
mov r13d, eax
shl r13, 0x20
or r13, 2
mov rcx, r13
call fcn.1400b5570
cmp al, 0xd
jne 0x14020dc57
test r12, r12
je 0x14020dc57
mov rcx, qword [r12]
mov rax, qword [r12 + 8]
lock inc qword [rax]
jle 0x14020dd39
add rcx, 0x10
mov rdx, qword [r12 + 8]
mov r8, qword [r12 + 0x10]
movzx r9d, byte [r12 + 0x18]
call fcn.1400b42c0
test rax, rax
cmovne r13, rax
mov rcx, r13
call fcn.140050690
cmp al, 0xd
jne 0x14020dd0f
and ebp, 0x23
mov rax, qword [r14 + 0x90]
xor rbp, 0x2f
mov ecx, edi
shl ecx, 0x10
nop word [rax + rax]
mov edx, eax
shr edx, 0x10
cmp dil, dl
jne 0x14020dc9c
mov edx, ebp
and edx, eax
or rdx, rcx
lock cmpxchg qword [r14 + 0x90], rdx
jne 0x14020dc80
mov eax, r13d
and eax, 3
cmp eax, 1
jne 0x14020dbb5
mov rbp, qword [r13 - 1]
mov rdi, qword [r13 + 7]
mov rax, qword [rdi]
test rax, rax
je 0x14020dcc0
mov rcx, rbp
call rax
cmp qword [rdi + 8], 0
je 0x14020dba1
cmp qword [rdi + 0x10], 0x11
jb 0x14020db90
mov rbp, qword [rbp - 8]
jmp 0x14020db90
mov rdx, qword [rcx + 8]
lea rcx, [rsp + 0x20]
mov r8, rsi
mov r9b, 1
call fcn.1402097e0
movzx eax, byte [rsp + 0x29]
cmp al, 3
jne 0x14020dd06
mov eax, 2
mov r13, rbp
jmp 0x14020dd25
cmp al, 2
jne 0x14020dd3b
mov r13, qword [rsp + 0x20]
mov eax, 1
jmp 0x14020dd25
mov eax, 1
mov r13, rbp
jmp 0x14020dd25
movsxd r13, eax
xor eax, eax
mov rdx, r13
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2
lea rcx, str.C:Users_asdasd.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_1.38.0_srciopoll_evented.rs
call fcn.140049ef0
int3
Function at 0x14021e4c0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
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.14021f280
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.14021f280
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 0x14021e530
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1404a31b4]
test esi, esi
mov rbx, rcx
jle 0x14021e660
mov rax, qword [0x1404a31b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14021e57b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14021e605
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14021e560
mov rcx, rbx
call fcn.14021efa0
test rax, rax
mov rdi, rax
je 0x14021e682
mov rax, qword [0x1404a31b8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14021f0e0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1404a31b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14021e667
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14021e5fe
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14021e610
add dword [0x1404a31b4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x1404a31b8]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14021e5fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14021e4c0
nop dword [rax]
xor esi, esi
jmp 0x14021e588
mov rax, qword [0x1404a31b8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.14021e4c0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.14021e4c0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14021ebf0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1404a3220]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1404a3200]
test rbx, rbx
je 0x14021ec4c
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 eax, eax
jne 0x14021ec43
test rsi, rsi
je 0x14021ec43
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14021ec28
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 0x14021ee60
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [str.HJ_]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14021ee98
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x14021eea0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x14021ee70
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [str.HJ_]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14021ee98
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x14021eea0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x14021ee80
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [str.HJ_]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14021ee98
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x14021eea0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x14021efa0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140476390]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14021efc0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14021efc8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14021efc0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14021f01d
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]
cmp rcx, r8
mov rdx, r8
jb 0x14021f014
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14021efc0
add rax, 0x28
cmp rax, r9
jne 0x14021f000
xor eax, eax
ret

Function at 0x14021f020
Capabilities:
Parse pe header

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

Function at 0x14021f0e0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140476390]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14021f0ff
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14021f108
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x14022e4e0
Capabilities:
Encode data using xor

Disassembly:
push rbx
mov r9d, dword [rcx + 0x60]
mov ebx, dword [rcx + 0x5c]
test r9d, r9d
mov r8, rcx
jle 0x14022e5a8
mov r10, qword [0x140476310]
movzx r11d, bl
mov edx, dword [rcx + 0x288]
xor ecx, ecx
nop word [rax + rax]
mov eax, edx
add ecx, 1
shl edx, 8
shr eax, 0x18
xor eax, r11d
xor edx, dword [r10 + rax*4]
cmp ecx, r9d
jne 0x14022e510
mov eax, ebx
mov dword [r8 + 0x288], edx
mov byte [r8 + rax + 0x80], 1
movsxd rax, dword [r8 + 0x6c]
add rax, qword [r8 + 0x40]
cmp ecx, 2
je 0x14022e5a0
cmp ecx, 3
je 0x14022e560
cmp ecx, 1
jne 0x14022e5b2
mov byte [rax], bl
mov eax, dword [r8 + 0x6c]
add eax, 1
mov dword [r8 + 0x6c], eax
pop rbx
ret
mov byte [rax], bl
mov eax, dword [r8 + 0x6c]
mov rdx, qword [r8 + 0x40]
add eax, 1
mov dword [r8 + 0x6c], eax
cdqe
mov byte [rdx + rax], bl
mov eax, dword [r8 + 0x6c]
mov rdx, qword [r8 + 0x40]
add eax, 1
mov dword [r8 + 0x6c], eax
cdqe
mov byte [rdx + rax], bl
mov eax, dword [r8 + 0x6c]
add eax, 1
mov dword [r8 + 0x6c], eax
pop rbx
ret
mov byte [rax], bl
jmp 0x14022e576
mov eax, ebx
mov byte [rcx + rax + 0x80], 1
sub r9d, 4
movsxd r9, r9d
mov byte [r8 + r9 + 0x80], 1
movsxd rax, dword [r8 + 0x6c]
mov rdx, qword [r8 + 0x40]
mov byte [rdx + rax], bl
mov eax, dword [r8 + 0x6c]
mov rdx, qword [r8 + 0x40]
add eax, 1
mov dword [r8 + 0x6c], eax
cdqe
mov byte [rdx + rax], bl
mov eax, dword [r8 + 0x6c]
mov rdx, qword [r8 + 0x40]
add eax, 1
mov dword [r8 + 0x6c], eax
cdqe
mov byte [rdx + rax], bl
mov eax, dword [r8 + 0x6c]
mov rdx, qword [r8 + 0x40]
add eax, 1
mov dword [r8 + 0x6c], eax
cdqe
mov byte [rdx + rax], bl
mov eax, dword [r8 + 0x6c]
mov edx, dword [r8 + 0x60]
mov rcx, qword [r8 + 0x40]
add eax, 1
mov dword [r8 + 0x6c], eax
sub edx, 4
cdqe
mov byte [rcx + rax], dl
mov eax, dword [r8 + 0x6c]
add eax, 1
mov dword [r8 + 0x6c], eax
pop rbx
ret
Function at 0x1402328e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
lea rbp, [0x140479f20]
mov r13, qword [rcx + 0xa0]
mov rdi, qword [rcx + 0x10]
mov r12, qword [rcx]
test r13, r13
mov rsi, rcx
jne 0x1402329fb
jmp 0x140232a50
sub eax, 1
mov byte [rsi + 0x1f], al
movzx eax, al
mov r14d, dword [rsi + rax*4 + 0xe4]
movsxd rax, dword [rdi + 0x90]
lea edx, [rbx + 2]
cmp eax, dword [rdi + 0x94]
lea r9d, [rax + 7]
jge 0x140232a30
lea ecx, [rax + 1]
mov dword [rdi + 0x90], ecx
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 0x88]
lea rax, [rax + rcx*8]
mov dword [rax + 4], edx
mov dword [rax + 8], r9d
mov dword [rax + 0xc], ebx
mov qword [rax + 0x10], 0
mov dword [rax], 0x37
mov rax, qword [r15 + 0x18]
xor edx, edx
mov rcx, rsi
mov r9, qword [rax + 0x68]
mov dword [rsp + 0x20], 0x71
call fcn.140313690
mov rdx, rbp
mov rcx, rdi
call fcn.140330f90
test rax, rax
je 0x140232a50
lea edx, [rbx + 1]
movd xmm0, r14d
sub ebx, 1
mov dword [rax + 0x3c], r14d
movd xmm1, edx
mov dword [rax + 4], edx
test r14d, r14d
mov dword [rax + 0x20], edx
mov edx, 8
punpckldq xmm0, xmm1
mov dword [rax + 0x34], ebx
movq qword [rax + 0x50], xmm0
mov word [rax + 0x4a], dx
je 0x1402329f2
movzx eax, byte [rsi + 0x1f]
cmp al, 7
ja 0x1402329f2
lea edx, [rax + 1]
mov byte [rsi + 0x1f], dl
mov dword [rsi + rax*4 + 0xe4], r14d
mov r13, qword [r13]
test r13, r13
je 0x140232a50
movsxd r15, dword [r13 + 0x10]
movzx eax, byte [rsi + 0x1f]
mov ebx, dword [r13 + 0x14]
mov r8, r15
shl r15, 5
add r15, qword [r12 + 0x20]
test al, al
jne 0x140232920
mov eax, dword [rsi + 0x38]
lea r14d, [rax + 1]
mov dword [rsi + 0x38], r14d
jmp 0x140232931
mov r8d, edx
mov dword [rsp + 0x20], ebx
mov edx, 0x37
mov rcx, rdi
call fcn.140297360
mov r8d, dword [r13 + 0x10]
jmp 0x14023297b
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret