joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18001d704
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 0x18001d734
xor eax, eax
jmp 0x18001d7f7
mov rbp, rbx
cmp word [rax], si
je 0x18001d759
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18001d740
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18001d73c
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.18001d654
movsxd r14, eax
test eax, eax
jne 0x18001d797
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18001d72d
mov rcx, r14
call fcn.18001a64c
mov rdi, rax
test rax, rax
jne 0x18001d7b0
xor ecx, ecx
call fcn.180018f18
jmp 0x18001d78c
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.18001d654
test eax, eax
jne 0x18001d7e1
mov rcx, rdi
call fcn.180018f18
jmp 0x18001d7eb
xor ecx, ecx
call fcn.180018f18
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 0x140005104
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140012e60], eax
call fcn.1400056f0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140012e60], 0
jne case.default.0x14000515a
mov ecx, 1
call fcn.1400056f0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
loope 0x14001acfe
invalid
call 0x14dd87db9
mov edi, dword [rax + 0x37]
xchg edi, eax
fadd qword [rdi - 0x6f75cc43]
scasb al, byte [rdi]
xor dh, byte [rbx]
push rcx
xchg ecx, eax
mov ch, 0xff
mov bh, 0x97
mov al, byte [rcx - 0xcd2b30]
jp 0x14001ad43
invalid
nop
xchg edi, eax
ror byte [rbx], cl
sti
call 0x1bb6d408f
fnstcw word [rdx + 0x67]
jno 0x14001ad68
sahf
insd dword [rdi], dx
rol byte [rdx], 1
in al, 0x31
mov ah, 0x94
jp 0x14001acdc
and dword [rbx + 0x31], ebx
invalid
or esi, dword [rsi + riz*4 + 0x44b583e6]
cmp dword [rcx + 0x9ee0994], ecx
fist word [rcx + 0xf]
sub byte [rcx], dl
mov esi, 0x8fc63ff3
fist dword [rdi - 0x9c27a77]
sub cl, byte [rdx]
fnstsw word [rsi + 0x5a3549f7]
call 0xe02b1291
movabs byte [0xa655db0672f602bd], al
invalid
Function at 0x140011430
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x70
mov rsi, rcx
mov qword [rsp + 0x48], rcx
xor ebp, ebp
mov qword [rcx], rbp
mov qword [rcx + 8], rbp
lea ecx, [rbp + 0x58]
call fcn.1400229c0
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rsi], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
lea r8, str.JSON
lea edx, [rbp + 0x66]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x40], 0xf
mov byte [rsp + 0x28], bpl
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x1400114c2
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.14000cbd0
nop
mov r8b, 1
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x58]
call fcn.140017ddc
nop
mov rcx, rax
call fcn.1400177c4
mov r15, rax
cmp rsi, rax
je 0x1400115e0
mov r14, qword [rsi]
mov rdi, qword [r14 + 8]
cmp byte [rdi + 0x19], 0
jne 0x140011543
nop
mov r8, qword [rdi + 0x10]
mov rdx, rsi
mov rcx, rsi
call fcn.14000ec30
mov rbx, rdi
mov rdi, qword [rdi]
lea rcx, [rbx + 0x20]
call fcn.14000ede0
nop
mov edx, 0x58
mov rcx, rbx
call fcn.1400229fc
nop
cmp byte [rdi + 0x19], 0
je 0x140011510
mov qword [r14 + 8], r14
mov qword [r14], r14
mov qword [r14 + 0x10], r14
mov qword [rsi + 8], rbp
mov rdx, qword [r15]
movzx r9d, byte [rsp + 0x20]
mov r8, qword [rsi]
mov rdx, qword [rdx + 8]
mov rcx, rsi
call fcn.140011270
mov rcx, rax
mov rax, qword [rsi]
mov qword [rax + 8], rcx
mov rax, qword [r15 + 8]
mov qword [rsi + 8], rax
mov r8, qword [rsi]
mov rdx, qword [r8 + 8]
cmp byte [rdx + 0x19], 0
jne 0x1400115d6
mov rcx, qword [rdx]
cmp byte [rcx + 0x19], 0
jne 0x1400115af
nop dword [rax]
nop word [rax + rax]
mov rdx, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], 0
je 0x1400115a0
mov qword [r8], rdx
mov rdx, qword [rsi]
mov rcx, qword [rdx + 8]
mov rax, qword [rcx + 0x10]
cmp byte [rax + 0x19], 0
jne 0x1400115d0
mov rcx, rax
mov rax, qword [rax + 0x10]
cmp byte [rax + 0x19], 0
je 0x1400115c3
mov qword [rdx + 0x10], rcx
jmp 0x1400115e0
mov qword [r8], r8
mov rax, qword [rsi]
mov qword [rax + 0x10], rax
lea rcx, [rsp + 0x58]
call fcn.14000eee0
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x140011625
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001161f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140011642
call fcn.1400229fc
nop
mov rax, rsi
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
call fcn.1400294dc
nop
int3
Function at 0x140013570
Capabilities:
Delete file

Disassembly:
cmp qword [rcx + 0x18], 8
jb switch.0x14001357a
mov rcx, qword [rcx]
jmp qword [sym.imp.KERNEL32.dll_DeleteFileW]
in eax, dx
invalid
jae 0x14009b899
adc edx, dword [rbp - 0x4f]
movabs eax, dword [0x6c86831345a58c4]
stosd dword [rdi], eax
invalid
push rsi
or eax, 0xeb0be054
insb byte [rdi], dx
mov edx, 0xf80b047
in al, 0x14
jg 0x14009b90d
insb byte [rdi], dx
invalid
cmp dword [rbx], ebp
enter 0xffffffffffffae0f, 0xfffffffffffffff2
cmpsd dword [rsi], dword [rdi]
leave
mov bh, 0x2c
int1
pop rax
sub cl, dh
xor esp, edi
invalid
imul esi, ebp, 0x88e62640
out 0x88, al
push rdi
scasd eax, dword [rdi]
jb 0x14009b916
outsb dx, byte [rsi]
sbb ecx, eax
lahf
sti
cmp al, bh
invalid
rcr dword [rdi - 0x38c504c2], 0xea
movabs dword [0x6795006fcc9c4d0], eax
rol ah, 1
leave
cld
invalid
push rax
jns 0x14009b92c
stc
scasb al, byte [rdi]
push 0x3d060e93
cmp al, 0x4f
cmp cl, dh
rol ah, 1
leave
cld
invalid
xor dword [rdi - 8], ebx
and bh, cl
jge 0x14009b8f0
jo 0x14009b97c
loop 0x14009b959
or byte [rax], r11b
or byte [rax], bl
push 0x6a
invalid
invalid
pop rcx
invalid
loope 0x14009b9c1
in al, dx
cmp eax, dword [0x1378020ec]
jbe 0x14009b975
xchg ebx, eax
invalid
mov ch, 0xf9
invalid

Function at 0x140013590
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x18], 8
mov rbx, rcx
jb 0x1400135a3
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400135bd
test al, 0x10
je 0x1400135bd
mov eax, 1
add rsp, 0x20
pop rbx
ret
cmp qword [rbx + 0x18], 8
jb case.default.0x1400135d1
mov rbx, qword [rbx]
xor edx, edx
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jbe 0x14009b98f
cmpsb byte [rsi], byte [rdi]
xor dl, al
xchg edx, eax
or al, 0x14
invalid
pop rbx
ret
movabs byte [0x19a3ea6301ed74b], al
rcl dword ds:[rax]
invalid
mov ecx, 0x432f52e5
mov edi, 0x4130e9c5
mov esp, 0x7bf28a19
push 0xffffffffd18edcd8
mov bh, 0x25
jns 0x14009b975
in eax, dx
movabs byte [0xc93b2f429914ab90], al
cmp ecx, ecx
cmp ecx, ecx
pushfq
wait
and byte [rax + rbx*4 + 0x743b95c5], ch
add eax, 0x16f9b53c
retf 0xe1bb
std
dec dword [rsp + rsi]
invalid
xchg dword [rbp - 0x31], ebx
rcr cl, cl
pop rsi
and al, 0x4c
and eax, 0xb32788a3
xchg esp, eax
fstp qword [rax]
cmp dword [rbp + 0x39], 0x3b
hlt

Function at 0x1400135e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
cmp qword [rcx + 0x18], 8
jb 0x1400135ee
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140013607
test al, 0x10
jne 0x140013607
mov eax, 1
add rsp, 0x28
ret
xor eax, eax
add rsp, 0x28
ret
Function at 0x140001580
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
sub rsp, 0x98
movaps xmmword [rsp + 0x80], xmm14
movaps xmmword [rsp + 0x70], xmm13
movaps xmmword [rsp + 0x60], xmm12
movaps xmmword [rsp + 0x50], xmm11
movaps xmmword [rsp + 0x40], xmm10
movaps xmmword [rsp + 0x30], xmm9
movaps xmmword [rsp + 0x20], xmm8
movaps xmmword [rsp + 0x10], xmm7
movaps xmmword [rsp], xmm6
aesimc xmm0, xmmword [rdx + 0x10]
aesimc xmm1, xmmword [rdx + 0x20]
aesimc xmm2, xmmword [rdx + 0x30]
aesimc xmm3, xmmword [rdx + 0x40]
aesimc xmm4, xmmword [rdx + 0x50]
aesimc xmm5, xmmword [rdx + 0x60]
aesimc xmm6, xmmword [rdx + 0x70]
aesimc xmm7, xmmword [rdx + 0x80]
aesimc xmm8, xmmword [rdx + 0x90]
aesimc xmm9, xmmword [rdx + 0xa0]
aesimc xmm10, xmmword [rdx + 0xb0]
aesimc xmm11, xmmword [rdx + 0xc0]
aesimc xmm12, xmmword [rdx + 0xd0]
movaps xmm13, xmmword [rdx]
movaps xmm14, xmmword [rdx + 0xe0]
movaps xmmword [rcx], xmm13
movdqa xmmword [rcx + 0x10], xmm0
movdqa xmmword [rcx + 0x20], xmm1
movdqa xmmword [rcx + 0x30], xmm2
movdqa xmmword [rcx + 0x40], xmm3
movdqa xmmword [rcx + 0x50], xmm4
movdqa xmmword [rcx + 0x60], xmm5
movdqa xmmword [rcx + 0x70], xmm6
movdqa xmmword [rcx + 0x80], xmm7
movdqa xmmword [rcx + 0x90], xmm8
movdqa xmmword [rcx + 0xa0], xmm9
movdqa xmmword [rcx + 0xb0], xmm10
movdqa xmmword [rcx + 0xc0], xmm11
movdqa xmmword [rcx + 0xd0], xmm12
movaps xmmword [rcx + 0xe0], xmm14
movaps xmm6, xmmword [rsp]
movaps xmm7, xmmword [rsp + 0x10]
movaps xmm8, xmmword [rsp + 0x20]
movaps xmm9, xmmword [rsp + 0x30]
movaps xmm10, xmmword [rsp + 0x40]
movaps xmm11, xmmword [rsp + 0x50]
movaps xmm12, xmmword [rsp + 0x60]
movaps xmm13, xmmword [rsp + 0x70]
movaps xmm14, xmmword [rsp + 0x80]
add rsp, 0x98
ret
Function at 0x140005aef
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
aeskeygenassist xmm0, xmmword [rdx], 2
movdqa xmmword [rcx], xmm0
ret

Function at 0x14000a770
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rax, rdx
mov rsi, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x14000a800
cmp r11, r10
ja 0x14000a876
cmp r10, rdx
ja 0x14000a888
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x14000a802
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x14000a7e0
jmp 0x14000a864
ja 0x14000a80a
mov r11, r10
cmp rax, r8
jne 0x14000a7a4
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x14000a840
mov rdi, r8
sub ecx, edx
jns 0x14000a85b
jmp 0x14000a866
cmp r8, rsi
je 0x14000a897
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x14000a866
xor al, 1
cmp rdi, rsi
jne 0x14000a820
jmp 0x14000a866
xor eax, eax
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14001ccc0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14001cab0
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.14001cdd0
int3
Function at 0x14000fae0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae fcn.140007ba0
cmp rax, rcx
je 0x14000fb05
cmp rdx, 4
jae 0x14000fb08
xor eax, eax
xor r8d, r8d
jmp 0x14000fba0
xor eax, eax
ret
mov r8d, edx
and r8d, 0x1c
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x14001e360]
movdqa xmm3, xmmword [0x14001e370]
pxor xmm1, xmm1
nop dword [rax]
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x14000fb30
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x14000fbb7
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x14000fba0
ret
Function at 0x1400151f0
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x498
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x410], 0xfffffffffffffffe
mov qword [rbp + 0x3f0], rcx
mov qword [rbp + 0x3f8], 0
mov qword [rbp + 0x400], 2
mov qword [rbp + 0x408], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor esi, esi
xor edi, edi
xor ebx, ebx
cmp r8, 0x201
jae 0x140015290
jmp 0x14001527f
jae 0x14001534f
cmp r8, 0x201
jae 0x140015290
mov r14d, 0x200
lea r15, [rbp - 0x60]
mov r12, r8
jmp 0x1400152e7
sub r8, rbx
sub rdi, rbx
cmp rdi, r8
jae 0x1400152bf
lea rcx, [rbp + 0x3f8]
mov rdx, rbx
call fcn.14001d710
mov rsi, qword [rbp + 0x3f8]
mov rax, qword [rbp + 0x400]
mov qword [rbp + 0x3e8], rax
mov eax, 0xffffffff
cmp rsi, rax
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rbp + 0x408], rbx
mov rdi, rsi
mov r14, rbx
mov r15, qword [rbp + 0x3e8]
mov r12, rbx
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov ecx, r12d
mov rdx, r15
call qword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov r13d, eax
test eax, eax
jne 0x140015310
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x1400153c1
mov r8d, r13d
cmp r12, r8
jne 0x140015270
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400153f3
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x14001527f
jmp 0x140015290
cmp r14, r8
jb 0x14001540d
lea rcx, [rbp + 0x3c8]
mov rdx, r15
call fcn.140016240
movups xmm0, xmmword [rbp + 0x3c8]
movups xmm1, xmmword [rbp + 0x3d8]
movaps xmmword [rbp + 0x3b0], xmm1
movaps xmmword [rbp + 0x3a0], xmm0
mov rax, qword [rbp + 0x3f0]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
cmp qword [rbp + 0x3f8], 0
je 0x1400153ac
mov rcx, qword [rbp + 0x400]
mov edx, 2
call fcn.140004190
nop
add rsp, 0x498
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rcx, qword [rbp + 0x3f0]
mov qword [rcx + 8], rax
movabs rax, 0x8000000000000000
mov qword [rcx], rax
cmp qword [rbp + 0x3f8], 0
jne 0x14001539b
jmp 0x1400153ac
lea rcx, str.internal_error:_entered_unreachable_code_rustc_9b00956e56009bab2aa15d7bff10916599e3d6d6library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.14001cac0
jmp 0x140015422
lea rax, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.14001cab0
ud2

Function at 0x140016db0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
movzx r9d, byte [rdx + 0x38]
cmp byte [rcx - 0x80], al
stc
add dword [rdi + 0x6a], esi
xor r8d, r8d
xor eax, eax
Function at 0x14001c350
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x14001c39a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001c39a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001c39a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001c39a
cmp dword [rcx + 0x84], 0xe
jbe 0x14001c39a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14001c39c
xor al, al
add rsp, 0x28
ret
Function at 0x180019c10
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 0x180019c6d
lea rbx, [0x1801a6c60]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x180019c54
cmp r10, 2
jb 0x180019c54
cmp byte [r9], r8b
jne 0x180019c54
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 0x180019c30
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x180019caf
lea rbx, [0x1801a6c60]
cmp r8b, 0x23
jne 0x180019c93
cmp byte [r9], r8b
jne 0x180019c93
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 0x180019c80
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x180019df0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x180019e0a
mov qword [r8], 0
lea rdx, [0x1801a6854]
call fcn.180019cc0
mov rbx, rax
test rax, rax
jne 0x180019e2a
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x180019f01
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x180019f01
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x180019f01
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x180019f01
cmp rdi, 0xffffffffffffffff
je 0x180019f01
mov rax, qword [0x1801ff060]
test rax, rax
je 0x180019e9e
inc dword [rax + 0xec]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x180019f01
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x180019eee
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1801ff060]
test rax, rax
je 0x180019ee3
dec dword [rax + 0xec]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x180019f0a
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x180019efc
mov qword [r14], rdi
mov rax, rsi
jmp 0x180019f0c
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x18001c940
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0xd0]
mov rax, qword [rcx + 0xd8]
movsxd r9, edx
mov ebx, dword [rax + r8*4 - 4]
lea r8, [0x1801a6c60]
not ebx
movzx eax, r9b
movzx ecx, bl
xor rcx, rax
shr ebx, 8
mov eax, r9d
shr eax, 8
movzx edx, al
mov eax, r9d
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rdx, rcx
shr ebx, 8
shr eax, 0x10
xor ebx, dword [r8 + rdx*4]
movzx ecx, bl
shr ebx, 8
movzx edx, al
xor rdx, rcx
xor ebx, dword [r8 + rdx*4]
movzx ecx, bl
shr ebx, 8
mov edx, r9d
shr rdx, 0x18
xor rdx, rcx
mov rcx, qword [0x1801ff060]
xor ebx, dword [r8 + rdx*4]
not ebx
cmp dword [rcx + 0x3ebc], ebx
jne 0x18001c9d6
mov r8, r9
mov edx, 4
mov ecx, ebx
call fcn.18002e260
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x1800282f0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x1801f6300]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x1801ff060]
mov edi, ecx
cmp byte [rbx + 0x4235], 0
jne 0x180028351
cmp byte [rbx + 0x4236], 0
jne 0x180028351
movsx r9d, word [rbx + 0x531a]
lea r8, str.Tooltip__02d
mov edx, reloc.WS2_32.dll_recv
lea rcx, [rsp + 0x20]
call fcn.180019ad0
test dil, 1
je 0x180028478
jmp 0x1800283da
movss xmm1, dword [rbx + 0x3890]
lea r8, str.Tooltip__02d
movsx r9d, word [rbx + 0x531a]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x1801d3b20]
mulss xmm1, dword [0x1801d3b14]
lea edx, [rax + 0x10]
addss xmm0, dword [rbx + 0xdf4]
addss xmm1, dword [rbx + 0xdf8]
mov qword [rbx + 0x3fa0], rax
mov dword [rbx + 0x3f8c], 1
movss dword [rbx + 0x3f98], xmm0
movss dword [rbx + 0x3f9c], xmm1
movss xmm0, dword [rbx + 0x38ec]
mulss xmm0, dword [0x1801d37c0]
or dword [rbx + 0x3f88], 0x41
movss dword [rbx + 0x3fe8], xmm0
call fcn.180019ad0
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x180028430
lea r11, [0x1801a6c60]
nop word [rax + rax]
cmp r9b, 0x23
jne 0x180028413
cmp byte [r8], r9b
jne 0x180028413
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 0x180028400
not ecx
call fcn.180021510
test rax, rax
je 0x180028478
cmp byte [rax + 0x96], 0
je 0x180028478
mov byte [rax + 0x9d], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xb8], 1
lea rcx, [rsp + 0x20]
inc word [rbx + 0x531a]
mov edx, reloc.WS2_32.dll_recv
movsx r9d, word [rbx + 0x531a]
call fcn.180019ad0
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.180023ca0
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.180165b60
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x18002ce80
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x53c8], 0
lea rbx, [rcx + 0x53d0]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x18002cf27
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x18002ceda
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.18002edf0
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.18001a3e0
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x53c8]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x53d8]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x1801ff058]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x18002cf2f
mov rcx, rbx
call fcn.18001a3e0
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x18002d4a0
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x1801ff060]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x18002d503
mov qword [rsp], rbx
lea rbx, [0x1801a6c60]
nop dword [rax]
cmp r9b, 0x23
jne 0x18002d4e3
cmp byte [r8], r9b
jne 0x18002d4e3
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x18002d4d0
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5378]
xor r8d, r8d
not eax
test ecx, ecx
jle 0x18002d537
mov r10, qword [r10 + 0x5380]
mov r9, rcx
mov edx, r8d
lea rcx, [r10 + 8]
cmp dword [rcx], eax
je 0x18002d53e
inc r8d
inc rdx
add rcx, 0x48
cmp rdx, r9
jl 0x18002d524
xor eax, eax
add rsp, 8
ret
movsxd rax, r8d
lea rcx, [rax + rax*8]
lea rax, [r10 + rcx*8]
add rsp, 8
ret