joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003a1c0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbx, r8
mov rdi, rdx
sub rbx, 1
je 0x14003a266
xor esi, esi
lea rbp, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
nop dword [rax]
cmp byte [0x1400e1090], sil
jne 0x14003a222
mov r9d, 2
mov dword [rsp + 0x40], esi
lea rdx, [rsp + 0x40]
xor ecx, ecx
lea r8d, [r9 + 2]
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
jne 0x14003a26b
mov ecx, dword [rsp + 0x40]
jmp 0x14003a23b
imul ecx, dword [0x1400e108c], 0x41c64e6d
add ecx, 0x3039
mov dword [0x1400e108c], ecx
rol ecx, 0x10
cmp ecx, 0xfffffffc
jae 0x14003a1f0
mov eax, 0x8421085
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
imul eax, eax, 0x3e
sub ecx, eax
movzx eax, byte [rcx + rbp]
mov byte [rdi], al
inc rdi
sub rbx, 1
jne 0x14003a1f0
mov byte [rdi], 0
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x14003a280
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rsi, r8
mov rdi, rdx
mov ecx, Ordinal_46
test r8, r8
je 0x14003a323
xor ebp, ebp
nop word [rax + rax]
mov ebx, 4
cmp rsi, rbx
cmovb rbx, rsi
cmp byte [0x1400e1090], bpl
jne 0x14003a2ee
mov r9d, 2
mov dword [rsp + 0x40], ebp
lea rdx, [rsp + 0x40]
xor ecx, ecx
lea r8d, [r9 + 2]
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb ecx, ecx
and ecx, 2
jne 0x14003a323
mov eax, dword [rsp + 0x40]
jmp 0x14003a308
imul eax, dword [0x1400e108c], 0x41c64e6d
mov ecx, ebp
add eax, 0x3039
mov dword [0x1400e108c], eax
rol eax, 0x10
test rbx, rbx
je 0x14003a31e
sub rsi, rbx
mov byte [rdi], al
inc rdi
shr eax, 8
sub rbx, 1
jne 0x14003a310
test rsi, rsi
jne 0x14003a2b0
mov rbx, qword [rsp + 0x30]
mov eax, ecx
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x14003a340
Capabilities:
Generate random numbers via winapi

Disassembly:
mov r11, rsp
push rbp
push r15
sub rsp, 0xd8
mov rax, qword [0x1400de928]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rax, r8
mov rbp, r8
and rax, 0xfffffffffffffffe
mov r15, rdx
cmp rax, 0x100
jae 0x14003a47d
test bpl, 1
je 0x14003a47d
mov qword [r11 + 8], rbx
mov eax, Ordinal_46
mov qword [r11 + 0x20], rsi
mov qword [r11 - 0x18], rdi
lea rdi, [rsp + 0x30]
mov qword [r11 - 0x20], r12
mov qword [r11 - 0x28], r14
lea r14, [r8 - 1]
shr r14, 1
mov rsi, r14
je 0x14003a43a
xor r12d, r12d
mov ebx, 4
cmp rsi, rbx
cmovb rbx, rsi
cmp byte [0x1400e1090], r12b
jne 0x14003a3f2
mov r9d, 2
mov dword [rsp + 0x20], r12d
lea rdx, [rsp + 0x20]
xor ecx, ecx
lea r8d, [r9 + 2]
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
jne 0x14003a43a
mov eax, dword [rsp + 0x20]
jmp 0x14003a40a
imul eax, dword [0x1400e108c], 0x41c64e6d
add eax, 0x3039
mov dword [0x1400e108c], eax
rol eax, 0x10
test rbx, rbx
je 0x14003a420
sub rsi, rbx
mov byte [rdi], al
inc rdi
shr eax, 8
sub rbx, 1
jne 0x14003a412
test rsi, rsi
jne 0x14003a3b3
mov r9, rbp
lea rcx, [rsp + 0x30]
mov r8, r15
mov rdx, r14
call fcn.140028e90
xor eax, eax
mov r12, qword [rsp + 0xc8]
mov rdi, qword [rsp + 0xd0]
mov rsi, qword [rsp + 0x108]
mov rbx, qword [rsp + 0xf0]
mov r14, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14007b260
add rsp, 0xd8
pop r15
pop rbp
ret
mov eax, Ordinal_46
jmp 0x14003a462
Function at 0x140041230
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xc0
mov rax, qword [0x1400de928]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rsi, qword [rcx + 0x18]
lea r8, [rsp + 0x20]
mov rdi, rcx
lea rdx, [rsp + 0x30]
mov rbx, qword [rsi + 0x230]
mov rcx, rbx
mov qword [rsp + 0x28], 0xffffffffffffffff
mov dword [rsp + 0x20], 0x80
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1400412ac
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], 0x80
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rsp + 0x28], rax
jmp 0x1400412b1
mov rax, qword [rsp + 0x28]
mov rcx, rdi
cmp rax, 0xffffffffffffffff
jne 0x1400412d0
lea rdx, str.Error_accept__ing_server_connect
call fcn.14001f850
mov eax, reloc.WLDAP32.dll_Ordinal_30
jmp 0x14004136a
lea rdx, str.Connection_accepted_from_server
call fcn.14001f940
mov byte [rsi + 0x3b5], 0
mov edx, 1
mov rcx, qword [rsp + 0x28]
call fcn.140058940
lea r9, [rsp + 0x28]
mov r8d, 1
mov rdx, rsi
mov rcx, rdi
call fcn.140027290
mov ebx, eax
test eax, eax
je 0x14004131d
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, ebx
jmp 0x14004136a
cmp qword [rdi + 0x290], 0
je 0x140041368
mov dl, 1
mov rcx, rdi
call fcn.14000d2f0
mov rdx, qword [rsp + 0x28]
mov r8d, 1
mov rcx, qword [rdi + 0x298]
call qword [rdi + 0x290]
xor edx, edx
mov rcx, rdi
mov ebx, eax
call fcn.14000d2f0
test ebx, ebx
je 0x140041368
mov rcx, rdi
call fcn.140041ad0
mov eax, Ordinal_46
jmp 0x14004136a
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14007b260
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rax, qword [rcx + 0x1c8]
mov rbx, rcx
mov rdi, qword [rcx + 0x18]
cmp dword [rax + 0x10], 0
je 0x140043393
movzx eax, byte [rdi + 0x566]
cmp al, 0xd
je 0x140043375
test rdi, rdi
je 0x14004335b
lea r8, str.STOP
mov r8, qword [r8 + rax*8]
jmp 0x140043362
lea r8, [0x1400b85a4]
lea r9, str.RETR_PREQUOTE
lea rdx, str.__s_______s_
call fcn.14001fb00
mov r8b, reloc.WS2_32.dll_listen
mov byte [rdi + 0x566], 0xd
mov dl, 1
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1400434e0
cmp byte [rcx + 0xa5e], 0
je 0x1400433ad
xor edx, edx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1400441b0
cmp byte [rcx + 0xa61], 0
je 0x140043430
mov r9, qword [rdi + 0x510]
lea rdx, [rdi + 0x458]
test r9, r9
jne 0x1400433f7
mov r9, qword [rcx + 0x808]
test r9, r9
jne 0x1400433ee
cmp byte [rcx + 0x1351], 0
lea rax, str.NLST
lea r9, str.LIST
cmovne r9, rax
lea r8, str.PRET__s
jmp 0x14004340e
cmp byte [rcx + 0x1355], 0
lea r8, str.PRET_STOR__s
jne 0x14004340e
lea r8, str.PRET_RETR__s
call fcn.14005cf20
mov edi, eax
test eax, eax
jne 0x140043423
mov dl, Ordinal_30
mov rcx, rbx
call fcn.140041a70
mov eax, edi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rdx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1400440d0
Function at 0x140043790
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x1c8]
add rdx, 0x458
mov rbx, rcx
cmp dword [rax + 0x10], 0
je 0x1400437e8
cmp qword [rdx + 0xb8], 0
je 0x1400437e8
xor r9d, r9d
mov qword [rsp + 0x30], rdi
lea r8, str.REST__d
call fcn.14005cf20
mov edi, eax
test eax, eax
jne 0x1400437dd
mov dl, reloc.WLDAP32.dll_Ordinal_26
mov rcx, rbx
call fcn.140041a70
mov eax, edi
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.140043320

Function at 0x140043ca0
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rbp, qword [rcx + 0x18]
lea eax, [rdx - 0xc8]
xor edi, edi
movzx esi, r8b
mov rbx, rcx
cmp eax, 0x64
jb 0x140043ce0
lea rdx, str.Couldnt_set_desired_mode
call fcn.14001f850
lea eax, [rdi + 0x11]
jmp 0x140043e44
cmp edx, 0xc8
je 0x140043cf7
mov r8d, edx
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200
call fcn.14001f940
cmp sil, 0x13
jne 0x140043d0d
mov rdx, rbp
mov rcx, rbx
call fcn.1400439b0
jmp 0x140043e40
cmp sil, 0x14
jne 0x140043e22
cmp byte [rbx + 0x700], 2
mov rbp, qword [rbx + 0x18]
jne 0x140043d8b
mov rax, qword [rbx + 0x1c8]
mov rcx, qword [rax]
test rcx, rcx
je 0x140043d8b
xor r9d, r9d
mov qword [rsp + 0x40], rdi
lea r8, [rsp + 0x40]
mov dword [rsp + 0x20], 3
xor edx, edx
call fcn.140028ef0
test eax, eax
jne 0x140043e40
mov rcx, qword [rsp + 0x40]
lea edx, [rax + 0x2f]
call fcn.14007d924
test rax, rax
je 0x140043d80
mov rdi, qword [rsp + 0x40]
mov ecx, 1
sub rax, rdi
cmovne rcx, rax
mov byte [rcx + rdi], 0
jmp 0x140043d8b
mov rcx, qword [rsp + 0x40]
call qword [fcn.14008a044]
mov rdx, qword [rbx + 0x808]
test rdx, rdx
jne 0x140043db0
cmp byte [rbx + 0x1351], 0
lea rax, str.NLST
lea rdx, str.LIST
cmovne rdx, rax
lea r8, [0x1400b0f7e]
test rdi, rdi
mov r9, r8
lea rax, reloc.WLDAP32.dll_Ordinal_32
cmovne r9, rdi
lea rcx, [0x1400b23dc]
cmovne r8, rax
call fcn.14002a840
mov rcx, rdi
mov rsi, rax
call qword [fcn.14008a044]
test rsi, rsi
jne 0x140043dee
lea edi, [rsi + 0x1b]
jmp 0x140043e42
lea rdx, [rbp + 0x458]
mov r9, rsi
lea r8, [0x1400b0a78]
mov rcx, rbx
call fcn.14005cf20
mov rcx, rsi
mov edi, eax
call qword [fcn.14008a044]
test edi, edi
jne 0x140043e42
mov dl, Ordinal_32
mov rcx, rbx
call fcn.140041a70
jmp 0x140043e42
cmp sil, 0x15
jne 0x140043e2d
mov r8b, reloc.WS2_32.dll_listen
jmp 0x140043e36
cmp sil, 0x16
jne 0x140043e42
mov r8b, ntohs
mov dl, 1
mov rcx, rbx
call fcn.1400434e0
mov edi, eax
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x14004b160
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov byte [rsp + 0x38], 0xff
mov rcx, qword [rcx + 0x18]
mov edi, r8d
mov esi, edx
mov byte [rsp + 0x3a], dil
xor r9d, r9d
mov byte [rsp + 0x39], sil
lea rdx, [rsp + 0x38]
mov rcx, qword [rcx + 0x228]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x14004b1bf
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbx
mov r8d, eax
call fcn.14001f850
mov r9d, edi
lea rdx, str.SENT
mov r8d, esi
mov rcx, rbx
call fcn.14004ad00
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
cmp edx, 0x1f
jne 0x14004b519
push rsi
push rdi
push r15
sub rsp, 0x20
mov rdi, qword [rcx + 0x1c8]
mov rsi, rcx
mov r15, qword [rcx + 0x18]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rbp
lea rbx, [rdi + 0x1ed8]
mov qword [rsp + 0x58], r14
lea r14, [rdi + 0x1cd8]
mov qword [rbx], r14
cmp r14, rbx
jae 0x14004b3d7
lea rax, [r14 + 1]
mov byte [r14], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x14004b3d7
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x14004b3d7
mov byte [rax], dl
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx ebp, ax
mov word [rsp + 0x48], ax
call qword [sym.imp.WS2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
cmp r9, rbx
jae 0x14004b40d
mov byte [r9], bpl
inc qword [rbx]
mov r9, qword [rbx]
mov rbp, qword [rsp + 0x50]
cmp r9, rbx
jae 0x14004b463
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14004b463
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14004b463
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14004b463
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14004b463
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rdi + 0x1ee0], r9
lea r8, [rdi + 0x1cda]
sub r9, r14
mov qword [rbx], r14
sub r9, 2
mov edx, 0x3e
mov rcx, rsi
call fcn.14004ae30
mov rcx, qword [r15 + 0x228]
xor r9d, r9d
mov rdx, r14
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov r14, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x14004b4c5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rsi
mov r8d, eax
call fcn.14001f850
lea rdx, [rdi + 0x1cdb]
mov r8d, 4
mov rcx, rsi
call fcn.14004b1f0
mov rcx, qword [r15 + 0x228]
lea rdx, [rdi + 0x1cdf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x14004b511
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rsi
mov r8d, eax
call fcn.14001f850
add rsp, 0x20
pop r15
pop rdi
pop rsi
ret
Function at 0x14004cb90
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x1400de928]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rax, qword [rcx + 0x18]
mov rbp, rcx
xor r9d, r9d
xor esi, esi
mov rdi, qword [rax + 0x458]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0x80
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r8d, dword [rdi + 0x144]
mov rdx, qword [rdi + 0x150]
add r8d, 4
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.WS2_32.dll_recvfrom]
mov dword [rdi + 0x13c], eax
cmp dword [rdi + 0x138], esi
jne 0x14004cc26
movsxd r8, dword [rsp + 0x30]
lea rcx, [rdi + 0xb8]
lea rdx, [rsp + 0x40]
call fcn.14007c110
mov eax, dword [rsp + 0x30]
mov dword [rdi + 0x138], eax
mov r8d, dword [rdi + 0x13c]
mov qword [rsp + 0x100], r14
cmp r8d, 4
jge 0x14004cc76
lea rdx, str.Received_too_short_packet
mov rcx, rbp
call fcn.14001f850
mov dword [rdi + 0xc], 7
mov eax, esi
mov r14, qword [rsp + 0x100]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14007b260
add rsp, 0xd0
pop rdi
pop rsi
pop rbp
ret
mov rdx, qword [rdi + 0x150]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rdi + 0xc], ecx
dec ecx
cmp ecx, 5
ja case.0x14004ccac.1
movsxd rax, ecx
lea r9, [0x140000000]
mov ecx, dword [r9 + rax*4 + 0x4cdb4]
add rcx, r9
jmp rcx
cmp r8d, 4
jle case.0x14004ccac.4
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rdi + 0x14c]
inc eax
movzx eax, ax
cmp eax, ecx
jne case.0x14004ccac.4
lea eax, [r8 - 4]
mov rcx, rbp
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.140020d60
mov esi, eax
test eax, eax
je case.0x14004ccac.4
mov edx, 5
mov rcx, rdi
call fcn.14004d7a0
jmp 0x14004cc51
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
shl ecx, 8
lea r14, [rdx + 4]
mov qword [rsp + 0xf8], rbx
movsxd rbx, eax
movzx eax, byte [rdx + 3]
mov rdx, rbx
or ecx, eax
mov dword [rdi + 8], ecx
mov rcx, r14
call fcn.14004d810
cmp rax, rbx
mov rbx, qword [rsp + 0xf8]
jae case.0x14004ccac.4
mov r8, r14
lea rdx, str.TFTP_error:__s
mov rcx, rbp
call fcn.14001f940
jmp case.0x14004ccac.4
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rdi
call fcn.14004c8e0
mov esi, eax
test eax, eax
je case.0x14004ccac.4
jmp 0x14004cc53
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rbp
lea rdx, [0x1400b0a78]
call fcn.14001f850
mov rcx, rbp
call fcn.140034ad0
test eax, eax
je 0x14004cc51
mov edx, 5
mov rcx, rdi
call fcn.14004d7a0
mov eax, Ordinal_46
jmp 0x14004cc53
Function at 0x14004ec80
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov r14, rcx
mov ebx, 1
mov edx, ebx
xor ecx, ecx
xor ebp, ebp
call qword [case.0x14001a952.0]
mov rdi, rax
test rax, rax
je 0x14004ecfd
nop word [rax + rax]
mov r8d, ebx
mov rdx, rdi
mov rcx, r14
mov rbp, rdi
mov esi, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ebx, eax
test eax, eax
je 0x14004ed28
cmp ebx, esi
je 0x14004ed28
cmp ebx, 0x8000
ja 0x14004ed28
cmp ebx, esi
jb 0x14004ed23
mov edx, ebx
mov rcx, rdi
call qword [case.0x14001a952.0]
mov rdi, rax
test rax, rax
jne 0x14004ecc0
mov rcx, rbp
call qword [fcn.14008a044]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rax, rdi
jmp 0x14004ed08
mov rcx, rdi
jmp 0x14004ed00
Function at 0x14005fae0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [fcn.14008a058]
mov rdi, rax
test rax, rax
jne 0x14005fb22
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x14005fb69
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x14005fbc2
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x14005fb80
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x14005fc03
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400bd7e0]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400bd7e1]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x14005fbd0
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x140060610
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x78]
sub rax, 0x10000
mov rcx, rax
call fcn.140060860
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x14006072a
mov rax, qword [0x1400de790]
cmp qword [rsp + 0x20], rax
jb 0x140060674
mov rax, qword [0x1400de798]
cmp qword [rsp + 0x20], rax
ja 0x140060674
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x140060636
mov r8d, Ordinal_50
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.14007c7c0
mov r8d, Ordinal_50
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x1400606a5
jmp 0x14006072a
cmp dword [rsp + 0x50], 0x10000
jne 0x14006070d
cmp qword [rsp + 0x48], 0x10000
jb 0x14006070d
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualAlloc
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1400606eb
mov rax, qword [rsp + 0x28]
jmp 0x14006072c
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1400606fb
xor eax, eax
jmp 0x14006072c
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x140060725
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.140060860
mov qword [rsp + 0x20], rax
jmp 0x140060636
xor eax, eax
add rsp, 0x68
ret

Function at 0x140060740
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x70]
call fcn.1400608a0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x140060856
mov rax, qword [0x1400de790]
cmp qword [rsp + 0x20], rax
jb 0x14006079b
mov rax, qword [0x1400de798]
cmp qword [rsp + 0x20], rax
ja 0x14006079b
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x14006075d
mov r8d, Ordinal_50
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.14007c7c0
mov r8d, Ordinal_50
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x1400607cc
jmp 0x140060856
cmp dword [rsp + 0x50], 0x10000
jne 0x140060834
cmp qword [rsp + 0x48], 0x10000
jb 0x140060834
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualAlloc
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140060812
mov rax, qword [rsp + 0x28]
jmp 0x140060858
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x140060822
xor eax, eax
jmp 0x140060858
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x140060851
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.1400608a0
mov qword [rsp + 0x20], rax
jmp 0x14006075d
xor eax, eax
add rsp, 0x68
ret
Function at 0x1400608f0
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.140060e80
mov qword [rsp + 0x28], 0
cmp qword [0x1400e10a8], 0
jne 0x140060938
cmp qword [0x1400e10a0], 0
je 0x140060938
mov rax, qword [0x1400e10a0]
mov qword [0x1400e10a8], rax
cmp qword [0x1400e10a8], 0
je 0x1400609de
mov rax, qword [0x1400e10a8]
cmp qword [rax + 0x10], 0
je 0x1400609de
mov rax, qword [0x1400e10a8]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x1400609de
mov rax, qword [0x1400e10a8]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x1400609de
mov rax, qword [0x1400e10a8]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x1400609a4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x1400609ab
xor eax, eax
jmp 0x140060b55
mov rax, qword [0x1400e10a8]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x48]
mov qword [rax + 0x10], rcx
mov r8d, 0x60
mov edx, 0xcc
mov rcx, qword [rsp + 0x28]
call fcn.14007c7c0
mov rax, qword [rsp + 0x28]
jmp 0x140060b55
mov rax, qword [0x1400e10a0]
mov qword [0x1400e10a8], rax
jmp 0x140060a00
mov rax, qword [0x1400e10a8]
mov rax, qword [rax + 8]
mov qword [0x1400e10a8], rax
cmp qword [0x1400e10a8], 0
je 0x140060a4d
cmp qword [0x1400e10a8], 0
je 0x140060a4b
mov rax, qword [0x1400e10a8]
cmp qword [rax + 0x10], 0
je 0x140060a4b
mov rax, qword [0x1400e10a8]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x140060a4b
mov rax, qword [0x1400e10a8]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x140060a4b
jmp 0x14006097c
jmp 0x1400609ee
mov rax, qword [rsp + 0x60]
and rax, 0xffff
mov eax, eax
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.140060b60
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x140060b53
mov rax, qword [rsp + 0x48]
mov qword [0x1400e10a8], rax
mov rax, qword [0x1400e10a8]
mov dword [rax], 0x52727464
mov rax, qword [0x1400e10a8]
mov qword [rax + 0x10], 0
mov rax, qword [0x1400e10a8]
mov rcx, qword [0x1400e10a0]
mov qword [rax + 8], rcx
mov rax, qword [0x1400e10a8]
mov qword [0x1400e10a0], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x1400e10a8]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x140060b04
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x140060b3e
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax + 0x48], rdx
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x140060afa
mov rax, qword [0x1400e10a8]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x14006097c
xor eax, eax
add rsp, 0x58
ret