joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140017820
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rbx, r8
mov r15d, edx
mov rsi, rcx
mov rax, qword [0x140054018]
xor rax, rsp
mov qword [rsp + 0x60], rax
lea rdi, [rcx + 0x28]
mov rcx, rdi
call fcn.140017700
xor ebp, ebp
cmp rbx, 0x7fffffff
ja 0x140017868
test al, al
je 0x140017868
cmp qword [rsi + 0x58], 0
je 0x140017884
xor ebp, ebp
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140045f60
mov eax, ebp
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
cmp byte [rsi], 0
je 0x14001790d
mov rcx, rdi
call fcn.140017710
mov r14, rax
mov rbp, qword [0x140054c18]
test rbp, rbp
jne 0x1400178cb
lea rcx, [0x14004c3fe]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.NtQuerySection
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbp, rax
mov qword [0x140054c18], rax
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x30]
mov rcx, r14
xor edx, edx
mov r9d, 0x18
call rbp
test eax, eax
jne 0x140017866
test dword [rsp + 0x38], 0x1000000
jne 0x140017866
mov r14d, r15d
sar r14d, 0x1f
xor eax, eax
cmp byte [rsi + 0x60], 0
sete al
lea ebp, [rax + rax]
add ebp, 4
mov rcx, rdi
call fcn.140017710
mov qword [rsp + 0x20], rbx
mov rcx, rax
mov edx, ebp
mov r8d, r14d
mov r9d, r15d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsi + 0x58], rax
test rax, rax
jne 0x140017984
xor eax, eax
cmp byte [rsi + 0x60], 0
sete al
lea ebp, [rax + rax]
add ebp, 4
mov rcx, rdi
call fcn.140017710
mov qword [rsp + 0x20], rbx
mov rcx, rax
mov edx, ebp
mov r8d, r14d
mov r9d, r15d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsi + 0x58], rax
test rax, rax
je 0x140017866
mov rbp, rax
lea rdx, [rsp + 0x30]
mov r8d, 0x30
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x1400179a4
xor eax, eax
jmp 0x1400179b1
mov rax, qword [rsp + 0x48]
sub rax, rbp
add rax, qword [rsp + 0x38]
mov qword [rsi + 0x50], rax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400176a0
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rsi + 0x70], xmm0
call fcn.1400179e0
mov bpl, 1
jmp 0x140017868

Function at 0x140017a40
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
cmp qword [rcx], rdx
je 0x140017ab4
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov rcx, rsi
call fcn.140017ad0
lea rax, [rdi + 1]
cmp rax, 2
jb case.default.0x140017aad
mov qword [rsi], rdi
call fcn.140017670
mov rbx, rax
mov r15, qword [rsp + 0x58]
call sym.firefox.exe_GetHandleVerifier
mov rbp, qword [rax]
mov qword [rsp + 0x20], rbx
mov rcx, rax
mov rdx, rdi
mov r8, rsi
mov r9, r15
call qword [rbp + 8]
mov ecx, r14d
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
cmpsb byte [rsi], byte [rdi]
xchg edx, eax
invalid
push rdi
sal byte [rdi + rbx*4], 1
jp 0x1400a1435
std
nop
invalid
Function at 0x1800030f0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r13
sub rsp, 0x498
lea ebp, [r9 + 1]
mov r13d, r9d
mov edi, edx
shr ebp, 1
mov rsi, rcx
cmp ebp, 0x100
jbe 0x180003129
mov eax, 0xffffff7c
add rsp, 0x498
pop r13
pop rdi
pop rsi
pop rbp
ret
mov qword [rsp + 0x4c8], r12
mov r12d, dword [rsp + 0x4f8]
mov qword [rsp + 0x4d8], r14
mov qword [rsp + 0x490], r15
mov r15d, dword [rsp + 0x4e8]
lea r14d, [r15 + r12]
cmp r14d, 0x80
ja 0x180003166
cmp edi, 0xe0
jbe 0x180003170
mov eax, 0xffffff7c
jmp 0x180003327
lea rcx, [rsp + 0xd0]
mov r8, rdi
xor edx, edx
mov qword [rsp + 0x4c0], rbx
call fcn.18002ec70
lea rcx, [rsp + 0x1b0]
mov r8, rdi
xor edx, edx
call fcn.18002ec70
mov rdx, qword [rsp + 0x4d0]
lea rcx, [rsp + 0x290]
mov r8d, ebp
call fcn.18002eeb0
mov eax, r13d
mov edx, ebp
and eax, 1
lea rcx, [rsp + 0x390]
mov r8d, ebp
sub rdx, rax
add rdx, qword [rsp + 0x4d0]
call fcn.18002eeb0
mov rdx, qword [rsp + 0x4e0]
lea rcx, [rsp + 0x50]
mov r8, r15
call fcn.18002eeb0
mov rdx, qword [rsp + 0x4f0]
lea rcx, [rsp + 0x50]
add rcx, r15
mov r8, r12
call fcn.18002eeb0
mov rbx, qword [rsp + 0x500]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], 1
lea r8, [rsp + 0x290]
lea rcx, [rsp + 0xd0]
mov r9d, ebp
mov edx, edi
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rax
call fcn.180002dc0
mov r9d, eax
test eax, eax
jne 0x18000331c
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x50]
mov dword [rsp + 0x30], 2
lea r8, [rsp + 0x390]
lea rcx, [rsp + 0x1b0]
mov r9d, ebp
mov edx, edi
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rax
call fcn.180002dc0
mov r9d, eax
test eax, eax
jne 0x18000331c
xor edx, edx
test edi, edi
je 0x18000331c
cmp edi, 0x20
jb 0x1800032f1
mov eax, edi
mov r8d, edi
and eax, 0x1f
sub r8d, eax
nop dword [rax + rax]
movdqu xmm0, xmmword [rsp + rdx + 0xd0]
movdqu xmm1, xmmword [rsp + rdx + 0x1b0]
lea eax, [rdx + 0x10]
pxor xmm1, xmm0
movdqu xmm0, xmmword [rsp + rax + 0xd0]
movdqu xmmword [rdx + rsi], xmm1
movdqu xmm1, xmmword [rsp + rax + 0x1b0]
add edx, 0x20
pxor xmm1, xmm0
movdqu xmmword [rax + rsi], xmm1
cmp edx, r8d
jb 0x1800032b0
cmp edx, edi
jae 0x18000331c
sub edi, edx
mov eax, edx
mov edx, edi
nop dword [rax + rax]
movzx ecx, byte [rsp + rax + 0x1b0]
lea rax, [rax + 1]
xor cl, byte [rsp + rax + 0xcf]
mov byte [rax + rsi - 1], cl
dec rdx
jne 0x180003300
mov rbx, qword [rsp + 0x4c0]
mov eax, r9d
mov r14, qword [rsp + 0x4d8]
mov r12, qword [rsp + 0x4c8]
mov r15, qword [rsp + 0x490]
add rsp, 0x498
pop r13
pop rdi
pop rsi
pop rbp
ret
Function at 0x180005c80
Capabilities:
Hash data using sha1

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x18]
xor edi, edi
test rcx, rcx
je 0x180005cb1
mov rax, qword [0x180051da8]
test rax, rax
je 0x180005ca8
call rax
jmp 0x180005cad
call fcn.180031ac8
mov qword [rbx + 0x18], rdi
mov rax, qword [0x180051db0]
mov ecx, 0x330
test rax, rax
je 0x180005cc6
call rax
jmp 0x180005ccb
call fcn.180034f98
mov qword [rbx + 0x18], rax
test rax, rax
jne 0x180005ce4
mov eax, 0xffffff83
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
xor edx, edx
mov r8d, 0x330
mov rcx, rax
call fcn.18002ec70
mov rcx, qword [rbx + 0x18]
add rcx, 0x170
je 0x180005db1
mov rax, qword [rbx + 0x48]
mov dword [rcx + 0x4c], 0x67452301
mov dword [rcx + 0x50], 0xefcdab89
mov dword [rcx + 0x54], 0x98badcfe
mov dword [rcx + 0x58], 0x10325476
mov qword [rcx], rdi
mov qword [rcx + 0x60], rax
mov dword [rcx + 8], edi
mov rcx, qword [rbx + 0x18]
add rcx, 0x108
je 0x180005db1
mov rax, qword [rbx + 0x48]
mov dword [rcx + 0x4c], 0x67452301
mov dword [rcx + 0x50], 0xefcdab89
mov dword [rcx + 0x54], 0x98badcfe
mov dword [rcx + 0x58], 0x10325476
mov dword [rcx + 0x5c], 0xc3d2e1f0
mov qword [rcx + 0x60], rax
mov qword [rcx], rdi
mov dword [rcx + 8], edi
mov rcx, qword [rbx + 0x18]
mov rdx, qword [rbx + 0x48]
add rcx, 0x1d8
call fcn.180025590
test eax, eax
jne 0x180005db6
mov rcx, qword [rbx + 0x18]
add rcx, 0x250
je 0x180005db1
mov rax, qword [rbx + 0x48]
mov qword [rcx + 0xd8], rax
call fcn.18001eba0
test eax, eax
jne 0x180005db6
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov eax, 0xffffff53
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180009cc0
Capabilities:
Hash data with md5

Disassembly:
mov r11, rsp
push r15
sub rsp, 0xa0
mov qword [r11 - 0x28], 0
xor eax, eax
mov r15, rdx
mov dword [rsp + 0x6c], 0x67452301
mov dword [rsp + 0x70], 0xefcdab89
mov dword [rsp + 0x74], 0x98badcfe
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x78], 0x10325476
test ecx, ecx
jle 0x180009dcf
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 - 0x10], rdi
mov qword [r11 - 0x18], r14
mov r14d, ecx
mov ebx, 0x40
mov rbp, r15
test r15, r15
je 0x180009d9e
cmp eax, ebx
jae 0x180009d9e
nop dword [rax]
nop word [rax + rax]
mov esi, 0x40
lea rcx, [rsp + 0x2c]
mov rdx, rbp
sub esi, eax
cmp ebx, esi
cmovb esi, ebx
add rcx, rax
mov r8d, esi
mov edi, esi
call fcn.18002eeb0
mov eax, dword [rsp + 0x20]
add rbp, rdi
add eax, esi
sub ebx, esi
mov dword [rsp + 0x20], eax
cmp eax, 0x40
jne 0x180009d9a
lea rcx, [rsp + 0x20]
call fcn.180020ba0
mov ecx, dword [rsp + 0x24]
mov eax, ecx
add ecx, 0x40
mov dword [rsp + 0x24], ecx
cmp ecx, eax
jae 0x180009d94
inc dword [rsp + 0x28]
xor eax, eax
mov dword [rsp + 0x20], eax
test ebx, ebx
jne 0x180009d40
dec r14
jne 0x180009d21
mov r14, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x98]
mov rsi, qword [rsp + 0xc0]
mov rbp, qword [rsp + 0xb8]
mov rbx, qword [rsp + 0xb0]
add rsp, 0xa0
pop r15
ret
Function at 0x18001eba0
Capabilities:
Hash data using sha512

Disassembly:
test rcx, rcx
jne 0x18001ebab
mov eax, 0xffffff53
ret
movabs rax, 0x6a09e667f3bcc908
mov qword [rcx + 0x18], rax
movabs rax, 0xbb67ae8584caa73b
mov qword [rcx + 0x20], rax
movabs rax, 0x3c6ef372fe94f82b
mov qword [rcx + 0x28], rax
movabs rax, 0xa54ff53a5f1d36f1
mov qword [rcx + 0x30], rax
movabs rax, 0x510e527fade682d1
mov qword [rcx + 0x38], rax
movabs rax, 0x9b05688c2b3e6c1f
mov qword [rcx + 0x40], rax
movabs rax, 0x1f83d9abfb41bd6b
mov qword [rcx + 0x48], rax
movabs rax, 0x5be0cd19137e2179
mov qword [rcx + 0x50], rax
xor eax, eax
mov dword [rcx], eax
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], rax
ret

Function at 0x18001fa40
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push r12
push r14
push r15
sub rsp, 0x20
xor r14d, r14d
cmp dword [rcx], 0x80
mov ebp, r8d
mov r12, rdx
mov rbx, rcx
lea r15, [rcx + 0x58]
jb 0x18001fa77
mov eax, 0xffffff7c
add rsp, 0x20
pop r15
pop r14
pop r12
pop rbp
pop rbx
ret
test r8d, r8d
je 0x18001fb82
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], r13
movabs r13, 0xff00ff00ff00ff
nop dword [rax]
mov ecx, dword [rbx]
mov esi, 0x80
mov rdx, r12
sub esi, dword [rbx]
cmp ebp, esi
cmovb esi, ebp
add rcx, r15
mov r8d, esi
mov edi, esi
call fcn.18002eeb0
add dword [rbx], esi
add r12, rdi
sub ebp, esi
cmp dword [rbx], 0x80
jne 0x18001fb6b
mov r8, r15
mov r9d, reloc.WS2_32.dll_recv
movabs r15, 0xffff0000ffff
nop dword [rax]
nop dword [rax + rax]
mov rcx, qword [r8]
lea r8, [r8 + 8]
mov rdx, rcx
mov rax, rcx
shl rcx, 8
shr rdx, 8
shl rax, 8
xor rdx, rax
and rdx, r13
xor rdx, rcx
mov rcx, rdx
mov rax, rdx
shl rdx, 0x10
shr rcx, 0x10
shl rax, 0x10
xor rcx, rax
and rcx, r15
xor rcx, rdx
rol rcx, 0x20
mov qword [r8 - 8], rcx
dec r9
jne 0x18001faf0
mov rcx, rbx
lea r15, [rbx + 0x58]
call fcn.18001ec30
mov r14d, eax
test eax, eax
jne 0x18001fb73
mov rdx, qword [rbx + 8]
lea rcx, [rdx + 0x80]
mov qword [rbx + 8], rcx
cmp rcx, rdx
jae 0x18001fb65
inc qword [rbx + 0x10]
mov dword [rbx], 0
test ebp, ebp
jne 0x18001faa0
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
mov r13, qword [rsp + 0x60]
mov eax, r14d
add rsp, 0x20
pop r15
pop r14
pop r12
pop rbp
pop rbx
ret
Function at 0x180020a60
Capabilities:
Hash data using sha256

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0xa0
xor eax, eax
mov rbx, r8
xor r8d, r8d
mov qword [r11 - 0x18], r8
mov qword [rsp + 0x20], rax
mov qword [r11 - 0x80], rax
mov qword [r11 - 0x78], rax
mov qword [r11 - 0x70], rax
mov dword [rsp + 0x20], 0x6a09e667
mov dword [rsp + 0x24], 0xbb67ae85
mov dword [rsp + 0x28], 0x3c6ef372
mov dword [rsp + 0x2c], 0xa54ff53a
mov dword [rsp + 0x30], 0x510e527f
mov dword [rsp + 0x34], 0x9b05688c
mov dword [rsp + 0x38], 0x1f83d9ab
mov dword [rsp + 0x3c], 0x5be0cd19
mov qword [r11 - 0x28], r8
mov dword [r11 - 0x20], r8d
mov r8d, edx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.180025a40
test eax, eax
jne 0x180020af1
lea rcx, [rsp + 0x20]
mov rdx, rbx
call fcn.180025cb0
add rsp, 0xa0
pop rbx
ret

Function at 0x180021440
Capabilities:
Hash data with md5

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x20
mov rsi, rdx
mov rbx, rcx
test rdx, rdx
jne 0x180021465
mov eax, 0xffffff53
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
mov edx, dword [rbx]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rdi
lea rdi, [rcx + 0xc]
mov ecx, dword [rcx + 4]
lea eax, [rdx + rcx]
mov dword [rbx + 4], eax
cmp eax, ecx
jae 0x180021485
inc dword [rbx + 8]
mov byte [rdx + rdi], 0x80
mov ecx, dword [rbx]
xor ebp, ebp
inc ecx
mov dword [rbx], ecx
cmp ecx, 0x38
jbe 0x1800214b9
mov r8d, 0x40
xor edx, edx
sub r8d, ecx
add rcx, rdi
call fcn.18002ec70
mov rcx, rbx
mov dword [rbx], 0x40
call fcn.180020ba0
mov dword [rbx], ebp
mov ecx, dword [rbx]
mov r8d, gethostname
xor edx, edx
sub r8d, ecx
add rcx, rdi
call fcn.18002ec70
mov edx, dword [rbx + 4]
mov ecx, dword [rbx + 8]
mov eax, edx
shr eax, 0x1d
lea eax, [rax + rcx*8]
mov rcx, rbx
mov dword [rbx + 8], eax
lea eax, [rdx*8]
mov dword [rbx + 4], eax
mov dword [rdi + 0x38], eax
mov eax, dword [rbx + 8]
mov dword [rdi + 0x3c], eax
call fcn.180020ba0
mov rdi, qword [rsp + 0x38]
movups xmm0, xmmword [rbx + 0x4c]
movups xmmword [rsi], xmm0
mov qword [rbx], rbp
mov dword [rbx + 8], ebp
mov rbp, qword [rsp + 0x30]
mov dword [rbx + 0x4c], 0x67452301
mov dword [rbx + 0x50], 0xefcdab89
mov dword [rbx + 0x54], 0x98badcfe
mov dword [rbx + 0x58], 0x10325476
mov rbx, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x20
pop rsi
ret
Function at 0x180022220
Capabilities:
Generate random numbers via winapi

Disassembly:
push rdi
sub rsp, 0x70
mov rdi, rcx
test rcx, rcx
jne 0x180022239
mov eax, 0xffffff53
add rsp, 0x70
pop rdi
ret
mov qword [rcx + 8], rdx
mov qword [rcx + 0x10], 0
mov byte [rcx + 0x18], 0
xor ecx, ecx
call fcn.180022550
test eax, eax
jne 0x18002233e
mov rax, qword [0x180051db0]
mov qword [rsp + 0x80], rbx
mov ecx, 0x78
test rax, rax
je 0x180022275
call rax
jmp 0x18002227a
call fcn.180034f98
mov qword [rdi + 0x10], rax
mov ebx, gethostbyname
test rax, rax
jne 0x18002228d
lea ecx, [rax - 0x7d]
jmp 0x1800222f5
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, rdi
mov dword [rsp + 0x20], 0xf0000000
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1800222f0
mov rcx, qword [rdi]
lea r8, [rsp + 0x40]
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x1800222f0
mov rcx, qword [rdi]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, qword [rdi + 0x10]
lea rdx, [rsp + 0x40]
call fcn.180022110
test eax, eax
jne 0x1800222f0
mov rcx, qword [rdi + 0x10]
xor r8d, r8d
xor edx, edx
call fcn.180021dc0
mov ecx, eax
jmp 0x1800222f5
mov ecx, 2
lea rax, [rsp + 0x40]
nop word [rax + rax]
mov byte [rax], 0
lea rax, [rax + 1]
dec ebx
jne 0x180022300
mov rbx, qword [rsp + 0x80]
test ecx, ecx
jne 0x180022323
mov byte [rdi + 0x18], 1
mov eax, ecx
add rsp, 0x70
pop rdi
ret
cmp ecx, 4
je 0x18002233e
mov byte [rdi + 0x18], 2
cmp ecx, 2
jne 0x180022347
mov ecx, 0xffffff39
mov eax, ecx
add rsp, 0x70
pop rdi
ret
mov byte [rdi + 0x18], 3
mov ecx, 0xffffff2f
mov eax, ecx
add rsp, 0x70
pop rdi
ret
Function at 0x180022550
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x150
mov rax, qword [0x18004f200]
xor rax, rsp
mov qword [rsp + 0x140], rax
or esi, 0xffffffff
test ecx, ecx
lea rcx, [rsp + 0xc0]
mov ebx, esi
je 0x18002268d
lea rdx, [0x180044980]
call fcn.180022110
xor edi, edi
test eax, eax
jne 0x1800225f0
lea r8d, [rsi + 0x21]
lea rdx, [0x1800449b0]
lea rcx, [rsp + 0xc0]
call fcn.180021970
test eax, eax
jne 0x1800225f0
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0xc0]
mov r8d, 0x80
call fcn.180021dc0
test eax, eax
jne 0x1800225f0
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0xc0]
mov r8d, 0x80
call fcn.180021dc0
test eax, eax
cmove ebx, edi
lea rcx, [rsp + 0xc0]
call fcn.1800221b0
test eax, eax
cmovne ebx, esi
test ebx, ebx
jne 0x180022763
mov r9, rdi
lea r10, [0x180000000]
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rsp + r9 + 0x43]
movzx r8d, byte [r9 + r10 + 0x448d3]
movzx ecx, byte [r9 + r10 + 0x448d2]
movzx edx, byte [r9 + r10 + 0x448d0]
xor r8d, eax
movzx eax, byte [rsp + r9 + 0x42]
xor ecx, eax
movzx eax, byte [rsp + r9 + 0x41]
add r9, 4
or r8d, ecx
movzx ecx, byte [r9 + r10 + 0x448cd]
xor ecx, eax
or r8d, ecx
movzx ecx, byte [rsp + r9 + 0x3c]
xor edx, ecx
or r8d, edx
or edi, r8d
cmp r9, 0x80
jl 0x180022620
test edi, edi
je 0x180022763
mov eax, esi
jmp 0x180022765
lea rdx, [0x180044950]
call fcn.180022110
xor edi, edi
test eax, eax
jne 0x1800226d8
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0xc0]
mov r8d, 0x80
call fcn.180021dc0
test eax, eax
jne 0x1800226d8
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0xc0]
mov r8d, 0x80
call fcn.180021dc0
test eax, eax
cmove ebx, edi
lea rcx, [rsp + 0xc0]
call fcn.1800221b0
test eax, eax
cmovne ebx, esi
test ebx, ebx
jne 0x180022763
mov r9, rdi
lea r10, [0x180000000]
nop dword [rax + rax]
movzx eax, byte [rsp + r9 + 0x43]
movzx r8d, byte [r9 + r10 + 0x44853]
movzx ecx, byte [r9 + r10 + 0x44852]
movzx edx, byte [r9 + r10 + 0x44850]
xor r8d, eax
movzx eax, byte [rsp + r9 + 0x42]
xor ecx, eax
movzx eax, byte [rsp + r9 + 0x41]
add r9, 4
or r8d, ecx
movzx ecx, byte [r9 + r10 + 0x4484d]
xor ecx, eax
or r8d, ecx
movzx ecx, byte [rsp + r9 + 0x3c]
xor edx, ecx
or r8d, edx
or edi, r8d
cmp r9, 0x80
jl 0x180022700
test edi, edi
cmovne ebx, esi
mov eax, ebx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180032730
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x180024f20
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x20
mov edi, r9d
mov rbp, rcx
mov r9, r8
test r8, r8
jne 0x180024f3e
test edi, edi
jne 0x1800251af
cmp edx, 8
ja 0x1800251af
mov eax, 0x1b7
bt eax, edx
jae 0x1800251af
mov byte [rcx + 0x229], 0
mov byte [rcx + 0x228], dl
call fcn.180024e80
mov ebx, eax
test eax, eax
jne 0x180024fbe
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], r15
lea r15, [rcx + 0x160]
lea r14, [rcx + 0xe0]
movzx ecx, byte [rcx + 0x228]
test ecx, ecx
je 0x18002508f
dec ecx
je 0x180025054
dec ecx
je 0x180025016
cmp ecx, 2
je 0x180024fc6
mov eax, 0xffffff53
mov r14, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
mov esi, 0x80
cmp edi, esi
jbe 0x180025098
test r9, r9
je 0x18002500d
mov r8d, edi
mov rdx, r9
mov rcx, rbp
call fcn.18001fa40
mov ebx, eax
test eax, eax
jne 0x1800251a8
mov rdx, r14
mov rcx, rbp
call fcn.18001ff70
mov ebx, eax
test eax, eax
jne 0x1800251a8
lea edi, [rsi - 0x40]
jmp 0x1800250e3
mov ebx, 0xffffff53
mov eax, ebx
jmp 0x180024faf
mov esi, 0x40
cmp edi, esi
jbe 0x180025098
mov r8d, edi
mov rdx, r9
mov rcx, rbp
call fcn.180025a40
mov ebx, eax
test eax, eax
jne 0x1800251a8
mov rdx, r14
mov rcx, rbp
call fcn.180025cb0
mov ebx, eax
test eax, eax
jne 0x1800251a8
lea edi, [rsi - 0x20]
jmp 0x1800250e3
mov esi, 0x40
cmp edi, esi
jbe 0x180025098
mov r8d, edi
mov rdx, r9
mov rcx, rbp
call fcn.1800270e0
mov ebx, eax
test eax, eax
jne 0x1800251a8
mov rdx, r14
mov rcx, rbp
call fcn.1800271f0
mov ebx, eax
test eax, eax
jne 0x1800251a8
lea edi, [rsi - 0x2c]
jmp 0x1800250e3
mov esi, 0x40
cmp edi, esi
ja 0x1800250b1
test r9, r9
je 0x1800250ab
mov r8, rdi
mov rdx, r9
mov rcx, r14
call fcn.18002eeb0
cmp edi, esi
jae 0x1800250f5
jmp 0x1800250e3
mov r8d, edi
mov rdx, r9
mov rcx, rbp
call fcn.180021370
mov ebx, eax
test eax, eax
jne 0x1800251a8
mov rdx, r14
mov rcx, rbp
call fcn.180021440
mov ebx, eax
test eax, eax
jne 0x1800251a8
mov edi, reloc.WS2_32.dll_recv
mov r8d, esi
mov ecx, edi
xor edx, edx
sub r8d, edi
add rcx, r14
call fcn.18002ec70
xor edx, edx
test esi, esi
je 0x1800251a8
cmp esi, 0x20
jb 0x18002517e
lea eax, [rsi - 1]
lea r8, [rax + r14]
add rax, r15
cmp r14, rax
ja 0x180025118
cmp r8, r15
jae 0x18002517e
movdqa xmm2, xmmword [0x180046df0]
movdqa xmm3, xmmword [str.6666666666666666_]
mov eax, esi
and eax, 0x1f
mov r8d, esi
sub r8d, eax
movdqu xmm0, xmmword [rdx + r14]
lea eax, [rdx + 0x10]
pxor xmm0, xmm2
movdqu xmmword [rdx + r15], xmm0
movdqu xmm1, xmmword [rdx + r14]
pxor xmm1, xmm3
movdqu xmmword [rdx + r14], xmm1
movdqu xmm0, xmmword [rax + r14]
add edx, 0x20
pxor xmm0, xmm2
movdqu xmmword [rax + r15], xmm0
movdqu xmm1, xmmword [rax + r14]
pxor xmm1, xmm3
movdqu xmmword [rax + r14], xmm1
cmp edx, r8d
jb 0x180025133
cmp edx, esi
jae 0x1800251a8
mov eax, edx
sub r15, r14
add rax, r14
sub esi, edx
mov edx, esi
nop
movzx ecx, byte [rax]
lea rax, [rax + 1]
xor cl, 0x5c
mov byte [r15 + rax - 1], cl
xor byte [rax - 1], 0x36
dec rdx
jne 0x180025190
mov eax, ebx
jmp 0x180024faf
mov eax, 0xffffff53
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
Function at 0x1800271f0
Capabilities:
Hash data using sha1

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
sub rsp, 0x20
mov rbp, rdx
mov rbx, rcx
test rdx, rdx
jne 0x180027215
mov eax, 0xffffff53
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov edx, dword [rbx]
mov qword [rsp + 0x30], rsi
lea rsi, [rcx + 0xc]
mov ecx, dword [rcx + 4]
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], r14
lea eax, [rdx + rcx]
mov dword [rbx + 4], eax
cmp eax, ecx
jae 0x18002723a
inc dword [rbx + 8]
mov byte [rdx + rsi], 0x80
mov ecx, dword [rbx]
xor r14d, r14d
inc ecx
mov edi, reloc.WS2_32.dll_recv
mov dword [rbx], ecx
cmp ecx, 0x38
jbe 0x18002729e
mov r8d, 0x40
xor edx, edx
sub r8d, ecx
add rcx, rsi
call fcn.18002ec70
mov dword [rbx], 0x40
mov rdx, rsi
mov r8d, edi
mov eax, dword [rdx]
lea rdx, [rdx + 4]
mov ecx, eax
rol eax, 8
and eax, 0xff00ff
ror ecx, 8
and ecx, 0xff00ff00
or ecx, eax
mov dword [rdx - 4], ecx
dec r8
jne 0x180027270
mov rcx, rbx
call fcn.180025ed0
mov dword [rbx], r14d
mov ecx, dword [rbx]
mov r8d, gethostname
xor edx, edx
sub r8d, ecx
add rcx, rsi
call fcn.18002ec70
mov rax, rsi
nop word [rax + rax]
mov ecx, dword [rax]
lea rax, [rax + 4]
mov edx, ecx
rol ecx, 8
and ecx, 0xff00ff
ror edx, 8
and edx, 0xff00ff00
or edx, ecx
mov dword [rax - 4], edx
dec rdi
jne 0x1800272c0
mov r8d, dword [rbx + 4]
mov eax, dword [rbx + 8]
mov ecx, r8d
shr ecx, 0x1d
lea edx, [rcx + rax*8]
lea eax, [r8*8]
mov rcx, rbx
mov dword [rbx + 4], eax
mov dword [rbx + 8], edx
mov dword [rsi + 0x38], edx
mov eax, dword [rbx + 4]
mov dword [rsi + 0x3c], eax
call fcn.180025ed0
mov eax, dword [rbx + 0x4c]
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x30]
mov ecx, eax
ror ecx, 8
and ecx, 0xff00ff00
rol eax, 8
and eax, 0xff00ff
or ecx, eax
mov eax, dword [rbx + 0x50]
mov dword [rbx + 0x4c], ecx
mov ecx, eax
ror ecx, 8
and ecx, 0xff00ff00
rol eax, 8
and eax, 0xff00ff
or ecx, eax
mov eax, dword [rbx + 0x54]
mov dword [rbx + 0x50], ecx
mov ecx, eax
ror ecx, 8
and ecx, 0xff00ff00
rol eax, 8
and eax, 0xff00ff
or ecx, eax
mov eax, dword [rbx + 0x58]
mov dword [rbx + 0x54], ecx
mov ecx, eax
ror ecx, 8
and ecx, 0xff00ff00
rol eax, 8
and eax, 0xff00ff
or ecx, eax
mov eax, dword [rbx + 0x5c]
mov dword [rbx + 0x58], ecx
mov ecx, eax
ror ecx, 8
and ecx, 0xff00ff00
rol eax, 8
and eax, 0xff00ff
or ecx, eax
mov dword [rbx + 0x5c], ecx
movups xmm0, xmmword [rbx + 0x4c]
movups xmmword [rbp], xmm0
mov eax, dword [rbx + 0x5c]
mov dword [rbp + 0x10], eax
mov qword [rbx], r14
mov dword [rbx + 8], r14d
mov r14, qword [rsp + 0x40]
mov dword [rbx + 0x4c], 0x67452301
mov dword [rbx + 0x50], 0xefcdab89
mov dword [rbx + 0x54], 0x98badcfe
mov dword [rbx + 0x58], 0x10325476
mov dword [rbx + 0x5c], 0xc3d2e1f0
mov rbx, qword [rsp + 0x48]
xor eax, eax
add rsp, 0x20
pop rbp
ret