joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140011e98
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 0x140011ec8
xor eax, eax
jmp 0x140011f8b
mov rbp, rbx
cmp word [rax], si
je 0x140011eed
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140011ed4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140011ed0
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.140011db8
movsxd r14, eax
test eax, eax
jne 0x140011f2b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140011ec1
mov rcx, r14
call fcn.140010594
mov rdi, rax
test rax, rax
jne 0x140011f44
xor ecx, ecx
call fcn.14000e89c
jmp 0x140011f20
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.140011db8
test eax, eax
jne 0x140011f75
mov rcx, rdi
call fcn.14000e89c
jmp 0x140011f7f
xor ecx, ecx
call fcn.14000e89c
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 0x1400155e8
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.14000f74c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140015672
cmp byte [rbp - 0x21], r15b
je 0x14001566d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400156a8
call fcn.1400101c4
test eax, eax
jne 0x140015694
cmp byte [rbp - 0x21], r15b
je 0x14001568c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400156a8
cmp byte [rbp - 0x21], r15b
je 0x1400156a5
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.14000f5d0
test eax, eax
jne 0x140015748
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000f74c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400156e7
cmp byte [rbp - 0x21], r15b
je 0x14001571c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14001571c
call fcn.1400101c4
test eax, eax
jne 0x140015708
cmp byte [rbp - 0x21], r15b
je 0x140015701
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14001571c
cmp byte [rbp - 0x21], r15b
je 0x140015719
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.14000f5d0
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140015748
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14001574b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140015759
mov rcx, rdi
call fcn.14000e89c
cmp byte [rbp + 0x3f], r15b
je 0x140015768
mov rcx, qword [rbp + 0x27]
call fcn.14000e89c
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 0x1400184f0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140018518
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140018518
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140022d00
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x14003f7c8], rbx
je 0x140022d67
cmp rax, rbx
jne 0x140022d5a
mov ebx, 1
mov esi, ebx
jmp 0x140022d6c
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140022d3f
mov ebx, 1
mov eax, dword [0x14003f7d0]
cmp eax, ebx
jne 0x140022d84
mov edi, 0x1f
mov ecx, edi
call sub.msvcrt.dll__amsg_exit
jmp 0x140022df0
mov eax, dword [0x14003f7d0]
test eax, eax
jne 0x140022de5
mov dword [0x14003f7d0], ebx
lea r15, [0x140025b70]
lea rdi, [0x140025b58]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x140022dd7
test eax, eax
jne 0x140022ddb
cmp qword [rdi], r14
je 0x140022dcc
mov rax, qword [rdi]
mov rcx, qword [0x140025b28]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x140022dae
test eax, eax
je 0x140022deb
mov eax, 0xff
jmp 0x140022f46
mov dword [0x14003f1f8], ebx
mov edi, 0x1f
mov eax, dword [0x14003f7d0]
cmp eax, ebx
jne 0x140022e17
lea rdx, [0x140025b50]
lea rcx, [0x140025b30]
call sub.msvcrt.dll__initterm
mov dword [0x14003f7d0], 2
test esi, esi
jne 0x140022e25
mov rax, r14
xchg qword [0x14003f7c8], rax
cmp qword [0x14003f7e8], r14
je 0x140022e58
lea rcx, [0x14003f7e8]
call fcn.1400237c0
test eax, eax
je 0x140022e58
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14003f7e8]
mov r9, qword [0x140025b28]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x140022e71
mov eax, 0xff
jmp 0x140022f46
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x140022ef7
test ax, ax
je 0x140022e8c
test edx, edx
jne 0x140022ef7
sub ax, bx
cmp ax, di
ja 0x140022ea2
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x140022e8c
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.1400239ac
mov dword [0x14003f1f4], eax
cmp dword [0x14003f218], r14d
jne 0x140022ee0
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14003f1f8], r14d
jne 0x140022ef5
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14003f1f4]
jmp 0x140022f46
cmp ax, 0x22
jne 0x140022f0b
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x140022e7a
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.1401b2000
add rsp, 0x28
jmp 0x140022d00
Function at 0x180001448
Capabilities:
Encode data using xor

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, 0x30
mov rbp, rcx
mov ecx, dword [r9]
mov rbx, r9
mov esi, r8d
mov rdi, rdx
call fcn.1800040f4
test eax, eax
jne 0x180001569
mov ecx, dword [r9 + 4]
lea eax, [rcx - 1]
cmp eax, 0x7f
ja 0x180001564
xor edx, edx
mov eax, r8d
div ecx
mov r8d, eax
test edx, edx
jne 0x180001564
test cl, 3
jne 0x180001564
movsxd rax, dword [r9]
lea r12, [0x18004e690]
imul rax, rax, 0xb0
mov r10, qword [rax + r12 + 0x60]
test r10, r10
je 0x1800014e5
lea rax, [r9 + 0x88]
mov rdx, rdi
mov rcx, rbp
add r9, 8
mov qword [rsp + 0x20], rax
call r10
jmp 0x180001569
test esi, esi
je 0x180001560
lea r14, [r9 + 8]
xor edx, edx
test ecx, ecx
jle 0x18000150f
mov r8, rbp
mov rcx, r14
sub r8, rbx
mov eax, dword [r8 + rcx - 8]
add edx, 4
xor dword [rcx], eax
lea rcx, [rcx + 4]
cmp edx, dword [rbx + 4]
jl 0x1800014fc
movsxd rax, dword [rbx]
lea r8, [rbx + 0x88]
mov rdx, rdi
mov rcx, r14
imul rax, rax, 0xb0
call qword [rax + r12 + 0x28]
test eax, eax
jne 0x180001569
xor edx, edx
cmp dword [rbx + 4], edx
jle 0x180001552
mov r8, rdi
mov rcx, r14
sub r8, rbx
mov eax, dword [r8 + rcx - 8]
add edx, 4
mov dword [rcx], eax
lea rcx, [rcx + 4]
cmp edx, dword [rbx + 4]
jl 0x18000153f
movsxd rcx, dword [rbx + 4]
add rdi, rcx
add rbp, rcx
sub esi, ecx
jne 0x1800014ed
xor eax, eax
jmp 0x180001569
mov eax, reloc.WS2_32.dll_recv
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r12
ret
Function at 0x180001588
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x58
mov rax, qword [0x180046108]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, rcx
mov ecx, dword [r9]
mov rbx, r9
mov esi, r8d
mov rbp, rdx
call fcn.1800040f4
test eax, eax
jne 0x1800016a6
mov ecx, dword [r9 + 4]
lea eax, [rcx - 1]
cmp eax, 0x7f
ja 0x1800016a1
xor edx, edx
mov eax, r8d
div ecx
mov r8d, eax
test edx, edx
jne 0x1800016a1
test cl, 3
jne 0x1800016a1
movsxd rax, dword [r9]
lea r15, [0x18004e690]
imul rax, rax, 0xb0
mov r10, qword [rax + r15 + 0x68]
test r10, r10
je 0x180001624
lea rax, [r9 + 0x88]
mov rdx, rbp
mov rcx, rdi
add r9, 8
mov qword [rsp + 0x20], rax
call r10
jmp 0x1800016a6
test esi, esi
je 0x18000169d
movsxd rax, dword [rbx]
lea r8, [rbx + 0x88]
lea rdx, [rsp + 0x30]
mov rcx, rdi
imul rax, rax, 0xb0
call qword [rax + r15 + gethostbyname]
test eax, eax
jne 0x1800016a6
xor r8d, r8d
cmp dword [rbx + 4], r8d
jle 0x18000168e
lea r9, [rsp + 0x30]
mov r10, rdi
mov r11, rbp
sub r9, rdi
sub r10, rbx
sub r11, rbx
lea rdx, [rbx + 8]
lea rax, [r10 + rdx]
add r8d, 4
mov ecx, dword [r9 + rax - 8]
mov eax, dword [rax - 8]
xor ecx, dword [rdx]
mov dword [rdx], eax
lea rdx, [rdx + 4]
mov dword [r11 + rdx - 0xc], ecx
cmp r8d, dword [rbx + 4]
jl 0x18000166b
movsxd rax, dword [rbx + 4]
add rdi, rax
add rbp, rax
sub esi, dword [rbx + 4]
jne 0x180001628
xor eax, eax
jmp 0x1800016a6
mov eax, reloc.WS2_32.dll_recv
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1800244e0
add rsp, 0x58
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1800039f4
Capabilities:
Hash data using sha256

Disassembly:
and dword [rcx + 0x28], 0
and qword [rcx], 0
xor eax, eax
mov dword [rcx + 8], 0x6a09e667
mov dword [rcx + 0xc], 0xbb67ae85
mov dword [rcx + 0x10], 0x3c6ef372
mov dword [rcx + 0x14], 0xa54ff53a
mov dword [rcx + 0x18], 0x510e527f
mov dword [rcx + 0x1c], 0x9b05688c
mov dword [rcx + 0x20], 0x1f83d9ab
mov dword [rcx + 0x24], 0x5be0cd19
ret

Function at 0x180004170
Capabilities:
Encode data using xor

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, 0x20
mov rsi, rcx
mov ecx, dword [rcx + 0x70]
mov r13, r8
mov r15, rdx
call fcn.18000411c
test eax, eax
jne 0x1800042e2
movsxd rdi, dword [rsi + 0x70]
lea rbx, [0x18004fc90]
shl rdi, 7
mov ecx, dword [rdi + rbx + 0x10]
mov r12d, dword [rdi + rbx + 0xc]
call fcn.18001ab88
mov ecx, r12d
mov r14, rax
call fcn.18001ab88
mov rbp, rax
test r14, r14
je 0x1800042d0
test rax, rax
je 0x1800042c8
mov rdx, rax
mov rcx, rsi
call qword [rdi + rbx + 0x68]
mov ebx, eax
test eax, eax
jne 0x1800042a8
lea r9, [0x18004fc90]
xor r8d, r8d
cmp dword [rdi + r9 + 0x10], r8d
jbe 0x180004223
mov rax, qword [rsi + 0xe8]
mov cl, byte [rax + r8]
xor cl, 0x5c
mov byte [r8 + r14], cl
inc r8d
cmp r8d, dword [rdi + r9 + 0x10]
jb 0x180004207
mov rcx, rsi
call qword [rdi + r9 + 0x58]
mov ebx, eax
test eax, eax
jne 0x1800042a8
lea rax, [0x18004fc90]
mov rdx, r14
mov rcx, rsi
mov r8d, dword [rdi + rax + 0x10]
call qword [rdi + rax + 0x60]
mov ebx, eax
test eax, eax
jne 0x1800042a8
lea rax, [0x18004fc90]
mov r8d, r12d
mov rdx, rbp
mov rcx, rsi
call qword [rdi + rax + 0x60]
mov ebx, eax
test eax, eax
jne 0x1800042a8
lea rax, [0x18004fc90]
mov rdx, r14
mov rcx, rsi
call qword [rdi + rax + 0x68]
mov ebx, eax
test eax, eax
jne 0x1800042a8
xor ecx, ecx
test r12d, r12d
je 0x1800042a2
mov rdx, r14
sub rdx, r15
cmp ecx, dword [r13]
jae 0x1800042a2
mov al, byte [rdx + r15]
inc ecx
mov byte [r15], al
inc r15
cmp ecx, r12d
jb 0x18000428b
mov dword [r13], ecx
xor ebx, ebx
mov rcx, qword [rsi + 0xe8]
call fcn.18001ab48
mov rcx, rbp
call fcn.18001ab48
mov rcx, r14
call fcn.18001ab48
mov eax, ebx
jmp 0x1800042e2
mov rcx, r14
call fcn.18001ab48
test rbp, rbp
je 0x1800042dd
mov rcx, rbp
call fcn.18001ab48
mov eax, reloc.WS2_32.dll_listen
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x180004300
Capabilities:
Encode data using xor

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, 0x40
mov rsi, rcx
movsxd rbp, edx
mov edi, r9d
mov ecx, ebp
mov r13, r8
call fcn.18000411c
test eax, eax
jne 0x18000446d
mov rbx, rbp
lea rax, [0x18004fc90]
mov dword [rsi + 0x70], ebp
shl rbx, 7
mov r15d, dword [rbx + rax + 0xc]
test r9d, r9d
jne 0x18000435b
lea eax, [r9 + 3]
jmp 0x18000446d
mov r12d, dword [rbx + rax + 0x10]
mov ecx, r12d
call fcn.18001ab88
mov r14, rax
test rax, rax
jne 0x180004379
lea eax, [r14 + 0xd]
jmp 0x18000446d
mov rcx, r12
call fcn.18001ab88
mov qword [rsi + 0xe8], rax
test rax, rax
jne 0x180004395
lea edi, [rax + 0xd]
jmp 0x180004463
lea r12, [0x18004fc90]
mov rdx, r13
mov ecx, dword [rbx + r12 + 0x10]
cmp edi, ecx
jbe 0x1800043e6
mov dword [rsp + 0x30], ecx
lea rcx, [rsp + 0x30]
mov r9, rax
mov qword [rsp + 0x20], rcx
mov ecx, ebp
mov r8d, edi
call fcn.1800018bc
mov edi, eax
test eax, eax
jne 0x180004457
mov eax, dword [rbx + r12 + 0x10]
cmp r15d, eax
jae 0x18000440d
mov rcx, r15
sub eax, r15d
add rcx, qword [rsi + 0xe8]
jmp 0x180004406
mov r8, rdi
mov rcx, rax
call fcn.18001b610
mov eax, dword [rbx + r12 + 0x10]
cmp edi, eax
jae 0x18000440d
mov rcx, qword [rsi + 0xe8]
sub eax, edi
add rcx, rdi
mov edx, eax
call fcn.1800040dc
xor r8d, r8d
cmp dword [rbx + r12 + 0x10], r8d
jbe 0x180004433
mov rax, qword [rsi + 0xe8]
mov cl, byte [rax + r8]
xor cl, 0x36
mov byte [r8 + r14], cl
inc r8d
cmp r8d, dword [rbx + r12 + 0x10]
jb 0x180004417
mov rcx, rsi
call qword [rbx + r12 + 0x58]
mov edi, eax
test eax, eax
jne 0x180004457
mov r8d, dword [rbx + r12 + 0x10]
mov rdx, r14
mov rcx, rsi
call qword [rbx + r12 + 0x60]
mov edi, eax
test eax, eax
je 0x180004463
mov rcx, qword [rsi + 0xe8]
call fcn.18001ab48
mov rcx, r14
call fcn.18001ab48
mov eax, edi
lea r11, [rsp + 0x40]
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 0x18000ca74
Capabilities:
Get socket status
Initialize winsock library
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x320]
sub rsp, 0x420
mov rsi, rdx
mov rbx, rcx
lea rdx, [rbp + 0x180]
mov ecx, 0x202
mov dword [rbp + 0x350], 0x3e8
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x18000cac1
mov eax, 1
jmp 0x18000cc4e
mov r8d, select
lea r14d, [r8 - 0xf]
mov edx, r14d
mov ecx, r14d
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x18000cae8
call qword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x18000cab7
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov rbx, rax
test rax, rax
jne 0x18000cb04
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x18000cae0
mov ecx, 0x7b
mov word [rsp + 0x30], r14w
call qword [sym.imp.WS2_32.dll_htons]
lea rcx, [rsp + 0x34]
mov word [rsp + 0x32], ax
mov rdx, qword [rbx + 0x18]
movsx r8, word [rbx + 0x12]
mov rdx, qword [rdx]
call fcn.18001b610
mov r14d, gethostbyname
lea rcx, [rsp + 0x40]
mov r8d, r14d
xor edx, edx
call fcn.18001ae30
lea rax, [rsp + 0x30]
lea rdx, [rsp + 0x40]
xor r9d, r9d
mov r8d, r14d
mov rcx, rdi
mov dword [rsp + 0x28], reloc.WS2_32.dll_recv
mov byte [rsp + 0x40], 0xdb
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x18000cb80
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x18000caf9
lea r9, [rbp + 0x350]
mov edx, 0xffff
mov r8d, 0x1006
mov rcx, rdi
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
and dword [rbp + 0x35c], 0
lea rax, [rbp + 0x358]
mov ebx, 1
lea rdx, [rsp + 0x70]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x78], rdi
mov dword [rsp + 0x70], ebx
mov dword [rbp + 0x358], ebx
call qword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x18000cbf5
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, ebx
jmp 0x18000cc4e
mov rcx, rdi
test eax, eax
je 0x18000cbe5
lea rdx, [rsp + 0x40]
xor r9d, r9d
mov r8d, r14d
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x18000cbe2
mov ecx, dword [rsp + 0x68]
call qword [sym.imp.WS2_32.dll_ntohl]
mov ecx, dword [rsp + 0x6c]
mov dword [rsp + 0x68], eax
call qword [sym.imp.WS2_32.dll_ntohl]
mov ebx, dword [rsp + 0x68]
mov dword [rsp + 0x6c], eax
mov eax, 0x83aa7e80
mov rcx, rdi
sub rbx, rax
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov qword [rsi], rbx
xor eax, eax
lea r11, [rsp + 0x420]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x18000e968
Capabilities:
Connect to http server
Create http request

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push r14
sub rsp, 0x40
mov rbx, r8
mov edi, edx
mov rsi, rcx
mov dword [rax + 0x20], 0x3a980
call fcn.18001a36c
mov ecx, 5
call fcn.180019200
mov ecx, gethostbyname
and al, 8
neg al
sbb r9d, r9d
and r9d, 0x803000
add r9d, 0x84400200
mov dword [0x180046bd4], r9d
call fcn.180019200
mov r14d, 1
cmp ax, r14w
jne 0x18000e9d5
bts dword [0x180046bd4], 0x13
mov ecx, 0x23
call fcn.180019200
movzx ecx, ax
test ecx, ecx
je 0x18000ea0b
dec ecx
je 0x18000ea03
dec ecx
je 0x18000e9fc
cmp ecx, 2
je 0x18000ea0b
mov rax, qword [0x180046bb8]
jmp 0x18000ea35
xor r8d, r8d
xor edx, edx
jmp 0x18000ea1d
xor r8d, r8d
mov edx, r14d
jmp 0x18000ea1d
mov ecx, 0x20
call fcn.1800191cc
mov edx, 3
mov r8, rax
and dword [rsp + 0x20], 0
xor r9d, r9d
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetOpenA]
mov qword [0x180046bb8], rax
mov ebx, 4
lea r8, [rsp + 0x68]
mov rcx, rax
lea edx, [rbx + 1]
mov r9d, ebx
call qword [sym.imp.WININET.dll_InternetSetOptionA]
mov rcx, qword [0x180046bb8]
lea r8, [rsp + 0x68]
lea edx, [rbx + 2]
mov r9d, ebx
call qword [sym.imp.WININET.dll_InternetSetOptionA]
mov rcx, qword [0x180046bb8]
lea rax, [0x180046bd8]
mov qword [rsp + 0x38], rax
and dword [rsp + 0x30], 0
xor r9d, r9d
movzx r8d, di
mov rdx, rsi
mov dword [rsp + 0x28], 3
and qword [rsp + 0x20], 0
call qword [sym.imp.WININET.dll_InternetConnectA]
lea ecx, [rbx + 0x1f]
mov qword [0x180046bc0], rax
call fcn.180019200
cmp ax, bx
jne 0x18000eb04
lea edi, [rbx + 0x1d]
mov ecx, edi
call fcn.1800191ac
mov ecx, edi
mov ebx, eax
call fcn.1800191cc
mov rcx, qword [0x180046bc0]
lea edx, [rdi + 0xa]
mov r9d, ebx
mov r8, rax
call qword [sym.imp.WININET.dll_InternetSetOptionA]
mov edi, 0x22
mov ecx, edi
call fcn.1800191ac
mov ecx, edi
mov ebx, eax
call fcn.1800191cc
mov rcx, qword [0x180046bc0]
lea edx, [rdi + 0xa]
mov r9d, ebx
mov r8, rax
call qword [sym.imp.WININET.dll_InternetSetOptionA]
call fcn.18001a39c
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop r14
ret
Function at 0x18000eb20
Capabilities:
Send data
Send http request

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r14
push rbp
lea rbp, [rax - 0x418]
sub rsp, 0x510
and qword [rbp - 0x78], 0
mov rbx, rcx
lea rax, [0x18003277c]
lea rcx, [rbp + 0x11]
xor edx, edx
mov r8d, 0x3ff
mov qword [rbp - 0x80], rax
mov byte [rbp + 0x10], 0
call fcn.18001ae30
xor edx, edx
lea rcx, [rbp - 0x6f]
mov byte [rbp - 0x70], 0
lea r8d, [rdx + 0x7f]
call fcn.18001ae30
and qword [rsp + 0x40], 0
xor edx, edx
lea r8d, [rdx + 0x38]
lea rcx, [rsp + 0x48]
call fcn.18001ae30
mov edx, dword [0x180046bd0]
test edx, edx
je 0x18000ed3a
lea rcx, [rsp + 0x40]
call fcn.18001658c
mov rcx, qword [rsp + 0x50]
mov edi, 0x400
lea r8, [0x180032768]
mov edx, edi
mov r9, rbx
call fcn.18001af3c
mov r9d, dword [0x1800516e0]
lea r8, [0x180032780]
lea rcx, [rbp - 0x70]
mov edx, 0x80
call fcn.18001af3c
or r14, 0xffffffffffffffff
lea rax, [rbp - 0x70]
mov rbx, r14
inc rbx
cmp byte [rax + rbx], 0
jne 0x18000ebe9
mov ecx, 0x25
call fcn.1800191cc
lea r8, [rbp - 0x70]
lea rdx, [rsp + 0x40]
mov rcx, rax
mov eax, dword [0x180046bd0]
mov r9d, ebx
mov dword [rsp + 0x28], eax
mov rax, qword [0x180046bc8]
mov qword [rsp + 0x20], rax
call fcn.180015ca4
mov rcx, qword [rsp + 0x48]
mov rax, r14
inc rax
cmp byte [rcx + rax], 0
jne 0x18000ec2e
mov r9, qword [rsp + 0x50]
mov rdx, rdi
test rax, rax
jne 0x18000ec56
lea r8, [0x180032768]
lea rcx, [rbp + 0x10]
call fcn.18001af3c
jmp 0x18000ec6b
mov qword [rsp + 0x20], rcx
lea r8, [0x180032784]
lea rcx, [rbp + 0x10]
call fcn.18001af3c
call fcn.18001a36c
xor ebx, ebx
mov ecx, 0x1b
call fcn.1800191cc
mov rcx, qword [0x180046bc0]
lea r8, [rbp + 0x10]
mov rdx, rax
lea rax, [0x180046bd8]
xor r9d, r9d
mov qword [rsp + 0x38], rax
mov eax, dword [0x180046bd4]
mov dword [rsp + 0x30], eax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
call qword [sym.imp.WININET.dll_HttpOpenRequestA]
mov rcx, rax
mov rdi, rax
call fcn.18000e838
mov rdx, qword [rsp + 0x40]
mov r8, r14
inc r8
cmp byte [rdx + r8], 0
jne 0x18000eccb
mov eax, dword [rsp + 0x60]
mov r9, qword [rsp + 0x58]
mov rcx, rdi
mov dword [rsp + 0x20], eax
call qword [sym.imp.WININET.dll_HttpSendRequestA]
mov rcx, rdi
call fcn.18000ee3c
mov rcx, rdi
test eax, eax
jne 0x18000ed18
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 4
jb 0x18000ec72
jmp 0x18000ed1e
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [0x180046bd0]
lea rcx, [rsp + 0x40]
call fcn.180016580
and dword [0x180046bd0], 0
call fcn.18001a39c
lea r11, [rsp + 0x510]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r14, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret