joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140035380
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
cmp qword [rdx + 0x10], 1
mov rbx, rdx
mov rdi, rcx
je 0x1400353ac
mov edx, dword [rdx]
jmp 0x1400353df
mov rcx, qword [rdx + 8]
movabs rax, 0x4800144005b3
mul rcx
mov rax, rcx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 0x14
imul rax, rax, 0x1ffff7
sub rcx, rax
imul edx, ecx, 0x3e8
add edx, dword [rbx]
xor r14d, r14d
lea rsi, [0x1401c1018]
movabs r15, 0x4d54ee85da812030
sub edx, 0x79
je 0x1400354ca
sub edx, 0x450
je 0x140035490
sub edx, 6
je 0x140035456
cmp edx, 1
jne 0x14003551b
mov rcx, qword [0x1401c1020]
add rcx, r15
mov dword [rbp - 0x1c], r14d
cmp rcx, 1
jbe 0x140035448
mov rax, qword [0x1401c1018]
mov edx, 0x2751
mov rcx, rsi
call qword [rax + 0x30]
mov dword [rbp - 0x20], 0x2751
jmp 0x1400354fb
mov al, 1
mov dword [rbp - 0x20], 0x2751
jmp 0x1400354fb
mov rcx, qword [0x1401c1020]
add rcx, r15
mov dword [rbp - 0x1c], r14d
cmp rcx, 1
jbe 0x140035485
mov rax, qword [0x1401c1018]
mov edx, 0x2743
mov rcx, rsi
call qword [rax + 0x30]
mov dword [rbp - 0x20], 0x2743
jmp 0x1400354fb
mov al, 1
mov dword [rbp - 0x20], 0x2743
jmp 0x1400354fb
mov rcx, qword [0x1401c1020]
add rcx, r15
mov dword [rbp - 0x1c], r14d
cmp rcx, 1
jbe 0x1400354bf
mov rax, qword [0x1401c1018]
mov edx, 0x274d
mov rcx, rsi
call qword [rax + 0x30]
mov dword [rbp - 0x20], 0x274d
jmp 0x1400354fb
mov al, 1
mov dword [rbp - 0x20], 0x274d
jmp 0x1400354fb
mov rcx, qword [0x1401c1020]
add rcx, r15
mov dword [rbp - 0x1c], r14d
cmp rcx, 1
jbe 0x1400354f2
mov rax, qword [0x1401c1018]
mov edx, 0x274c
mov rcx, rsi
call qword [rax + 0x30]
jmp 0x1400354f4
mov al, 1
mov dword [rbp - 0x20], 0x274c
movzx eax, al
mov qword [rbp - 0x18], rsi
add rax, 2
movups xmm0, xmmword [rbp - 0x20]
mov qword [rbp - 0x10], rax
movsd xmm1, qword [rbp - 0x10]
movups xmmword [rbx], xmm0
movsd qword [rbx + 0x10], xmm1
mov rax, qword [rbx + 0x10]
test al, 1
je 0x140035536
cmp rax, 1
jne 0x1400355b8
cmp dword [rbx], r14d
jne 0x1400355b8
cmp rdi, 0xffffffffffffffff
jne 0x14003558f
mov rcx, qword [0x1401c1020]
add rcx, r15
mov dword [rbp - 0x1c], r14d
cmp rcx, 1
jbe 0x140035564
mov rax, qword [0x1401c1018]
mov edx, 0x2719
mov rcx, rsi
call qword [rax + 0x30]
jmp 0x140035566
mov al, 1
movzx eax, al
mov dword [rbp - 0x20], 0x2719
add rax, 2
mov qword [rbp - 0x18], rsi
movups xmm0, xmmword [rbp - 0x20]
mov qword [rbp - 0x10], rax
movsd xmm1, qword [rbp - 0x10]
movups xmmword [rbx], xmm0
movsd qword [rbx + 0x10], xmm1
jmp 0x1400355b8
xor r9d, r9d
mov dword [rsp + 0x20], r14d
mov edx, 0xffff
mov r8d, 0x7010
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
mov rcx, rbx
setne dl
call fcn.14000a290
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x80]
add rsp, 0x50
pop r15
pop r14
pop rbp
ret
Function at 0x140035ac0
Capabilities:
Connect socket

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, r9
cmp rcx, 0xffffffffffffffff
jne 0x140035b4b
movabs rcx, 0x4d54ee85da812030
mov dword [rsp + 0x24], 0
add rcx, qword [0x1401c1020]
lea rbx, [0x1401c1018]
cmp rcx, 1
jbe 0x140035b0d
mov rax, qword [0x1401c1018]
mov edx, 0x2719
mov rcx, rbx
call qword [rax + 0x30]
jmp 0x140035b0f
mov al, 1
movzx eax, al
add rax, 2
mov dword [rsp + 0x20], 0x2719
mov qword [rsp + 0x30], rax
mov eax, 0xffffffff
movsd xmm1, qword [rsp + 0x30]
mov qword [rsp + 0x28], rbx
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rdi], xmm0
movsd qword [rdi + 0x10], xmm1
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
mov rcx, rdi
mov ebx, eax
setne dl
call fcn.14000a290
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x1400371c0
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rdi
push r14
lea rbp, [rsp - 0x390]
sub rsp, 0x490
mov rax, qword [0x1401c5538]
xor rax, rsp
mov qword [rbp + 0x380], rax
mov rdi, rdx
mov qword [rbp + 0x178], rcx
mov rbx, rcx
mov qword [rsp + 0x68], rcx
lea rax, [rsp + 0x58]
mov dword [rbp + 0x170], 1
xor r14d, r14d
mov qword [rsp + 0x20], rax
inc ecx
mov qword [rsp + 0x58], r14
xor edx, edx
mov dword [rsp + 0x60], 1
lea r9, [rsp + 0x60]
lea r8, [rbp + 0x170]
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
je 0x1400373af
mov dword [rsp + 0x30], r14d
cmp rbx, 0xffffffffffffffff
jne 0x140037299
movabs rcx, 0x4d54ee85da812030
mov dword [rsp + 0x3c], r14d
add rcx, qword [0x1401c1020]
lea rbx, [0x1401c1018]
cmp rcx, 1
jbe 0x14003728a
mov rax, qword [0x1401c1018]
mov edx, 0x2719
mov rcx, rbx
call qword [rax + 0x30]
mov dword [rsp + 0x38], 0x2719
jmp 0x140037389
mov al, 1
mov dword [rsp + 0x38], 0x2719
jmp 0x140037389
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], 4
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov edx, 0xffff
mov r8d, 0x1007
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
mov rcx, rdi
mov ebx, eax
setne dl
call fcn.14000a290
test ebx, ebx
jne 0x1400373ad
mov qword [rsp + 0x4c0], rsi
mov esi, dword [rsp + 0x30]
test esi, esi
je 0x14003732e
movabs rcx, 0x4d54ee85da812030
mov dword [rsp + 0x3c], r14d
add rcx, qword [0x1401c1020]
lea rbx, [0x1401c1018]
cmp rcx, 1
jbe 0x140037323
mov rax, qword [0x1401c1018]
mov edx, esi
mov rcx, rbx
call qword [rax + 0x30]
mov dword [rsp + 0x38], esi
jmp 0x140037381
test esi, esi
mov dword [rsp + 0x38], esi
setne al
jmp 0x140037381
mov rax, qword [rdi + 0x10]
test rax, rax
jne 0x140037340
lea rbx, [0x1401c1018]
jmp 0x140037351
lea rbx, section..data
cmp rax, 1
je 0x140037351
mov rbx, qword [rdi + 8]
mov rax, qword [rbx + 8]
movabs rcx, 0x4d54ee85da812030
add rax, rcx
mov dword [rsp + 0x3c], r14d
cmp rax, 1
jbe 0x14003737a
mov rax, qword [rbx]
xor edx, edx
mov rcx, rbx
call qword [rax + 0x30]
jmp 0x14003737c
xor al, al
mov dword [rsp + 0x38], r14d
mov rsi, qword [rsp + 0x4c0]
movzx eax, al
mov qword [rsp + 0x40], rbx
add rax, 2
movups xmm0, xmmword [rsp + 0x38]
mov qword [rsp + 0x48], rax
movsd xmm1, qword [rsp + 0x48]
movups xmmword [rdi], xmm0
movsd qword [rdi + 0x10], xmm1
mov al, 1
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.1401453a0
mov rbx, qword [rsp + 0x4c8]
add rsp, 0x490
pop r14
pop rdi
pop rbp
ret

Function at 0x1400373e0
Capabilities:
Act as tcp client
Connect tcp socket
Get local ipv4 addresses
Get socket information
Set socket configuration
Start tcp server

Disassembly:
cmp edx, 2
jne 0x1400373ee
add rcx, 0x58
jmp fcn.140037e70
ret
Function at 0x140037e70
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Get local ipv4 addresses
Get socket information
Set socket configuration
Start tcp server

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, rcx
mov qword [rsp + 0x30], 0
mov rcx, qword [rcx]
xorps xmm0, xmm0
mov byte [rsp + 0x50], 2
movups xmmword [rsp + 0x20], xmm0
cmp rcx, 0xffffffffffffffff
je 0x140037eaa
lea r9, [rsp + 0x20]
mov r8b, 1
lea rdx, [rsp + 0x50]
call fcn.140009870
mov rcx, qword [rbx + 8]
cmp rcx, 0xffffffffffffffff
je 0x140037ec6
lea r9, [rsp + 0x20]
mov r8b, 1
lea rdx, [rsp + 0x50]
call fcn.140009870
mov rcx, rbx
mov qword [rbx + 8], 0xffffffffffffffff
mov qword [rbx], 0xffffffffffffffff
add rsp, 0x40
pop rbx
jmp fcn.1400373f0
Function at 0x14003ab50
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [rcx + 8]
mov r10, r9
mov r11, r8
mov rbx, rcx
lock inc dword [rax + 0x30]
cmp byte [rsp + 0x78], 0
je 0x14003ab8a
mov rdx, qword [rsp + 0x80]
xor r9d, r9d
mov rcx, qword [rcx + 8]
xor r8d, r8d
add rsp, 0x40
pop rbx
jmp fcn.14002a420
mov rcx, qword [rdx]
cmp rcx, 0xffffffffffffffff
jne 0x14003abb2
mov rdx, qword [rsp + 0x80]
xor r9d, r9d
mov rcx, qword [rbx + 8]
mov r8d, 0x2719
add rsp, 0x40
pop rbx
jmp fcn.14002a420
mov eax, dword [rsp + 0x70]
lea r9, [rsp + 0x78]
xor edx, edx
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x30], rdx
lea rax, [rsp + 0x50]
mov dword [rsp + 0x78], edx
mov r8d, r10d
mov qword [rsp + 0x58], rsi
mov rdx, r11
mov qword [rsp + 0x60], rdi
mov rdi, qword [rsp + 0x80]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSARecv]
mov esi, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
jne 0x14003ac0b
mov eax, 0x2746
jmp 0x14003ac18
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test esi, esi
mov rsi, qword [rsp + 0x58]
je 0x14003ac47
cmp eax, 0x3e5
je 0x14003ac47
mov r9d, dword [rsp + 0x78]
mov r8d, eax
mov rcx, qword [rbx + 8]
mov rdx, rdi
call fcn.14002a420
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop rbx
ret
mov rcx, qword [rbx + 8]
mov rdx, rdi
call fcn.14002a4c0
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop rbx
ret

Function at 0x14003dbe0
Capabilities:
Reference sql statements

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rdx
mov rdx, qword [rcx]
lea rcx, [rsp + 0x20]
call fcn.14001c0f0
nop
lea rdx, str.SELECT_COUNT___FROM_AdapterInfo_WHERE_mac_
lea rcx, [rsp + 0x20]
call fcn.14001c280
lea r8, [rbx + 0x10]
mov edx, 1
lea rcx, [rsp + 0x20]
call fcn.14001c1a0
lea rcx, [rsp + 0x20]
call fcn.14001c3a0
cmp eax, 0x64
jne 0x14003dc3d
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.14001c230
test eax, eax
setg bl
jmp 0x14003dc3f
xor bl, bl
lea rcx, [rsp + 0x20]
call fcn.14001c130
movzx eax, bl
add rsp, 0x30
pop rbx
ret
Function at 0x140044340
Capabilities:
Reference sql statements

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rdx
mov rdx, qword [rcx]
lea rcx, [rsp + 0x20]
call fcn.14001c0f0
nop
lea rdx, str.SELECT_COUNT___FROM_AntiScanDenyIp_WHERE_IP_
lea rcx, [rsp + 0x20]
call fcn.14001c280
mov r8, rbx
mov edx, 1
lea rcx, [rsp + 0x20]
call fcn.14001c1a0
xor ebx, ebx
lea rcx, [rsp + 0x20]
call fcn.14001c3a0
cmp eax, 0x64
jne 0x140044399
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.14001c230
mov ebx, eax
test ebx, ebx
setg bl
lea rcx, [rsp + 0x20]
call fcn.14001c130
movzx eax, bl
add rsp, 0x30
pop rbx
ret
Function at 0x1400455d0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
mov r12d, r9d
mov r13, r8
mov r15, rdx
mov rsi, rcx
mov rbp, qword [rsp + 0xe0]
mov qword [rsp + 0x78], rbp
mov rdx, rbp
mov ecx, 0xb0
call fcn.14001f8a0
mov rbx, rax
mov rax, qword [r15 + 0x18]
xor r8d, r8d
mov r14d, r8d
mov ecx, r8d
test rax, rax
je 0x140045635
mov rcx, qword [r15 + 0x10]
mov r14, rax
lock inc dword [rax + 0xc]
movzx eax, byte [r15 + 8]
mov qword [rbx + 0x20], r8
lea rdx, [0x1400485a0]
mov qword [rbx + 0x28], rdx
mov qword [rbx], r8
mov qword [rbx + 8], r8
mov qword [rbx + 0x10], r8
mov qword [rbx + 0x18], r8
mov dword [rbx + 0x30], r8d
mov byte [rbx + 0x38], al
mov qword [rbx + 0x40], r8
mov qword [rbx + 0x48], r8
test r14, r14
je 0x140045679
mov qword [rbx + 0x40], rcx
mov qword [rbx + 0x48], r14
lock inc dword [r14 + 0xc]
movups xmm0, xmmword [r13]
movups xmmword [rbx + 0x50], xmm0
mov rax, qword [rbp]
mov qword [rbx + 0x60], rax
mov qword [rbx + 0x68], r8
mov qword [rbx + 0x70], r8
mov rax, qword [rbp + 8]
mov qword [rbx + 0x68], rax
mov rax, qword [rbp + 0x10]
mov qword [rbx + 0x70], rax
mov qword [rbp + 8], r8
mov qword [rbp + 0x10], r8
lea rcx, [rbx + 0x78]
mov r9, qword [rsp + 0xe8]
xor edx, edx
call fcn.14002d340
test r14, r14
je 0x1400456db
mov eax, 0xffffffff
lock xadd dword [r14 + 0xc], eax
cmp eax, 1
jne 0x1400456db
mov rax, qword [r14]
mov rcx, r14
call qword [rax + reloc.WS2_32.dll_htonl]
movups xmm0, xmmword [r13]
movups xmmword [rsp + 0x50], xmm0
movq qword [rsp + 0x68], xmm0
movq xmm0, qword [r13 + 8]
movd dword [rsp + 0x60], xmm0
mov rax, qword [r13 + 8]
mov qword [rsp + 0x70], rax
test byte [r15 + 8], 0x10
je 0x14004572d
test rax, rax
jne 0x14004572d
mov rax, qword [rsi + 8]
lock inc dword [rax + 0x30]
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, qword [rsi + 8]
call fcn.14002a420
xor ebp, ebp
jmp 0x1400457ea
mov rax, qword [rsi + 8]
lock inc dword [rax + 0x30]
mov rcx, qword [r15]
cmp rcx, 0xffffffffffffffff
jne 0x14004575a
xor r9d, r9d
mov r8d, 0x2719
mov rdx, rbx
mov rcx, qword [rsi + 8]
call fcn.14002a420
xor ebp, ebp
jmp 0x1400457ea
xor ebp, ebp
mov dword [rsp + 0xe0], ebp
mov dword [rsp + 0xc0], r12d
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbx
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xe0]
lea r8d, [rbp + 1]
lea rdx, [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_WSARecv]
mov edi, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
jne 0x1400457ad
mov eax, 0x2746
jmp 0x1400457ba
mov ecx, 0x274d
cmp eax, 0x4d2
cmove eax, ecx
test edi, edi
je 0x1400457de
cmp eax, 0x3e5
je 0x1400457de
mov r9d, dword [rsp + 0xe0]
mov r8d, eax
mov rdx, rbx
mov rcx, qword [rsi + 8]
call fcn.14002a420
jmp 0x1400457ea
mov rdx, rbx
mov rcx, qword [rsi + 8]
call fcn.14002a4c0
mov qword [rsp + 0x88], rbp
mov qword [rsp + 0x80], rbp
lea rcx, [rsp + 0x78]
call fcn.140049910
nop
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140045830
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
mov r12, r9
mov r13, r8
mov r15, rdx
mov rbp, rcx
mov r14, qword [rsp + 0xe8]
mov qword [rsp + 0x78], r14
mov rdx, r14
mov ecx, 0xa8
call fcn.14001f8a0
mov rdi, rax
mov rax, qword [r15 + 0x18]
xor edx, edx
mov esi, edx
mov ecx, edx
test rax, rax
je 0x140045892
mov rcx, qword [r15 + 0x10]
mov rsi, rax
lock inc dword [rax + 0xc]
mov qword [rdi + 0x20], rdx
lea rax, [0x140048700]
mov qword [rdi + 0x28], rax
mov qword [rdi], rdx
mov qword [rdi + 8], rdx
mov qword [rdi + 0x10], rdx
mov qword [rdi + 0x18], rdx
mov dword [rdi + 0x30], edx
mov qword [rdi + 0x38], rdx
mov qword [rdi + 0x40], rdx
test rsi, rsi
je 0x1400458cc
mov qword [rdi + 0x38], rcx
mov qword [rdi + 0x40], rsi
lock inc dword [rsi + 0xc]
movups xmm0, xmmword [r13]
movups xmmword [rdi + 0x48], xmm0
mov rax, qword [r14]
mov qword [rdi + 0x58], rax
mov qword [rdi + 0x60], rdx
mov qword [rdi + 0x68], rdx
mov rax, qword [r14 + 8]
mov qword [rdi + 0x60], rax
mov rax, qword [r14 + 0x10]
mov qword [rdi + 0x68], rax
mov qword [r14 + 8], rdx
mov qword [r14 + 0x10], rdx
lea rcx, [rdi + 0x70]
mov r9, qword [rsp + 0xf0]
xor r8d, r8d
call fcn.14002d340
test rsi, rsi
je 0x14004592d
mov eax, 0xffffffff
lock xadd dword [rsi + 0xc], eax
cmp eax, 1
jne 0x14004592d
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + reloc.WS2_32.dll_htonl]
movups xmm0, xmmword [r13]
movups xmmword [rsp + 0x50], xmm0
movq qword [rsp + 0x68], xmm0
movq xmm0, qword [r13 + 8]
movd dword [rsp + 0x60], xmm0
mov rax, qword [r13 + 8]
mov qword [rsp + 0x70], rax
movzx edx, word [r12]
mov rax, qword [rbp + 0x30]
lock inc dword [rax + 0x30]
mov rcx, qword [r15]
cmp rcx, 0xffffffffffffffff
jne 0x140045984
xor r9d, r9d
mov r8d, 0x2719
mov rdx, rdi
mov rcx, qword [rbp + 0x30]
call fcn.14002a420
xor esi, esi
jmp 0x140045a1a
xor esi, esi
mov dword [rsp + 0xe8], esi
mov eax, select
mov r8d, 0x1c
cmp dx, 2
cmovne eax, r8d
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r12
mov eax, dword [rsp + 0xe0]
mov dword [rsp + 0x20], eax
lea r9, [rsp + 0xe8]
lea r8d, [rsi + 1]
lea rdx, [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_WSASendTo]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, 0x274d
cmp eax, 0x4d2
cmove eax, ecx
test ebx, ebx
je 0x140045a0e
cmp eax, 0x3e5
je 0x140045a0e
mov r9d, dword [rsp + 0xe8]
mov r8d, eax
mov rdx, rdi
mov rcx, qword [rbp + 0x30]
call fcn.14002a420
jmp 0x140045a1a
mov rdx, rdi
mov rcx, qword [rbp + 0x30]
call fcn.14002a4c0
mov qword [rsp + 0x88], rsi
mov qword [rsp + 0x80], rsi
lea rcx, [rsp + 0x78]
call fcn.1400499d0
nop
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140045f90
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xf0
mov rax, qword [0x1401c5538]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rdi, rdx
xor r14d, r14d
mov rax, qword [rcx + 0x30]
mov rbx, qword [rax + 0x40]
mov rax, qword [rcx + 0x18]
mov rdx, qword [rax + 0x18]
call rdx
lea r8, [rsp + 0x20]
mov rdx, rax
lea rcx, [rbp - 0x39]
call rbx
nop
mov rcx, qword [rbp - 0x21]
mov qword [rbp + 0x17], rcx
mov rax, qword [rbp - 0x11]
mov qword [rbp + 0x27], rax
lea rax, fcn.140019b10
mov qword [rbp - 0x21], rax
lea rax, [0x140176af0]
mov qword [rbp - 0x11], rax
mov rax, qword [rcx + 0x10]
lea rdx, [rbp - 0x39]
lea rcx, [rbp - 1]
call rax
mov qword [rbp - 0x19], r14
mov rax, qword [rbp - 9]
mov qword [rbp + 0x2f], rax
lea rax, [0x140176b90]
mov qword [rbp - 9], rax
mov rax, qword [rbp - 0x21]
mov rdx, qword [rax]
lea rax, [fcn.140019b10]
cmp rdx, rax
je 0x140046044
lea rcx, [rbp - 0x39]
call rdx
nop
mov rcx, qword [rbp + 0x27]
mov rax, qword [rcx + 0x18]
test rax, rax
je 0x14004606f
lea rcx, [0x140045c50]
mov qword [rbp - 0x49], rcx
mov qword [rbp - 0x41], rdi
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 1]
call rax
jmp 0x140046177
mov rsi, qword [rcx + 0x10]
mov rax, qword [rdi]
mov qword [rbp - 0x79], rax
mov rax, qword [rdi + 8]
mov qword [rbp - 0x71], rax
mov rax, qword [rdi + 0x10]
mov qword [rbp - 0x69], rax
mov qword [rdi + 8], r14
mov qword [rdi + 0x10], r14
movups xmm0, xmmword [rdi + 0x18]
movups xmmword [rbp - 0x61], xmm0
movsd xmm1, qword [rdi + 0x28]
movsd qword [rbp - 0x51], xmm1
lea rax, [rbp - 0x79]
mov qword [rbp - 0x49], rax
mov ecx, dword [0x1401c9bf8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400460c3
mov rdx, qword [rax + 8]
jmp 0x1400460c6
mov rdx, r14
mov r9d, 1
lea r8d, [r9 + 0x3f]
movzx ecx, byte [rsp + 0x20]
call fcn.14002c080
mov rcx, qword [rbp - 0x79]
mov qword [rax + 8], rcx
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], r14
mov rcx, qword [rbp - 0x71]
mov qword [rax + 0x10], rcx
mov rcx, qword [rbp - 0x69]
mov qword [rax + 0x18], rcx
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x71], xmm0
movups xmm0, xmmword [rbp - 0x61]
movups xmmword [rax + 0x20], xmm0
movsd xmm1, qword [rbp - 0x51]
movsd qword [rax + 0x30], xmm1
lea rcx, [0x140045c60]
mov qword [rax], rcx
mov qword [rsp + 0x28], rax
mov rbx, qword [rbp - 0x69]
test rbx, rbx
je 0x140046159
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140046159
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x140046159
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
nop
lea rdx, [rsp + 0x28]
lea rcx, [rbp - 1]
call rsi
nop
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x140046177
mov rax, qword [rcx]
xor edx, edx
call rax
nop
mov rax, qword [rbp + 0x17]
mov rdx, qword [rax]
lea rcx, [rbp - 1]
call rdx
nop
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.1401453a0
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140049830
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x20
mov rbx, qword [rcx + 0x10]
mov rsi, rcx
test rbx, rbx
je 0x14004988d
mov rbx, qword [rbx + 0x18]
test rbx, rbx
je 0x140049885
mov qword [rsp + 0x30], rdi
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140049880
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x140049880
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rdi, qword [rsp + 0x30]
mov qword [rsi + 0x10], 0
mov rbx, qword [rsi + 8]
test rbx, rbx
je 0x1400498d9
mov ecx, dword [0x1401c9bf8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400498c9
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x1400498c9
mov ecx, 4
mov eax, ecx
cmp qword [rdx + rax*8], 0
je 0x1400498e4
inc ecx
inc rax
cmp rax, 6
jl 0x1400498b7
mov rcx, rbx
call fcn.140079780
mov qword [rsi + 8], 0
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
movzx eax, byte [rbx + 0x48]
mov byte [rbx], al
movsxd rax, ecx
mov qword [rdx + rax*8], rbx
mov rbx, qword [rsp + 0x38]
mov qword [rsi + 8], 0
add rsp, 0x20
pop rsi
ret
Function at 0x14004a430
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x50
mov r15, rdx
mov r14d, ecx
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x40], rdi
xor esi, esi
movzx edx, r14w
xor ecx, ecx
lea r8d, [rdi + 0xb]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rbx, rax
test rax, rax
jne 0x14004a49d
call fcn.1400726a0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8d, r14d
lea rdx, str.BinaryResource.WriteResourceToFile:_FindResource__d_failed___d
mov rcx, rbx
call fcn.140072400
jmp 0x14004a5c9
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r12d, eax
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x14004a4e3
call fcn.1400726a0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8d, r14d
lea rdx, str.BinaryResource.WriteResourceToFile:_LoadResource__d_failed___d
mov rcx, rbx
call fcn.140072400
jmp 0x14004a5c9
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
jne 0x14004a51c
call fcn.1400726a0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8d, r14d
lea rdx, str.BinaryResource.WriteResourceToFile:_LockResource__d_failed___d
mov rcx, rbx
call fcn.140072400
jmp 0x14004a5c9
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
mov qword [rsp + 0x40], rax
cmp rax, 0xffffffffffffffff
jne 0x14004a578
call fcn.1400726a0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8, r15
lea rdx, str.BinaryResource.WriteResourceToFile:_CreateFile__s_failed___d
mov rcx, rbx
call fcn.140072400
jmp 0x14004a5c9
mov dword [rsp + 0x80], esi
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x80]
mov r8d, r12d
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14004a5c4
call fcn.1400726a0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8, r15
lea rdx, str.BinaryResource.WriteResourceToFile:_WriteFile__s_failed___d
mov rcx, rbx
call fcn.140072400
jmp 0x14004a5c9
mov esi, 1
cmp rdi, 0xffffffffffffffff
je 0x14004a5d8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x88]
add rsp, 0x50
pop r15
pop r14
pop r12
ret