joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800a25ac
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.18007d0e8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1800a2636
cmp byte [rbp - 0x21], r15b
je 0x1800a2631
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1800a266c
call fcn.180090468
test eax, eax
jne 0x1800a2658
cmp byte [rbp - 0x21], r15b
je 0x1800a2650
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1800a266c
cmp byte [rbp - 0x21], r15b
je 0x1800a2669
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.18008646c
test eax, eax
jne 0x1800a270c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.18007d0e8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1800a26ab
cmp byte [rbp - 0x21], r15b
je 0x1800a26e0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1800a26e0
call fcn.180090468
test eax, eax
jne 0x1800a26cc
cmp byte [rbp - 0x21], r15b
je 0x1800a26c5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1800a26e0
cmp byte [rbp - 0x21], r15b
je 0x1800a26dd
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.18008646c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1800a270c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1800a270f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1800a271d
mov rcx, rdi
call fcn.180090164
cmp byte [rbp + 0x3f], r15b
je 0x1800a272c
mov rcx, qword [rbp + 0x27]
call fcn.180090164
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 0x1800a358c
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.1800935a0
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1800935a0
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1800a36dc
cmp rax, 0xffffffffffffffff
je 0x1800a36dc
xor edi, edi
test rbp, rbp
jle 0x1800a3687
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1800900ec
mov rbx, rax
test rax, rax
jne 0x1800a3614
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1800a367d
mov edx, 0x8000
mov ecx, r14d
call fcn.1800a3414
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.180094f0c
cmp eax, 0xffffffff
je 0x1800a365d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1800a3624
mov edx, r15d
mov ecx, r14d
call fcn.1800a3414
jmp 0x1800a367d
cmp byte [rsi + 0x38], dil
je 0x1800a3674
cmp dword [rsi + 0x34], 5
jne 0x1800a3674
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1800a367d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.180090164
jmp 0x1800a36f0
jns 0x1800a36f0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1800935a0
cmp rax, 0xffffffffffffffff
jne 0x1800a36a8
cmp byte [rsi + 0x30], dil
je 0x1800a36f0
mov edi, dword [rsi + 0x2c]
jmp 0x1800a36f0
mov ecx, r14d
call fcn.18009e240
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1800a36f0
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 0x1800a36f0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1800a36e9
mov eax, dword [rsi + 0x2c]
jmp 0x1800a36ee
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1800935a0
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 0x1800a3d10
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1800a3d38
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1800a3d38
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14000c43c
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x140014c60], rbx
je 0x14000c4a3
cmp rax, rbx
jne 0x14000c496
mov ebx, 1
mov esi, ebx
jmp 0x14000c4a8
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x14000c47b
mov ebx, 1
mov eax, dword [0x140014c68]
cmp eax, ebx
jne 0x14000c4c0
mov edi, 0x1f
mov ecx, edi
call sub.msvcrt.dll__amsg_exit
jmp 0x14000c52c
mov eax, dword [0x140014c68]
test eax, eax
jne 0x14000c521
mov dword [0x140014c68], ebx
lea r15, [0x14000eba0]
lea rdi, [0x14000eb88]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x14000c513
test eax, eax
jne 0x14000c517
cmp qword [rdi], r14
je 0x14000c508
mov rax, qword [rdi]
mov rcx, qword [0x14000eb40]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14000c4ea
test eax, eax
je 0x14000c527
mov eax, 0xff
jmp 0x14000c682
mov dword [0x1400143e4], ebx
mov edi, 0x1f
mov eax, dword [0x140014c68]
cmp eax, ebx
jne 0x14000c553
lea rdx, [0x14000eb80]
lea rcx, [0x14000eb48]
call sub.msvcrt.dll__initterm
mov dword [0x140014c68], 2
test esi, esi
jne 0x14000c561
mov rax, r14
xchg qword [0x140014c60], rax
cmp qword [0x140014c80], r14
je 0x14000c594
lea rcx, [0x140014c80]
call fcn.14000ca70
test eax, eax
je 0x14000c594
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140014c80]
mov r9, qword [0x14000eb40]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x14000c5ad
mov eax, 0xff
jmp 0x14000c682
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x14000c633
test ax, ax
je 0x14000c5c8
test edx, edx
jne 0x14000c633
sub ax, bx
cmp ax, di
ja 0x14000c5de
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x14000c5c8
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140001878
mov dword [0x1400143e0], eax
cmp dword [0x140014400], r14d
jne 0x14000c61c
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1400143e4], r14d
jne 0x14000c631
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1400143e0]
jmp 0x14000c682
cmp ax, 0x22
jne 0x14000c647
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x14000c5b6
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.140167000
add rsp, 0x28
jmp 0x14000c43c
Function at 0x180627058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1806271df
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 0x180627089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18062706f
add dl, dl
jne 0x180627096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1806270f6
xor eax, eax
add dl, dl
jne 0x1806270a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1806271ad
add dl, dl
jne 0x1806270b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1806270c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1806270d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1806270dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1806270ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x18062707e
mov eax, 1
add dl, dl
jne 0x180627106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180627113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1806270fb
sub eax, ebx
mov ebx, 1
jne 0x18062714c
mov ecx, 1
add dl, dl
jne 0x18062712e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18062713b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180627123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18062707e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x180627168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180627175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18062715d
cmp eax, 0x7d00
jae 0x18062719b
cmp eax, 0x500
jb 0x180627196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18062707e
cmp eax, 0x7f
ja 0x18062719e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18062707e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1806271d2
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 0x18062707e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001644
Capabilities:
Get token membership

Disassembly:
sub rsp, 0x88
mov r9d, 0x220
mov r8d, 0x20
mov edx, 2
lea rax, [rsp + 0x78]
mov dword [rsp + 0x72], 0
lea rcx, [rsp + 0x72]
mov word [rsp + 0x76], 0x500
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rsp + 0x6c], eax
test eax, eax
je 0x1400016e1
xor ecx, ecx
mov rdx, qword [rsp + 0x78]
lea r8, [rsp + 0x6c]
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x1400016d6
mov dword [rsp + 0x6c], 0
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rsp + 0x6c]
add rsp, 0x88
ret

Function at 0x1400016ed
Capabilities:
Create process on windows

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x68
mov qword [rsp + 0x58], rcx
mov ecx, 0x68
call fcn.140022970
mov ecx, 0x1a
mov rsi, rax
xor eax, eax
mov rdi, rsi
rep stosd dword [rdi], eax
mov ecx, 0x18
call fcn.140022970
mov ecx, 0x280
mov rbx, rax
call fcn.140022960
mov r8, qword [rsp + 0x58]
lea rdx, str.powershell.exe_Add_MpPreference__ExclusionPath__s
mov r12, rax
mov rcx, rax
call qword [sym.imp.USER32.dll_wsprintfW]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x40], rsi
mov rdx, r12
xor ecx, ecx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
or edx, 0xffffffff
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx]
call rsi
mov rcx, qword [rbx + 8]
call rsi
mov rcx, r12
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop r12
jmp fcn.140022930
Function at 0x14000254b
Capabilities:
Bypass uac via icmluautil

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x40
mov edi, r8d
mov r13, rcx
mov rsi, rdx
xor ecx, ecx
mov qword [rsp + 0x38], 0
mov edx, 2
call qword [sym.imp.ole32.dll_CoInitializeEx]
lea r9, [rsp + 0x38]
mov r8d, 4
lea rdx, [0x1400285c0]
lea rcx, str.3E5FC7F9_9A51_4367_9063_A120244FBEC7
mov ebx, eax
call fcn.140002150
mov r12d, eax
test eax, eax
je 0x1400025a4
mov r12d, 0xc0000022
jmp 0x1400025cd
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14000259c
mov rax, qword [rcx]
xor r9d, r9d
mov dword [rsp + 0x28], edi
mov r8, rsi
mov dword [rsp + 0x20], 0
mov rdx, r13
call qword [rax + 0x48]
test eax, eax
js 0x14000259c
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400025dd
mov rax, qword [rcx]
call qword [rax + 0x10]
test ebx, ebx
jne 0x1400025e7
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, r12d
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop r12
pop r13
ret
Function at 0x14000bea0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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.140012680
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.140012680
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x14000bf10
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x1400300b4]
mov r12, rcx
test ebx, ebx
jle 0x14000c040
mov rax, qword [0x1400300b8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x14000bf5c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x14000bfe3
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x14000bf40
mov rcx, r12
call fcn.14000c970
mov rsi, rax
test rax, rax
je 0x14000c062
mov rax, qword [0x1400300b8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.14000caa0
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1400300b8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000c047
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000bfdc
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000bff0
add dword [0x1400300b4], 1
add rsp, 0x50
pop rbx
pop rsi
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 rbx, qword [0x1400300b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000bfdc
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000bea0
nop dword [rax]
xor ebx, ebx
jmp 0x14000bf67
mov rax, qword [0x1400300b8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14000bea0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.14000bea0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000c5e0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140030120]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140030100]
test rbx, rbx
je 0x14000c634
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 0x14000c62b
test r12, r12
je 0x14000c62b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000c610
lea rcx, [0x140030120]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x14000c970
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140028420]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000c990
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000c998
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000c990
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x14000c9e5
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000c9dc
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000c990
add rax, 0x28
cmp rax, r9
jne 0x14000c9c8
xor eax, eax
ret

Function at 0x14000c9f0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140028420]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x14000ca10
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14000ca18
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000ca10
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x14000caa0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140028420]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x14000cac0
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x14000cac8
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x14000ccf0
Capabilities:
Allocate thread local storage

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov eax, dword [0x140030108]
mov edi, ecx
mov rsi, rdx
test eax, eax
jne 0x14000c670
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 0x14000c6c3
mov dword [rax], edi
lea rcx, [0x140030120]
mov qword [rax + 8], rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x140030100]
lea rcx, [0x140030120]
mov qword [0x140030100], 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 0x14000c666
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 0x14000cd20
mov rdx, r12
mov dword [rbx], eax
add rsp, 0x28
pop rbx
pop r12
jmp 0x140012ee0
add rsp, 0x28
pop rbx
pop r12
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
test rdx, rdx
jne 0x140012ef0
xor eax, eax
ret
jmp 0x14000c650

Function at 0x14000cd60
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 0x14000cda0
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14000cdb8
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x140056390
Capabilities:
Hash data with crc32

Disassembly:
push rbx
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10d, 0xffffffff
mov rbx, rcx
mov eax, r10d
test r9b, r9b
je 0x1400563e2
lea r11, [0x1400d52a0]
cmp r9b, 0x23
jne 0x1400563c5
cmp byte [r8], r9b
jne 0x1400563c5
cmp byte [r8 + 1], r9b
cmove eax, r10d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [r11 + rdx*4]
test r9b, r9b
jne 0x1400563b2
mov r11, qword [0x1406127b0]
mov r10, qword [r11 + 0x3078]
test r10, r10
je 0x140056429
lea r9, [r10 + 4]
test r9, r9
je 0x140056429
not eax
cmp dword [r9], eax
je 0x140056432
movsxd r8, dword [r9 - 4]
movsxd rdx, dword [r11 + 0x3070]
add r8, r9
add rdx, 4
xor r9d, r9d
add rdx, r10
cmp r8, rdx
cmovne r9, r8
test r9, r9
jne 0x140056400
mov rcx, rbx
pop rbx
jmp fcn.1400538b0
mov rax, r9
pop rbx
ret

Function at 0x1400569a0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x1400569fd
lea rbx, [0x1400d52a0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x1400569e4
cmp r10, 2
jb 0x1400569e4
cmp byte [r9], r8b
jne 0x1400569e4
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x1400569c0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x140056a3f
lea rbx, [0x1400d52a0]
cmp r8b, 0x23
jne 0x140056a23
cmp byte [r9], r8b
jne 0x140056a23
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x140056a10
mov rbx, qword [rsp + 8]
not eax
ret
Function at 0x140056a50
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov rax, qword [0x1406121a8]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rsi, rcx
xor r12d, r12d
mov dword [rbp - 0x2d], r12d
mov qword [rbp - 0x21], r12
mov qword [rbp + 7], r12
lea rax, str.Window
mov qword [rbp - 0x39], rax
mov r15d, 0xffffffff
mov edx, r15d
lea r8, [0x1400d57f1]
mov r9b, 0x57
lea r13, [0x1400d52a0]
nop dword [rax]
cmp r9b, 0x23
jne 0x140056ad3
cmp byte [r8], r9b
jne 0x140056ad3
cmp byte [r8 + 1], r9b
cmove edx, r15d
movzx ecx, dl
movzx eax, r9b
xor rcx, rax
shr edx, 8
xor edx, dword [r13 + rcx*4]
movzx r9d, byte [r8]
inc r8
test r9b, r9b
jne 0x140056ac0
not edx
mov dword [rbp - 0x31], edx
lea rax, [0x140057a60]
mov qword [rbp - 0x29], rax
lea rax, [0x140057c90]
mov qword [rbp - 0x19], rax
lea rax, [0x140057af0]
mov qword [rbp - 0x11], rax
lea rax, [0x140057970]
mov qword [rbp - 9], rax
lea rax, [0x140057cd0]
mov qword [rbp - 1], rax
lea rdx, [rbp - 0x39]
lea rcx, [rsi + 0x3060]
call fcn.140058340
mov rax, qword [0x1406127b0]
test rax, rax
je 0x140056b4f
inc dword [rax + 0x3b0]
mov rdx, qword [0x1406127c0]
mov ecx, 0x138
call qword [section..data]
mov qword [rbp - 0x41], rax
lea rcx, [rbp - 0x49]
mov qword [rbp + 0x17], rcx
mov qword [rbp + 0x1f], rax
test rax, rax
je 0x140056b80
mov rcx, rax
call fcn.140052650
jmp 0x140056b83
mov rax, r12
mov qword [rbp - 0x41], rax
mov dword [rax], 0x11111111
mov dword [rax + 0x68], r12d
mov byte [rax + 0x92], 1
lea rcx, [rsi + 0x1dc8]
lea rdx, [rbp - 0x41]
call fcn.140058260
mov rcx, qword [rsi + 0x1dd0]
mov rax, qword [rcx]
mov qword [rsi + 0x1628], rax
lea rbx, [rsi + 0x1630]
mov rdi, qword [rcx]
mov r8d, dword [rbx + 4]
mov ecx, dword [rbx]
cmp ecx, r8d
jne 0x140056bf6
inc ecx
test r8d, r8d
je 0x140056be2
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
add eax, r8d
jmp 0x140056be7
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
mov edx, ecx
mov rcx, rbx
call fcn.1400585a0
movsxd rcx, dword [rbx]
mov rax, qword [rbx + 8]
mov qword [rax + rcx*8], rdi
inc dword [rbx]
mov dword [rbp - 0x2d], r12d
mov qword [rbp + 7], r12
lea rax, str.Docking
mov qword [rbp - 0x39], rax
mov edx, r15d
lea r8, [0x1400d5961]
mov r9b, 0x44
cmp r9b, 0x23
jne 0x140056c36
cmp byte [r8], r9b
jne 0x140056c36
cmp byte [r8 + 1], r9b
cmove edx, r15d
movzx ecx, dl
movzx eax, r9b
xor rcx, rax
shr edx, 8
xor edx, dword [r13 + rcx*4]
movzx r9d, byte [r8]
inc r8
test r9b, r9b
jne 0x140056c23
not edx
mov dword [rbp - 0x31], edx
lea rax, [0x140055880]
mov qword [rbp - 0x29], rax
mov qword [rbp - 0x21], rax
lea rax, [0x140055fb0]
mov qword [rbp - 0x19], rax
lea rax, [0x140055b60]
mov qword [rbp - 0x11], rax
lea rax, [0x140055840]
mov qword [rbp - 9], rax
lea rax, [0x140055fe0]
mov qword [rbp - 1], rax
lea rdx, [rbp - 0x39]
lea rcx, [rsi + 0x3060]
call fcn.140058340
mov byte [rsi], 1
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1400cf180
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret