joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001c850
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 0x28
mov ecx, 0x1000
call fcn.14000a5c0
test al, al
jne 0x14001c867
add rsp, 0x28
ret
xor ecx, ecx
add rsp, 0x28
jmp fcn.14001c880

Function at 0x14001c880
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, qword [0x1400eb7b0]
mov edi, ecx
cmp byte [rbx + 0x4d2d], 0
jne 0x14001c8d2
cmp byte [rbx + 0x4d2e], 0
jne 0x14001c8d2
movsx r9d, word [rbx + 0x5e98]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.1400039e0
test dil, 2
je 0x14001c9ff
jmp 0x14001c95b
movss xmm1, dword [rbx + 0x39c4]
lea r8, str.Tooltip__02d
movaps xmm0, xmm1
lea rcx, [rsp + 0x20]
mulss xmm0, dword [0x1400dbac8]
xor eax, eax
mulss xmm1, dword [0x1400dbab0]
addss xmm0, dword [rbx + 0xf8]
lea edx, [rax + 0x10]
addss xmm1, dword [rbx + 0xfc]
mov qword [rbx + 0x4a20], rax
mov dword [rbx + 0x4a0c], 1
movss dword [rbx + 0x4a18], xmm0
movss dword [rbx + 0x4a1c], xmm1
movss xmm0, dword [rbx + 0x3a20]
mulss xmm0, dword [0x1400db9c4]
or dword [rbx + 0x4a08], 0x41
movss dword [rbx + 0x4a68], xmm0
movsx r9d, word [rbx + 0x5e98]
call fcn.1400039e0
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x14001c9b0
lea r11, [0x1400bfc70]
nop dword [rax + rax]
cmp r9b, 0x23
jne 0x14001c993
cmp byte [r8], r9b
jne 0x14001c993
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 0x14001c980
not ecx
call fcn.14000ec50
test rax, rax
je 0x14001c9ff
cmp byte [rax + 0xbe], 0
je 0x14001c9ff
mov byte [rax + 0xc3], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xc6], 1
lea rcx, [rsp + 0x20]
mov byte [rax + 0xe4], 1
mov edx, 0x10
inc word [rbx + 0x5e98]
movsx r9d, word [rbx + 0x5e98]
call fcn.1400039e0
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x2030347
call fcn.140011f00
mov rbx, qword [rsp + 0x40]
mov al, 1
add rsp, 0x30
pop rdi
ret
Function at 0x1400236f0
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 + 0x5ff0], 0
lea rbx, [rcx + 0x5ff8]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x140023797
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x14002374a
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.140031730
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.140004d80
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5ff0]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x6000]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x1400eb7a8]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x14002379f
mov rcx, rbx
call fcn.140004d80
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140023df0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x20
mov rbx, qword [0x1400eb7b0]
xor ebp, ebp
cmp byte [rbx + 0x5f48], bpl
jne 0x140023eec
cmp dword [rbx + 0x5f70], ebp
je 0x140023e37
mov r8d, 0x34fc
lea rdx, str.C:Users_sysDesktopimgui_masterimgui.cpp
lea rcx, str.g.SettingsWindows.empty__
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x140023ee5
lea r8, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
call fcn.140003e40
mov rdi, rax
test rax, rax
je 0x140023ee5
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x140023e71
mov rcx, rax
call fcn.140024040
mov r8, qword [0x1400eb7b0]
test r8, r8
je 0x140023edc
movsx rdx, word [r8 + 0x60d0]
lea rcx, [r8 + 0x60d4]
mov r9d, dword [r8 + 0x3f60]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x140023ed1
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x60d0], cx
movsx rax, cx
lea rcx, [r8 + 0x60d4]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], ebp
inc word [rcx + 6]
inc dword [r8 + 0x60cc]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov byte [rbx + 0x5f48], 1
movss xmm0, dword [rbx + 0x5f4c]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x140023f89
subss xmm0, dword [rbx + 0x18]
comiss xmm1, xmm0
movss dword [rbx + 0x5f4c], xmm0
jb 0x140023f89
mov rdi, qword [rbx + 0x20]
mov qword [rsp + 0x38], rsi
test rdi, rdi
je 0x140023f77
mov rax, qword [0x1400eb7b0]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
mov dword [rax + 0x5f4c], ebp
call fcn.1400242c0
lea rdx, [0x1400bd19c]
mov rcx, rdi
mov rsi, rax
call fcn.140003cb0
mov rdi, rax
test rax, rax
je 0x140023f7e
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x140023f7e
mov byte [rbx + 0xce], 1
mov rsi, qword [rsp + 0x38]
mov dword [rbx + 0x5f4c], ebp
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x140023fa0
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x1400eb7b0]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x140024003
mov qword [rsp], rbx
lea rbx, [0x1400bfc70]
nop dword [rax]
cmp r9b, 0x23
jne 0x140023fe3
cmp byte [r8], r9b
jne 0x140023fe3
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 0x140023fd0
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5f60]
not eax
mov r8, qword [r10 + 0x5f68]
lea rdx, [rcx + rcx*8]
lea rcx, [r8 + rdx*8]
cmp r8, rcx
je 0x14002402f
cmp dword [r8 + 8], eax
je 0x140024036
add r8, 0x48
cmp r8, rcx
jne 0x140024020
xor eax, eax
add rsp, 8
ret
mov rax, r8
add rsp, 8
ret
Function at 0x14007e790
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rsi, qword [0x1400eb7b0]
mov rdi, rcx
movsxd rbp, edx
imul rbx, rbp, 0x70
add rbx, qword [rcx + 0x18]
cmp rbx, qword [rcx + 0x18]
jb 0x14007e7c5
cmp rbx, qword [rcx + 0x20]
jb 0x14007e7df
mov r8d, 0x27c
lea rdx, str.C:Users_sysDesktopimgui_masterimgui_internal.h
lea rcx, str.p___Data__p___DataEnd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov r9, qword [rdi + 0x188]
mov dword [rdi + 0x74], ebp
test dword [rbx], 0x10000
movss xmm2, dword [rbx + 0x34]
je 0x14007e7fe
addss xmm2, dword [rdi + 0x90]
movaps xmm0, xmm2
lea rbp, [r9 + 0x110]
subss xmm0, dword [r9 + 0x28]
movss dword [rbp], xmm2
movss xmm1, dword [rdi + 0x88]
addss xmm1, dword [rdi + 0x7c]
movss dword [r9 + 0x128], xmm2
subss xmm0, dword [r9 + 0x154]
movss dword [r9 + 0x118], xmm2
movss dword [r9 + 0x114], xmm1
movss dword [r9 + 0x158], xmm0
mov eax, dword [rdi + 0x8c]
mov dword [r9 + 0x148], eax
movsx eax, byte [rbx + 0x6a]
mov dword [r9 + 0x168], eax
movss dword [r9 + 0x22c], xmm1
mov eax, dword [rbx + 0x34]
mov dword [r9 + 0x228], eax
mov eax, dword [rbx + 0x38]
mov dword [r9 + 0x230], eax
mov eax, dword [rbx + 0x3c]
mov dword [r9 + 0x1d0], eax
movzx eax, byte [rbx + 0x68]
mov byte [r9 + 0xc3], al
cmp byte [rbx + 0x68], 0
je 0x14007e8ab
xor eax, eax
mov dword [rsi + 0x49b8], eax
mov dword [rsi + 0x49c0], eax
test dword [rdi + 4], 0x100000
je 0x14007e8bc
mov r8d, 2
jmp 0x14007e936
movups xmm0, xmmword [rbx + 0x20]
mov rax, qword [r9 + 0x2a8]
movss xmm4, dword [rbx + 0x20]
movss xmm3, dword [rbx + 0x24]
movss xmm2, dword [rbx + 0x28]
movss xmm1, dword [rbx + 0x2c]
movups xmmword [r9 + 0x248], xmm0
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
movss dword [rax + 0x60], xmm4
movss dword [rax + 0x64], xmm3
movss dword [rax + 0x68], xmm2
movss dword [rax + 0x6c], xmm1
mov rax, qword [r9 + 0x2a8]
movups xmm0, xmmword [rsp + 0x20]
movsxd rdx, dword [rax + 0x98]
mov rcx, qword [rax + 0xa0]
add rdx, rdx
movups xmmword [rcx + rdx*8 - 0x10], xmm0
movzx r8d, word [rbx + 0x5c]
mov rdx, qword [r9 + 0x2a8]
mov rcx, qword [rdi + 0x1a0]
call fcn.140071420
cmp byte [rsi + 0x5fe8], 0
je 0x14007e974
cmp byte [rbx + 0x68], 0
jne 0x14007e974
xor r8d, r8d
lea rdx, [0x1400d72b8]
mov rcx, rbp
call fcn.140023800
mov dword [rsi + 0x6018], 0x7f7fffff
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140082d70
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rax, qword [0x1400eb7b0]
mov ebx, ecx
mov rdi, qword [rax + 0x4df8]
cmp ecx, 0xffffffff
jne 0x140082d96
cmp dword [rdi + 0x74], ecx
cmovne ebx, dword [rdi + 0x74]
mov eax, dword [rdi + 0x6c]
cmp ebx, eax
jne 0x140082da4
mov ebx, 0xffffffff
jmp 0x140082da9
cmp ebx, 0xffffffff
jl 0x140082dad
cmp ebx, eax
jl 0x140082dc7
mov r8d, 0xd20
lea rdx, str.C:Users_sysDesktopimgui_masterimgui_tables.cpp
lea rcx, str.column_n____1__column_n___table__ColumnsCount
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
test byte [rdi + 4], 7
je 0x140082e39
mov r10d, dword [rdi]
lea r8, [0x1400d7dd9]
movzx eax, word [rdi + 0x78]
lea r11, [0x1400bfc70]
not r10d
mov byte [rdi + 0x23b], 1
mov ecx, r10d
mov word [rdi + 0x224], bx
mov word [rdi + 0x7a], ax
mov r9b, 0x23
nop dword [rax]
cmp r9b, 0x23
jne 0x140082e13
cmp byte [r8], r9b
jne 0x140082e13
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 0x140082e00
not ecx
xor edx, edx
call fcn.14001cd70
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400a2ce0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov r10d, 0xffffffff
movaps xmmword [rsp + 0x30], xmm6
mov ecx, r10d
lea r8, [0x1400bcb61]
movaps xmm6, xmm3
lea rbx, [0x1400bfc70]
mov r11, rdx
mov r9b, 0x23
nop
cmp r9b, 0x23
jne 0x1400a2d23
cmp byte [r8], r9b
jne 0x1400a2d23
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 [rbx + rdx*4]
test r9b, r9b
jne 0x1400a2d10
not ecx
call fcn.14000ec50
xor edi, edi
test rax, rax
je 0x1400a2d5a
cmp word [rax + 0xcc], di
jne 0x1400a2e29
test r11, r11
jne 0x1400a2d92
mov rbx, qword [0x1400eb7b0]
cmp dword [rbx + 0x4b10], edi
jg 0x1400a2d88
mov r8d, 0x796
lea rdx, str.C:Users_sysDesktopimgui_masterimgui.h
lea rcx, str.i___0__i___Size
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rax, qword [rbx + 0x4b18]
mov r11, qword [rax]
movss xmm1, dword [r11 + 0xb8]
movss xmm0, dword [r11 + 0x10]
movaps xmm3, xmm1
addss xmm3, dword [r11 + 8]
movss xmm2, dword [r11 + 0xbc]
subss xmm0, xmm1
addss xmm2, dword [r11 + 0xc]
mov rax, qword [0x1400eb7b0]
xorps xmm1, xmm1
addss xmm0, dword [r11 + 0xc0]
or dword [rax + 0x4a08], 3
mov qword [rax + 0x4a20], rdi
mov dword [rax + 0x4a0c], 1
maxss xmm1, xmm0
movaps xmm0, xmm3
unpcklps xmm0, xmm2
movsd qword [rax + 0x4a18], xmm0
mov dword [rax + 0x4a10], 1
addss xmm1, xmm3
subss xmm1, xmm3
unpcklps xmm1, xmm6
movsd qword [rax + 0x4a28], xmm1
addss xmm6, dword [r11 + 0xbc]
movss dword [r11 + 0xbc], xmm6
mov rbx, qword [0x1400eb7b0]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 3
movss xmm0, dword [rbx + 0x38f8]
lea rcx, [rbx + 0x4a90]
movss dword [rsp + 0x24], xmm0
call fcn.140030ed0
mov dword [rbx + 0x38f8], edi
lea rdx, [rsp + 0x20]
mov rbx, qword [0x1400eb7b0]
mov dword [rsp + 0x20], 5
movss xmm1, dword [rbx + 0x3900]
lea rcx, [rbx + 0x4a90]
movss xmm0, dword [rbx + 0x3904]
movss dword [rsp + 0x24], xmm1
movss dword [rsp + 0x28], xmm0
call fcn.140030ed0
xor edx, edx
mov qword [rbx + 0x3900], rdi
mov r8d, 0x50f
lea rcx, str.MainMenuBar
call fcn.140011f00
mov ecx, 2
movzx ebx, al
call fcn.140006630
movaps xmm6, xmmword [rsp + 0x30]
movzx eax, bl
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x1400a5ca0
Capabilities:
Hash data with crc32

Disassembly:
test dword [rcx + 0x10], 0x100000
je 0x1400a5d1d
movzx r9d, byte [rdx]
lea r8, [rdx + 1]
mov r10d, 0xffffffff
mov eax, r10d
test r9b, r9b
je 0x1400a5cf6
lea r11, [0x1400bfc70]
cmp r9b, 0x23
jne 0x1400a5cd9
cmp byte [r8], r9b
jne 0x1400a5cd9
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 0x1400a5cc6
mov rcx, qword [0x1400eb7b0]
not eax
cmp dword [rcx + 0x406c], eax
jne 0x1400a5d0d
mov dword [rcx + 0x4070], eax
cmp dword [rcx + 0x409c], eax
jne 0x1400a5d30
mov byte [rcx + 0x40a0], 1
ret
mov rax, qword [0x1400eb7b0]
mov rcx, qword [rax + 0x4008]
jmp fcn.140016750
ret
Function at 0x1400b4984
Capabilities:
Parse pe header

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

Function at 0x140001000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
lea rcx, str._JAVA_LAUNCHER_DEBUG
call qword [sym.imp.MSVCR100.dll_getenv]
test rax, rax
je 0x140001066
lea rcx, str.Windows_original_main_args:_n
call qword [sym.imp.MSVCR100.dll_printf]
mov rax, qword [sym.imp.MSVCR100.dll___argc]
xor ebx, ebx
cmp dword [rax], ebx
jle 0x140001066
xor edi, edi
mov rax, qword [sym.imp.MSVCR100.dll___argv]
lea rcx, str.wwwd_args__d____s_n
mov edx, ebx
mov r8, qword [rax]
mov r8, qword [r8 + rdi]
call qword [sym.imp.MSVCR100.dll_printf]
mov rax, qword [sym.imp.MSVCR100.dll___argc]
inc ebx
add rdi, 8
cmp ebx, dword [rax]
jl 0x140001038
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov rcx, rax
call sub.jli.dll_JLI_CmdToArgs
call sub.jli.dll_JLI_GetStdArgc
movsxd rdi, eax
lea ecx, [rdi + 1]
movsxd rcx, ecx
shl rcx, 3
call sub.jli.dll_JLI_MemAlloc
mov rbx, rax
call sub.jli.dll_JLI_GetStdArgs
xor r9d, r9d
xor edx, edx
test edi, edi
jle 0x1400010b2
mov r9d, edi
mov rcx, qword [rax]
add rax, 0x10
mov qword [rbx + rdx*8], rcx
inc rdx
cmp rdx, rdi
jl 0x14000109f
mov rcx, qword [str.java]
movsxd rax, r9d
and qword [rbx + rax*8], 0
test rcx, rcx
jne 0x1400010c9
mov rcx, qword [rbx]
mov rax, qword [str.java]
test rax, rax
jne 0x1400010d8
mov rax, qword [rbx]
and dword [rsp + 0x68], 0
mov byte [rsp + 0x60], 0
mov byte [rsp + 0x58], 0
mov byte [rsp + 0x50], 1
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rax
lea rax, [0x140002240]
mov r8d, 2
lea r9, str._J_ms8m
mov qword [rsp + 0x38], rax
lea rax, [0x140002230]
mov rdx, rbx
mov qword [rsp + 0x30], rax
lea rax, str._lib_tools.jar
mov ecx, edi
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r8d
call sub.jli.dll_JLI_Launch
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret
Function at 0x140012900
Capabilities:
Hash data using crc32b

Disassembly:
xor r9d, r9d
lea r10, [0x140234b20]
nop word [rax + rax]
xor eax, eax
test r9b, 1
je 0x14001291c
bts eax, 7
mov ecx, r9d
shr ecx, 1
test cl, 1
je 0x14001292a
bts eax, 6
shr ecx, 1
test cl, 1
je 0x140012935
bts eax, 5
shr ecx, 1
test cl, 1
je 0x140012940
bts eax, 4
shr ecx, 1
test cl, 1
je 0x14001294b
bts eax, 3
shr ecx, 1
test cl, 1
je 0x140012956
bts eax, 2
shr ecx, 1
test cl, 1
je 0x140012961
bts eax, 1
test cl, 2
je 0x14001296a
bts eax, 0
shl eax, 0x18
lea ecx, [rax + rax]
mov edx, ecx
xor edx, 0x4c11db7
test eax, eax
cmovns edx, ecx
lea eax, [rdx + rdx]
mov ecx, eax
xor ecx, 0x4c11db7
test edx, edx
cmovns ecx, eax
lea eax, [rcx + rcx]
mov edx, eax
xor edx, 0x4c11db7
test ecx, ecx
cmovns edx, eax
lea eax, [rdx + rdx]
mov ecx, eax
xor ecx, 0x4c11db7
test edx, edx
cmovns ecx, eax
lea eax, [rcx + rcx]
mov edx, eax
xor edx, 0x4c11db7
test ecx, ecx
cmovns edx, eax
lea eax, [rdx + rdx]
mov ecx, eax
xor ecx, 0x4c11db7
test edx, edx
cmovns ecx, eax
lea eax, [rcx + rcx]
mov edx, eax
xor edx, 0x4c11db7
test ecx, ecx
cmovns edx, eax
lea eax, [rdx + rdx]
mov r8d, eax
xor r8d, 0x4c11db7
test edx, edx
cmovns r8d, eax
xor ecx, ecx
lea edx, [rcx + 0x1e]
test r8b, 1
je 0x140012a01
lea eax, [rdx + 1]
bts ecx, eax
sar r8d, 1
test r8b, 1
je 0x140012a0d
bts ecx, edx
sar r8d, 1
sub edx, 2
cmp edx, 0xfffffffe
jg 0x1400129f5
mov dword [r10], ecx
inc r9d
add r10, 4
cmp r9d, 0x100
jl 0x140012910
mov dword [0x140234b10], 1
ret
Function at 0x140016920
Capabilities:
Resolve dns

Disassembly:
push rbx
push r14
sub rsp, 0x58
mov rax, qword [0x14022c9f8]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov r14, rcx
mov rbx, rdx
mov rcx, rdx
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
je 0x140016965
cmp word [rax + 0x10], 2
jne 0x140016965
mov rax, qword [rax + 0x18]
mov rcx, qword [rax]
mov eax, dword [rcx]
mov dword [r14], eax
xor eax, eax
jmp 0x140016a19
mov qword [rsp + 0x80], rbp
mov qword [rsp + 0x50], rsi
xor esi, esi
mov qword [rsp + 0x48], rdi
mov ebp, esi
mov qword [rsp + 0x40], r15
mov edi, esi
mov dword [rsp + 0x28], 0
lea r15d, [rsi + 0x2e]
nop
lea rdx, [rbx + 1]
mov qword [rsp + 0x20], rdx
cmp byte [rbx], 0x30
je 0x1400169d3
mov r8d, 0xa
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtol]
cmp eax, 0xff
ja 0x1400169fb
mov rdx, qword [rsp + 0x20]
cmp rdx, rbx
je 0x1400169fb
mov rcx, rdx
sub rcx, rbx
cmp rcx, 3
jg 0x1400169fb
mov byte [rsp + rdi + 0x28], al
movsx eax, byte [rdx]
cmp ebp, 3
mov ecx, esi
cmovl ecx, r15d
cmp eax, ecx
jne 0x1400169fb
inc ebp
lea rbx, [rdx + 1]
inc rdi
cmp rdi, 4
jl 0x140016990
mov eax, dword [rsp + 0x28]
mov dword [r14], eax
jmp 0x140016a00
mov esi, 0xffffffff
mov r15, qword [rsp + 0x40]
mov eax, esi
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140194a30
add rsp, 0x58
pop r14
pop rbx
ret

Function at 0x140016a40
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x14022c9f8]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov ecx, 0x101
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x140016aa9
movzx eax, word [rsp + 0x20]
cmp al, 1
jne 0x140016aa3
shr ax, 8
cmp al, 1
jne 0x140016aa3
mov ecx, 1
call qword [sym.imp.WINMM.dll_timeBeginPeriod]
xor eax, eax
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140194a30
add rsp, 0x1d8
ret
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140194a30
add rsp, 0x1d8
ret

Function at 0x140016ba0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x14022c9f8]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rdx
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x28]
lea r8, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x140016be8
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140194a30
add rsp, 0x40
pop rbx
ret
mov eax, dword [rsp + 0x2c]
movzx ecx, word [rsp + 0x2a]
mov dword [rbx], eax
call qword [sym.imp.WS2_32.dll_ntohs]
mov word [rbx + 4], ax
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140194a30
add rsp, 0x40
pop rbx
ret
Function at 0x140016c20
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [0x14022c9f8]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r11, r9
mov dword [rsp + 0x54], reloc.WS2_32.dll_recv
mov rbx, rdx
lea r9, [rsp + 0x54]
xor edx, edx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], rdx
mov r10, r8
mov qword [rsp + 0x38], rdx
test rbx, rbx
mov dword [rsp + 0x50], edx
mov r8d, r11d
cmove r9, rdx
cmove rax, rdx
mov qword [rsp + 0x30], r9
mov rdx, r10
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x58]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSARecvFrom]
cmp eax, 0xffffffff
jne 0x140016cae
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
je 0x140016caa
cmp eax, 0x13
jne 0x140016cb8
xor eax, eax
jmp 0x140016cdd
test dword [rsp + 0x50], 0x8000
je 0x140016cbf
mov eax, 0xffffffff
jmp 0x140016cdd
test rbx, rbx
je 0x140016cd9
mov eax, dword [rsp + 0x64]
movzx ecx, word [rsp + 0x62]
mov dword [rbx], eax
call qword [sym.imp.WS2_32.dll_ntohs]
mov word [rbx + 4], ax
mov eax, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140194a30
add rsp, 0x80
pop rbx
ret

Function at 0x140016d00
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov rax, qword [0x14022c9f8]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor r14d, r14d
mov rbp, r9
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
test rdx, rdx
je 0x140016d52
movzx ecx, word [rdx + 4]
mov eax, 2
mov word [rsp + 0x58], ax
mov qword [rsp + 0x60], r14
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x5a], ax
mov eax, dword [rbx]
mov dword [rsp + 0x5c], eax
mov qword [rsp + 0x40], r14
mov rax, rbx
neg rax
mov qword [rsp + 0x38], r14
lea rax, [rsp + 0x58]
mov r8d, ebp
sbb r9d, r9d
mov rdx, rsi
and r9d, 0x10
mov rcx, rdi
mov dword [rsp + 0x30], r9d
test rbx, rbx
lea r9, [rsp + 0x50]
cmove rax, r14
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r14d
call qword [sym.imp.WS2_32.dll_WSASendTo]
cmp eax, 0xffffffff
jne 0x140016dae
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
jmp 0x140016db2
mov eax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140194a30
add rsp, 0x70
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140016dd0
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x58
mov rax, qword [0x14022c9f8]
xor rax, rsp
mov qword [rsp + 0x40], rax
dec edx
mov dword [rsp + 0x30], r8d
mov r9d, 0xffffffff
cmp edx, 8
ja case.0x140016e0e.8
movsxd rax, edx
lea r10, [0x140000000]
mov edx, dword [r10 + rax*4 + 0x16eb4]
add rdx, r10
jmp rdx
mov dword [rsp + 0x38], r8d
mov edx, 0x8004667e
lea r8, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
jmp 0x140016e91
mov edx, 0xffff
mov r8d, reloc.WLDAP32.dll_Ordinal_32
jmp 0x140016e7e
mov edx, 0xffff
mov r8d, 4
jmp 0x140016e7e
mov edx, 0xffff
mov r8d, 0x1002
jmp 0x140016e7e
mov edx, 0xffff
mov r8d, 0x1001
jmp 0x140016e7e
mov edx, 0xffff
mov r8d, 0x1006
jmp 0x140016e7e
mov edx, 0xffff
mov r8d, 0x1005
jmp 0x140016e7e
mov edx, 6
lea r8d, [rdx - 5]
lea r9, [rsp + 0x30]
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov r9d, eax
xor eax, eax
cmp r9d, 0xffffffff
setne al
dec eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140194a30
add rsp, 0x58
ret

Function at 0x140016ee0
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x470
mov rax, qword [0x14022c9f8]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov rbx, rdx
mov dword [rsp + 0x250], 0
mov eax, 0x10624dd3
mov dword [rsp + 0x40], 0
mul r8d
mov rdi, rcx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [rsp + 0x30], edx
sub r8d, eax
imul eax, r8d, 0x3e8
mov dword [rsp + 0x34], eax
mov eax, dword [rbx]
test al, 1
je 0x140016f4e
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x40], 1
test al, 2
je 0x140016f65
mov qword [rsp + 0x258], rdi
mov dword [rsp + 0x250], 1
lea rax, [rsp + 0x30]
inc ecx
xor r9d, r9d
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x250]
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jns 0x140016f92
mov eax, 0xffffffff
jmp 0x140016fc9
mov dword [rbx], 0
test eax, eax
je 0x140016fc7
lea rdx, [rsp + 0x40]
mov rcx, rdi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x140016fb0
or dword [rbx], 1
lea rdx, [rsp + 0x250]
mov rcx, rdi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x140016fc7
or dword [rbx], 2
xor eax, eax
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140194a30
mov rbx, qword [rsp + 0x498]
add rsp, 0x470
pop rdi
ret