joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140017ed0
Capabilities:
Get hostname

Disassembly:
push rbx
sub rsp, 0x140
mov rax, qword [0x140495598]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rbx, rcx
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x100
call fcn.140330340
mov edx, 0x100
lea rcx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x140017f5e
xor eax, eax
mov rcx, 0xffffffffffffffff
mov qword [rbx], rax
lea rax, [rsp + 0x30]
nop word [rax + rax]
inc rcx
cmp byte [rax + rcx], 0
jne 0x140017f30
mov qword [rbx + 8], rcx
inc rcx
call fcn.140311c30
mov r8, qword [rbx + 8]
lea rdx, [rsp + 0x30]
inc r8
mov qword [rbx], rax
mov rcx, rax
call fcn.14032fed0
jmp 0x140017f67
xor eax, eax
mov qword [rbx], rax
mov qword [rbx + 8], rax
mov rax, rbx
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1403115a0
add rsp, 0x140
pop rbx
ret
Function at 0x14002d200
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
test rcx, rcx
je 0x14002d485
push rbp
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x298], rbx
mov rax, qword [0x140495598]
xor rax, rsp
mov qword [rbp + 0x170], rax
xor ebx, ebx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x38], bl
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rcx + r8], bl
jne 0x14002d256
mov rdx, rcx
lea rcx, [rsp + 0x38]
call fcn.140005040
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14002d42a
lea rax, [rsp + 0x38]
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
cmovae rax, r8
cmp byte [rcx + rax - 1], 0x2f
je 0x14002d2ad
lea rax, [rsp + 0x38]
cmp rdx, 0x10
cmovae rax, r8
cmp byte [rcx + rax - 1], 0x5c
jne 0x14002d2d5
dec rcx
mov qword [rsp + 0x48], rcx
lea rax, [rsp + 0x38]
cmp rdx, 0x10
cmovae rax, r8
mov byte [rax + rcx], 0
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
mov r8, qword [rsp + 0x38]
test rcx, rcx
je 0x14002d434
lea rax, [rsp + 0x38]
cmp rdx, 0x10
jb 0x14002d2f5
mov rax, r8
test r8, r8
je 0x14002d434
mov dword [rsp + 0x28], 0x104
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
mov r9d, 0xffffffff
mov r8, rax
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x14002d335
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x14002d42a
jmp 0x14002d3fd
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x14002d3f7
lea rdx, [rsp + 0x60]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, eax
test rax, rax
je 0x14002d3f7
cmp rax, 0x104
ja 0x14002d42a
cmp word [rsp + rax*2 + 0x5e], 0x5c
jne 0x14002d39e
cmp rax, 3
jne 0x14002d385
cmp word [rsp + 0x62], 0x3a
je 0x14002d3ac
dec rax
lea rcx, [rax + rax]
cmp rcx, 0x208
jae 0x14002d486
mov word [rsp + rcx + 0x60], bx
cmp rax, 2
jb 0x14002d408
cmp word [rsp + 0x62], 0x3a
jne 0x14002d408
movzx ecx, word [rsp + 0x60]
lea eax, [rcx - 0x41]
cmp ax, 0x19
jbe 0x14002d3c7
lea eax, [rcx - 0x61]
cmp ax, 0x19
ja 0x14002d408
sub cx, 0x20
test cx, cx
je 0x14002d408
mov eax, 0x3d
mov word [rsp + 0x58], ax
mov word [rsp + 0x5a], cx
mov dword [rsp + 0x5c], 0x3a
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
jne 0x14002d408
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14016e340
test eax, eax
jne 0x14002d42a
lea rdx, [rsp + 0x38]
cmp qword [rsp + 0x50], 0x10
cmovae rdx, qword [rsp + 0x38]
mov r8, qword [rsp + 0x48]
lea rcx, [0x1404964b8]
call fcn.140005040
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x14002d466
inc rdx
mov rax, r8
cmp rdx, 0x1000
jb 0x14002d45e
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002d48c
mov rcx, r8
call fcn.140311600
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.1403115a0
mov rbx, qword [rsp + 0x298]
add rsp, 0x280
pop rbp
ret
call fcn.140311d40
nop
call fcn.1403331f4
int3
Function at 0x14002d209
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
test rcx, rcx
je 0x14002d485
push rbp
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x298], rbx
mov rax, qword [0x140495598]
xor rax, rsp
mov qword [rbp + 0x170], rax
xor ebx, ebx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x38], bl
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rcx + r8], bl
jne 0x14002d256
mov rdx, rcx
lea rcx, [rsp + 0x38]
call fcn.140005040
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14002d42a
lea rax, [rsp + 0x38]
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
cmovae rax, r8
cmp byte [rcx + rax - 1], 0x2f
je 0x14002d2ad
lea rax, [rsp + 0x38]
cmp rdx, 0x10
cmovae rax, r8
cmp byte [rcx + rax - 1], 0x5c
jne 0x14002d2d5
dec rcx
mov qword [rsp + 0x48], rcx
lea rax, [rsp + 0x38]
cmp rdx, 0x10
cmovae rax, r8
mov byte [rax + rcx], 0
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
mov r8, qword [rsp + 0x38]
test rcx, rcx
je 0x14002d434
lea rax, [rsp + 0x38]
cmp rdx, 0x10
jb 0x14002d2f5
mov rax, r8
test r8, r8
je 0x14002d434
mov dword [rsp + 0x28], 0x104
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
mov r9d, 0xffffffff
mov r8, rax
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x14002d335
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x14002d42a
jmp 0x14002d3fd
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x14002d3f7
lea rdx, [rsp + 0x60]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, eax
test rax, rax
je 0x14002d3f7
cmp rax, 0x104
ja 0x14002d42a
cmp word [rsp + rax*2 + 0x5e], 0x5c
jne 0x14002d39e
cmp rax, 3
jne 0x14002d385
cmp word [rsp + 0x62], 0x3a
je 0x14002d3ac
dec rax
lea rcx, [rax + rax]
cmp rcx, 0x208
jae 0x14002d486
mov word [rsp + rcx + 0x60], bx
cmp rax, 2
jb 0x14002d408
cmp word [rsp + 0x62], 0x3a
jne 0x14002d408
movzx ecx, word [rsp + 0x60]
lea eax, [rcx - 0x41]
cmp ax, 0x19
jbe 0x14002d3c7
lea eax, [rcx - 0x61]
cmp ax, 0x19
ja 0x14002d408
sub cx, 0x20
test cx, cx
je 0x14002d408
mov eax, 0x3d
mov word [rsp + 0x58], ax
mov word [rsp + 0x5a], cx
mov dword [rsp + 0x5c], 0x3a
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
jne 0x14002d408
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14016e340
test eax, eax
jne 0x14002d42a
lea rdx, [rsp + 0x38]
cmp qword [rsp + 0x50], 0x10
cmovae rdx, qword [rsp + 0x38]
mov r8, qword [rsp + 0x48]
lea rcx, [0x1404964b8]
call fcn.140005040
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x14002d466
inc rdx
mov rax, r8
cmp rdx, 0x1000
jb 0x14002d45e
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002d48c
mov rcx, r8
call fcn.140311600
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.1403115a0
mov rbx, qword [rsp + 0x298]
add rsp, 0x280
pop rbp
ret
call fcn.140311d40
nop
call fcn.1403331f4
int3
Function at 0x1400363e0
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140495598]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, rcx
test rcx, rcx
je 0x140036629
mov r8d, reloc.WS2_32.dll_ntohs
lea rdx, str.Unauthenticated
call fcn.140339698
test eax, eax
je 0x140036614
mov r8d, shutdown
lea rdx, str.your_IP_is_banned
mov rcx, rbx
call fcn.140339698
test eax, eax
je 0x140036614
mov r8d, 0x1b
lea rdx, str.IP_Address_currently_banned
mov rcx, rbx
call fcn.140339698
test eax, eax
je 0x140036614
mov eax, dword [0x140449030]
xor ecx, ecx
cmp dword [0x1404955a0], 2
movsd xmm0, qword [0x140449028]
mov dword [rsp + 0x28], eax
movzx eax, word [0x140449034]
mov word [rsp + 0x2c], ax
movzx eax, byte [0x140449036]
mov byte [rsp + 0x2e], al
movsd qword [rsp + 0x20], xmm0
jl 0x1400365bc
movdqa xmm2, xmmword [0x14044ef60]
mov eax, 4
movdqa xmm5, xmmword [0x14044f110]
movdqa xmm1, xmm2
movdqa xmm3, xmmword [0x14044ef80]
movdqa xmm0, xmm2
paddd xmm3, xmmword [0x14044ef60]
mov ecx, 8
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm5
pmuldq xmm1, xmm5
movaps xmmword [rsp + 0x50], xmm6
movaps xmmword [rsp + 0x40], xmm7
movd xmm7, eax
mov eax, 0x1f
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm7
movd xmm6, eax
movdqa xmm0, xmm1
psrld xmm0, xmm6
paddd xmm0, xmm1
pmulld xmm0, xmmword [str.444466667777]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, dword [0x140449028]
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
pand xmm2, xmmword [0x14044f010]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x14044f0a0]
pxor xmm2, xmm0
punpckldq xmm1, xmm3
movd dword [rsp + 0x20], xmm2
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm5
pmuldq xmm1, xmm5
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm7
movaps xmm7, xmmword [rsp + 0x40]
movdqa xmm0, xmm1
psrld xmm0, xmm6
movaps xmm6, xmmword [rsp + 0x50]
paddd xmm0, xmm1
pmulld xmm0, xmmword [str.444466667777]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, dword [rsp + 0x24]
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x14044f010]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x14044f0a0]
pxor xmm2, xmm0
movd dword [rsp + 0x24], xmm2
mov eax, ecx
lea r8, [rsp + 0x20]
add r8, rax
nop word [rax + rax]
mov eax, 0x4ec4ec4f
lea r8, [r8 + 1]
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x34
movzx eax, cl
inc ecx
sub al, dl
add al, 0x33
xor byte [r8 - 1], al
cmp ecx, 0xf
jl 0x1400365d0
mov r8d, recv
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140339698
test eax, eax
jne 0x140036629
mov al, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1403115a0
add rsp, 0x60
pop rbx
ret
xor al, al
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1403115a0
add rsp, 0x60
pop rbx
ret
Function at 0x14004c450
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
movzx eax, byte [rcx + 6]
mov rdx, rcx
movzx r8d, byte [rcx + 7]
movzx esi, byte [rcx + 0xb]
movzx ebp, byte [rcx + 0xf]
movzx r11d, byte [rcx + 0x13]
movzx ebx, byte [rcx + 0x17]
movzx edi, byte [rcx + 0x1b]
movzx r14d, byte [rcx + 0x1f]
shl r8, 8
or r8, rax
shl rsi, 8
movzx eax, byte [rcx + 5]
shl rbp, 8
shl r11, 8
shl rbx, 8
shl rdi, 8
shl r14, 8
shl r8, 8
or r8, rax
movzx eax, byte [rcx + 4]
shl r8, 8
or r8, rax
movzx eax, byte [rcx + 0xa]
or rsi, rax
movzx eax, byte [rcx + 9]
shl rsi, 8
or rsi, rax
movzx eax, byte [rcx + 8]
shl rsi, 8
or rsi, rax
movzx eax, byte [rcx + 0xe]
or rbp, rax
movzx eax, byte [rcx + 0xd]
shl rbp, 8
or rbp, rax
movzx eax, byte [rcx + 0xc]
shl rbp, 8
or rbp, rax
movzx eax, byte [rcx + 0x12]
or r11, rax
movzx eax, byte [rcx + 0x11]
shl r11, 8
or r11, rax
movzx eax, byte [rcx + 0x10]
shl r11, 8
or r11, rax
movzx eax, byte [rcx + 0x16]
or rbx, rax
movzx eax, byte [rcx + 0x15]
shl rbx, 8
or rbx, rax
movzx eax, byte [rcx + 0x14]
shl rbx, 8
or rbx, rax
movzx eax, byte [rcx + 0x1a]
or rdi, rax
movzx eax, byte [rcx + 0x19]
shl rdi, 8
or rdi, rax
movzx eax, byte [rcx + 0x18]
shl rdi, 8
or rdi, rax
movzx eax, byte [rcx + 0x1e]
or r14, rax
movzx eax, byte [rcx + 0x1d]
shl r14, 8
or r14, rax
movzx eax, byte [rcx + 0x1c]
movzx ecx, byte [rcx + 3]
shl rcx, 8
shl r14, 8
or r14, rax
movzx eax, byte [rdx + 2]
or rcx, rax
movzx eax, byte [rdx + 1]
shl rcx, 8
or rcx, rax
movzx eax, byte [rdx]
shl rcx, 8
or rcx, rax
mov edx, 0x5cf5d3ec
mov eax, 1
sub rdx, rcx
test rdx, rdx
jle 0x14004c5aa
mov r10d, eax
jmp 0x14004c5b7
xor r10d, r10d
test rdx, rdx
setns r10b
dec r10d
mov ecx, 0x5812631a
sub rcx, r8
test rcx, rcx
jle 0x14004c5c9
mov r9d, eax
jmp 0x14004c5d6
xor r9d, r9d
test rcx, rcx
setns r9b
dec r9d
mov ecx, 0xa2f79cd6
sub rcx, rsi
test rcx, rcx
jle 0x14004c5e8
mov r8d, eax
jmp 0x14004c5f5
xor r8d, r8d
test rcx, rcx
setns r8b
dec r8d
mov ecx, 0x14def9de
sub rcx, rbp
test rcx, rcx
jle 0x14004c606
mov edx, eax
jmp 0x14004c610
xor edx, edx
test rcx, rcx
setns dl
dec edx
mov ecx, 0x10000000
neg r11
sub rcx, r14
neg rbx
neg rdi
test rcx, rcx
jg 0x14004c630
xor eax, eax
test rcx, rcx
setns al
dec eax
mov rbp, qword [rsp + 0x18]
mov rsi, qword [rsp + 0x20]
cdqe
sar rdi, 0x3f
sar rbx, 0x3f
sar r11, 0x3f
lea rcx, [rdi + rax*2]
mov rdi, qword [rsp + 0x28]
lea rax, [rbx + rcx*2]
mov rbx, qword [rsp + 0x10]
lea rcx, [r11 + rax*2]
movsxd rax, edx
lea rdx, [rax + rcx*2]
movsxd rax, r8d
lea rcx, [rax + rdx*2]
movsxd rax, r9d
lea rdx, [rax + rcx*2]
movsxd rax, r10d
lea rax, [rax + rdx*2]
sar rax, 8
pop r14
ret
Function at 0x14004e070
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
mov r15d, edx
lea r14d, [rdx - 1]
mov rdi, rcx
xor r12d, r12d
nop word [rax + rax]
mov esi, r12d
mov ebp, r12d
test r14d, r14d
je 0x14004e27a
mov r8, qword [rdi + 8]
nop dword [rax]
nop word [rax + rax]
lea ecx, [r8 + 0xff]
shl esi, cl
add esi, esi
nop dword [rax + rax]
mov r10, qword [rdi]
mov ecx, dword [r10]
cmp ecx, 0x270
jne 0x14004e134
lea rax, [r10 + 8]
mov r9d, ecx
nop word [rax + rax]
mov r8d, dword [rax - 4]
xor r8d, dword [rax]
lea rax, [rax + 4]
btr r8d, 0x1f
xor r8d, dword [rax - 8]
mov ecx, r8d
and cl, 1
neg cl
sbb edx, edx
shr r8d, 1
and edx, 0x9908b0df
xor edx, dword [rax + 0x62c]
xor edx, r8d
mov dword [rax + 0x9b8], edx
sub r9, 1
jne 0x14004e0f0
mov ecx, dword [r10]
jmp 0x14004e217
cmp ecx, 0x4e0
jb 0x14004e217
lea r11, [r10 + 0x9c4]
mov ebx, 0xe3
mov eax, dword [r11]
nop
mov edx, eax
lea r8, [r11 + 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 + 0x634]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x14004e150
lea r11, [r10 + 0xd50]
mov ebx, 0x18c
mov eax, dword [r11]
nop word [rax + rax]
mov edx, eax
lea r8, [r11 + 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 - 0xd4c]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x14004e1a0
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 4]
btr edx, 0x1f
xor edx, dword [r10 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 + 0x9c0], ecx
mov ecx, r12d
mov dword [r10], r12d
mov eax, ecx
mov edx, dword [r10 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r10], eax
mov ecx, edx
mov eax, dword [r10 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
mov edx, dword [rdi + 0x10]
cmp eax, edx
ja 0x14004e0d0
mov r8, qword [rdi + 8]
or esi, eax
lea ecx, [r8 + 0xff]
shl ebp, cl
add ebp, ebp
or ebp, edx
cmp ebp, r14d
jb 0x14004e0c0
xor edx, edx
mov eax, ebp
div r15d
mov ecx, eax
mov r8d, edx
xor edx, edx
mov eax, esi
div r15d
cmp eax, ecx
jb 0x14004e29a
cmp r8d, r14d
jne 0x14004e0a0
mov rbx, qword [rsp + 0x20]
mov eax, esi
mov rbp, qword [rsp + 0x28]
xor edx, edx
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
div r15d
mov eax, edx
pop r15
pop r14
pop r12
ret
Function at 0x14005c4a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x80], rbp
mov rbx, rcx
mov rax, qword [rcx + 0x10]
mov rdx, qword [rax + 0x10]
mov r15, qword [rdx + 8]
cmp byte [r15 + 0x10], 0
je 0x14005c687
mov r12d, 0x20
mov ecx, r12d
call fcn.1403115c4
mov rsi, rax
mov qword [rsp + 0x70], rax
lea rax, vtable.bbees::HttpsServer.0
mov qword [rsi], rax
xor edi, edi
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], rdi
mov rax, qword [rbx + 0x20]
test rax, rax
je 0x14005c514
lock inc dword [rax + 0xc]
mov rax, qword [rbx + 0x18]
mov qword [rsi + 8], rax
mov rax, qword [rbx + 0x20]
mov qword [rsi + 0x10], rax
mov qword [rsi + 0x18], rdi
mov qword [rbx + 0x38], rsi
mov rax, qword [rbx + 0x10]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx + 8]
lea rbp, [rax + 0xe8]
cmp byte [rbp], dil
je 0x14005c55f
cmp qword [rbp + 0x10], rdi
je 0x14005c555
cmp qword [rbp + 0x50], rdi
je 0x14005c555
mov al, 1
jmp 0x14005c557
xor al, al
test al, al
je 0x14005c55f
mov al, 1
jmp 0x14005c561
xor al, al
test al, al
je 0x14005c59e
mov ecx, 8
call fcn.1403115c4
mov r14, rax
mov qword [rax], rdi
mov rdx, rbp
mov rcx, rax
call fcn.140158b20
test al, al
jne 0x14005c59b
mov rcx, qword [r14]
call fcn.1401c50e0
mov edx, 8
mov rcx, r14
call fcn.140311600
jmp 0x14005c59e
mov rdi, r14
mov qword [rsi + 0x18], rdi
mov ecx, 0xa8
call fcn.1403115c4
mov qword [rsp + 0x70], rax
mov r9, qword [rbx + 0x38]
movzx r8d, word [r15 + 0x38]
lea rdx, [r15 + 0x18]
mov rcx, rax
call fcn.14006c220
nop
mov qword [rbx + 0x28], rax
mov rcx, rax
call fcn.14006c3f0
mov esi, eax
test eax, eax
jns 0x14005c5e5
mov ecx, eax
call fcn.14015caf0
mov rcx, rax
jmp 0x14005c5ec
lea rcx, [0x1403f6c6d]
test esi, esi
jns 0x14005c5f7
movzx eax, word [r15 + 0x38]
jmp 0x14005c5f9
mov eax, esi
mov r8d, 0x24
test rdi, rdi
cmovne r8d, r12d
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], eax
mov r9, qword [r15 + 0x18]
lea rdx, str.HTTP_API
lea rcx, str.e_1_32m__e_0me_1_37m__13se_0me_1__dm_s:_d_e_1_31m_se_0m
call fcn.140026db0
test esi, esi
jns 0x14005c636
mov rcx, rbx
call fcn.14005c6b0
xor al, al
jmp 0x14005c689
mov word [rbx + 0x30], si
mov edx, 1
xor ecx, ecx
lea r8d, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
je 0x14005c687
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14005c687
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [0x1404a48e8], rax
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov eax, eax
mov qword [0x1404a48e0], rax
mov al, 1
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x14006c3f0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbp
sub rsp, 0xd0
mov rax, qword [0x140495598]
xor rax, rsp
mov qword [rsp + 0xb0], rax
cmp dword [rcx + 8], 0
mov rbp, rcx
jne 0x14006c41e
mov eax, 0xfffff448
jmp 0x14006c638
mov qword [rsp + 0xe8], rbx
lea rdx, [rcx + 0x18]
mov rcx, qword [rcx + 0xa0]
mov qword [rsp + 0xc8], rdi
mov rbx, rcx
cmp dword [rcx + 0x10], 0xc
jne 0x14006c46b
movzx eax, word [rdx]
cmp ax, 2
jne 0x14006c453
mov r8d, reloc.WS2_32.dll_recv
jmp 0x14006c45f
cmp ax, 0x17
jne 0x14006c46b
mov r8d, 0x1c
call fcn.140168830
mov rbx, qword [rbp + 0xa0]
mov eax, dword [rbx + 0x10]
mov edi, 0x57
cmp eax, 7
je 0x14006c490
cmp eax, 0xc
jne 0x14006c56c
mov rcx, rbx
call fcn.140168e70
mov edi, eax
jmp 0x14006c56c
mov edx, dword [rbx + 0x58]
lea r8, [0x14006c660]
mov qword [rsp + 0xc0], r14
mov r14, qword [rbx + 8]
test dl, 0x40
je 0x14006c4b2
mov qword [rbx + 0x100], r8
bt edx, 0xd
jb 0x14006c4c2
mov edi, 0x2726
jmp 0x14006c564
bt edx, 0xc
jae 0x14006c4d2
mov edi, 0x2748
jmp 0x14006c564
bt edx, 0x19
jb 0x14006c4e2
mov edi, 0x32
jmp 0x14006c564
mov ecx, dword [rbx + 0x7c]
mov eax, edx
or eax, 0x40
mov qword [rsp + 0xf0], rsi
mov dword [rbx + 0x58], eax
lea eax, [rcx + 1]
mov dword [rbx + 0x7c], eax
test ecx, ecx
jne 0x14006c513
test dl, 4
jne 0x14006c513
or edx, 0x44
mov dword [rbx + 0x58], edx
test dl, 8
je 0x14006c513
inc dword [r14 + 8]
xor edi, edi
mov qword [rbx + 0x100], r8
mov esi, edi
cmp dword [rbx + 0x128], edi
jle 0x14006c55c
nop word [rax + rax]
mov r9d, edi
movsxd r8, esi
test esi, esi
mov rdx, rbx
mov rcx, r14
sete r9b
shl r8, 7
add r8, qword [rbx + 0x130]
call fcn.14016c3a0
inc esi
cmp esi, dword [rbx + 0x128]
jl 0x14006c530
mov rsi, qword [rsp + 0xf0]
mov r14, qword [rsp + 0xc0]
mov ecx, edi
call fcn.14016e340
mov rdi, qword [rsp + 0xc8]
mov rbx, qword [rsp + 0xe8]
test eax, eax
jne 0x14006c638
movzx eax, word [rbp + 0x98]
test ax, ax
jne 0x14006c635
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x80
call fcn.140330340
mov rdx, qword [rbp + 0xa0]
mov dword [rsp + 0x20], 0x80
mov ecx, dword [rdx + 0x10]
sub ecx, 7
je 0x14006c5ed
sub ecx, 1
je 0x14006c5e7
sub ecx, 4
je 0x14006c5de
sub ecx, 2
je 0x14006c5de
cmp ecx, 1
jne 0x14006c623
mov rcx, qword [rdx + 0x70]
jmp 0x14006c5f4
mov rcx, qword [rdx + 0x110]
jmp 0x14006c5f4
mov rcx, qword [rdx + 0x68]
jmp 0x14006c5f4
mov rcx, qword [rdx + 0x118]
test byte [rdx + 0x58], 3
jne 0x14006c623
cmp rcx, 0xffffffffffffffff
je 0x14006c623
cmp dword [rdx + 0x118], 0
jne 0x14006c623
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x14006c623
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
movzx ecx, word [rsp + 0x32]
call qword [sym.imp.WS2_32.dll_ntohs]
mov word [rbp + 0x98], ax
movzx eax, ax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1403115a0
add rsp, 0xd0
pop rbp
ret
Function at 0x14008c440
Capabilities:
Get memory capacity

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0xf8]
sub rsp, 0x1f0
mov qword [rbp - 0x70], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x140495598]
xor rax, rsp
mov qword [rbp + 0xe0], rax
mov rax, qword [rcx + 0x10]
mov rdi, qword [rax + 8]
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp - 0x20]
call fcn.140330340
mov r9d, 0x7e1
lea r8, str.MSVC__d
mov edx, 0x100
lea rcx, [rbp - 0x20]
call fcn.1400268f0
xor esi, esi
mov qword [rbp - 0x50], rsi
mov qword [rbp - 0x48], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x60], sil
lea rax, [rbp - 0x20]
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x14008c4d0
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x60]
call fcn.140020c90
mov rcx, qword [0x1404a4970]
test rcx, rcx
jne 0x14008c514
mov ecx, 0x110
call fcn.1403115c4
mov qword [rsp + 0x20], rax
mov rcx, rax
call fcn.14007fe20
mov rcx, rax
mov qword [0x1404a4970], rax
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_WSASetLastError]
nop word [rax + rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x14008c520
mov r8, rbx
mov rdx, rax
lea rcx, [rbp - 0x60]
call fcn.140020c90
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, 0x10
jb 0x14008c574
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008c56f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14008c6c0
call fcn.140311600
cmp qword [0x1404a4970], 0
jne 0x14008c59d
mov ecx, 0x110
call fcn.1403115c4
mov qword [rsp + 0x20], rax
mov rcx, rax
call fcn.14007fe20
nop
mov qword [0x1404a4970], rax
mov dword [rbp - 0x60], 0x40
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov dword [rbp - 0x60], 0x40
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov rax, qword [rdi + 0x140]
cmp byte [rax + 0xc8], 0
je 0x14008c658
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], rsi
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], rsi
mov qword [rbp - 0x78], rsi
lea rcx, [rsp + 0x30]
call fcn.140090cb0
test al, al
je 0x14008c64e
mov rcx, qword [0x1404a4970]
test rcx, rcx
jne 0x14008c647
mov ecx, 0x110
call fcn.1403115c4
mov qword [rsp + 0x20], rax
mov rcx, rax
call fcn.14007fe20
mov rcx, rax
mov qword [0x1404a4970], rax
mov rax, qword [rcx]
call qword [rax + 0x60]
nop
lea rcx, [rsp + 0x30]
call fcn.140056680
mov rax, qword [rdi + 0x140]
cmp dword [rax + 0xc], 1
jne 0x14008c698
mov rcx, qword [0x1404a4970]
test rcx, rcx
jne 0x14008c692
mov ecx, 0x110
call fcn.1403115c4
mov qword [rsp + 0x20], rax
mov rcx, rax
call fcn.14007fe20
mov rcx, rax
mov qword [0x1404a4970], rax
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp + 0xe0]
xor rcx, rsp
call fcn.1403115a0
lea r11, [rsp + 0x1f0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.1403331f4
int3